@lbrlabs/pulumi-eks
Version:
This repo provides a [multi-language](https://www.pulumi.com/blog/pulumiup-pulumi-packages-multi-language-components/) component that creates a "batteries included" cluster ready for you to attach your EKS nodes to.
59 lines • 2.79 kB
JavaScript
;
// *** WARNING: this file was generated by Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.IamServiceAccountRole = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
class IamServiceAccountRole extends pulumi.ComponentResource {
/**
* Returns true if the given object is an instance of IamServiceAccountRole. 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'] === IamServiceAccountRole.__pulumiType;
}
/**
* Create a IamServiceAccountRole 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) {
if (args?.namespaceName === undefined && !opts.urn) {
throw new Error("Missing required property 'namespaceName'");
}
if (args?.oidcProviderArn === undefined && !opts.urn) {
throw new Error("Missing required property 'oidcProviderArn'");
}
if (args?.oidcProviderUrl === undefined && !opts.urn) {
throw new Error("Missing required property 'oidcProviderUrl'");
}
if (args?.serviceAccountName === undefined && !opts.urn) {
throw new Error("Missing required property 'serviceAccountName'");
}
resourceInputs["namespaceName"] = args?.namespaceName;
resourceInputs["oidcProviderArn"] = args?.oidcProviderArn;
resourceInputs["oidcProviderUrl"] = args?.oidcProviderUrl;
resourceInputs["serviceAccountName"] = args?.serviceAccountName;
resourceInputs["tags"] = args?.tags;
resourceInputs["role"] = undefined /*out*/;
}
else {
resourceInputs["role"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(IamServiceAccountRole.__pulumiType, name, resourceInputs, opts, true /*remote*/);
}
}
exports.IamServiceAccountRole = IamServiceAccountRole;
/** @internal */
IamServiceAccountRole.__pulumiType = 'lbrlabs-eks:index:IamServiceAccountRole';
//# sourceMappingURL=iamServiceAccountRole.js.map