UNPKG

@pulumi/azuread

Version:

A Pulumi package for creating and managing Azure Active Directory (Azure AD) cloud resources.

91 lines 3.94 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.ApplicationIdentifierUri = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azuread from "@pulumi/azuread"; * * const example = new azuread.ApplicationRegistration("example", {displayName: "example"}); * const exampleApplicationIdentifierUri = new azuread.ApplicationIdentifierUri("example", { * applicationId: example.id, * identifierUri: "https://app.example.com", * }); * ``` * * > **Tip** For managing multiple identifier URIs for the same application, create another instance of this resource * * *Usage with azuread.Application resource* * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azuread from "@pulumi/azuread"; * * const example = new azuread.Application("example", {displayName: "example"}); * const exampleApplicationIdentifierUri = new azuread.ApplicationIdentifierUri("example", {applicationId: example.id}); * ``` * * ## Import * * Application Identifier URIs can be imported using the object ID of the application and the base64-encoded identifier URI, in the following format. * * ```sh * $ pulumi import azuread:index/applicationIdentifierUri:ApplicationIdentifierUri example /applications/00000000-0000-0000-0000-000000000000/identifierUris/aHR0cHM6Ly9leGFtcGxlLm5ldC8= * ``` */ class ApplicationIdentifierUri extends pulumi.CustomResource { /** * Get an existing ApplicationIdentifierUri 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 ApplicationIdentifierUri(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of ApplicationIdentifierUri. 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'] === ApplicationIdentifierUri.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["applicationId"] = state?.applicationId; resourceInputs["identifierUri"] = state?.identifierUri; } else { const args = argsOrState; if (args?.applicationId === undefined && !opts.urn) { throw new Error("Missing required property 'applicationId'"); } if (args?.identifierUri === undefined && !opts.urn) { throw new Error("Missing required property 'identifierUri'"); } resourceInputs["applicationId"] = args?.applicationId; resourceInputs["identifierUri"] = args?.identifierUri; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(ApplicationIdentifierUri.__pulumiType, name, resourceInputs, opts); } } exports.ApplicationIdentifierUri = ApplicationIdentifierUri; /** @internal */ ApplicationIdentifierUri.__pulumiType = 'azuread:index/applicationIdentifierUri:ApplicationIdentifierUri'; //# sourceMappingURL=applicationIdentifierUri.js.map