import * as pulumi from "@pulumi/pulumi"; /** * !>A new external ID must be used to create an AWS account integration in Datadog within 48 hours of creation or it will expire. * * !>Running `terraform destroy` only removes the resource from Terraform state and does not deactivate anything in Datadog or AWS. * * Provides a Datadog-Amazon Web Services external ID resource. This can be used to create Datadog-Amazon Web Services external IDs * * This resource can be used in conjunction with the `datadog.aws.IntegrationAccount` resource. The external ID value can be referenced as shown: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as datadog from "@pulumi/datadog"; * * const foo = new datadog.aws.IntegrationExternalId("foo", {}); * const foo_defaults = new datadog.aws.IntegrationAccount("foo-defaults", { * awsAccountId: "123456789019", * awsPartition: "aws", * authConfig: [{ * awsAuthConfigRole: [{ * roleName: "DatadogIntegrationRole", * externalId: foo.id, * }], * }], * }); * ``` * * To force a new external ID value to regenerate, you can use the `-replace` flag: * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as datadog from "@pulumi/datadog"; * * // Create new integration_aws_external_id resource * const foo = new datadog.aws.IntegrationExternalId("foo", {}); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * Amazon Web Services external IDs can be imported using the ID value. * * ```sh * $ pulumi import datadog:aws/integrationExternalId:IntegrationExternalId foo ${id} * ``` */ export declare class IntegrationExternalId extends pulumi.CustomResource { /** * Get an existing IntegrationExternalId resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: IntegrationExternalIdState, opts?: pulumi.CustomResourceOptions): IntegrationExternalId; /** * Returns true if the given object is an instance of IntegrationExternalId. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is IntegrationExternalId; /** * Create a IntegrationExternalId resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args?: IntegrationExternalIdArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering IntegrationExternalId resources. */ export interface IntegrationExternalIdState { } /** * The set of arguments for constructing a IntegrationExternalId resource. */ export interface IntegrationExternalIdArgs { }