UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

111 lines 4.61 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.AppAuthorization = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Resource for managing an AWS AppFabric App Authorization. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.appfabric.AppAuthorization("example", { * app: "TERRAFORMCLOUD", * appBundleArn: arn, * authType: "apiKey", * credential: { * apiKeyCredentials: [{ * apiKey: "exampleapikeytoken", * }], * }, * tenants: [{ * tenantDisplayName: "example", * tenantIdentifier: "example", * }], * }); * ``` */ class AppAuthorization extends pulumi.CustomResource { /** * Get an existing AppAuthorization resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name, id, state, opts) { return new AppAuthorization(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of AppAuthorization. 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'] === AppAuthorization.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["app"] = state?.app; resourceInputs["appBundleArn"] = state?.appBundleArn; resourceInputs["arn"] = state?.arn; resourceInputs["authType"] = state?.authType; resourceInputs["authUrl"] = state?.authUrl; resourceInputs["createdAt"] = state?.createdAt; resourceInputs["credential"] = state?.credential; resourceInputs["persona"] = state?.persona; resourceInputs["region"] = state?.region; resourceInputs["tags"] = state?.tags; resourceInputs["tagsAll"] = state?.tagsAll; resourceInputs["tenants"] = state?.tenants; resourceInputs["timeouts"] = state?.timeouts; resourceInputs["updatedAt"] = state?.updatedAt; } else { const args = argsOrState; if (args?.app === undefined && !opts.urn) { throw new Error("Missing required property 'app'"); } if (args?.appBundleArn === undefined && !opts.urn) { throw new Error("Missing required property 'appBundleArn'"); } if (args?.authType === undefined && !opts.urn) { throw new Error("Missing required property 'authType'"); } resourceInputs["app"] = args?.app; resourceInputs["appBundleArn"] = args?.appBundleArn; resourceInputs["authType"] = args?.authType; resourceInputs["credential"] = args?.credential; resourceInputs["region"] = args?.region; resourceInputs["tags"] = args?.tags; resourceInputs["tenants"] = args?.tenants; resourceInputs["timeouts"] = args?.timeouts; resourceInputs["arn"] = undefined /*out*/; resourceInputs["authUrl"] = undefined /*out*/; resourceInputs["createdAt"] = undefined /*out*/; resourceInputs["persona"] = undefined /*out*/; resourceInputs["tagsAll"] = undefined /*out*/; resourceInputs["updatedAt"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(AppAuthorization.__pulumiType, name, resourceInputs, opts); } } exports.AppAuthorization = AppAuthorization; /** @internal */ AppAuthorization.__pulumiType = 'aws:appfabric/appAuthorization:AppAuthorization'; //# sourceMappingURL=appAuthorization.js.map