Datadog v4.58.0 published on Thursday, Oct 16, 2025 by Pulumi
datadog.aws.getIntegrationExternalId
Use this data source to retrieve the external ID from an existing AWS integration. This can be used to reference the external ID value from an existing AWS account integration.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as datadog from "@pulumi/datadog";
// Get the external ID for the AWS account "123456789012"
const example = datadog.aws.getIntegrationExternalId({
awsAccountId: "123456789012",
});
import pulumi
import pulumi_datadog as datadog
# Get the external ID for the AWS account "123456789012"
example = datadog.aws.get_integration_external_id(aws_account_id="123456789012")
package main
import (
"github.com/pulumi/pulumi-datadog/sdk/v4/go/datadog/aws"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Get the external ID for the AWS account "123456789012"
_, err := aws.LookupIntegrationExternalId(ctx, &aws.LookupIntegrationExternalIdArgs{
AwsAccountId: "123456789012",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Datadog = Pulumi.Datadog;
return await Deployment.RunAsync(() =>
{
// Get the external ID for the AWS account "123456789012"
var example = Datadog.Aws.GetIntegrationExternalId.Invoke(new()
{
AwsAccountId = "123456789012",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.datadog.aws.AwsFunctions;
import com.pulumi.datadog.aws.inputs.GetIntegrationExternalIdArgs;
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) {
// Get the external ID for the AWS account "123456789012"
final var example = AwsFunctions.getIntegrationExternalId(GetIntegrationExternalIdArgs.builder()
.awsAccountId("123456789012")
.build());
}
}
variables:
# Get the external ID for the AWS account "123456789012"
example:
fn::invoke:
function: datadog:aws:getIntegrationExternalId
arguments:
awsAccountId: '123456789012'
Using getIntegrationExternalId
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 getIntegrationExternalId(args: GetIntegrationExternalIdArgs, opts?: InvokeOptions): Promise<GetIntegrationExternalIdResult>
function getIntegrationExternalIdOutput(args: GetIntegrationExternalIdOutputArgs, opts?: InvokeOptions): Output<GetIntegrationExternalIdResult>
def get_integration_external_id(aws_account_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIntegrationExternalIdResult
def get_integration_external_id_output(aws_account_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIntegrationExternalIdResult]
func LookupIntegrationExternalId(ctx *Context, args *LookupIntegrationExternalIdArgs, opts ...InvokeOption) (*LookupIntegrationExternalIdResult, error)
func LookupIntegrationExternalIdOutput(ctx *Context, args *LookupIntegrationExternalIdOutputArgs, opts ...InvokeOption) LookupIntegrationExternalIdResultOutput
> Note: This function is named LookupIntegrationExternalId
in the Go SDK.
public static class GetIntegrationExternalId
{
public static Task<GetIntegrationExternalIdResult> InvokeAsync(GetIntegrationExternalIdArgs args, InvokeOptions? opts = null)
public static Output<GetIntegrationExternalIdResult> Invoke(GetIntegrationExternalIdInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIntegrationExternalIdResult> getIntegrationExternalId(GetIntegrationExternalIdArgs args, InvokeOptions options)
public static Output<GetIntegrationExternalIdResult> getIntegrationExternalId(GetIntegrationExternalIdArgs args, InvokeOptions options)
fn::invoke:
function: datadog:aws/getIntegrationExternalId:getIntegrationExternalId
arguments:
# arguments dictionary
The following arguments are supported:
- Aws
Account stringId - The AWS account ID of the integration to retrieve the external ID from. Must be a valid 12 digits AWS account ID.
- Aws
Account stringId - The AWS account ID of the integration to retrieve the external ID from. Must be a valid 12 digits AWS account ID.
- aws
Account StringId - The AWS account ID of the integration to retrieve the external ID from. Must be a valid 12 digits AWS account ID.
- aws
Account stringId - The AWS account ID of the integration to retrieve the external ID from. Must be a valid 12 digits AWS account ID.
- aws_
account_ strid - The AWS account ID of the integration to retrieve the external ID from. Must be a valid 12 digits AWS account ID.
- aws
Account StringId - The AWS account ID of the integration to retrieve the external ID from. Must be a valid 12 digits AWS account ID.
getIntegrationExternalId Result
The following output properties are available:
- Aws
Account stringId - The AWS account ID of the integration to retrieve the external ID from. Must be a valid 12 digits AWS account ID.
- External
Id string - The external ID associated with the AWS integration.
- Id string
- The ID of this resource.
- Aws
Account stringId - The AWS account ID of the integration to retrieve the external ID from. Must be a valid 12 digits AWS account ID.
- External
Id string - The external ID associated with the AWS integration.
- Id string
- The ID of this resource.
- aws
Account StringId - The AWS account ID of the integration to retrieve the external ID from. Must be a valid 12 digits AWS account ID.
- external
Id String - The external ID associated with the AWS integration.
- id String
- The ID of this resource.
- aws
Account stringId - The AWS account ID of the integration to retrieve the external ID from. Must be a valid 12 digits AWS account ID.
- external
Id string - The external ID associated with the AWS integration.
- id string
- The ID of this resource.
- aws_
account_ strid - The AWS account ID of the integration to retrieve the external ID from. Must be a valid 12 digits AWS account ID.
- external_
id str - The external ID associated with the AWS integration.
- id str
- The ID of this resource.
- aws
Account StringId - The AWS account ID of the integration to retrieve the external ID from. Must be a valid 12 digits AWS account ID.
- external
Id String - The external ID associated with the AWS integration.
- id String
- The ID of this resource.
Package Details
- Repository
- Datadog pulumi/pulumi-datadog
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
datadog
Terraform Provider.