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 3.72 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.Project = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Project is a component that create the resources in the Cluster for a set of AWS IAM Users and Roles, managing the access with the integration with AWS IAM. */ class Project extends pulumi.ComponentResource { /** * Returns true if the given object is an instance of Project. 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'] === Project.__pulumiType; } /** * Create a Project 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.kubeconfig === undefined) && !opts.urn) { throw new Error("Missing required property 'kubeconfig'"); } 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["adminUserArns"] = args ? args.adminUserArns : undefined; resourceInputs["editUserArns"] = args ? args.editUserArns : undefined; resourceInputs["kubeconfig"] = args ? args.kubeconfig : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["namespace"] = args ? args.namespace : undefined; resourceInputs["resources"] = args ? args.resources : undefined; resourceInputs["viewUserArns"] = args ? args.viewUserArns : undefined; resourceInputs["adminRoleBinding"] = undefined /*out*/; resourceInputs["clusterRole"] = undefined /*out*/; resourceInputs["clusterRoleBinding"] = undefined /*out*/; resourceInputs["editRoleBinding"] = undefined /*out*/; resourceInputs["provider"] = undefined /*out*/; resourceInputs["resourceQuota"] = undefined /*out*/; resourceInputs["viewRoleBinding"] = undefined /*out*/; } else { resourceInputs["adminRoleBinding"] = undefined /*out*/; resourceInputs["clusterRole"] = undefined /*out*/; resourceInputs["clusterRoleBinding"] = undefined /*out*/; resourceInputs["editRoleBinding"] = undefined /*out*/; resourceInputs["namespace"] = undefined /*out*/; resourceInputs["provider"] = undefined /*out*/; resourceInputs["resourceQuota"] = undefined /*out*/; resourceInputs["viewRoleBinding"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Project.__pulumiType, name, resourceInputs, opts, true /*remote*/); } } exports.Project = Project; /** @internal */ Project.__pulumiType = 'cloud-toolkit-aws:kubernetes:Project'; //# sourceMappingURL=project.js.map