import * as pulumi from "@pulumi/pulumi"; /** * Provides a Datadog webhook OAuth2 client credentials auth method resource. This can be used to create and manage the auth methods available under Integrations > Webhooks > Auth Methods. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as datadog from "@pulumi/datadog"; * * // Create a new Datadog webhook OAuth2 client credentials auth method. * const foo = new datadog.WebhookOauth2ClientCredentials("foo", { * name: "example-auth-method", * accessTokenUrl: "https://example.com/oauth2/token", * clientId: "example-client-id", * clientSecret: "example-client-secret", * audience: "https://example.com/api", * scope: "read write", * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * ```sh * $ pulumi import datadog:index/webhookOauth2ClientCredentials:WebhookOauth2ClientCredentials foo 11111111-2222-3333-4444-555555555555 * ``` */ export declare class WebhookOauth2ClientCredentials extends pulumi.CustomResource { /** * Get an existing WebhookOauth2ClientCredentials 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?: WebhookOauth2ClientCredentialsState, opts?: pulumi.CustomResourceOptions): WebhookOauth2ClientCredentials; /** * Check whether an existing WebhookOauth2ClientCredentials 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?: WebhookOauth2ClientCredentialsState, opts?: pulumi.CustomResourceOptions): pulumi.Output; /** * Returns true if the given object is an instance of WebhookOauth2ClientCredentials. 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 WebhookOauth2ClientCredentials; /** * The URL used to fetch the access token. */ readonly accessTokenUrl: pulumi.Output; /** * The audience requested when fetching the access token. */ readonly audience: pulumi.Output; /** * The OAuth2 client ID. */ readonly clientId: pulumi.Output; /** * The OAuth2 client secret. This value is not returned by the API, so it cannot be detected as drifted or filled in on import. */ readonly clientSecret: pulumi.Output; /** * The name of the auth method. */ readonly name: pulumi.Output; /** * The scope requested when fetching the access token. */ readonly scope: pulumi.Output; /** * Create a WebhookOauth2ClientCredentials 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: WebhookOauth2ClientCredentialsArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering WebhookOauth2ClientCredentials resources. */ export interface WebhookOauth2ClientCredentialsState { /** * The URL used to fetch the access token. */ accessTokenUrl?: pulumi.Input; /** * The audience requested when fetching the access token. */ audience?: pulumi.Input; /** * The OAuth2 client ID. */ clientId?: pulumi.Input; /** * The OAuth2 client secret. This value is not returned by the API, so it cannot be detected as drifted or filled in on import. */ clientSecret?: pulumi.Input; /** * The name of the auth method. */ name?: pulumi.Input; /** * The scope requested when fetching the access token. */ scope?: pulumi.Input; } /** * The set of arguments for constructing a WebhookOauth2ClientCredentials resource. */ export interface WebhookOauth2ClientCredentialsArgs { /** * The URL used to fetch the access token. */ accessTokenUrl: pulumi.Input; /** * The audience requested when fetching the access token. */ audience?: pulumi.Input; /** * The OAuth2 client ID. */ clientId: pulumi.Input; /** * The OAuth2 client secret. This value is not returned by the API, so it cannot be detected as drifted or filled in on import. */ clientSecret: pulumi.Input; /** * The name of the auth method. */ name: pulumi.Input; /** * The scope requested when fetching the access token. */ scope?: pulumi.Input; } //# sourceMappingURL=webhookOauth2ClientCredentials.d.ts.map