1. Packages
  2. Control Plane (cpln)
  3. API Docs
  4. getCloudAccount
Control Plane v0.0.39 published on Saturday, Sep 28, 2024 by pulumiverse

cpln.getCloudAccount

Explore with Pulumi AI

cpln logo
Control Plane v0.0.39 published on Saturday, Sep 28, 2024 by pulumiverse

    Use this data source to access information about an existing Cloud Account within Control Plane.

    Outputs

    • aws_identifiers (String)

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Cpln = Pulumi.Cpln;
    
    return await Deployment.RunAsync(() => 
    {
        var @this = Cpln.GetCloudAccount.Invoke();
    
        return new Dictionary<string, object?>
        {
            ["cloudAccount"] = @this.Apply(@this => @this.Apply(getCloudAccountResult => getCloudAccountResult.AwsIdentifiers)),
        };
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-cpln/sdk/go/cpln"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		this, err := cpln.LookupCloudAccount(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("cloudAccount", this.AwsIdentifiers)
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cpln.CplnFunctions;
    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) {
            final var this = CplnFunctions.getCloudAccount();
    
            ctx.export("cloudAccount", this_.awsIdentifiers());
        }
    }
    
    import pulumi
    import pulumi_cpln as cpln
    
    this = cpln.get_cloud_account()
    pulumi.export("cloudAccount", this.aws_identifiers)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as cpln from "@pulumi/cpln";
    
    const this = cpln.getCloudAccount({});
    export const cloudAccount = _this.then(_this => _this.awsIdentifiers);
    
    variables:
      this:
        fn::invoke:
          Function: cpln:getCloudAccount
          Arguments: {}
    outputs:
      cloudAccount: ${this.awsIdentifiers}
    

    Using getCloudAccount

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getCloudAccount(opts?: InvokeOptions): Promise<GetCloudAccountResult>
    function getCloudAccountOutput(opts?: InvokeOptions): Output<GetCloudAccountResult>
    def get_cloud_account(opts: Optional[InvokeOptions] = None) -> GetCloudAccountResult
    def get_cloud_account_output(opts: Optional[InvokeOptions] = None) -> Output[GetCloudAccountResult]
    func LookupCloudAccount(ctx *Context, opts ...InvokeOption) (*LookupCloudAccountResult, error)
    func LookupCloudAccountOutput(ctx *Context, opts ...InvokeOption) LookupCloudAccountResultOutput

    > Note: This function is named LookupCloudAccount in the Go SDK.

    public static class GetCloudAccount 
    {
        public static Task<GetCloudAccountResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetCloudAccountResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCloudAccountResult> getCloudAccount(InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: cpln:index/getCloudAccount:getCloudAccount
      arguments:
        # arguments dictionary

    getCloudAccount Result

    The following output properties are available:

    AwsIdentifiers List<string>
    Id string
    The provider-assigned unique ID for this managed resource.
    AwsIdentifiers []string
    Id string
    The provider-assigned unique ID for this managed resource.
    awsIdentifiers List<String>
    id String
    The provider-assigned unique ID for this managed resource.
    awsIdentifiers string[]
    id string
    The provider-assigned unique ID for this managed resource.
    aws_identifiers Sequence[str]
    id str
    The provider-assigned unique ID for this managed resource.
    awsIdentifiers List<String>
    id String
    The provider-assigned unique ID for this managed resource.

    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.39 published on Saturday, Sep 28, 2024 by pulumiverse