1. Packages
  2. Vkcs Provider
  3. API Docs
  4. IamS3Account
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

    Manages an IAM S3 account within VKCS.

    !> Security Note: secret_key is marked as sensitive, and, therefore, will not be shown in outputs by default, but you should consider protecting it as input variable and state value. To get more information on the topic, you can refer to the official tutorial.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as vkcs from "@pulumi/vkcs";
    
    const s3Account = new vkcs.IamS3Account("s3_account", {
        name: "tf-example-s3-account",
        description: "S3 account created by Terraform example",
    });
    export const accessKey = s3Account.accessKey;
    export const secretKey = s3Account.secretKey;
    
    import pulumi
    import pulumi_vkcs as vkcs
    
    s3_account = vkcs.IamS3Account("s3_account",
        name="tf-example-s3-account",
        description="S3 account created by Terraform example")
    pulumi.export("accessKey", s3_account.access_key)
    pulumi.export("secretKey", s3_account.secret_key)
    
    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 {
    		s3Account, err := vkcs.NewIamS3Account(ctx, "s3_account", &vkcs.IamS3AccountArgs{
    			Name:        pulumi.String("tf-example-s3-account"),
    			Description: pulumi.String("S3 account created by Terraform example"),
    		})
    		if err != nil {
    			return err
    		}
    		ctx.Export("accessKey", s3Account.AccessKey)
    		ctx.Export("secretKey", s3Account.SecretKey)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Vkcs = Pulumi.Vkcs;
    
    return await Deployment.RunAsync(() => 
    {
        var s3Account = new Vkcs.IamS3Account("s3_account", new()
        {
            Name = "tf-example-s3-account",
            Description = "S3 account created by Terraform example",
        });
    
        return new Dictionary<string, object?>
        {
            ["accessKey"] = s3Account.AccessKey,
            ["secretKey"] = s3Account.SecretKey,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.vkcs.IamS3Account;
    import com.pulumi.vkcs.IamS3AccountArgs;
    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) {
            var s3Account = new IamS3Account("s3Account", IamS3AccountArgs.builder()
                .name("tf-example-s3-account")
                .description("S3 account created by Terraform example")
                .build());
    
            ctx.export("accessKey", s3Account.accessKey());
            ctx.export("secretKey", s3Account.secretKey());
        }
    }
    
    resources:
      s3Account:
        type: vkcs:IamS3Account
        name: s3_account
        properties:
          name: tf-example-s3-account
          description: S3 account created by Terraform example
    outputs:
      accessKey: ${s3Account.accessKey}
      secretKey: ${s3Account.secretKey}
    

    Create IamS3Account Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new IamS3Account(name: string, args?: IamS3AccountArgs, opts?: CustomResourceOptions);
    @overload
    def IamS3Account(resource_name: str,
                     args: Optional[IamS3AccountArgs] = None,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def IamS3Account(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     description: Optional[str] = None,
                     name: Optional[str] = None,
                     region: Optional[str] = None)
    func NewIamS3Account(ctx *Context, name string, args *IamS3AccountArgs, opts ...ResourceOption) (*IamS3Account, error)
    public IamS3Account(string name, IamS3AccountArgs? args = null, CustomResourceOptions? opts = null)
    public IamS3Account(String name, IamS3AccountArgs args)
    public IamS3Account(String name, IamS3AccountArgs args, CustomResourceOptions options)
    
    type: vkcs:IamS3Account
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args IamS3AccountArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args IamS3AccountArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args IamS3AccountArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IamS3AccountArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IamS3AccountArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var iamS3AccountResource = new Vkcs.IamS3Account("iamS3AccountResource", new()
    {
        Description = "string",
        Name = "string",
        Region = "string",
    });
    
    example, err := vkcs.NewIamS3Account(ctx, "iamS3AccountResource", &vkcs.IamS3AccountArgs{
    	Description: pulumi.String("string"),
    	Name:        pulumi.String("string"),
    	Region:      pulumi.String("string"),
    })
    
    var iamS3AccountResource = new IamS3Account("iamS3AccountResource", IamS3AccountArgs.builder()
        .description("string")
        .name("string")
        .region("string")
        .build());
    
    iam_s3_account_resource = vkcs.IamS3Account("iamS3AccountResource",
        description="string",
        name="string",
        region="string")
    
    const iamS3AccountResource = new vkcs.IamS3Account("iamS3AccountResource", {
        description: "string",
        name: "string",
        region: "string",
    });
    
    type: vkcs:IamS3Account
    properties:
        description: string
        name: string
        region: string
    

    IamS3Account Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The IamS3Account resource accepts the following input properties:

    Description string
    optional string → Description of the S3 account. Changing this creates a new resource.
    Name string
    required string → Name of the S3 account. The name must be unique. The length must be between 3 and 32 characters. Changing this creates a new resource.
    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. Changing this creates a new resource.
    Description string
    optional string → Description of the S3 account. Changing this creates a new resource.
    Name string
    required string → Name of the S3 account. The name must be unique. The length must be between 3 and 32 characters. Changing this creates a new resource.
    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. Changing this creates a new resource.
    description String
    optional string → Description of the S3 account. Changing this creates a new resource.
    name String
    required string → Name of the S3 account. The name must be unique. The length must be between 3 and 32 characters. Changing this creates a new resource.
    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. Changing this creates a new resource.
    description string
    optional string → Description of the S3 account. Changing this creates a new resource.
    name string
    required string → Name of the S3 account. The name must be unique. The length must be between 3 and 32 characters. Changing this creates a new resource.
    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. Changing this creates a new resource.
    description str
    optional string → Description of the S3 account. Changing this creates a new resource.
    name str
    required string → Name of the S3 account. The name must be unique. The length must be between 3 and 32 characters. Changing this creates a new resource.
    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. Changing this creates a new resource.
    description String
    optional string → Description of the S3 account. Changing this creates a new resource.
    name String
    required string → Name of the S3 account. The name must be unique. The length must be between 3 and 32 characters. Changing this creates a new resource.
    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. Changing this creates a new resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the IamS3Account resource produces the following output properties:

    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.
    Id string
    The provider-assigned unique ID for this managed resource.
    SecretKey string
    string → Secret key for the S3 account. Note: This is a sensitive attribute.
    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.
    Id string
    The provider-assigned unique ID for this managed resource.
    SecretKey string
    string → Secret key for the S3 account. Note: This is a sensitive attribute.
    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.
    id String
    The provider-assigned unique ID for this managed resource.
    secretKey String
    string → Secret key for the S3 account. Note: This is a sensitive attribute.
    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.
    id string
    The provider-assigned unique ID for this managed resource.
    secretKey string
    string → Secret key for the S3 account. Note: This is a sensitive attribute.
    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.
    id str
    The provider-assigned unique ID for this managed resource.
    secret_key str
    string → Secret key for the S3 account. Note: This is a sensitive attribute.
    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.
    id String
    The provider-assigned unique ID for this managed resource.
    secretKey String
    string → Secret key for the S3 account. Note: This is a sensitive attribute.

    Look up Existing IamS3Account Resource

    Get an existing IamS3Account resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: IamS3AccountState, opts?: CustomResourceOptions): IamS3Account
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            access_key: Optional[str] = None,
            account_id: Optional[str] = None,
            account_name: Optional[str] = None,
            created_at: Optional[str] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            region: Optional[str] = None,
            secret_key: Optional[str] = None) -> IamS3Account
    func GetIamS3Account(ctx *Context, name string, id IDInput, state *IamS3AccountState, opts ...ResourceOption) (*IamS3Account, error)
    public static IamS3Account Get(string name, Input<string> id, IamS3AccountState? state, CustomResourceOptions? opts = null)
    public static IamS3Account get(String name, Output<String> id, IamS3AccountState state, CustomResourceOptions options)
    resources:  _:    type: vkcs:IamS3Account    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    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
    optional string → Description of the S3 account. Changing this creates a new resource.
    Name string
    required string → Name of the S3 account. The name must be unique. The length must be between 3 and 32 characters. Changing this creates a new resource.
    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. Changing this creates a new resource.
    SecretKey string
    string → Secret key for the S3 account. Note: This is a sensitive attribute.
    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
    optional string → Description of the S3 account. Changing this creates a new resource.
    Name string
    required string → Name of the S3 account. The name must be unique. The length must be between 3 and 32 characters. Changing this creates a new resource.
    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. Changing this creates a new resource.
    SecretKey string
    string → Secret key for the S3 account. Note: This is a sensitive attribute.
    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
    optional string → Description of the S3 account. Changing this creates a new resource.
    name String
    required string → Name of the S3 account. The name must be unique. The length must be between 3 and 32 characters. Changing this creates a new resource.
    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. Changing this creates a new resource.
    secretKey String
    string → Secret key for the S3 account. Note: This is a sensitive attribute.
    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
    optional string → Description of the S3 account. Changing this creates a new resource.
    name string
    required string → Name of the S3 account. The name must be unique. The length must be between 3 and 32 characters. Changing this creates a new resource.
    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. Changing this creates a new resource.
    secretKey string
    string → Secret key for the S3 account. Note: This is a sensitive attribute.
    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
    optional string → Description of the S3 account. Changing this creates a new resource.
    name str
    required string → Name of the S3 account. The name must be unique. The length must be between 3 and 32 characters. Changing this creates a new resource.
    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. Changing this creates a new resource.
    secret_key str
    string → Secret key for the S3 account. Note: This is a sensitive attribute.
    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
    optional string → Description of the S3 account. Changing this creates a new resource.
    name String
    required string → Name of the S3 account. The name must be unique. The length must be between 3 and 32 characters. Changing this creates a new resource.
    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. Changing this creates a new resource.
    secretKey String
    string → Secret key for the S3 account. Note: This is a sensitive attribute.

    Import

    An IAM S3 account can be imported using the id, e.g.

    $ pulumi import vkcs:index/iamS3Account:IamS3Account s3_account <s3_account_id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    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