@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.
76 lines • 3.68 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.Irsa = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* The Irsa component create an IAM roles for service accounts on AWS and Kubernetes.
*/
class Irsa extends pulumi.ComponentResource {
/**
* Returns true if the given object is an instance of Irsa. 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'] === Irsa.__pulumiType;
}
/**
* Create a Irsa 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.identityProvidersArn === undefined) && !opts.urn) {
throw new Error("Missing required property 'identityProvidersArn'");
}
if ((!args || args.issuerUrl === undefined) && !opts.urn) {
throw new Error("Missing required property 'issuerUrl'");
}
if ((!args || args.k8sProvider === undefined) && !opts.urn) {
throw new Error("Missing required property 'k8sProvider'");
}
if ((!args || args.namespace === undefined) && !opts.urn) {
throw new Error("Missing required property 'namespace'");
}
if ((!args || args.policies === undefined) && !opts.urn) {
throw new Error("Missing required property 'policies'");
}
if ((!args || args.serviceAccountName === undefined) && !opts.urn) {
throw new Error("Missing required property 'serviceAccountName'");
}
resourceInputs["identityProvidersArn"] = args ? args.identityProvidersArn : undefined;
resourceInputs["issuerUrl"] = args ? args.issuerUrl : undefined;
resourceInputs["k8sProvider"] = args ? args.k8sProvider : undefined;
resourceInputs["namespace"] = args ? args.namespace : undefined;
resourceInputs["policies"] = args ? args.policies : undefined;
resourceInputs["serviceAccountName"] = args ? args.serviceAccountName : undefined;
resourceInputs["name"] = undefined /*out*/;
resourceInputs["role"] = undefined /*out*/;
resourceInputs["rolePolicyAttachments"] = undefined /*out*/;
resourceInputs["serviceAccount"] = undefined /*out*/;
}
else {
resourceInputs["name"] = undefined /*out*/;
resourceInputs["policies"] = undefined /*out*/;
resourceInputs["role"] = undefined /*out*/;
resourceInputs["rolePolicyAttachments"] = undefined /*out*/;
resourceInputs["serviceAccount"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Irsa.__pulumiType, name, resourceInputs, opts, true /*remote*/);
}
}
exports.Irsa = Irsa;
/** @internal */
Irsa.__pulumiType = 'cloud-toolkit-aws:kubernetes:Irsa';
//# sourceMappingURL=irsa.js.map