@cloudtoolkit/aws
Version:
The Cloud Toolkit AWS provider for Pulumi provision well-architected solutions in [AWS](https://aws.amazon.com/). With Cloud Toolkit AWS you can use your preferred programming language to manage your platform with Infrastructure as Code.
56 lines • 2.52 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.ApplicationAddon = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* IRSAAddon is a component that deploy an HelmChart as ArgoCD Application.
*/
class ApplicationAddon extends pulumi.ComponentResource {
/**
* Returns true if the given object is an instance of ApplicationAddon. 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'] === ApplicationAddon.__pulumiType;
}
/**
* Create a ApplicationAddon 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.k8sProvider === undefined) && !opts.urn) {
throw new Error("Missing required property 'k8sProvider'");
}
if ((!args || args.name === undefined) && !opts.urn) {
throw new Error("Missing required property 'name'");
}
if ((!args || args.namespace === undefined) && !opts.urn) {
throw new Error("Missing required property 'namespace'");
}
resourceInputs["createNamespace"] = args ? args.createNamespace : undefined;
resourceInputs["k8sProvider"] = args ? args.k8sProvider : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["namespace"] = args ? args.namespace : undefined;
}
else {
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(ApplicationAddon.__pulumiType, name, resourceInputs, opts, true /*remote*/);
}
}
exports.ApplicationAddon = ApplicationAddon;
/** @internal */
ApplicationAddon.__pulumiType = 'cloud-toolkit-aws:kubernetes:ApplicationAddon';
//# sourceMappingURL=applicationAddon.js.map