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,
});
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"])
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
})
}
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,
});
});
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());
}
}
resources:
aws-1:
type: spectrocloud:CloudaccountAws
properties:
awsAccessKey: ${var.aws_access_key}
awsSecretKey: ${var.aws_secret_key}
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 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 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",
});
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"),
})
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());
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")
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",
});
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
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.
- Aws
Access stringKey - The AWS access key used to authenticate.
- Aws
Secret stringKey - The AWS secret key used in conjunction with the access key for authentication.
- Cloudaccount
Aws stringId - The ID of this resource.
- Context string
- The context of the AWS configuration. Allowed values are
project
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - External
Id 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'.
- Policy
Arns List<string> - A set of ARNs for the IAM policies that should be associated with the cloud account.
- Private
Cloud stringGateway Id - 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
orsts
.
- Arn string
- The Amazon Resource Name (ARN) associated with the AWS resource. This is used for identifying resources in AWS.
- Aws
Access stringKey - The AWS access key used to authenticate.
- Aws
Secret stringKey - The AWS secret key used in conjunction with the access key for authentication.
- Cloudaccount
Aws stringId - The ID of this resource.
- Context string
- The context of the AWS configuration. Allowed values are
project
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - External
Id 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'.
- Policy
Arns []string - A set of ARNs for the IAM policies that should be associated with the cloud account.
- Private
Cloud stringGateway Id - 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
orsts
.
- arn String
- The Amazon Resource Name (ARN) associated with the AWS resource. This is used for identifying resources in AWS.
- aws
Access StringKey - The AWS access key used to authenticate.
- aws
Secret StringKey - The AWS secret key used in conjunction with the access key for authentication.
- cloudaccount
Aws StringId - The ID of this resource.
- context String
- The context of the AWS configuration. Allowed values are
project
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - external
Id 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'.
- policy
Arns List<String> - A set of ARNs for the IAM policies that should be associated with the cloud account.
- private
Cloud StringGateway Id - 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
orsts
.
- arn string
- The Amazon Resource Name (ARN) associated with the AWS resource. This is used for identifying resources in AWS.
- aws
Access stringKey - The AWS access key used to authenticate.
- aws
Secret stringKey - The AWS secret key used in conjunction with the access key for authentication.
- cloudaccount
Aws stringId - The ID of this resource.
- context string
- The context of the AWS configuration. Allowed values are
project
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - external
Id 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'.
- policy
Arns string[] - A set of ARNs for the IAM policies that should be associated with the cloud account.
- private
Cloud stringGateway Id - 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
orsts
.
- arn str
- The Amazon Resource Name (ARN) associated with the AWS resource. This is used for identifying resources in AWS.
- aws_
access_ strkey - The AWS access key used to authenticate.
- aws_
secret_ strkey - The AWS secret key used in conjunction with the access key for authentication.
- cloudaccount_
aws_ strid - The ID of this resource.
- context str
- The context of the AWS configuration. Allowed values are
project
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_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_ strgateway_ id - 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
orsts
.
- arn String
- The Amazon Resource Name (ARN) associated with the AWS resource. This is used for identifying resources in AWS.
- aws
Access StringKey - The AWS access key used to authenticate.
- aws
Secret StringKey - The AWS secret key used in conjunction with the access key for authentication.
- cloudaccount
Aws StringId - The ID of this resource.
- context String
- The context of the AWS configuration. Allowed values are
project
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - external
Id 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'.
- policy
Arns List<String> - A set of ARNs for the IAM policies that should be associated with the cloud account.
- private
Cloud StringGateway Id - 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
orsts
.
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
- 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.
- Arn string
- The Amazon Resource Name (ARN) associated with the AWS resource. This is used for identifying resources in AWS.
- Aws
Access stringKey - The AWS access key used to authenticate.
- Aws
Secret stringKey - The AWS secret key used in conjunction with the access key for authentication.
- Cloudaccount
Aws stringId - The ID of this resource.
- Context string
- The context of the AWS configuration. Allowed values are
project
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - External
Id 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'.
- Policy
Arns List<string> - A set of ARNs for the IAM policies that should be associated with the cloud account.
- Private
Cloud stringGateway Id - 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
orsts
.
- Arn string
- The Amazon Resource Name (ARN) associated with the AWS resource. This is used for identifying resources in AWS.
- Aws
Access stringKey - The AWS access key used to authenticate.
- Aws
Secret stringKey - The AWS secret key used in conjunction with the access key for authentication.
- Cloudaccount
Aws stringId - The ID of this resource.
- Context string
- The context of the AWS configuration. Allowed values are
project
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - External
Id 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'.
- Policy
Arns []string - A set of ARNs for the IAM policies that should be associated with the cloud account.
- Private
Cloud stringGateway Id - 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
orsts
.
- arn String
- The Amazon Resource Name (ARN) associated with the AWS resource. This is used for identifying resources in AWS.
- aws
Access StringKey - The AWS access key used to authenticate.
- aws
Secret StringKey - The AWS secret key used in conjunction with the access key for authentication.
- cloudaccount
Aws StringId - The ID of this resource.
- context String
- The context of the AWS configuration. Allowed values are
project
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - external
Id 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'.
- policy
Arns List<String> - A set of ARNs for the IAM policies that should be associated with the cloud account.
- private
Cloud StringGateway Id - 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
orsts
.
- arn string
- The Amazon Resource Name (ARN) associated with the AWS resource. This is used for identifying resources in AWS.
- aws
Access stringKey - The AWS access key used to authenticate.
- aws
Secret stringKey - The AWS secret key used in conjunction with the access key for authentication.
- cloudaccount
Aws stringId - The ID of this resource.
- context string
- The context of the AWS configuration. Allowed values are
project
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - external
Id 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'.
- policy
Arns string[] - A set of ARNs for the IAM policies that should be associated with the cloud account.
- private
Cloud stringGateway Id - 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
orsts
.
- arn str
- The Amazon Resource Name (ARN) associated with the AWS resource. This is used for identifying resources in AWS.
- aws_
access_ strkey - The AWS access key used to authenticate.
- aws_
secret_ strkey - The AWS secret key used in conjunction with the access key for authentication.
- cloudaccount_
aws_ strid - The ID of this resource.
- context str
- The context of the AWS configuration. Allowed values are
project
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_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_ strgateway_ id - 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
orsts
.
- arn String
- The Amazon Resource Name (ARN) associated with the AWS resource. This is used for identifying resources in AWS.
- aws
Access StringKey - The AWS access key used to authenticate.
- aws
Secret StringKey - The AWS secret key used in conjunction with the access key for authentication.
- cloudaccount
Aws StringId - The ID of this resource.
- context String
- The context of the AWS configuration. Allowed values are
project
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - external
Id 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'.
- policy
Arns List<String> - A set of ARNs for the IAM policies that should be associated with the cloud account.
- private
Cloud StringGateway Id - 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
orsts
.
Package Details
- Repository
- spectrocloud spectrocloud/terraform-provider-spectrocloud
- License
- Notes
- This Pulumi package is based on the
spectrocloud
Terraform Provider.