1. Packages
  2. Control Plane (cpln)
  3. API Docs
  4. CloudAccount
Control Plane v0.0.19 published on Thursday, Apr 18, 2024 by pulumiverse

cpln.CloudAccount

Explore with Pulumi AI

cpln logo
Control Plane v0.0.19 published on Thursday, Apr 18, 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:

    Outputs

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

    CplnId string
    GcpRoles List<string>
    GcpServiceAccountName string
    Id string
    The provider-assigned unique ID for this managed resource.
    SelfLink string
    CplnId string
    GcpRoles []string
    GcpServiceAccountName string
    Id string
    The provider-assigned unique ID for this managed resource.
    SelfLink string
    cplnId String
    gcpRoles List<String>
    gcpServiceAccountName String
    id String
    The provider-assigned unique ID for this managed resource.
    selfLink String
    cplnId string
    gcpRoles string[]
    gcpServiceAccountName string
    id string
    The provider-assigned unique ID for this managed resource.
    selfLink string
    cpln_id str
    gcp_roles Sequence[str]
    gcp_service_account_name str
    id str
    The provider-assigned unique ID for this managed resource.
    self_link str
    cplnId String
    gcpRoles List<String>
    gcpServiceAccountName String
    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:

    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.19 published on Thursday, Apr 18, 2024 by pulumiverse