UNPKG

@pulumi/yandex

Version:

A Pulumi package for creating and managing yandex cloud resources.

109 lines 5.61 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.OrganizationmanagerSamlFederation = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Allows management of a single SAML Federation within an existing Yandex.Cloud Organization. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as yandex from "@pulumi/yandex"; * * const federation = new yandex.OrganizationmanagerSamlFederation("federation", { * description: "My new SAML federation", * issuer: "my-issuer", * organizationId: "sdf4*********3fr", * ssoBinding: "POST", * ssoUrl: "https://my-sso.url", * }); * ``` * * ## Import * * A Yandex SAML Federation can be imported using the `id` of the resource, e.g. * * ```sh * $ pulumi import yandex:index/organizationmanagerSamlFederation:OrganizationmanagerSamlFederation federation "federation_id" * ``` */ class OrganizationmanagerSamlFederation extends pulumi.CustomResource { constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["autoCreateAccountOnLogin"] = state ? state.autoCreateAccountOnLogin : undefined; resourceInputs["caseInsensitiveNameIds"] = state ? state.caseInsensitiveNameIds : undefined; resourceInputs["cookieMaxAge"] = state ? state.cookieMaxAge : undefined; resourceInputs["createdAt"] = state ? state.createdAt : undefined; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["issuer"] = state ? state.issuer : undefined; resourceInputs["labels"] = state ? state.labels : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["organizationId"] = state ? state.organizationId : undefined; resourceInputs["securitySettings"] = state ? state.securitySettings : undefined; resourceInputs["ssoBinding"] = state ? state.ssoBinding : undefined; resourceInputs["ssoUrl"] = state ? state.ssoUrl : undefined; } else { const args = argsOrState; if ((!args || args.issuer === undefined) && !opts.urn) { throw new Error("Missing required property 'issuer'"); } if ((!args || args.organizationId === undefined) && !opts.urn) { throw new Error("Missing required property 'organizationId'"); } if ((!args || args.ssoBinding === undefined) && !opts.urn) { throw new Error("Missing required property 'ssoBinding'"); } if ((!args || args.ssoUrl === undefined) && !opts.urn) { throw new Error("Missing required property 'ssoUrl'"); } resourceInputs["autoCreateAccountOnLogin"] = args ? args.autoCreateAccountOnLogin : undefined; resourceInputs["caseInsensitiveNameIds"] = args ? args.caseInsensitiveNameIds : undefined; resourceInputs["cookieMaxAge"] = args ? args.cookieMaxAge : undefined; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["issuer"] = args ? args.issuer : undefined; resourceInputs["labels"] = args ? args.labels : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["organizationId"] = args ? args.organizationId : undefined; resourceInputs["securitySettings"] = args ? args.securitySettings : undefined; resourceInputs["ssoBinding"] = args ? args.ssoBinding : undefined; resourceInputs["ssoUrl"] = args ? args.ssoUrl : undefined; resourceInputs["createdAt"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(OrganizationmanagerSamlFederation.__pulumiType, name, resourceInputs, opts); } /** * Get an existing OrganizationmanagerSamlFederation 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 OrganizationmanagerSamlFederation(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of OrganizationmanagerSamlFederation. 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'] === OrganizationmanagerSamlFederation.__pulumiType; } } exports.OrganizationmanagerSamlFederation = OrganizationmanagerSamlFederation; /** @internal */ OrganizationmanagerSamlFederation.__pulumiType = 'yandex:index/organizationmanagerSamlFederation:OrganizationmanagerSamlFederation'; //# sourceMappingURL=organizationmanagerSamlFederation.js.map