1. Packages
  2. Control Plane (cpln)
  3. API Docs
  4. getCloudAccount
Control Plane v0.0.56 published on Wednesday, Apr 9, 2025 by pulumiverse

cpln.getCloudAccount

Explore with Pulumi AI

Control Plane v0.0.56 published on Wednesday, Apr 9, 2025 by pulumiverse

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

Outputs

  • aws_identifiers (String)

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cpln from "@pulumi/cpln";

const _this = cpln.getCloudAccount({});
export const cloudAccount = _this.then(_this => _this.awsIdentifiers);
Copy
import pulumi
import pulumi_cpln as cpln

this = cpln.get_cloud_account()
pulumi.export("cloudAccount", this.aws_identifiers)
Copy
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, map[string]interface{}{}, nil)
		if err != nil {
			return err
		}
		ctx.Export("cloudAccount", this.AwsIdentifiers)
		return nil
	})
}
Copy
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)),
    };
});
Copy
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());
    }
}
Copy
variables:
  this:
    fn::invoke:
      function: cpln:getCloudAccount
      arguments: {}
outputs:
  cloudAccount: ${this.awsIdentifiers}
Copy

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>
Copy
def get_cloud_account(opts: Optional[InvokeOptions] = None) -> GetCloudAccountResult
def get_cloud_account_output(opts: Optional[InvokeOptions] = None) -> Output[GetCloudAccountResult]
Copy
func LookupCloudAccount(ctx *Context, opts ...InvokeOption) (*LookupCloudAccountResult, error)
func LookupCloudAccountOutput(ctx *Context, opts ...InvokeOption) LookupCloudAccountResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetCloudAccountResult> getCloudAccount(InvokeOptions options)
public static Output<GetCloudAccountResult> getCloudAccount(InvokeOptions options)
Copy
fn::invoke:
  function: cpln:index/getCloudAccount:getCloudAccount
  arguments:
    # arguments dictionary
Copy

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.
Control Plane v0.0.56 published on Wednesday, Apr 9, 2025 by pulumiverse