vra.CloudAccountAws
Explore with Pulumi AI
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:
- Access
Key string - Access key ID for AWS.
- Regions List<string>
- Set of region names enabled for the cloud account.
- Secret
Key string - AWS Secret Access Key
- Cloud
Account stringAws Id - ID of AWS cloud account.
- Description string
- Human-friendly description.
- Name string
- Name of AWS cloud account.
- List<Cloud
Account Aws Tag> - Set of tag keys and values to apply to the cloud account.
Example:
[ { "key" : "vmware", "value": "provider" } ]
- Access
Key string - Access key ID for AWS.
- Regions []string
- Set of region names enabled for the cloud account.
- Secret
Key string - AWS Secret Access Key
- Cloud
Account stringAws Id - ID of AWS cloud account.
- Description string
- Human-friendly description.
- Name string
- Name of AWS cloud account.
- []Cloud
Account Aws Tag Args - Set of tag keys and values to apply to the cloud account.
Example:
[ { "key" : "vmware", "value": "provider" } ]
- access
Key String - Access key ID for AWS.
- regions List<String>
- Set of region names enabled for the cloud account.
- secret
Key String - AWS Secret Access Key
- cloud
Account StringAws Id - ID of AWS cloud account.
- description String
- Human-friendly description.
- name String
- Name of AWS cloud account.
- List<Cloud
Account Aws Tag> - Set of tag keys and values to apply to the cloud account.
Example:
[ { "key" : "vmware", "value": "provider" } ]
- access
Key string - Access key ID for AWS.
- regions string[]
- Set of region names enabled for the cloud account.
- secret
Key string - AWS Secret Access Key
- cloud
Account stringAws Id - ID of AWS cloud account.
- description string
- Human-friendly description.
- name string
- Name of AWS cloud account.
- Cloud
Account Aws Tag[] - 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_ straws_ id - ID of AWS cloud account.
- description str
- Human-friendly description.
- name str
- Name of AWS cloud account.
- Sequence[Cloud
Account Aws Tag Args] - Set of tag keys and values to apply to the cloud account.
Example:
[ { "key" : "vmware", "value": "provider" } ]
- access
Key String - Access key ID for AWS.
- regions List<String>
- Set of region names enabled for the cloud account.
- secret
Key String - AWS Secret Access Key
- cloud
Account StringAws Id - ID of AWS cloud account.
- description String
- Human-friendly description.
- name String
- Name of AWS cloud account.
- 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:
- Created
At 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<Cloud
Account Aws Link> - HATEOAS of entity.
- Org
Id string - ID of organization that entity belongs to.
- Owner string
- Email of entity owner.
- Updated
At string - Date when entity was last updated. Date and time format is ISO 8601 and UTC.
- Created
At 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
[]Cloud
Account Aws Link - HATEOAS of entity.
- Org
Id string - ID of organization that entity belongs to.
- Owner string
- Email of entity owner.
- Updated
At string - Date when entity was last updated. Date and time format is ISO 8601 and UTC.
- created
At 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<Cloud
Account Aws Link> - HATEOAS of entity.
- org
Id String - ID of organization that entity belongs to.
- owner String
- Email of entity owner.
- updated
At String - Date when entity was last updated. Date and time format is ISO 8601 and UTC.
- created
At 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
Cloud
Account Aws Link[] - HATEOAS of entity.
- org
Id string - ID of organization that entity belongs to.
- owner string
- Email of entity owner.
- updated
At 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[Cloud
Account Aws Link] - 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.
- created
At 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.
- org
Id String - ID of organization that entity belongs to.
- owner String
- Email of entity owner.
- updated
At 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.
- Access
Key string - Access key ID for AWS.
- Cloud
Account stringAws Id - ID of AWS cloud account.
- Created
At string - Date when entity was created. Date and time format is ISO 8601 and UTC.
- Description string
- Human-friendly description.
- Links
List<Cloud
Account Aws Link> - HATEOAS of entity.
- Name string
- Name of AWS cloud account.
- Org
Id 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.
- Secret
Key string - AWS Secret Access Key
- List<Cloud
Account Aws Tag> - Set of tag keys and values to apply to the cloud account.
Example:
[ { "key" : "vmware", "value": "provider" } ]
- Updated
At string - Date when entity was last updated. Date and time format is ISO 8601 and UTC.
- Access
Key string - Access key ID for AWS.
- Cloud
Account stringAws Id - ID of AWS cloud account.
- Created
At string - Date when entity was created. Date and time format is ISO 8601 and UTC.
- Description string
- Human-friendly description.
- Links
[]Cloud
Account Aws Link Args - HATEOAS of entity.
- Name string
- Name of AWS cloud account.
- Org
Id 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.
- Secret
Key string - AWS Secret Access Key
- []Cloud
Account Aws Tag Args - Set of tag keys and values to apply to the cloud account.
Example:
[ { "key" : "vmware", "value": "provider" } ]
- Updated
At string - Date when entity was last updated. Date and time format is ISO 8601 and UTC.
- access
Key String - Access key ID for AWS.
- cloud
Account StringAws Id - ID of AWS cloud account.
- created
At String - Date when entity was created. Date and time format is ISO 8601 and UTC.
- description String
- Human-friendly description.
- links
List<Cloud
Account Aws Link> - HATEOAS of entity.
- name String
- Name of AWS cloud account.
- org
Id 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.
- secret
Key String - AWS Secret Access Key
- List<Cloud
Account Aws Tag> - Set of tag keys and values to apply to the cloud account.
Example:
[ { "key" : "vmware", "value": "provider" } ]
- updated
At String - Date when entity was last updated. Date and time format is ISO 8601 and UTC.
- access
Key string - Access key ID for AWS.
- cloud
Account stringAws Id - ID of AWS cloud account.
- created
At string - Date when entity was created. Date and time format is ISO 8601 and UTC.
- description string
- Human-friendly description.
- links
Cloud
Account Aws Link[] - HATEOAS of entity.
- name string
- Name of AWS cloud account.
- org
Id 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.
- secret
Key string - AWS Secret Access Key
- Cloud
Account Aws Tag[] - Set of tag keys and values to apply to the cloud account.
Example:
[ { "key" : "vmware", "value": "provider" } ]
- updated
At 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_ straws_ id - 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[Cloud
Account Aws Link Args] - 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
- Sequence[Cloud
Account Aws Tag Args] - 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.
- access
Key String - Access key ID for AWS.
- cloud
Account StringAws Id - ID of AWS cloud account.
- created
At 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.
- org
Id 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.
- secret
Key String - AWS Secret Access Key
- List<Property Map>
- Set of tag keys and values to apply to the cloud account.
Example:
[ { "key" : "vmware", "value": "provider" } ]
- updated
At String - Date when entity was last updated. Date and time format is ISO 8601 and UTC.
Supporting Types
CloudAccountAwsLink, CloudAccountAwsLinkArgs
CloudAccountAwsTag, CloudAccountAwsTagArgs
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.