@pulumi/eks
Version:
[](https://github.com/pulumi/pulumi-eks/actions/workflows/master.yml) [](https://slack.pulumi.com) [![n
59 lines • 2.76 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.Addon = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Addon manages an EKS add-on.
* For more information about supported add-ons, see: https://docs.aws.amazon.com/eks/latest/userguide/eks-add-ons.html
*/
class Addon extends pulumi.ComponentResource {
/**
* Returns true if the given object is an instance of Addon. 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'] === Addon.__pulumiType;
}
/**
* Create a Addon 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 || args.addonName === undefined) && !opts.urn) {
throw new Error("Missing required property 'addonName'");
}
if ((!args || args.cluster === undefined) && !opts.urn) {
throw new Error("Missing required property 'cluster'");
}
resourceInputs["addonName"] = args ? args.addonName : undefined;
resourceInputs["addonVersion"] = args ? args.addonVersion : undefined;
resourceInputs["cluster"] = args ? args.cluster : undefined;
resourceInputs["configurationValues"] = args ? args.configurationValues : undefined;
resourceInputs["preserve"] = args ? args.preserve : undefined;
resourceInputs["resolveConflictsOnCreate"] = args ? args.resolveConflictsOnCreate : undefined;
resourceInputs["resolveConflictsOnUpdate"] = args ? args.resolveConflictsOnUpdate : undefined;
resourceInputs["serviceAccountRoleArn"] = args ? args.serviceAccountRoleArn : undefined;
resourceInputs["tags"] = args ? args.tags : undefined;
}
else {
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Addon.__pulumiType, name, resourceInputs, opts, true /*remote*/);
}
}
exports.Addon = Addon;
/** @internal */
Addon.__pulumiType = 'eks:index:Addon';
//# sourceMappingURL=addon.js.map