@pulumiverse/dynatrace
Version:
A Pulumi package for creating and managing Dynatrace cloud resources.
165 lines (164 loc) • 5.33 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
export declare class ApiToken extends pulumi.CustomResource {
/**
* Get an existing ApiToken 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<pulumi.ID>, state?: ApiTokenState, opts?: pulumi.CustomResourceOptions): ApiToken;
/**
* Returns true if the given object is an instance of ApiToken. 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 ApiToken;
/**
* Token creation date in ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss.SSS'Z')
*/
readonly creationDate: pulumi.Output<string>;
/**
* The token is enabled (true) or disabled (false), default disabled (false).
*/
readonly enabled: pulumi.Output<boolean | undefined>;
/**
* The expiration date of the token.
*/
readonly expirationDate: pulumi.Output<string | undefined>;
/**
* Token last used date in ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss.SSS'Z')
*/
readonly lastUsedDate: pulumi.Output<string>;
/**
* Token last used IP address.
*/
readonly lastUsedIpAddress: pulumi.Output<string>;
/**
* Token last modified date in ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss.SSS'Z').
*/
readonly modifiedDate: pulumi.Output<string>;
/**
* The name of the token.
*/
readonly name: pulumi.Output<string>;
/**
* The owner of the token
*/
readonly owner: pulumi.Output<string>;
/**
* The token is a personal access token (true) or an API token (false).
*/
readonly personalAccessToken: pulumi.Output<boolean | undefined>;
/**
* A list of the scopes to be assigned to the token.
*/
readonly scopes: pulumi.Output<string[]>;
/**
* The secret of the token.
*/
readonly token: pulumi.Output<string>;
/**
* Create a ApiToken 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: ApiTokenArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering ApiToken resources.
*/
export interface ApiTokenState {
/**
* Token creation date in ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss.SSS'Z')
*/
creationDate?: pulumi.Input<string>;
/**
* The token is enabled (true) or disabled (false), default disabled (false).
*/
enabled?: pulumi.Input<boolean>;
/**
* The expiration date of the token.
*/
expirationDate?: pulumi.Input<string>;
/**
* Token last used date in ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss.SSS'Z')
*/
lastUsedDate?: pulumi.Input<string>;
/**
* Token last used IP address.
*/
lastUsedIpAddress?: pulumi.Input<string>;
/**
* Token last modified date in ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss.SSS'Z').
*/
modifiedDate?: pulumi.Input<string>;
/**
* The name of the token.
*/
name?: pulumi.Input<string>;
/**
* The owner of the token
*/
owner?: pulumi.Input<string>;
/**
* The token is a personal access token (true) or an API token (false).
*/
personalAccessToken?: pulumi.Input<boolean>;
/**
* A list of the scopes to be assigned to the token.
*/
scopes?: pulumi.Input<pulumi.Input<string>[]>;
/**
* The secret of the token.
*/
token?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a ApiToken resource.
*/
export interface ApiTokenArgs {
/**
* Token creation date in ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss.SSS'Z')
*/
creationDate?: pulumi.Input<string>;
/**
* The token is enabled (true) or disabled (false), default disabled (false).
*/
enabled?: pulumi.Input<boolean>;
/**
* The expiration date of the token.
*/
expirationDate?: pulumi.Input<string>;
/**
* Token last used date in ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss.SSS'Z')
*/
lastUsedDate?: pulumi.Input<string>;
/**
* Token last used IP address.
*/
lastUsedIpAddress?: pulumi.Input<string>;
/**
* Token last modified date in ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss.SSS'Z').
*/
modifiedDate?: pulumi.Input<string>;
/**
* The name of the token.
*/
name?: pulumi.Input<string>;
/**
* The owner of the token
*/
owner?: pulumi.Input<string>;
/**
* The token is a personal access token (true) or an API token (false).
*/
personalAccessToken?: pulumi.Input<boolean>;
/**
* A list of the scopes to be assigned to the token.
*/
scopes: pulumi.Input<pulumi.Input<string>[]>;
}