import * as pulumi from "@pulumi/pulumi"; /** * Provides a Datadog `serviceAccountApplicationKey` resource. This can be used to create and manage Datadog service account application keys. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as datadog from "@pulumi/datadog"; * * // Source the permissions for scoped keys * const ddPerms = datadog.getPermissions({}); * // Create an unrestricted Service Account Application Key * // This key inherits all permissions of the service account that owns the key * const unrestrictedKey = new datadog.ServiceAccountApplicationKey("unrestricted_key", { * serviceAccountId: "00000000-0000-1234-0000-000000000000", * name: "Unrestricted Service Account Key", * }); * // Create a scoped Service Account Application Key for monitor management * const monitorManagementKey = new datadog.ServiceAccountApplicationKey("monitor_management_key", { * serviceAccountId: "00000000-0000-1234-0000-000000000000", * name: "Monitor Management Service Account Key", * scopes: [ * ddPerms.then(ddPerms => ddPerms.permissions?.monitorsRead), * ddPerms.then(ddPerms => ddPerms.permissions?.monitorsWrite), * ], * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * Importing a service account's application key cannot import the value of the key. * * ```sh * $ pulumi import datadog:index/serviceAccountApplicationKey:ServiceAccountApplicationKey this ":" * ``` */ export declare class ServiceAccountApplicationKey extends pulumi.CustomResource { /** * Get an existing ServiceAccountApplicationKey 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?: ServiceAccountApplicationKeyState, opts?: pulumi.CustomResourceOptions): ServiceAccountApplicationKey; /** * Returns true if the given object is an instance of ServiceAccountApplicationKey. 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 ServiceAccountApplicationKey; /** * Creation date of the application key. */ readonly createdAt: pulumi.Output; /** * The value of the service account application key. This value cannot be imported. */ readonly key: pulumi.Output; /** * The last four characters of the application key. */ readonly last4: pulumi.Output; /** * Name of the application key. */ readonly name: pulumi.Output; /** * Authorization scopes for the Application Key. Application Keys configured with no scopes have full access. */ readonly scopes: pulumi.Output; /** * ID of the service account that owns this key. */ readonly serviceAccountId: pulumi.Output; /** * Create a ServiceAccountApplicationKey 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: ServiceAccountApplicationKeyArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ServiceAccountApplicationKey resources. */ export interface ServiceAccountApplicationKeyState { /** * Creation date of the application key. */ createdAt?: pulumi.Input; /** * The value of the service account application key. This value cannot be imported. */ key?: pulumi.Input; /** * The last four characters of the application key. */ last4?: pulumi.Input; /** * Name of the application key. */ name?: pulumi.Input; /** * Authorization scopes for the Application Key. Application Keys configured with no scopes have full access. */ scopes?: pulumi.Input[]>; /** * ID of the service account that owns this key. */ serviceAccountId?: pulumi.Input; } /** * The set of arguments for constructing a ServiceAccountApplicationKey resource. */ export interface ServiceAccountApplicationKeyArgs { /** * Name of the application key. */ name: pulumi.Input; /** * Authorization scopes for the Application Key. Application Keys configured with no scopes have full access. */ scopes?: pulumi.Input[]>; /** * ID of the service account that owns this key. */ serviceAccountId: pulumi.Input; }