Control Plane v0.0.73 published on Thursday, Oct 23, 2025 by pulumiverse
cpln.getCloudAccount
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 "@pulumiverse/cpln";
const _this = cpln.getCloudAccount({});
export const cloudAccount = _this.then(_this => _this.awsIdentifiers);
import pulumi
import pulumi_cpln as cpln
this = cpln.get_cloud_account()
pulumi.export("cloudAccount", this.aws_identifiers)
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
})
}
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 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(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference);
ctx.export("cloudAccount", 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)
public static Output<GetCloudAccountResult> getCloudAccount(InvokeOptions options)
fn::invoke:
function: cpln:index/getCloudAccount:getCloudAccount
arguments:
# arguments dictionarygetCloudAccount Result
The following output properties are available:
- Aws
Identifiers List<string> - Id string
- Aws
Identifiers []string - Id string
- aws
Identifiers List<String> - id String
- aws
Identifiers string[] - id string
- aws_
identifiers Sequence[str] - id str
- aws
Identifiers List<String> - id String
Package Details
- Repository
- cpln pulumiverse/pulumi-cpln
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cplnTerraform Provider.
