119 lines
4.8 KiB
TypeScript
Generated
119 lines
4.8 KiB
TypeScript
Generated
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
|
|
import * as pulumi from "@pulumi/pulumi";
|
|
import * as utilities from "./utilities";
|
|
|
|
export class ClusterGroupAssignment extends pulumi.CustomResource {
|
|
/**
|
|
* Get an existing ClusterGroupAssignment 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.
|
|
*/
|
|
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ClusterGroupAssignmentState, opts?: pulumi.CustomResourceOptions): ClusterGroupAssignment {
|
|
return new ClusterGroupAssignment(name, <any>state, { ...opts, id: id });
|
|
}
|
|
|
|
/** @internal */
|
|
public static readonly __pulumiType = 'incus:index/clusterGroupAssignment:ClusterGroupAssignment';
|
|
|
|
/**
|
|
* Returns true if the given object is an instance of ClusterGroupAssignment. This is designed to work even
|
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
*/
|
|
public static isInstance(obj: any): obj is ClusterGroupAssignment {
|
|
if (obj === undefined || obj === null) {
|
|
return false;
|
|
}
|
|
return obj['__pulumiType'] === ClusterGroupAssignment.__pulumiType;
|
|
}
|
|
|
|
/**
|
|
* **Required** - Name of the cluster group.
|
|
*/
|
|
public readonly clusterGroup!: pulumi.Output<string>;
|
|
/**
|
|
* **Required** - Name of the cluster group member.
|
|
*/
|
|
public readonly member!: pulumi.Output<string>;
|
|
/**
|
|
* *Optional* - The remote in which the resource will be created. If
|
|
* not provided, the provider's default remote will be used.
|
|
*/
|
|
public readonly remote!: pulumi.Output<string | undefined>;
|
|
|
|
/**
|
|
* Create a ClusterGroupAssignment 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: ClusterGroupAssignmentArgs, opts?: pulumi.CustomResourceOptions)
|
|
constructor(name: string, argsOrState?: ClusterGroupAssignmentArgs | ClusterGroupAssignmentState, opts?: pulumi.CustomResourceOptions) {
|
|
let resourceInputs: pulumi.Inputs = {};
|
|
opts = opts || {};
|
|
if (opts.id) {
|
|
const state = argsOrState as ClusterGroupAssignmentState | undefined;
|
|
resourceInputs["clusterGroup"] = state ? state.clusterGroup : undefined;
|
|
resourceInputs["member"] = state ? state.member : undefined;
|
|
resourceInputs["remote"] = state ? state.remote : undefined;
|
|
} else {
|
|
const args = argsOrState as ClusterGroupAssignmentArgs | undefined;
|
|
if ((!args || args.clusterGroup === undefined) && !opts.urn) {
|
|
throw new Error("Missing required property 'clusterGroup'");
|
|
}
|
|
if ((!args || args.member === undefined) && !opts.urn) {
|
|
throw new Error("Missing required property 'member'");
|
|
}
|
|
resourceInputs["clusterGroup"] = args ? args.clusterGroup : undefined;
|
|
resourceInputs["member"] = args ? args.member : undefined;
|
|
resourceInputs["remote"] = args ? args.remote : undefined;
|
|
}
|
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
super(ClusterGroupAssignment.__pulumiType, name, resourceInputs, opts);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Input properties used for looking up and filtering ClusterGroupAssignment resources.
|
|
*/
|
|
export interface ClusterGroupAssignmentState {
|
|
/**
|
|
* **Required** - Name of the cluster group.
|
|
*/
|
|
clusterGroup?: pulumi.Input<string>;
|
|
/**
|
|
* **Required** - Name of the cluster group member.
|
|
*/
|
|
member?: pulumi.Input<string>;
|
|
/**
|
|
* *Optional* - The remote in which the resource will be created. If
|
|
* not provided, the provider's default remote will be used.
|
|
*/
|
|
remote?: pulumi.Input<string>;
|
|
}
|
|
|
|
/**
|
|
* The set of arguments for constructing a ClusterGroupAssignment resource.
|
|
*/
|
|
export interface ClusterGroupAssignmentArgs {
|
|
/**
|
|
* **Required** - Name of the cluster group.
|
|
*/
|
|
clusterGroup: pulumi.Input<string>;
|
|
/**
|
|
* **Required** - Name of the cluster group member.
|
|
*/
|
|
member: pulumi.Input<string>;
|
|
/**
|
|
* *Optional* - The remote in which the resource will be created. If
|
|
* not provided, the provider's default remote will be used.
|
|
*/
|
|
remote?: pulumi.Input<string>;
|
|
}
|