1. Packages
  2. Vra Provider
  3. API Docs
  4. CloudAccountAws
vra 0.12.0 published on Monday, Apr 14, 2025 by vmware

vra.CloudAccountAws

Explore with Pulumi AI

vra logo
vra 0.12.0 published on Monday, Apr 14, 2025 by vmware

    Creates a VMware vRealize Automation AWS cloud account resource.

    Example Usage

    S

    The following example shows how to create an AWS cloud account resource.

    import * as pulumi from "@pulumi/pulumi";
    import * as vra from "@pulumi/vra";
    
    const _this = new vra.CloudAccountAws("this", {
        description: "terraform test cloud account aws",
        accessKey: _var.access_key,
        secretKey: _var.secret_key,
        regions: [
            "us-east-1",
            "us-west-1",
        ],
        tags: [{
            key: "foo",
            value: "bar",
        }],
    });
    
    import pulumi
    import pulumi_vra as vra
    
    this = vra.CloudAccountAws("this",
        description="terraform test cloud account aws",
        access_key=var["access_key"],
        secret_key=var["secret_key"],
        regions=[
            "us-east-1",
            "us-west-1",
        ],
        tags=[{
            "key": "foo",
            "value": "bar",
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/vra/vra"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := vra.NewCloudAccountAws(ctx, "this", &vra.CloudAccountAwsArgs{
    			Description: pulumi.String("terraform test cloud account aws"),
    			AccessKey:   pulumi.Any(_var.Access_key),
    			SecretKey:   pulumi.Any(_var.Secret_key),
    			Regions: pulumi.StringArray{
    				pulumi.String("us-east-1"),
    				pulumi.String("us-west-1"),
    			},
    			Tags: vra.CloudAccountAwsTagArray{
    				&vra.CloudAccountAwsTagArgs{
    					Key:   pulumi.String("foo"),
    					Value: pulumi.String("bar"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Vra = Pulumi.Vra;
    
    return await Deployment.RunAsync(() => 
    {
        var @this = new Vra.CloudAccountAws("this", new()
        {
            Description = "terraform test cloud account aws",
            AccessKey = @var.Access_key,
            SecretKey = @var.Secret_key,
            Regions = new[]
            {
                "us-east-1",
                "us-west-1",
            },
            Tags = new[]
            {
                new Vra.Inputs.CloudAccountAwsTagArgs
                {
                    Key = "foo",
                    Value = "bar",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.vra.CloudAccountAws;
    import com.pulumi.vra.CloudAccountAwsArgs;
    import com.pulumi.vra.inputs.CloudAccountAwsTagArgs;
    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 this_ = new CloudAccountAws("this", CloudAccountAwsArgs.builder()
                .description("terraform test cloud account aws")
                .accessKey(var_.access_key())
                .secretKey(var_.secret_key())
                .regions(            
                    "us-east-1",
                    "us-west-1")
                .tags(CloudAccountAwsTagArgs.builder()
                    .key("foo")
                    .value("bar")
                    .build())
                .build());
    
        }
    }
    
    resources:
      this:
        type: vra:CloudAccountAws
        properties:
          description: terraform test cloud account aws
          accessKey: ${var.access_key}
          secretKey: ${var.secret_key}
          regions: # Regions to be enabled for this cloud account
            - us-east-1
            - us-west-1
          tags:
            - key: foo
              value: bar
    

    Create CloudAccountAws Resource

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

    Constructor syntax

    new CloudAccountAws(name: string, args: CloudAccountAwsArgs, opts?: CustomResourceOptions);
    @overload
    def CloudAccountAws(resource_name: str,
                        args: CloudAccountAwsArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def CloudAccountAws(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        access_key: Optional[str] = None,
                        regions: Optional[Sequence[str]] = None,
                        secret_key: Optional[str] = None,
                        cloud_account_aws_id: Optional[str] = None,
                        description: Optional[str] = None,
                        name: Optional[str] = None,
                        tags: Optional[Sequence[CloudAccountAwsTagArgs]] = None)
    func NewCloudAccountAws(ctx *Context, name string, args CloudAccountAwsArgs, opts ...ResourceOption) (*CloudAccountAws, error)
    public CloudAccountAws(string name, CloudAccountAwsArgs args, CustomResourceOptions? opts = null)
    public CloudAccountAws(String name, CloudAccountAwsArgs args)
    public CloudAccountAws(String name, CloudAccountAwsArgs args, CustomResourceOptions options)
    
    type: vra:CloudAccountAws
    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 CloudAccountAwsArgs
    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 CloudAccountAwsArgs
    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 CloudAccountAwsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CloudAccountAwsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CloudAccountAwsArgs
    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 cloudAccountAwsResource = new Vra.CloudAccountAws("cloudAccountAwsResource", new()
    {
        AccessKey = "string",
        Regions = new[]
        {
            "string",
        },
        SecretKey = "string",
        CloudAccountAwsId = "string",
        Description = "string",
        Name = "string",
        Tags = new[]
        {
            new Vra.Inputs.CloudAccountAwsTagArgs
            {
                Key = "string",
                Value = "string",
            },
        },
    });
    
    example, err := vra.NewCloudAccountAws(ctx, "cloudAccountAwsResource", &vra.CloudAccountAwsArgs{
    	AccessKey: pulumi.String("string"),
    	Regions: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	SecretKey:         pulumi.String("string"),
    	CloudAccountAwsId: pulumi.String("string"),
    	Description:       pulumi.String("string"),
    	Name:              pulumi.String("string"),
    	Tags: vra.CloudAccountAwsTagArray{
    		&vra.CloudAccountAwsTagArgs{
    			Key:   pulumi.String("string"),
    			Value: pulumi.String("string"),
    		},
    	},
    })
    
    var cloudAccountAwsResource = new CloudAccountAws("cloudAccountAwsResource", CloudAccountAwsArgs.builder()
        .accessKey("string")
        .regions("string")
        .secretKey("string")
        .cloudAccountAwsId("string")
        .description("string")
        .name("string")
        .tags(CloudAccountAwsTagArgs.builder()
            .key("string")
            .value("string")
            .build())
        .build());
    
    cloud_account_aws_resource = vra.CloudAccountAws("cloudAccountAwsResource",
        access_key="string",
        regions=["string"],
        secret_key="string",
        cloud_account_aws_id="string",
        description="string",
        name="string",
        tags=[{
            "key": "string",
            "value": "string",
        }])
    
    const cloudAccountAwsResource = new vra.CloudAccountAws("cloudAccountAwsResource", {
        accessKey: "string",
        regions: ["string"],
        secretKey: "string",
        cloudAccountAwsId: "string",
        description: "string",
        name: "string",
        tags: [{
            key: "string",
            value: "string",
        }],
    });
    
    type: vra:CloudAccountAws
    properties:
        accessKey: string
        cloudAccountAwsId: string
        description: string
        name: string
        regions:
            - string
        secretKey: string
        tags:
            - key: string
              value: string
    

    CloudAccountAws 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 CloudAccountAws resource accepts the following input properties:

    AccessKey string
    Access key ID for AWS.
    Regions List<string>
    Set of region names enabled for the cloud account.
    SecretKey string
    AWS Secret Access Key
    CloudAccountAwsId string
    ID of AWS cloud account.
    Description string
    Human-friendly description.
    Name string
    Name of AWS cloud account.
    Tags List<CloudAccountAwsTag>
    Set of tag keys and values to apply to the cloud account. Example: [ { "key" : "vmware", "value": "provider" } ]
    AccessKey string
    Access key ID for AWS.
    Regions []string
    Set of region names enabled for the cloud account.
    SecretKey string
    AWS Secret Access Key
    CloudAccountAwsId string
    ID of AWS cloud account.
    Description string
    Human-friendly description.
    Name string
    Name of AWS cloud account.
    Tags []CloudAccountAwsTagArgs
    Set of tag keys and values to apply to the cloud account. Example: [ { "key" : "vmware", "value": "provider" } ]
    accessKey String
    Access key ID for AWS.
    regions List<String>
    Set of region names enabled for the cloud account.
    secretKey String
    AWS Secret Access Key
    cloudAccountAwsId String
    ID of AWS cloud account.
    description String
    Human-friendly description.
    name String
    Name of AWS cloud account.
    tags List<CloudAccountAwsTag>
    Set of tag keys and values to apply to the cloud account. Example: [ { "key" : "vmware", "value": "provider" } ]
    accessKey string
    Access key ID for AWS.
    regions string[]
    Set of region names enabled for the cloud account.
    secretKey string
    AWS Secret Access Key
    cloudAccountAwsId string
    ID of AWS cloud account.
    description string
    Human-friendly description.
    name string
    Name of AWS cloud account.
    tags CloudAccountAwsTag[]
    Set of tag keys and values to apply to the cloud account. Example: [ { "key" : "vmware", "value": "provider" } ]
    access_key str
    Access key ID for AWS.
    regions Sequence[str]
    Set of region names enabled for the cloud account.
    secret_key str
    AWS Secret Access Key
    cloud_account_aws_id str
    ID of AWS cloud account.
    description str
    Human-friendly description.
    name str
    Name of AWS cloud account.
    tags Sequence[CloudAccountAwsTagArgs]
    Set of tag keys and values to apply to the cloud account. Example: [ { "key" : "vmware", "value": "provider" } ]
    accessKey String
    Access key ID for AWS.
    regions List<String>
    Set of region names enabled for the cloud account.
    secretKey String
    AWS Secret Access Key
    cloudAccountAwsId String
    ID of AWS cloud account.
    description String
    Human-friendly description.
    name String
    Name of AWS cloud account.
    tags List<Property Map>
    Set of tag keys and values to apply to the cloud account. Example: [ { "key" : "vmware", "value": "provider" } ]

    Outputs

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

    CreatedAt string
    Date when entity was created. Date and time format is ISO 8601 and UTC.
    Id string
    The provider-assigned unique ID for this managed resource.
    Links List<CloudAccountAwsLink>
    HATEOAS of entity.
    OrgId string
    ID of organization that entity belongs to.
    Owner string
    Email of entity owner.
    UpdatedAt string
    Date when entity was last updated. Date and time format is ISO 8601 and UTC.
    CreatedAt string
    Date when entity was created. Date and time format is ISO 8601 and UTC.
    Id string
    The provider-assigned unique ID for this managed resource.
    Links []CloudAccountAwsLink
    HATEOAS of entity.
    OrgId string
    ID of organization that entity belongs to.
    Owner string
    Email of entity owner.
    UpdatedAt string
    Date when entity was last updated. Date and time format is ISO 8601 and UTC.
    createdAt String
    Date when entity was created. Date and time format is ISO 8601 and UTC.
    id String
    The provider-assigned unique ID for this managed resource.
    links List<CloudAccountAwsLink>
    HATEOAS of entity.
    orgId String
    ID of organization that entity belongs to.
    owner String
    Email of entity owner.
    updatedAt String
    Date when entity was last updated. Date and time format is ISO 8601 and UTC.
    createdAt string
    Date when entity was created. Date and time format is ISO 8601 and UTC.
    id string
    The provider-assigned unique ID for this managed resource.
    links CloudAccountAwsLink[]
    HATEOAS of entity.
    orgId string
    ID of organization that entity belongs to.
    owner string
    Email of entity owner.
    updatedAt string
    Date when entity was last updated. Date and time format is ISO 8601 and UTC.
    created_at str
    Date when entity was created. Date and time format is ISO 8601 and UTC.
    id str
    The provider-assigned unique ID for this managed resource.
    links Sequence[CloudAccountAwsLink]
    HATEOAS of entity.
    org_id str
    ID of organization that entity belongs to.
    owner str
    Email of entity owner.
    updated_at str
    Date when entity was last updated. Date and time format is ISO 8601 and UTC.
    createdAt String
    Date when entity was created. Date and time format is ISO 8601 and UTC.
    id String
    The provider-assigned unique ID for this managed resource.
    links List<Property Map>
    HATEOAS of entity.
    orgId String
    ID of organization that entity belongs to.
    owner String
    Email of entity owner.
    updatedAt String
    Date when entity was last updated. Date and time format is ISO 8601 and UTC.

    Look up Existing CloudAccountAws Resource

    Get an existing CloudAccountAws 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?: CloudAccountAwsState, opts?: CustomResourceOptions): CloudAccountAws
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            access_key: Optional[str] = None,
            cloud_account_aws_id: Optional[str] = None,
            created_at: Optional[str] = None,
            description: Optional[str] = None,
            links: Optional[Sequence[CloudAccountAwsLinkArgs]] = None,
            name: Optional[str] = None,
            org_id: Optional[str] = None,
            owner: Optional[str] = None,
            regions: Optional[Sequence[str]] = None,
            secret_key: Optional[str] = None,
            tags: Optional[Sequence[CloudAccountAwsTagArgs]] = None,
            updated_at: Optional[str] = None) -> CloudAccountAws
    func GetCloudAccountAws(ctx *Context, name string, id IDInput, state *CloudAccountAwsState, opts ...ResourceOption) (*CloudAccountAws, error)
    public static CloudAccountAws Get(string name, Input<string> id, CloudAccountAwsState? state, CustomResourceOptions? opts = null)
    public static CloudAccountAws get(String name, Output<String> id, CloudAccountAwsState state, CustomResourceOptions options)
    resources:  _:    type: vra:CloudAccountAws    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
    Access key ID for AWS.
    CloudAccountAwsId string
    ID of AWS cloud account.
    CreatedAt string
    Date when entity was created. Date and time format is ISO 8601 and UTC.
    Description string
    Human-friendly description.
    Links List<CloudAccountAwsLink>
    HATEOAS of entity.
    Name string
    Name of AWS cloud account.
    OrgId string
    ID of organization that entity belongs to.
    Owner string
    Email of entity owner.
    Regions List<string>
    Set of region names enabled for the cloud account.
    SecretKey string
    AWS Secret Access Key
    Tags List<CloudAccountAwsTag>
    Set of tag keys and values to apply to the cloud account. Example: [ { "key" : "vmware", "value": "provider" } ]
    UpdatedAt string
    Date when entity was last updated. Date and time format is ISO 8601 and UTC.
    AccessKey string
    Access key ID for AWS.
    CloudAccountAwsId string
    ID of AWS cloud account.
    CreatedAt string
    Date when entity was created. Date and time format is ISO 8601 and UTC.
    Description string
    Human-friendly description.
    Links []CloudAccountAwsLinkArgs
    HATEOAS of entity.
    Name string
    Name of AWS cloud account.
    OrgId string
    ID of organization that entity belongs to.
    Owner string
    Email of entity owner.
    Regions []string
    Set of region names enabled for the cloud account.
    SecretKey string
    AWS Secret Access Key
    Tags []CloudAccountAwsTagArgs
    Set of tag keys and values to apply to the cloud account. Example: [ { "key" : "vmware", "value": "provider" } ]
    UpdatedAt string
    Date when entity was last updated. Date and time format is ISO 8601 and UTC.
    accessKey String
    Access key ID for AWS.
    cloudAccountAwsId String
    ID of AWS cloud account.
    createdAt String
    Date when entity was created. Date and time format is ISO 8601 and UTC.
    description String
    Human-friendly description.
    links List<CloudAccountAwsLink>
    HATEOAS of entity.
    name String
    Name of AWS cloud account.
    orgId String
    ID of organization that entity belongs to.
    owner String
    Email of entity owner.
    regions List<String>
    Set of region names enabled for the cloud account.
    secretKey String
    AWS Secret Access Key
    tags List<CloudAccountAwsTag>
    Set of tag keys and values to apply to the cloud account. Example: [ { "key" : "vmware", "value": "provider" } ]
    updatedAt String
    Date when entity was last updated. Date and time format is ISO 8601 and UTC.
    accessKey string
    Access key ID for AWS.
    cloudAccountAwsId string
    ID of AWS cloud account.
    createdAt string
    Date when entity was created. Date and time format is ISO 8601 and UTC.
    description string
    Human-friendly description.
    links CloudAccountAwsLink[]
    HATEOAS of entity.
    name string
    Name of AWS cloud account.
    orgId string
    ID of organization that entity belongs to.
    owner string
    Email of entity owner.
    regions string[]
    Set of region names enabled for the cloud account.
    secretKey string
    AWS Secret Access Key
    tags CloudAccountAwsTag[]
    Set of tag keys and values to apply to the cloud account. Example: [ { "key" : "vmware", "value": "provider" } ]
    updatedAt string
    Date when entity was last updated. Date and time format is ISO 8601 and UTC.
    access_key str
    Access key ID for AWS.
    cloud_account_aws_id str
    ID of AWS cloud account.
    created_at str
    Date when entity was created. Date and time format is ISO 8601 and UTC.
    description str
    Human-friendly description.
    links Sequence[CloudAccountAwsLinkArgs]
    HATEOAS of entity.
    name str
    Name of AWS cloud account.
    org_id str
    ID of organization that entity belongs to.
    owner str
    Email of entity owner.
    regions Sequence[str]
    Set of region names enabled for the cloud account.
    secret_key str
    AWS Secret Access Key
    tags Sequence[CloudAccountAwsTagArgs]
    Set of tag keys and values to apply to the cloud account. Example: [ { "key" : "vmware", "value": "provider" } ]
    updated_at str
    Date when entity was last updated. Date and time format is ISO 8601 and UTC.
    accessKey String
    Access key ID for AWS.
    cloudAccountAwsId String
    ID of AWS cloud account.
    createdAt String
    Date when entity was created. Date and time format is ISO 8601 and UTC.
    description String
    Human-friendly description.
    links List<Property Map>
    HATEOAS of entity.
    name String
    Name of AWS cloud account.
    orgId String
    ID of organization that entity belongs to.
    owner String
    Email of entity owner.
    regions List<String>
    Set of region names enabled for the cloud account.
    secretKey String
    AWS Secret Access Key
    tags List<Property Map>
    Set of tag keys and values to apply to the cloud account. Example: [ { "key" : "vmware", "value": "provider" } ]
    updatedAt String
    Date when entity was last updated. Date and time format is ISO 8601 and UTC.

    Supporting Types

    Href string
    Hrefs List<string>
    Rel string
    Href string
    Hrefs []string
    Rel string
    href String
    hrefs List<String>
    rel String
    href string
    hrefs string[]
    rel string
    href str
    hrefs Sequence[str]
    rel str
    href String
    hrefs List<String>
    rel String

    CloudAccountAwsTag, CloudAccountAwsTagArgs

    Key string
    Value string
    Key string
    Value string
    key String
    value String
    key string
    value string
    key str
    value str
    key String
    value String

    Import

    To import the AWS cloud account, use the ID as in the following example:

    $ pulumi import vra:index/cloudAccountAws:CloudAccountAws new_aws 05956583-6488-4e7d-84c9-92a7b7219a15`
    

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

    Package Details

    Repository
    vra vmware/terraform-provider-vra
    License
    Notes
    This Pulumi package is based on the vra Terraform Provider.
    vra logo
    vra 0.12.0 published on Monday, Apr 14, 2025 by vmware