import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * A connection that can be used in Actions, including in the Workflow Automation and App Builder products. This resource creates connections that run in Datadog's cloud. AWS Secrets Manager references are available for supported token-based credentials and HTTP authentication token values. AWS AssumeRole credentials, Azure credentials, and HTTP request metadata don't support AWS Secrets Manager references and must use literal values. This resource requires a registered application key. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as datadog from "@pulumi/datadog"; * * const awsConnection = new datadog.ActionConnection("aws_connection", { * name: "My AWS Connection", * tags: [ * "env:prod", * "team:action-platform", * ], * aws: [{ * assumeRole: [{ * accountId: "123456789012", * role: "role2", * }], * }], * }); * const config = new pulumi.Config(); * const token1 = config.require("token1"); * const token2 = config.require("token2"); * const httpConnection = new datadog.ActionConnection("http_connection", { * name: "My HTTP connection with token auth", * http: [{ * baseUrl: "https://catfact.ninja", * tokenAuth: [{ * tokens: [ * { * type: "SECRET", * name: "token1", * value: token1, * }, * { * type: "SECRET", * name: "token2", * value: token2, * }, * ], * headers: [ * { * name: "header-one", * value: "headerval", * }, * { * name: "h2", * value: "{{ token1 }} test", * }, * ], * urlParameters: [ * { * name: "param1", * value: "{{ token1 }}", * }, * { * name: "param2", * value: "paramVal2", * }, * ], * body: [{ * contentType: "application/json", * content: JSON.stringify({ * key: "mykey", * value: "maybe with a secret: {{ token2 }}", * }), * }], * }], * }], * }); * // Datadog resolves these references at runtime. Pulumi stores only the * // references and does not retrieve the GCP credential values. * const gcpConnection = new datadog.ActionConnection("gcp_connection", { * name: "My GCP connection with AWS Secrets Manager", * externalSecretsManager: { * connection_id: awsConnection.id, * region: "us-east-1", * }, * gcp: [{ * serviceAccount: [{ * privateKeyAwsSecretsManager: { * secret_id: "example/gcp/service-account", * key: "private_key", * }, * serviceAccountEmailAwsSecretsManager: { * secret_id: "example/gcp/service-account", * key: "client_email", * }, * }], * }], * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * ```sh * $ pulumi import datadog:index/actionConnection:ActionConnection my_connection 11111111-2222-3333-4444-555555555555 * ``` */ export declare class ActionConnection extends pulumi.CustomResource { /** * Get an existing ActionConnection 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?: ActionConnectionState, opts?: pulumi.CustomResourceOptions): ActionConnection; /** * Check whether an existing ActionConnection 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?: ActionConnectionState, opts?: pulumi.CustomResourceOptions): pulumi.Output; /** * Returns true if the given object is an instance of ActionConnection. 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 ActionConnection; /** * Configuration for an Anthropic connection */ readonly anthropic: pulumi.Output; /** * Configuration for an Asana connection */ readonly asana: pulumi.Output; /** * Configuration for an AWS connection */ readonly aws: pulumi.Output; /** * Configuration for an Azure connection */ readonly azure: pulumi.Output; /** * Configuration for a CircleCI connection */ readonly circleCi: pulumi.Output; /** * Configuration for a ClickUp connection */ readonly clickup: pulumi.Output; /** * Configuration for a Cloudflare connection */ readonly cloudflare: pulumi.Output; /** * Configuration for a ConfigCat connection */ readonly configCat: pulumi.Output; /** * Configuration for a Datadog connection */ readonly datadog: pulumi.Output; /** * Tags associated with the connection, including those inherited from the provider's `defaultTags` configuration. */ readonly effectiveTags: pulumi.Output; /** * AWS Secrets Manager settings shared by credential references. Required when a credential uses an AWS Secrets Manager reference. Optional for literal credentials. Available only on connections that run in Datadog's cloud. */ readonly externalSecretsManager: pulumi.Output; /** * Configuration for a Fastly connection */ readonly fastly: pulumi.Output; /** * Configuration for a Freshservice connection */ readonly freshservice: pulumi.Output; /** * Configuration for a Google Cloud connection */ readonly gcp: pulumi.Output; /** * Configuration for a Gemini connection */ readonly gemini: pulumi.Output; /** * Configuration for a GitLab connection */ readonly gitlab: pulumi.Output; /** * Configuration for a GreyNoise connection */ readonly greyNoise: pulumi.Output; /** * Configuration for an HTTP connection */ readonly http: pulumi.Output; /** * Configuration for a LaunchDarkly connection */ readonly launchDarkly: pulumi.Output; /** * Name of the connection */ readonly name: pulumi.Output; /** * Configuration for a Notion connection */ readonly notion: pulumi.Output; /** * Configuration for an Okta connection */ readonly okta: pulumi.Output; /** * Configuration for an OpenAI connection */ readonly openai: pulumi.Output; /** * Configuration for a ServiceNow connection */ readonly serviceNow: pulumi.Output; /** * Configuration for a Split connection */ readonly split: pulumi.Output; /** * Configuration for a Statsig connection */ readonly statsig: pulumi.Output; /** * User-defined tags associated with the connection. Each tag must follow the `key:value` format. The `default` tag key is reserved. See also `effectiveTags`, which includes provider-level `defaultTags`. */ readonly tags: pulumi.Output; /** * Configuration for a VirusTotal connection */ readonly virusTotal: pulumi.Output; /** * Create a ActionConnection 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: ActionConnectionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ActionConnection resources. */ export interface ActionConnectionState { /** * Configuration for an Anthropic connection */ anthropic?: pulumi.Input; /** * Configuration for an Asana connection */ asana?: pulumi.Input; /** * Configuration for an AWS connection */ aws?: pulumi.Input; /** * Configuration for an Azure connection */ azure?: pulumi.Input; /** * Configuration for a CircleCI connection */ circleCi?: pulumi.Input; /** * Configuration for a ClickUp connection */ clickup?: pulumi.Input; /** * Configuration for a Cloudflare connection */ cloudflare?: pulumi.Input; /** * Configuration for a ConfigCat connection */ configCat?: pulumi.Input; /** * Configuration for a Datadog connection */ datadog?: pulumi.Input; /** * Tags associated with the connection, including those inherited from the provider's `defaultTags` configuration. */ effectiveTags?: pulumi.Input[] | undefined>; /** * AWS Secrets Manager settings shared by credential references. Required when a credential uses an AWS Secrets Manager reference. Optional for literal credentials. Available only on connections that run in Datadog's cloud. */ externalSecretsManager?: pulumi.Input; /** * Configuration for a Fastly connection */ fastly?: pulumi.Input; /** * Configuration for a Freshservice connection */ freshservice?: pulumi.Input; /** * Configuration for a Google Cloud connection */ gcp?: pulumi.Input; /** * Configuration for a Gemini connection */ gemini?: pulumi.Input; /** * Configuration for a GitLab connection */ gitlab?: pulumi.Input; /** * Configuration for a GreyNoise connection */ greyNoise?: pulumi.Input; /** * Configuration for an HTTP connection */ http?: pulumi.Input; /** * Configuration for a LaunchDarkly connection */ launchDarkly?: pulumi.Input; /** * Name of the connection */ name?: pulumi.Input; /** * Configuration for a Notion connection */ notion?: pulumi.Input; /** * Configuration for an Okta connection */ okta?: pulumi.Input; /** * Configuration for an OpenAI connection */ openai?: pulumi.Input; /** * Configuration for a ServiceNow connection */ serviceNow?: pulumi.Input; /** * Configuration for a Split connection */ split?: pulumi.Input; /** * Configuration for a Statsig connection */ statsig?: pulumi.Input; /** * User-defined tags associated with the connection. Each tag must follow the `key:value` format. The `default` tag key is reserved. See also `effectiveTags`, which includes provider-level `defaultTags`. */ tags?: pulumi.Input[] | undefined>; /** * Configuration for a VirusTotal connection */ virusTotal?: pulumi.Input; } /** * The set of arguments for constructing a ActionConnection resource. */ export interface ActionConnectionArgs { /** * Configuration for an Anthropic connection */ anthropic?: pulumi.Input; /** * Configuration for an Asana connection */ asana?: pulumi.Input; /** * Configuration for an AWS connection */ aws?: pulumi.Input; /** * Configuration for an Azure connection */ azure?: pulumi.Input; /** * Configuration for a CircleCI connection */ circleCi?: pulumi.Input; /** * Configuration for a ClickUp connection */ clickup?: pulumi.Input; /** * Configuration for a Cloudflare connection */ cloudflare?: pulumi.Input; /** * Configuration for a ConfigCat connection */ configCat?: pulumi.Input; /** * Configuration for a Datadog connection */ datadog?: pulumi.Input; /** * AWS Secrets Manager settings shared by credential references. Required when a credential uses an AWS Secrets Manager reference. Optional for literal credentials. Available only on connections that run in Datadog's cloud. */ externalSecretsManager?: pulumi.Input; /** * Configuration for a Fastly connection */ fastly?: pulumi.Input; /** * Configuration for a Freshservice connection */ freshservice?: pulumi.Input; /** * Configuration for a Google Cloud connection */ gcp?: pulumi.Input; /** * Configuration for a Gemini connection */ gemini?: pulumi.Input; /** * Configuration for a GitLab connection */ gitlab?: pulumi.Input; /** * Configuration for a GreyNoise connection */ greyNoise?: pulumi.Input; /** * Configuration for an HTTP connection */ http?: pulumi.Input; /** * Configuration for a LaunchDarkly connection */ launchDarkly?: pulumi.Input; /** * Name of the connection */ name: pulumi.Input; /** * Configuration for a Notion connection */ notion?: pulumi.Input; /** * Configuration for an Okta connection */ okta?: pulumi.Input; /** * Configuration for an OpenAI connection */ openai?: pulumi.Input; /** * Configuration for a ServiceNow connection */ serviceNow?: pulumi.Input; /** * Configuration for a Split connection */ split?: pulumi.Input; /** * Configuration for a Statsig connection */ statsig?: pulumi.Input; /** * User-defined tags associated with the connection. Each tag must follow the `key:value` format. The `default` tag key is reserved. See also `effectiveTags`, which includes provider-level `defaultTags`. */ tags?: pulumi.Input[] | undefined>; /** * Configuration for a VirusTotal connection */ virusTotal?: pulumi.Input; } //# sourceMappingURL=actionConnection.d.ts.map