1. Packages
  2. Spectrocloud Provider
  3. API Docs
  4. CloudaccountAws
spectrocloud 0.23.4 published on Monday, Apr 14, 2025 by spectrocloud

spectrocloud.CloudaccountAws

Explore with Pulumi AI

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as spectrocloud from "@pulumi/spectrocloud";

const aws_1 = new spectrocloud.CloudaccountAws("aws-1", {
    awsAccessKey: _var.aws_access_key,
    awsSecretKey: _var.aws_secret_key,
});
Copy
import pulumi
import pulumi_spectrocloud as spectrocloud

aws_1 = spectrocloud.CloudaccountAws("aws-1",
    aws_access_key=var["aws_access_key"],
    aws_secret_key=var["aws_secret_key"])
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/spectrocloud/spectrocloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := spectrocloud.NewCloudaccountAws(ctx, "aws-1", &spectrocloud.CloudaccountAwsArgs{
			AwsAccessKey: pulumi.Any(_var.Aws_access_key),
			AwsSecretKey: pulumi.Any(_var.Aws_secret_key),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Spectrocloud = Pulumi.Spectrocloud;

return await Deployment.RunAsync(() => 
{
    var aws_1 = new Spectrocloud.CloudaccountAws("aws-1", new()
    {
        AwsAccessKey = @var.Aws_access_key,
        AwsSecretKey = @var.Aws_secret_key,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.spectrocloud.CloudaccountAws;
import com.pulumi.spectrocloud.CloudaccountAwsArgs;
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 aws_1 = new CloudaccountAws("aws-1", CloudaccountAwsArgs.builder()
            .awsAccessKey(var_.aws_access_key())
            .awsSecretKey(var_.aws_secret_key())
            .build());

    }
}
Copy
resources:
  aws-1:
    type: spectrocloud:CloudaccountAws
    properties:
      awsAccessKey: ${var.aws_access_key}
      awsSecretKey: ${var.aws_secret_key}
Copy

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: Optional[CloudaccountAwsArgs] = None,
                    opts: Optional[ResourceOptions] = None)

@overload
def CloudaccountAws(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    arn: Optional[str] = None,
                    aws_access_key: Optional[str] = None,
                    aws_secret_key: Optional[str] = None,
                    cloudaccount_aws_id: Optional[str] = None,
                    context: Optional[str] = None,
                    external_id: Optional[str] = None,
                    name: Optional[str] = None,
                    partition: Optional[str] = None,
                    policy_arns: Optional[Sequence[str]] = None,
                    private_cloud_gateway_id: Optional[str] = None,
                    type: Optional[str] = None)
func NewCloudaccountAws(ctx *Context, name string, args *CloudaccountAwsArgs, opts ...ResourceOption) (*CloudaccountAws, error)
public CloudaccountAws(string name, CloudaccountAwsArgs? args = null, CustomResourceOptions? opts = null)
public CloudaccountAws(String name, CloudaccountAwsArgs args)
public CloudaccountAws(String name, CloudaccountAwsArgs args, CustomResourceOptions options)
type: spectrocloud:CloudaccountAws
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. String
The unique name of the resource.
args This property is required. 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 Spectrocloud.CloudaccountAws("cloudaccountAwsResource", new()
{
    Arn = "string",
    AwsAccessKey = "string",
    AwsSecretKey = "string",
    CloudaccountAwsId = "string",
    Context = "string",
    ExternalId = "string",
    Name = "string",
    Partition = "string",
    PolicyArns = new[]
    {
        "string",
    },
    PrivateCloudGatewayId = "string",
    Type = "string",
});
Copy
example, err := spectrocloud.NewCloudaccountAws(ctx, "cloudaccountAwsResource", &spectrocloud.CloudaccountAwsArgs{
Arn: pulumi.String("string"),
AwsAccessKey: pulumi.String("string"),
AwsSecretKey: pulumi.String("string"),
CloudaccountAwsId: pulumi.String("string"),
Context: pulumi.String("string"),
ExternalId: pulumi.String("string"),
Name: pulumi.String("string"),
Partition: pulumi.String("string"),
PolicyArns: pulumi.StringArray{
pulumi.String("string"),
},
PrivateCloudGatewayId: pulumi.String("string"),
Type: pulumi.String("string"),
})
Copy
var cloudaccountAwsResource = new CloudaccountAws("cloudaccountAwsResource", CloudaccountAwsArgs.builder()
    .arn("string")
    .awsAccessKey("string")
    .awsSecretKey("string")
    .cloudaccountAwsId("string")
    .context("string")
    .externalId("string")
    .name("string")
    .partition("string")
    .policyArns("string")
    .privateCloudGatewayId("string")
    .type("string")
    .build());
Copy
cloudaccount_aws_resource = spectrocloud.CloudaccountAws("cloudaccountAwsResource",
    arn="string",
    aws_access_key="string",
    aws_secret_key="string",
    cloudaccount_aws_id="string",
    context="string",
    external_id="string",
    name="string",
    partition="string",
    policy_arns=["string"],
    private_cloud_gateway_id="string",
    type="string")
Copy
const cloudaccountAwsResource = new spectrocloud.CloudaccountAws("cloudaccountAwsResource", {
    arn: "string",
    awsAccessKey: "string",
    awsSecretKey: "string",
    cloudaccountAwsId: "string",
    context: "string",
    externalId: "string",
    name: "string",
    partition: "string",
    policyArns: ["string"],
    privateCloudGatewayId: "string",
    type: "string",
});
Copy
type: spectrocloud:CloudaccountAws
properties:
    arn: string
    awsAccessKey: string
    awsSecretKey: string
    cloudaccountAwsId: string
    context: string
    externalId: string
    name: string
    partition: string
    policyArns:
        - string
    privateCloudGatewayId: string
    type: string
Copy

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:

Arn string
The Amazon Resource Name (ARN) associated with the AWS resource. This is used for identifying resources in AWS.
AwsAccessKey string
The AWS access key used to authenticate.
AwsSecretKey string
The AWS secret key used in conjunction with the access key for authentication.
CloudaccountAwsId string
The ID of this resource.
Context string
The context of the AWS configuration. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
ExternalId string
An optional external ID that can be used for cross-account access in AWS.
Name string
Partition string
The AWS partition in which the cloud account is located. Can be 'aws' for standard AWS regions or 'aws-us-gov' for AWS GovCloud (US) regions. Default is 'aws'.
PolicyArns List<string>
A set of ARNs for the IAM policies that should be associated with the cloud account.
PrivateCloudGatewayId string
ID of the private cloud gateway. This is the ID of the private cloud gateway that is used to connect to the private cluster endpoint.
Type string
The type of AWS credentials to use. Can be secret or sts.
Arn string
The Amazon Resource Name (ARN) associated with the AWS resource. This is used for identifying resources in AWS.
AwsAccessKey string
The AWS access key used to authenticate.
AwsSecretKey string
The AWS secret key used in conjunction with the access key for authentication.
CloudaccountAwsId string
The ID of this resource.
Context string
The context of the AWS configuration. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
ExternalId string
An optional external ID that can be used for cross-account access in AWS.
Name string
Partition string
The AWS partition in which the cloud account is located. Can be 'aws' for standard AWS regions or 'aws-us-gov' for AWS GovCloud (US) regions. Default is 'aws'.
PolicyArns []string
A set of ARNs for the IAM policies that should be associated with the cloud account.
PrivateCloudGatewayId string
ID of the private cloud gateway. This is the ID of the private cloud gateway that is used to connect to the private cluster endpoint.
Type string
The type of AWS credentials to use. Can be secret or sts.
arn String
The Amazon Resource Name (ARN) associated with the AWS resource. This is used for identifying resources in AWS.
awsAccessKey String
The AWS access key used to authenticate.
awsSecretKey String
The AWS secret key used in conjunction with the access key for authentication.
cloudaccountAwsId String
The ID of this resource.
context String
The context of the AWS configuration. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
externalId String
An optional external ID that can be used for cross-account access in AWS.
name String
partition String
The AWS partition in which the cloud account is located. Can be 'aws' for standard AWS regions or 'aws-us-gov' for AWS GovCloud (US) regions. Default is 'aws'.
policyArns List<String>
A set of ARNs for the IAM policies that should be associated with the cloud account.
privateCloudGatewayId String
ID of the private cloud gateway. This is the ID of the private cloud gateway that is used to connect to the private cluster endpoint.
type String
The type of AWS credentials to use. Can be secret or sts.
arn string
The Amazon Resource Name (ARN) associated with the AWS resource. This is used for identifying resources in AWS.
awsAccessKey string
The AWS access key used to authenticate.
awsSecretKey string
The AWS secret key used in conjunction with the access key for authentication.
cloudaccountAwsId string
The ID of this resource.
context string
The context of the AWS configuration. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
externalId string
An optional external ID that can be used for cross-account access in AWS.
name string
partition string
The AWS partition in which the cloud account is located. Can be 'aws' for standard AWS regions or 'aws-us-gov' for AWS GovCloud (US) regions. Default is 'aws'.
policyArns string[]
A set of ARNs for the IAM policies that should be associated with the cloud account.
privateCloudGatewayId string
ID of the private cloud gateway. This is the ID of the private cloud gateway that is used to connect to the private cluster endpoint.
type string
The type of AWS credentials to use. Can be secret or sts.
arn str
The Amazon Resource Name (ARN) associated with the AWS resource. This is used for identifying resources in AWS.
aws_access_key str
The AWS access key used to authenticate.
aws_secret_key str
The AWS secret key used in conjunction with the access key for authentication.
cloudaccount_aws_id str
The ID of this resource.
context str
The context of the AWS configuration. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
external_id str
An optional external ID that can be used for cross-account access in AWS.
name str
partition str
The AWS partition in which the cloud account is located. Can be 'aws' for standard AWS regions or 'aws-us-gov' for AWS GovCloud (US) regions. Default is 'aws'.
policy_arns Sequence[str]
A set of ARNs for the IAM policies that should be associated with the cloud account.
private_cloud_gateway_id str
ID of the private cloud gateway. This is the ID of the private cloud gateway that is used to connect to the private cluster endpoint.
type str
The type of AWS credentials to use. Can be secret or sts.
arn String
The Amazon Resource Name (ARN) associated with the AWS resource. This is used for identifying resources in AWS.
awsAccessKey String
The AWS access key used to authenticate.
awsSecretKey String
The AWS secret key used in conjunction with the access key for authentication.
cloudaccountAwsId String
The ID of this resource.
context String
The context of the AWS configuration. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
externalId String
An optional external ID that can be used for cross-account access in AWS.
name String
partition String
The AWS partition in which the cloud account is located. Can be 'aws' for standard AWS regions or 'aws-us-gov' for AWS GovCloud (US) regions. Default is 'aws'.
policyArns List<String>
A set of ARNs for the IAM policies that should be associated with the cloud account.
privateCloudGatewayId String
ID of the private cloud gateway. This is the ID of the private cloud gateway that is used to connect to the private cluster endpoint.
type String
The type of AWS credentials to use. Can be secret or sts.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

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,
        arn: Optional[str] = None,
        aws_access_key: Optional[str] = None,
        aws_secret_key: Optional[str] = None,
        cloudaccount_aws_id: Optional[str] = None,
        context: Optional[str] = None,
        external_id: Optional[str] = None,
        name: Optional[str] = None,
        partition: Optional[str] = None,
        policy_arns: Optional[Sequence[str]] = None,
        private_cloud_gateway_id: Optional[str] = None,
        type: 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: spectrocloud:CloudaccountAws    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Arn string
The Amazon Resource Name (ARN) associated with the AWS resource. This is used for identifying resources in AWS.
AwsAccessKey string
The AWS access key used to authenticate.
AwsSecretKey string
The AWS secret key used in conjunction with the access key for authentication.
CloudaccountAwsId string
The ID of this resource.
Context string
The context of the AWS configuration. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
ExternalId string
An optional external ID that can be used for cross-account access in AWS.
Name string
Partition string
The AWS partition in which the cloud account is located. Can be 'aws' for standard AWS regions or 'aws-us-gov' for AWS GovCloud (US) regions. Default is 'aws'.
PolicyArns List<string>
A set of ARNs for the IAM policies that should be associated with the cloud account.
PrivateCloudGatewayId string
ID of the private cloud gateway. This is the ID of the private cloud gateway that is used to connect to the private cluster endpoint.
Type string
The type of AWS credentials to use. Can be secret or sts.
Arn string
The Amazon Resource Name (ARN) associated with the AWS resource. This is used for identifying resources in AWS.
AwsAccessKey string
The AWS access key used to authenticate.
AwsSecretKey string
The AWS secret key used in conjunction with the access key for authentication.
CloudaccountAwsId string
The ID of this resource.
Context string
The context of the AWS configuration. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
ExternalId string
An optional external ID that can be used for cross-account access in AWS.
Name string
Partition string
The AWS partition in which the cloud account is located. Can be 'aws' for standard AWS regions or 'aws-us-gov' for AWS GovCloud (US) regions. Default is 'aws'.
PolicyArns []string
A set of ARNs for the IAM policies that should be associated with the cloud account.
PrivateCloudGatewayId string
ID of the private cloud gateway. This is the ID of the private cloud gateway that is used to connect to the private cluster endpoint.
Type string
The type of AWS credentials to use. Can be secret or sts.
arn String
The Amazon Resource Name (ARN) associated with the AWS resource. This is used for identifying resources in AWS.
awsAccessKey String
The AWS access key used to authenticate.
awsSecretKey String
The AWS secret key used in conjunction with the access key for authentication.
cloudaccountAwsId String
The ID of this resource.
context String
The context of the AWS configuration. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
externalId String
An optional external ID that can be used for cross-account access in AWS.
name String
partition String
The AWS partition in which the cloud account is located. Can be 'aws' for standard AWS regions or 'aws-us-gov' for AWS GovCloud (US) regions. Default is 'aws'.
policyArns List<String>
A set of ARNs for the IAM policies that should be associated with the cloud account.
privateCloudGatewayId String
ID of the private cloud gateway. This is the ID of the private cloud gateway that is used to connect to the private cluster endpoint.
type String
The type of AWS credentials to use. Can be secret or sts.
arn string
The Amazon Resource Name (ARN) associated with the AWS resource. This is used for identifying resources in AWS.
awsAccessKey string
The AWS access key used to authenticate.
awsSecretKey string
The AWS secret key used in conjunction with the access key for authentication.
cloudaccountAwsId string
The ID of this resource.
context string
The context of the AWS configuration. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
externalId string
An optional external ID that can be used for cross-account access in AWS.
name string
partition string
The AWS partition in which the cloud account is located. Can be 'aws' for standard AWS regions or 'aws-us-gov' for AWS GovCloud (US) regions. Default is 'aws'.
policyArns string[]
A set of ARNs for the IAM policies that should be associated with the cloud account.
privateCloudGatewayId string
ID of the private cloud gateway. This is the ID of the private cloud gateway that is used to connect to the private cluster endpoint.
type string
The type of AWS credentials to use. Can be secret or sts.
arn str
The Amazon Resource Name (ARN) associated with the AWS resource. This is used for identifying resources in AWS.
aws_access_key str
The AWS access key used to authenticate.
aws_secret_key str
The AWS secret key used in conjunction with the access key for authentication.
cloudaccount_aws_id str
The ID of this resource.
context str
The context of the AWS configuration. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
external_id str
An optional external ID that can be used for cross-account access in AWS.
name str
partition str
The AWS partition in which the cloud account is located. Can be 'aws' for standard AWS regions or 'aws-us-gov' for AWS GovCloud (US) regions. Default is 'aws'.
policy_arns Sequence[str]
A set of ARNs for the IAM policies that should be associated with the cloud account.
private_cloud_gateway_id str
ID of the private cloud gateway. This is the ID of the private cloud gateway that is used to connect to the private cluster endpoint.
type str
The type of AWS credentials to use. Can be secret or sts.
arn String
The Amazon Resource Name (ARN) associated with the AWS resource. This is used for identifying resources in AWS.
awsAccessKey String
The AWS access key used to authenticate.
awsSecretKey String
The AWS secret key used in conjunction with the access key for authentication.
cloudaccountAwsId String
The ID of this resource.
context String
The context of the AWS configuration. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
externalId String
An optional external ID that can be used for cross-account access in AWS.
name String
partition String
The AWS partition in which the cloud account is located. Can be 'aws' for standard AWS regions or 'aws-us-gov' for AWS GovCloud (US) regions. Default is 'aws'.
policyArns List<String>
A set of ARNs for the IAM policies that should be associated with the cloud account.
privateCloudGatewayId String
ID of the private cloud gateway. This is the ID of the private cloud gateway that is used to connect to the private cluster endpoint.
type String
The type of AWS credentials to use. Can be secret or sts.

Package Details

Repository
spectrocloud spectrocloud/terraform-provider-spectrocloud
License
Notes
This Pulumi package is based on the spectrocloud Terraform Provider.