Control Plane v0.0.39 published on Saturday, Sep 28, 2024 by pulumiverse
cpln.CloudAccount
Explore with Pulumi AI
Create CloudAccount Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CloudAccount(name: string, args?: CloudAccountArgs, opts?: CustomResourceOptions);
@overload
def CloudAccount(resource_name: str,
args: Optional[CloudAccountArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def CloudAccount(resource_name: str,
opts: Optional[ResourceOptions] = None,
aws: Optional[CloudAccountAwsArgs] = None,
azure: Optional[CloudAccountAzureArgs] = None,
description: Optional[str] = None,
gcp: Optional[CloudAccountGcpArgs] = None,
name: Optional[str] = None,
ngs: Optional[CloudAccountNgsArgs] = None,
tags: Optional[Mapping[str, str]] = None)
func NewCloudAccount(ctx *Context, name string, args *CloudAccountArgs, opts ...ResourceOption) (*CloudAccount, error)
public CloudAccount(string name, CloudAccountArgs? args = null, CustomResourceOptions? opts = null)
public CloudAccount(String name, CloudAccountArgs args)
public CloudAccount(String name, CloudAccountArgs args, CustomResourceOptions options)
type: cpln:CloudAccount
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 CloudAccountArgs
- 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 CloudAccountArgs
- 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 CloudAccountArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CloudAccountArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CloudAccountArgs
- 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 cloudAccountResource = new Cpln.CloudAccount("cloudAccountResource", new()
{
Aws = new Cpln.Inputs.CloudAccountAwsArgs
{
RoleArn = "string",
},
Azure = new Cpln.Inputs.CloudAccountAzureArgs
{
SecretLink = "string",
},
Description = "string",
Gcp = new Cpln.Inputs.CloudAccountGcpArgs
{
ProjectId = "string",
},
Name = "string",
Ngs = new Cpln.Inputs.CloudAccountNgsArgs
{
SecretLink = "string",
},
Tags =
{
{ "string", "string" },
},
});
example, err := cpln.NewCloudAccount(ctx, "cloudAccountResource", &cpln.CloudAccountArgs{
Aws: &cpln.CloudAccountAwsArgs{
RoleArn: pulumi.String("string"),
},
Azure: &cpln.CloudAccountAzureArgs{
SecretLink: pulumi.String("string"),
},
Description: pulumi.String("string"),
Gcp: &cpln.CloudAccountGcpArgs{
ProjectId: pulumi.String("string"),
},
Name: pulumi.String("string"),
Ngs: &cpln.CloudAccountNgsArgs{
SecretLink: pulumi.String("string"),
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var cloudAccountResource = new CloudAccount("cloudAccountResource", CloudAccountArgs.builder()
.aws(CloudAccountAwsArgs.builder()
.roleArn("string")
.build())
.azure(CloudAccountAzureArgs.builder()
.secretLink("string")
.build())
.description("string")
.gcp(CloudAccountGcpArgs.builder()
.projectId("string")
.build())
.name("string")
.ngs(CloudAccountNgsArgs.builder()
.secretLink("string")
.build())
.tags(Map.of("string", "string"))
.build());
cloud_account_resource = cpln.CloudAccount("cloudAccountResource",
aws=cpln.CloudAccountAwsArgs(
role_arn="string",
),
azure=cpln.CloudAccountAzureArgs(
secret_link="string",
),
description="string",
gcp=cpln.CloudAccountGcpArgs(
project_id="string",
),
name="string",
ngs=cpln.CloudAccountNgsArgs(
secret_link="string",
),
tags={
"string": "string",
})
const cloudAccountResource = new cpln.CloudAccount("cloudAccountResource", {
aws: {
roleArn: "string",
},
azure: {
secretLink: "string",
},
description: "string",
gcp: {
projectId: "string",
},
name: "string",
ngs: {
secretLink: "string",
},
tags: {
string: "string",
},
});
type: cpln:CloudAccount
properties:
aws:
roleArn: string
azure:
secretLink: string
description: string
gcp:
projectId: string
name: string
ngs:
secretLink: string
tags:
string: string
CloudAccount Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The CloudAccount resource accepts the following input properties:
- Aws
Pulumiverse.
Cpln. Inputs. Cloud Account Aws - Contains AWS cloud account configuration.
- Azure
Pulumiverse.
Cpln. Inputs. Cloud Account Azure - Contains Azure cloud account configuration.
- Description string
- Description of the Cloud Account.
- Gcp
Pulumiverse.
Cpln. Inputs. Cloud Account Gcp - Contains GCP cloud account configuration.
- Name string
- Name of the Cloud Account.
- Ngs
Pulumiverse.
Cpln. Inputs. Cloud Account Ngs - Dictionary<string, string>
- Key-value map of resource tags.
- Aws
Cloud
Account Aws Args - Contains AWS cloud account configuration.
- Azure
Cloud
Account Azure Args - Contains Azure cloud account configuration.
- Description string
- Description of the Cloud Account.
- Gcp
Cloud
Account Gcp Args - Contains GCP cloud account configuration.
- Name string
- Name of the Cloud Account.
- Ngs
Cloud
Account Ngs Args - map[string]string
- Key-value map of resource tags.
- aws
Cloud
Account Aws - Contains AWS cloud account configuration.
- azure
Cloud
Account Azure - Contains Azure cloud account configuration.
- description String
- Description of the Cloud Account.
- gcp
Cloud
Account Gcp - Contains GCP cloud account configuration.
- name String
- Name of the Cloud Account.
- ngs
Cloud
Account Ngs - Map<String,String>
- Key-value map of resource tags.
- aws
Cloud
Account Aws - Contains AWS cloud account configuration.
- azure
Cloud
Account Azure - Contains Azure cloud account configuration.
- description string
- Description of the Cloud Account.
- gcp
Cloud
Account Gcp - Contains GCP cloud account configuration.
- name string
- Name of the Cloud Account.
- ngs
Cloud
Account Ngs - {[key: string]: string}
- Key-value map of resource tags.
- aws
Cloud
Account Aws Args - Contains AWS cloud account configuration.
- azure
Cloud
Account Azure Args - Contains Azure cloud account configuration.
- description str
- Description of the Cloud Account.
- gcp
Cloud
Account Gcp Args - Contains GCP cloud account configuration.
- name str
- Name of the Cloud Account.
- ngs
Cloud
Account Ngs Args - Mapping[str, str]
- Key-value map of resource tags.
- aws Property Map
- Contains AWS cloud account configuration.
- azure Property Map
- Contains Azure cloud account configuration.
- description String
- Description of the Cloud Account.
- gcp Property Map
- Contains GCP cloud account configuration.
- name String
- Name of the Cloud Account.
- ngs Property Map
- Map<String>
- Key-value map of resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the CloudAccount resource produces the following output properties:
- Cpln
Id string - The ID, in GUID format, of the Cloud Account.
- Gcp
Roles List<string> - Gcp
Service stringAccount Name - GCP service account name used during the configuration of the cloud account at GCP.
- Id string
- The provider-assigned unique ID for this managed resource.
- Self
Link string
- Cpln
Id string - The ID, in GUID format, of the Cloud Account.
- Gcp
Roles []string - Gcp
Service stringAccount Name - GCP service account name used during the configuration of the cloud account at GCP.
- Id string
- The provider-assigned unique ID for this managed resource.
- Self
Link string
- cpln
Id String - The ID, in GUID format, of the Cloud Account.
- gcp
Roles List<String> - gcp
Service StringAccount Name - GCP service account name used during the configuration of the cloud account at GCP.
- id String
- The provider-assigned unique ID for this managed resource.
- self
Link String
- cpln
Id string - The ID, in GUID format, of the Cloud Account.
- gcp
Roles string[] - gcp
Service stringAccount Name - GCP service account name used during the configuration of the cloud account at GCP.
- id string
- The provider-assigned unique ID for this managed resource.
- self
Link string
- cpln_
id str - The ID, in GUID format, of the Cloud Account.
- gcp_
roles Sequence[str] - gcp_
service_ straccount_ name - GCP service account name used during the configuration of the cloud account at GCP.
- id str
- The provider-assigned unique ID for this managed resource.
- self_
link str
- cpln
Id String - The ID, in GUID format, of the Cloud Account.
- gcp
Roles List<String> - gcp
Service StringAccount Name - GCP service account name used during the configuration of the cloud account at GCP.
- id String
- The provider-assigned unique ID for this managed resource.
- self
Link String
Look up Existing CloudAccount Resource
Get an existing CloudAccount 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?: CloudAccountState, opts?: CustomResourceOptions): CloudAccount
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
aws: Optional[CloudAccountAwsArgs] = None,
azure: Optional[CloudAccountAzureArgs] = None,
cpln_id: Optional[str] = None,
description: Optional[str] = None,
gcp: Optional[CloudAccountGcpArgs] = None,
gcp_roles: Optional[Sequence[str]] = None,
gcp_service_account_name: Optional[str] = None,
name: Optional[str] = None,
ngs: Optional[CloudAccountNgsArgs] = None,
self_link: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None) -> CloudAccount
func GetCloudAccount(ctx *Context, name string, id IDInput, state *CloudAccountState, opts ...ResourceOption) (*CloudAccount, error)
public static CloudAccount Get(string name, Input<string> id, CloudAccountState? state, CustomResourceOptions? opts = null)
public static CloudAccount get(String name, Output<String> id, CloudAccountState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Aws
Pulumiverse.
Cpln. Inputs. Cloud Account Aws - Contains AWS cloud account configuration.
- Azure
Pulumiverse.
Cpln. Inputs. Cloud Account Azure - Contains Azure cloud account configuration.
- Cpln
Id string - The ID, in GUID format, of the Cloud Account.
- Description string
- Description of the Cloud Account.
- Gcp
Pulumiverse.
Cpln. Inputs. Cloud Account Gcp - Contains GCP cloud account configuration.
- Gcp
Roles List<string> - Gcp
Service stringAccount Name - GCP service account name used during the configuration of the cloud account at GCP.
- Name string
- Name of the Cloud Account.
- Ngs
Pulumiverse.
Cpln. Inputs. Cloud Account Ngs - Self
Link string - Dictionary<string, string>
- Key-value map of resource tags.
- Aws
Cloud
Account Aws Args - Contains AWS cloud account configuration.
- Azure
Cloud
Account Azure Args - Contains Azure cloud account configuration.
- Cpln
Id string - The ID, in GUID format, of the Cloud Account.
- Description string
- Description of the Cloud Account.
- Gcp
Cloud
Account Gcp Args - Contains GCP cloud account configuration.
- Gcp
Roles []string - Gcp
Service stringAccount Name - GCP service account name used during the configuration of the cloud account at GCP.
- Name string
- Name of the Cloud Account.
- Ngs
Cloud
Account Ngs Args - Self
Link string - map[string]string
- Key-value map of resource tags.
- aws
Cloud
Account Aws - Contains AWS cloud account configuration.
- azure
Cloud
Account Azure - Contains Azure cloud account configuration.
- cpln
Id String - The ID, in GUID format, of the Cloud Account.
- description String
- Description of the Cloud Account.
- gcp
Cloud
Account Gcp - Contains GCP cloud account configuration.
- gcp
Roles List<String> - gcp
Service StringAccount Name - GCP service account name used during the configuration of the cloud account at GCP.
- name String
- Name of the Cloud Account.
- ngs
Cloud
Account Ngs - self
Link String - Map<String,String>
- Key-value map of resource tags.
- aws
Cloud
Account Aws - Contains AWS cloud account configuration.
- azure
Cloud
Account Azure - Contains Azure cloud account configuration.
- cpln
Id string - The ID, in GUID format, of the Cloud Account.
- description string
- Description of the Cloud Account.
- gcp
Cloud
Account Gcp - Contains GCP cloud account configuration.
- gcp
Roles string[] - gcp
Service stringAccount Name - GCP service account name used during the configuration of the cloud account at GCP.
- name string
- Name of the Cloud Account.
- ngs
Cloud
Account Ngs - self
Link string - {[key: string]: string}
- Key-value map of resource tags.
- aws
Cloud
Account Aws Args - Contains AWS cloud account configuration.
- azure
Cloud
Account Azure Args - Contains Azure cloud account configuration.
- cpln_
id str - The ID, in GUID format, of the Cloud Account.
- description str
- Description of the Cloud Account.
- gcp
Cloud
Account Gcp Args - Contains GCP cloud account configuration.
- gcp_
roles Sequence[str] - gcp_
service_ straccount_ name - GCP service account name used during the configuration of the cloud account at GCP.
- name str
- Name of the Cloud Account.
- ngs
Cloud
Account Ngs Args - self_
link str - Mapping[str, str]
- Key-value map of resource tags.
- aws Property Map
- Contains AWS cloud account configuration.
- azure Property Map
- Contains Azure cloud account configuration.
- cpln
Id String - The ID, in GUID format, of the Cloud Account.
- description String
- Description of the Cloud Account.
- gcp Property Map
- Contains GCP cloud account configuration.
- gcp
Roles List<String> - gcp
Service StringAccount Name - GCP service account name used during the configuration of the cloud account at GCP.
- name String
- Name of the Cloud Account.
- ngs Property Map
- self
Link String - Map<String>
- Key-value map of resource tags.
Supporting Types
CloudAccountAws, CloudAccountAwsArgs
- Role
Arn string
- Role
Arn string
- role
Arn String
- role
Arn string
- role_
arn str
- role
Arn String
CloudAccountAzure, CloudAccountAzureArgs
- Secret
Link string
- Secret
Link string
- secret
Link String
- secret
Link string
- secret_
link str
- secret
Link String
CloudAccountGcp, CloudAccountGcpArgs
- Project
Id string
- Project
Id string
- project
Id String
- project
Id string
- project_
id str
- project
Id String
CloudAccountNgs, CloudAccountNgsArgs
- Secret
Link string
- Secret
Link string
- secret
Link String
- secret
Link string
- secret_
link str
- secret
Link String
Package Details
- Repository
- cpln pulumiverse/pulumi-cpln
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cpln
Terraform Provider.