1. Packages
  2. Control Plane (cpln)
  3. API Docs
  4. CloudAccount
Control Plane v0.0.27 published on Saturday, May 25, 2024 by pulumiverse

cpln.CloudAccount

Explore with Pulumi AI

cpln logo
Control Plane v0.0.27 published on Saturday, May 25, 2024 by pulumiverse

    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.

    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.CloudAccountAws
    Contains AWS cloud account configuration.
    Azure Pulumiverse.Cpln.Inputs.CloudAccountAzure
    Contains Azure cloud account configuration.
    Description string
    Description of the Cloud Account.
    Gcp Pulumiverse.Cpln.Inputs.CloudAccountGcp
    Contains GCP cloud account configuration.
    Name string
    Name of the Cloud Account.
    Ngs Pulumiverse.Cpln.Inputs.CloudAccountNgs
    Tags Dictionary<string, string>
    Key-value map of resource tags.
    Aws CloudAccountAwsArgs
    Contains AWS cloud account configuration.
    Azure CloudAccountAzureArgs
    Contains Azure cloud account configuration.
    Description string
    Description of the Cloud Account.
    Gcp CloudAccountGcpArgs
    Contains GCP cloud account configuration.
    Name string
    Name of the Cloud Account.
    Ngs CloudAccountNgsArgs
    Tags map[string]string
    Key-value map of resource tags.
    aws CloudAccountAws
    Contains AWS cloud account configuration.
    azure CloudAccountAzure
    Contains Azure cloud account configuration.
    description String
    Description of the Cloud Account.
    gcp CloudAccountGcp
    Contains GCP cloud account configuration.
    name String
    Name of the Cloud Account.
    ngs CloudAccountNgs
    tags Map<String,String>
    Key-value map of resource tags.
    aws CloudAccountAws
    Contains AWS cloud account configuration.
    azure CloudAccountAzure
    Contains Azure cloud account configuration.
    description string
    Description of the Cloud Account.
    gcp CloudAccountGcp
    Contains GCP cloud account configuration.
    name string
    Name of the Cloud Account.
    ngs CloudAccountNgs
    tags {[key: string]: string}
    Key-value map of resource tags.
    aws CloudAccountAwsArgs
    Contains AWS cloud account configuration.
    azure CloudAccountAzureArgs
    Contains Azure cloud account configuration.
    description str
    Description of the Cloud Account.
    gcp CloudAccountGcpArgs
    Contains GCP cloud account configuration.
    name str
    Name of the Cloud Account.
    ngs CloudAccountNgsArgs
    tags 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
    tags 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:

    CplnId string
    The ID, in GUID format, of the Cloud Account.
    GcpRoles List<string>
    GcpServiceAccountName string
    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.
    SelfLink string
    CplnId string
    The ID, in GUID format, of the Cloud Account.
    GcpRoles []string
    GcpServiceAccountName string
    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.
    SelfLink string
    cplnId String
    The ID, in GUID format, of the Cloud Account.
    gcpRoles List<String>
    gcpServiceAccountName String
    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.
    selfLink String
    cplnId string
    The ID, in GUID format, of the Cloud Account.
    gcpRoles string[]
    gcpServiceAccountName string
    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.
    selfLink string
    cpln_id str
    The ID, in GUID format, of the Cloud Account.
    gcp_roles Sequence[str]
    gcp_service_account_name str
    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
    cplnId String
    The ID, in GUID format, of the Cloud Account.
    gcpRoles List<String>
    gcpServiceAccountName String
    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.
    selfLink 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.
    The following state arguments are supported:
    Aws Pulumiverse.Cpln.Inputs.CloudAccountAws
    Contains AWS cloud account configuration.
    Azure Pulumiverse.Cpln.Inputs.CloudAccountAzure
    Contains Azure cloud account configuration.
    CplnId string
    The ID, in GUID format, of the Cloud Account.
    Description string
    Description of the Cloud Account.
    Gcp Pulumiverse.Cpln.Inputs.CloudAccountGcp
    Contains GCP cloud account configuration.
    GcpRoles List<string>
    GcpServiceAccountName string
    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.CloudAccountNgs
    SelfLink string
    Tags Dictionary<string, string>
    Key-value map of resource tags.
    Aws CloudAccountAwsArgs
    Contains AWS cloud account configuration.
    Azure CloudAccountAzureArgs
    Contains Azure cloud account configuration.
    CplnId string
    The ID, in GUID format, of the Cloud Account.
    Description string
    Description of the Cloud Account.
    Gcp CloudAccountGcpArgs
    Contains GCP cloud account configuration.
    GcpRoles []string
    GcpServiceAccountName string
    GCP service account name used during the configuration of the cloud account at GCP.
    Name string
    Name of the Cloud Account.
    Ngs CloudAccountNgsArgs
    SelfLink string
    Tags map[string]string
    Key-value map of resource tags.
    aws CloudAccountAws
    Contains AWS cloud account configuration.
    azure CloudAccountAzure
    Contains Azure cloud account configuration.
    cplnId String
    The ID, in GUID format, of the Cloud Account.
    description String
    Description of the Cloud Account.
    gcp CloudAccountGcp
    Contains GCP cloud account configuration.
    gcpRoles List<String>
    gcpServiceAccountName String
    GCP service account name used during the configuration of the cloud account at GCP.
    name String
    Name of the Cloud Account.
    ngs CloudAccountNgs
    selfLink String
    tags Map<String,String>
    Key-value map of resource tags.
    aws CloudAccountAws
    Contains AWS cloud account configuration.
    azure CloudAccountAzure
    Contains Azure cloud account configuration.
    cplnId string
    The ID, in GUID format, of the Cloud Account.
    description string
    Description of the Cloud Account.
    gcp CloudAccountGcp
    Contains GCP cloud account configuration.
    gcpRoles string[]
    gcpServiceAccountName string
    GCP service account name used during the configuration of the cloud account at GCP.
    name string
    Name of the Cloud Account.
    ngs CloudAccountNgs
    selfLink string
    tags {[key: string]: string}
    Key-value map of resource tags.
    aws CloudAccountAwsArgs
    Contains AWS cloud account configuration.
    azure CloudAccountAzureArgs
    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 CloudAccountGcpArgs
    Contains GCP cloud account configuration.
    gcp_roles Sequence[str]
    gcp_service_account_name str
    GCP service account name used during the configuration of the cloud account at GCP.
    name str
    Name of the Cloud Account.
    ngs CloudAccountNgsArgs
    self_link str
    tags 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.
    cplnId 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.
    gcpRoles List<String>
    gcpServiceAccountName String
    GCP service account name used during the configuration of the cloud account at GCP.
    name String
    Name of the Cloud Account.
    ngs Property Map
    selfLink String
    tags Map<String>
    Key-value map of resource tags.

    Supporting Types

    CloudAccountAws, CloudAccountAwsArgs

    RoleArn string
    RoleArn string
    roleArn String
    roleArn string
    roleArn String

    CloudAccountAzure, CloudAccountAzureArgs

    SecretLink string
    SecretLink string
    secretLink String
    secretLink string
    secretLink String

    CloudAccountGcp, CloudAccountGcpArgs

    ProjectId string
    ProjectId string
    projectId String
    projectId string
    projectId String

    CloudAccountNgs, CloudAccountNgsArgs

    SecretLink string
    SecretLink string
    secretLink String
    secretLink string
    secretLink String

    Package Details

    Repository
    cpln pulumiverse/pulumi-cpln
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cpln Terraform Provider.
    cpln logo
    Control Plane v0.0.27 published on Saturday, May 25, 2024 by pulumiverse