1. Packages
  2. Vkcs Provider
  3. API Docs
  4. getIamS3Account
vkcs 0.14.0 published on Tuesday, Dec 30, 2025 by vk-cs
vkcs logo
vkcs 0.14.0 published on Tuesday, Dec 30, 2025 by vk-cs

    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 dictionary

    The following arguments are supported:

    Id string
    optional string → ID of the S3 account. Conflicts with name.
    Name string
    optional string → Name of the S3 account. Conflicts with id.
    Region string
    optional string → The region in which to obtain the IAM Service Users client. If omitted, the region argument of the provider is used.
    Id string
    optional string → ID of the S3 account. Conflicts with name.
    Name string
    optional string → Name of the S3 account. Conflicts with id.
    Region string
    optional string → The region in which to obtain the IAM Service Users client. If omitted, the region argument of the provider is used.
    id String
    optional string → ID of the S3 account. Conflicts with name.
    name String
    optional string → Name of the S3 account. Conflicts with id.
    region String
    optional string → The region in which to obtain the IAM Service Users client. If omitted, the region argument of the provider is used.
    id string
    optional string → ID of the S3 account. Conflicts with name.
    name string
    optional string → Name of the S3 account. Conflicts with id.
    region string
    optional string → The region in which to obtain the IAM Service Users client. If omitted, the region argument of the provider is used.
    id str
    optional string → ID of the S3 account. Conflicts with name.
    name str
    optional string → Name of the S3 account. Conflicts with id.
    region str
    optional string → The region in which to obtain the IAM Service Users client. If omitted, the region argument of the provider is used.
    id String
    optional string → ID of the S3 account. Conflicts with name.
    name String
    optional string → Name of the S3 account. Conflicts with id.
    region String
    optional string → The region in which to obtain the IAM Service Users client. If omitted, the region argument of the provider is used.

    getIamS3Account Result

    The following output properties are available:

    AccessKey string
    string → Access key for the S3 account.
    AccountId string
    string → ID of the S3 account in Hotbox S3 service.
    AccountName string
    string → Name of the S3 account in Hotbox S3 service.
    CreatedAt string
    string → S3 account creation timestamp.
    Description string
    string → Description of the S3 account.
    Id string
    Name string
    Region string
    AccessKey string
    string → Access key for the S3 account.
    AccountId string
    string → ID of the S3 account in Hotbox S3 service.
    AccountName string
    string → Name of the S3 account in Hotbox S3 service.
    CreatedAt string
    string → S3 account creation timestamp.
    Description string
    string → Description of the S3 account.
    Id string
    Name string
    Region string
    accessKey String
    string → Access key for the S3 account.
    accountId String
    string → ID of the S3 account in Hotbox S3 service.
    accountName String
    string → Name of the S3 account in Hotbox S3 service.
    createdAt String
    string → S3 account creation timestamp.
    description String
    string → Description of the S3 account.
    id String
    name String
    region String
    accessKey string
    string → Access key for the S3 account.
    accountId string
    string → ID of the S3 account in Hotbox S3 service.
    accountName string
    string → Name of the S3 account in Hotbox S3 service.
    createdAt 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
    accessKey String
    string → Access key for the S3 account.
    accountId String
    string → ID of the S3 account in Hotbox S3 service.
    accountName String
    string → Name of the S3 account in Hotbox S3 service.
    createdAt 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 vkcs Terraform Provider.
    vkcs logo
    vkcs 0.14.0 published on Tuesday, Dec 30, 2025 by vk-cs
      Meet Neo: Your AI Platform Teammate