@pulumi/eks
Version:
[](https://github.com/pulumi/pulumi-eks/actions/workflows/master.yml) [](https://slack.pulumi.com) [![n
47 lines • 2.3 kB
JavaScript
;
// *** WARNING: this file was generated by pulumi-gen-eks. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.ClusterCreationRoleProvider = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* ClusterCreationRoleProvider is a component that wraps creating a role provider that can be passed to the `Cluster`'s `creationRoleProvider`. This can be used to provide a specific role to use for the creation of the EKS cluster different from the role being used to run the Pulumi deployment.
*/
class ClusterCreationRoleProvider extends pulumi.ComponentResource {
/**
* Returns true if the given object is an instance of ClusterCreationRoleProvider. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj) {
if (obj === undefined || obj === null) {
return false;
}
return obj['__pulumiType'] === ClusterCreationRoleProvider.__pulumiType;
}
/**
* Create a ClusterCreationRoleProvider 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, args, opts) {
let resourceInputs = {};
opts = opts || {};
if (!opts.id) {
resourceInputs["profile"] = args ? args.profile : undefined;
resourceInputs["region"] = args ? args.region : undefined;
resourceInputs["role"] = undefined /*out*/;
}
else {
resourceInputs["role"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(ClusterCreationRoleProvider.__pulumiType, name, resourceInputs, opts, true /*remote*/);
}
}
exports.ClusterCreationRoleProvider = ClusterCreationRoleProvider;
/** @internal */
ClusterCreationRoleProvider.__pulumiType = 'eks:index:ClusterCreationRoleProvider';
//# sourceMappingURL=clusterCreationRoleProvider.js.map