UNPKG

@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.

74 lines 4.01 kB
"use strict"; // *** 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.IamAuthenticator = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * IamAuthenticator is a component that integrates the AWS IAM service with the Kubernetes authentication system. He receives a list of AWS IAM users and roles to enable their authentication to the cluster. */ class IamAuthenticator extends pulumi.ComponentResource { /** * Returns true if the given object is an instance of IamAuthenticator. 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'] === IamAuthenticator.__pulumiType; } /** * Create a IamAuthenticator 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.clusterArn === undefined) && !opts.urn) { throw new Error("Missing required property 'clusterArn'"); } if ((!args || args.kubeconfig === undefined) && !opts.urn) { throw new Error("Missing required property 'kubeconfig'"); } resourceInputs["accounts"] = args ? args.accounts : undefined; resourceInputs["clusterAdmins"] = args ? args.clusterAdmins : undefined; resourceInputs["clusterArn"] = args ? args.clusterArn : undefined; resourceInputs["kubeconfig"] = args ? args.kubeconfig : undefined; resourceInputs["nodeGroupRoles"] = args ? args.nodeGroupRoles : undefined; resourceInputs["roles"] = args ? args.roles : undefined; resourceInputs["users"] = args ? args.users : undefined; resourceInputs["clusterAdminGroup"] = undefined /*out*/; resourceInputs["clusterAdminGroupPolicy"] = undefined /*out*/; resourceInputs["clusterAdminRole"] = undefined /*out*/; resourceInputs["clusterAdminRolePolicy"] = undefined /*out*/; resourceInputs["clusterAdminUserGroupMemberships"] = undefined /*out*/; resourceInputs["clusterUserPolicy"] = undefined /*out*/; resourceInputs["clusterUserPolicyAttachment"] = undefined /*out*/; resourceInputs["configMap"] = undefined /*out*/; resourceInputs["provider"] = undefined /*out*/; } else { resourceInputs["clusterAdminGroup"] = undefined /*out*/; resourceInputs["clusterAdminGroupPolicy"] = undefined /*out*/; resourceInputs["clusterAdminRole"] = undefined /*out*/; resourceInputs["clusterAdminRolePolicy"] = undefined /*out*/; resourceInputs["clusterAdminUserGroupMemberships"] = undefined /*out*/; resourceInputs["clusterUserPolicy"] = undefined /*out*/; resourceInputs["clusterUserPolicyAttachment"] = undefined /*out*/; resourceInputs["configMap"] = undefined /*out*/; resourceInputs["provider"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(IamAuthenticator.__pulumiType, name, resourceInputs, opts, true /*remote*/); } } exports.IamAuthenticator = IamAuthenticator; /** @internal */ IamAuthenticator.__pulumiType = 'cloud-toolkit-aws:kubernetes:IamAuthenticator'; //# sourceMappingURL=iamAuthenticator.js.map