import * as pulumi from "@pulumi/pulumi"; /** * Provides an AWS Workload Identity Federation (WIF) identity mapping. The mapping allows an AWS IAM principal matching `arnPattern` to authenticate as the Datadog user or service account identified by `accountIdentifier`. The AWS account in the ARN must already be integrated with Datadog. The identity creating the mapping must have every permission assigned to the target identity. Creating the initial mapping requires API and application credentials with the Workload Identity Federation write permission; a provider already using WIF cannot bootstrap its own mapping. Mapping changes may take several minutes to affect WIF authentication. This resource uses a public beta API and is subject to change. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * import * as datadog from "@pulumi/datadog"; * * const current = aws.callerIdentity({}); * const readOnly = datadog.getRole({ * filter: "Datadog Read Only Role", * }); * const terraform = new datadog.ServiceAccount("terraform", { * email: "terraform-service-account@example.com", * name: "Terraform service account", * roles: [readOnly.then(readOnly => readOnly.id)], * }); * const terraformAwsWifIdentityMapping = new datadog.AwsWifIdentityMapping("terraform", { * accountIdentifier: terraform.id, * arnPattern: `arn:aws:sts::${current.accountId}:assumed-role/terraform-runner/*`, * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * ```sh * $ pulumi import datadog:index/awsWifIdentityMapping:AwsWifIdentityMapping terraform "00000000-0000-0000-0000-000000000000" * ``` */ export declare class AwsWifIdentityMapping extends pulumi.CustomResource { /** * Get an existing AwsWifIdentityMapping 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?: AwsWifIdentityMappingState, opts?: pulumi.CustomResourceOptions): AwsWifIdentityMapping; /** * Check whether an existing AwsWifIdentityMapping resource with the given ID exists. * * @param id The _unique_ provider ID of the resource to check. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static exists(id: pulumi.Input, state?: AwsWifIdentityMappingState, opts?: pulumi.CustomResourceOptions): pulumi.Output; /** * Returns true if the given object is an instance of AwsWifIdentityMapping. 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 AwsWifIdentityMapping; /** * The email or handle of the Datadog user or service account that the AWS principal authenticates as. For a Terraform-managed service account, prefer the stable UUID exported by `datadog_service_account.id`; Datadog accepts it as the service account identifier. Datadog normalizes an email to the account's handle, so the handle form is the only value that survives `pulumi import` unchanged — importing a mapping configured by email produces a diff on this attribute, which forces replacement. String length must be at least 1. */ readonly accountIdentifier: pulumi.Output; /** * The UUID of the Datadog user or service account resolved from `accountIdentifier`. */ readonly accountUuid: pulumi.Output; /** * The AWS caller ARN pattern allowed to authenticate. Currently, only the `aws` partition is supported. For role-based authentication, use the STS assumed-role ARN returned by `aws sts get-caller-identity`, not the IAM role ARN shown in the AWS console. A pattern may contain one wildcard only, as a trailing `/*` after a specific resource, for example `arn:aws:sts::123456789012:assumed-role/terraform-runner/*`. String length must be at least 1. */ readonly arnPattern: pulumi.Output; /** * Create a AwsWifIdentityMapping 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: AwsWifIdentityMappingArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AwsWifIdentityMapping resources. */ export interface AwsWifIdentityMappingState { /** * The email or handle of the Datadog user or service account that the AWS principal authenticates as. For a Terraform-managed service account, prefer the stable UUID exported by `datadog_service_account.id`; Datadog accepts it as the service account identifier. Datadog normalizes an email to the account's handle, so the handle form is the only value that survives `pulumi import` unchanged — importing a mapping configured by email produces a diff on this attribute, which forces replacement. String length must be at least 1. */ accountIdentifier?: pulumi.Input; /** * The UUID of the Datadog user or service account resolved from `accountIdentifier`. */ accountUuid?: pulumi.Input; /** * The AWS caller ARN pattern allowed to authenticate. Currently, only the `aws` partition is supported. For role-based authentication, use the STS assumed-role ARN returned by `aws sts get-caller-identity`, not the IAM role ARN shown in the AWS console. A pattern may contain one wildcard only, as a trailing `/*` after a specific resource, for example `arn:aws:sts::123456789012:assumed-role/terraform-runner/*`. String length must be at least 1. */ arnPattern?: pulumi.Input; } /** * The set of arguments for constructing a AwsWifIdentityMapping resource. */ export interface AwsWifIdentityMappingArgs { /** * The email or handle of the Datadog user or service account that the AWS principal authenticates as. For a Terraform-managed service account, prefer the stable UUID exported by `datadog_service_account.id`; Datadog accepts it as the service account identifier. Datadog normalizes an email to the account's handle, so the handle form is the only value that survives `pulumi import` unchanged — importing a mapping configured by email produces a diff on this attribute, which forces replacement. String length must be at least 1. */ accountIdentifier: pulumi.Input; /** * The AWS caller ARN pattern allowed to authenticate. Currently, only the `aws` partition is supported. For role-based authentication, use the STS assumed-role ARN returned by `aws sts get-caller-identity`, not the IAM role ARN shown in the AWS console. A pattern may contain one wildcard only, as a trailing `/*` after a specific resource, for example `arn:aws:sts::123456789012:assumed-role/terraform-runner/*`. String length must be at least 1. */ arnPattern: pulumi.Input; } //# sourceMappingURL=awsWifIdentityMapping.d.ts.map