@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
111 lines (110 loc) • 3.51 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Provides a resource to manage iam access key
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@volcengine/pulumi";
*
* const foo = new volcengine.iam.AccessKey("foo", {
* status: "active",
* userName: "jonny",
* });
* ```
*
* ## Import
*
* Iam access key don't support import
*/
export declare class AccessKey extends pulumi.CustomResource {
/**
* Get an existing AccessKey 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?: AccessKeyState, opts?: pulumi.CustomResourceOptions): AccessKey;
/**
* Returns true if the given object is an instance of AccessKey. 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 AccessKey;
/**
* The access key id.
*/
readonly accessKeyId: pulumi.Output<string>;
/**
* The create date of the access key.
*/
readonly createDate: pulumi.Output<string>;
/**
* The secret access key.
*/
readonly secretAccessKey: pulumi.Output<string>;
/**
* The status of the access key, Optional choice contains `active` or `inactive`.
*/
readonly status: pulumi.Output<string | undefined>;
/**
* The update date of the access key.
*/
readonly updateDate: pulumi.Output<string>;
/**
* The user name. If not specified, the current user is used.
*/
readonly userName: pulumi.Output<string>;
/**
* Create a AccessKey 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?: AccessKeyArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering AccessKey resources.
*/
export interface AccessKeyState {
/**
* The access key id.
*/
accessKeyId?: pulumi.Input<string>;
/**
* The create date of the access key.
*/
createDate?: pulumi.Input<string>;
/**
* The secret access key.
*/
secretAccessKey?: pulumi.Input<string>;
/**
* The status of the access key, Optional choice contains `active` or `inactive`.
*/
status?: pulumi.Input<string>;
/**
* The update date of the access key.
*/
updateDate?: pulumi.Input<string>;
/**
* The user name. If not specified, the current user is used.
*/
userName?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a AccessKey resource.
*/
export interface AccessKeyArgs {
/**
* The status of the access key, Optional choice contains `active` or `inactive`.
*/
status?: pulumi.Input<string>;
/**
* The user name. If not specified, the current user is used.
*/
userName?: pulumi.Input<string>;
}