import * as pulumi from "@pulumi/pulumi"; /** * Provides an AWS Workload Identity Federation (WIF) intake mapping. The mapping allows Datadog Agents with an AWS identity matching `arnPattern` to authenticate for telemetry submission using a Datadog-managed, automatically rotated API key. The AWS account in the ARN must already be integrated with Datadog, and managed API key rotation must be enabled for the organization. Creating the mapping requires the Workload Identity Federation write permission. Configure the Agent separately to use WIF with the target organization UUID. The API rejects ARN patterns that conflict with existing intake or identity mappings. Mapping changes may take several minutes to affect authentication. This resource uses a public beta API and is subject to change. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as datadog from "@pulumi/datadog"; * * const config = new pulumi.Config(); * // The AWS account where the Agent runs. It must be integrated with Datadog and may differ from the account running Terraform. * const agentAwsAccountId = config.require("agentAwsAccountId"); * // If this configuration also manages the AWS integration, replace * // var.agent_aws_account_id below with datadog_integration_aws_account.agent.aws_account_id * // (using your integration resource's name) to establish creation order. * const agent = new datadog.AwsWifIntakeMapping("agent", {arnPattern: `arn:aws:sts::${agentAwsAccountId}:assumed-role/DatadogAgentRole/*`}); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * ```sh * $ pulumi import datadog:index/awsWifIntakeMapping:AwsWifIntakeMapping agent "00000000-0000-0000-0000-000000000000" * ``` */ export declare class AwsWifIntakeMapping extends pulumi.CustomResource { /** * Get an existing AwsWifIntakeMapping 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?: AwsWifIntakeMappingState, opts?: pulumi.CustomResourceOptions): AwsWifIntakeMapping; /** * Check whether an existing AwsWifIntakeMapping 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?: AwsWifIntakeMappingState, opts?: pulumi.CustomResourceOptions): pulumi.Output; /** * Returns true if the given object is an instance of AwsWifIntakeMapping. 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 AwsWifIntakeMapping; /** * The AWS caller ARN pattern allowed to authenticate. Changing this value replaces the mapping. 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/DatadogAgentRole/*`. String length must be at least 1. */ readonly arnPattern: pulumi.Output; /** * Whether the mapping allows Private Action Runner enrollment. This permission is managed separately from the ARN pattern and cannot be changed with this resource. Changing `arnPattern` replaces the mapping and resets this permission to false; re-enable Private Action Runner enrollment separately after replacement if needed. Defaults to false when omitted by the API. */ readonly parEnrollmentEnabled: pulumi.Output; /** * Create a AwsWifIntakeMapping 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: AwsWifIntakeMappingArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AwsWifIntakeMapping resources. */ export interface AwsWifIntakeMappingState { /** * The AWS caller ARN pattern allowed to authenticate. Changing this value replaces the mapping. 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/DatadogAgentRole/*`. String length must be at least 1. */ arnPattern?: pulumi.Input; /** * Whether the mapping allows Private Action Runner enrollment. This permission is managed separately from the ARN pattern and cannot be changed with this resource. Changing `arnPattern` replaces the mapping and resets this permission to false; re-enable Private Action Runner enrollment separately after replacement if needed. Defaults to false when omitted by the API. */ parEnrollmentEnabled?: pulumi.Input; } /** * The set of arguments for constructing a AwsWifIntakeMapping resource. */ export interface AwsWifIntakeMappingArgs { /** * The AWS caller ARN pattern allowed to authenticate. Changing this value replaces the mapping. 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/DatadogAgentRole/*`. String length must be at least 1. */ arnPattern: pulumi.Input; } //# sourceMappingURL=awsWifIntakeMapping.d.ts.map