Use this data source to get information about an IAM S3 account.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as vkcs from "@pulumi/vkcs";
const s3Account = vkcs.getIamS3Account({
name: s3AccountVkcsIamS3Account.name,
});
import pulumi
import pulumi_vkcs as vkcs
s3_account = vkcs.get_iam_s3_account(name=s3_account_vkcs_iam_s3_account["name"])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/vkcs/vkcs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vkcs.LookupIamS3Account(ctx, &vkcs.LookupIamS3AccountArgs{
Name: pulumi.StringRef(s3AccountVkcsIamS3Account.Name),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vkcs = Pulumi.Vkcs;
return await Deployment.RunAsync(() =>
{
var s3Account = Vkcs.GetIamS3Account.Invoke(new()
{
Name = s3AccountVkcsIamS3Account.Name,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vkcs.VkcsFunctions;
import com.pulumi.vkcs.inputs.GetIamS3AccountArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var s3Account = VkcsFunctions.getIamS3Account(GetIamS3AccountArgs.builder()
.name(s3AccountVkcsIamS3Account.name())
.build());
}
}
variables:
s3Account:
fn::invoke:
function: vkcs:getIamS3Account
arguments:
name: ${s3AccountVkcsIamS3Account.name}
Using getIamS3Account
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getIamS3Account(args: GetIamS3AccountArgs, opts?: InvokeOptions): Promise<GetIamS3AccountResult>
function getIamS3AccountOutput(args: GetIamS3AccountOutputArgs, opts?: InvokeOptions): Output<GetIamS3AccountResult>def get_iam_s3_account(id: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIamS3AccountResult
def get_iam_s3_account_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIamS3AccountResult]func LookupIamS3Account(ctx *Context, args *LookupIamS3AccountArgs, opts ...InvokeOption) (*LookupIamS3AccountResult, error)
func LookupIamS3AccountOutput(ctx *Context, args *LookupIamS3AccountOutputArgs, opts ...InvokeOption) LookupIamS3AccountResultOutput> Note: This function is named LookupIamS3Account in the Go SDK.
public static class GetIamS3Account
{
public static Task<GetIamS3AccountResult> InvokeAsync(GetIamS3AccountArgs args, InvokeOptions? opts = null)
public static Output<GetIamS3AccountResult> Invoke(GetIamS3AccountInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetIamS3AccountResult> getIamS3Account(GetIamS3AccountArgs args, InvokeOptions options)
public static Output<GetIamS3AccountResult> getIamS3Account(GetIamS3AccountArgs args, InvokeOptions options)
fn::invoke:
function: vkcs:index/getIamS3Account:getIamS3Account
arguments:
# arguments dictionaryThe following arguments are supported:
getIamS3Account Result
The following output properties are available:
- Access
Key string - string → Access key for the S3 account.
- Account
Id string - string → ID of the S3 account in Hotbox S3 service.
- Account
Name string - string → Name of the S3 account in Hotbox S3 service.
- Created
At string - string → S3 account creation timestamp.
- Description string
- string → Description of the S3 account.
- Id string
- Name string
- Region string
- Access
Key string - string → Access key for the S3 account.
- Account
Id string - string → ID of the S3 account in Hotbox S3 service.
- Account
Name string - string → Name of the S3 account in Hotbox S3 service.
- Created
At string - string → S3 account creation timestamp.
- Description string
- string → Description of the S3 account.
- Id string
- Name string
- Region string
- access
Key String - string → Access key for the S3 account.
- account
Id String - string → ID of the S3 account in Hotbox S3 service.
- account
Name String - string → Name of the S3 account in Hotbox S3 service.
- created
At String - string → S3 account creation timestamp.
- description String
- string → Description of the S3 account.
- id String
- name String
- region String
- access
Key string - string → Access key for the S3 account.
- account
Id string - string → ID of the S3 account in Hotbox S3 service.
- account
Name string - string → Name of the S3 account in Hotbox S3 service.
- created
At string - string → S3 account creation timestamp.
- description string
- string → Description of the S3 account.
- id string
- name string
- region string
- access_
key str - string → Access key for the S3 account.
- account_
id str - string → ID of the S3 account in Hotbox S3 service.
- account_
name str - string → Name of the S3 account in Hotbox S3 service.
- created_
at str - string → S3 account creation timestamp.
- description str
- string → Description of the S3 account.
- id str
- name str
- region str
- access
Key String - string → Access key for the S3 account.
- account
Id String - string → ID of the S3 account in Hotbox S3 service.
- account
Name String - string → Name of the S3 account in Hotbox S3 service.
- created
At String - string → S3 account creation timestamp.
- description String
- string → Description of the S3 account.
- id String
- name String
- region String
Package Details
- Repository
- vkcs vk-cs/terraform-provider-vkcs
- License
- Notes
- This Pulumi package is based on the
vkcsTerraform Provider.
