@pulumi/linode
Version:
A Pulumi package for creating and managing linode cloud resources.
143 lines (142 loc) • 4.78 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Manages a token for an Image Share Group.
* For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/post-sharegroup-tokens). May not be currently available to all users even under v4beta.
*
* ## Example Usage
*
* Create a token for an Image Share Group:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as linode from "@pulumi/linode";
*
* const example = new linode.ConsumerImageShareGroupToken("example", {
* validForSharegroupUuid: "03fbb93e-c27d-4c4a-9180-67f6e0cd74ca",
* label: "example-token",
* });
* ```
*/
export declare class ConsumerImageShareGroupToken extends pulumi.CustomResource {
/**
* Get an existing ConsumerImageShareGroupToken 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?: ConsumerImageShareGroupTokenState, opts?: pulumi.CustomResourceOptions): ConsumerImageShareGroupToken;
/**
* Returns true if the given object is an instance of ConsumerImageShareGroupToken. 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 ConsumerImageShareGroupToken;
/**
* When the token was created.
*/
readonly created: pulumi.Output<string>;
/**
* When the token will expire.
*/
readonly expiry: pulumi.Output<string>;
/**
* A label for the token.
*/
readonly label: pulumi.Output<string | undefined>;
/**
* The label of the Image Share Group that the token is for.
*/
readonly sharegroupLabel: pulumi.Output<string>;
/**
* The UUID of the Image Share Group that the token is for.
*/
readonly sharegroupUuid: pulumi.Output<string>;
/**
* The status of the token.
*/
readonly status: pulumi.Output<string>;
/**
* The one-time-use token to be provided to the Image Share Group Producer.
*/
readonly token: pulumi.Output<string>;
/**
* The UUID of the token.
*/
readonly tokenUuid: pulumi.Output<string>;
/**
* When the token was last updated.
*/
readonly updated: pulumi.Output<string>;
/**
* The UUID of the Image Share Group for which to create a token.
*/
readonly validForSharegroupUuid: pulumi.Output<string>;
/**
* Create a ConsumerImageShareGroupToken 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: ConsumerImageShareGroupTokenArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering ConsumerImageShareGroupToken resources.
*/
export interface ConsumerImageShareGroupTokenState {
/**
* When the token was created.
*/
created?: pulumi.Input<string>;
/**
* When the token will expire.
*/
expiry?: pulumi.Input<string>;
/**
* A label for the token.
*/
label?: pulumi.Input<string>;
/**
* The label of the Image Share Group that the token is for.
*/
sharegroupLabel?: pulumi.Input<string>;
/**
* The UUID of the Image Share Group that the token is for.
*/
sharegroupUuid?: pulumi.Input<string>;
/**
* The status of the token.
*/
status?: pulumi.Input<string>;
/**
* The one-time-use token to be provided to the Image Share Group Producer.
*/
token?: pulumi.Input<string>;
/**
* The UUID of the token.
*/
tokenUuid?: pulumi.Input<string>;
/**
* When the token was last updated.
*/
updated?: pulumi.Input<string>;
/**
* The UUID of the Image Share Group for which to create a token.
*/
validForSharegroupUuid?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a ConsumerImageShareGroupToken resource.
*/
export interface ConsumerImageShareGroupTokenArgs {
/**
* A label for the token.
*/
label?: pulumi.Input<string>;
/**
* The UUID of the Image Share Group for which to create a token.
*/
validForSharegroupUuid: pulumi.Input<string>;
}