UNPKG

@pulumi/aws-native

Version:

The Pulumi AWS Cloud Control Provider enables you to build, deploy, and manage [any AWS resource that's supported by the AWS Cloud Control API](https://github.com/pulumi/pulumi-aws-native/blob/master/provider/cmd/pulumi-gen-aws-native/supported-types.txt)

111 lines 6.26 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.UserPoolClient = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Resource Type definition for AWS::Cognito::UserPoolClient */ class UserPoolClient extends pulumi.CustomResource { /** * Get an existing UserPoolClient 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 opts Optional settings to control the behavior of the CustomResource. */ static get(name, id, opts) { return new UserPoolClient(name, undefined, { ...opts, id: id }); } /** * Returns true if the given object is an instance of UserPoolClient. 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'] === UserPoolClient.__pulumiType; } /** * Create a UserPoolClient 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?.userPoolId === undefined && !opts.urn) { throw new Error("Missing required property 'userPoolId'"); } resourceInputs["accessTokenValidity"] = args?.accessTokenValidity; resourceInputs["allowedOAuthFlows"] = args?.allowedOAuthFlows; resourceInputs["allowedOAuthFlowsUserPoolClient"] = args?.allowedOAuthFlowsUserPoolClient; resourceInputs["allowedOAuthScopes"] = args?.allowedOAuthScopes; resourceInputs["analyticsConfiguration"] = args?.analyticsConfiguration; resourceInputs["authSessionValidity"] = args?.authSessionValidity; resourceInputs["callbackUrls"] = args?.callbackUrls; resourceInputs["clientName"] = args?.clientName; resourceInputs["defaultRedirectUri"] = args?.defaultRedirectUri; resourceInputs["enablePropagateAdditionalUserContextData"] = args?.enablePropagateAdditionalUserContextData; resourceInputs["enableTokenRevocation"] = args?.enableTokenRevocation; resourceInputs["explicitAuthFlows"] = args?.explicitAuthFlows; resourceInputs["generateSecret"] = args?.generateSecret; resourceInputs["idTokenValidity"] = args?.idTokenValidity; resourceInputs["logoutUrls"] = args?.logoutUrls; resourceInputs["preventUserExistenceErrors"] = args?.preventUserExistenceErrors; resourceInputs["readAttributes"] = args?.readAttributes; resourceInputs["refreshTokenRotation"] = args?.refreshTokenRotation; resourceInputs["refreshTokenValidity"] = args?.refreshTokenValidity; resourceInputs["supportedIdentityProviders"] = args?.supportedIdentityProviders; resourceInputs["tokenValidityUnits"] = args?.tokenValidityUnits; resourceInputs["userPoolId"] = args?.userPoolId; resourceInputs["writeAttributes"] = args?.writeAttributes; resourceInputs["clientId"] = undefined /*out*/; resourceInputs["clientSecret"] = undefined /*out*/; resourceInputs["name"] = undefined /*out*/; } else { resourceInputs["accessTokenValidity"] = undefined /*out*/; resourceInputs["allowedOAuthFlows"] = undefined /*out*/; resourceInputs["allowedOAuthFlowsUserPoolClient"] = undefined /*out*/; resourceInputs["allowedOAuthScopes"] = undefined /*out*/; resourceInputs["analyticsConfiguration"] = undefined /*out*/; resourceInputs["authSessionValidity"] = undefined /*out*/; resourceInputs["callbackUrls"] = undefined /*out*/; resourceInputs["clientId"] = undefined /*out*/; resourceInputs["clientName"] = undefined /*out*/; resourceInputs["clientSecret"] = undefined /*out*/; resourceInputs["defaultRedirectUri"] = undefined /*out*/; resourceInputs["enablePropagateAdditionalUserContextData"] = undefined /*out*/; resourceInputs["enableTokenRevocation"] = undefined /*out*/; resourceInputs["explicitAuthFlows"] = undefined /*out*/; resourceInputs["generateSecret"] = undefined /*out*/; resourceInputs["idTokenValidity"] = undefined /*out*/; resourceInputs["logoutUrls"] = undefined /*out*/; resourceInputs["name"] = undefined /*out*/; resourceInputs["preventUserExistenceErrors"] = undefined /*out*/; resourceInputs["readAttributes"] = undefined /*out*/; resourceInputs["refreshTokenRotation"] = undefined /*out*/; resourceInputs["refreshTokenValidity"] = undefined /*out*/; resourceInputs["supportedIdentityProviders"] = undefined /*out*/; resourceInputs["tokenValidityUnits"] = undefined /*out*/; resourceInputs["userPoolId"] = undefined /*out*/; resourceInputs["writeAttributes"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const replaceOnChanges = { replaceOnChanges: ["generateSecret", "userPoolId"] }; opts = pulumi.mergeOptions(opts, replaceOnChanges); super(UserPoolClient.__pulumiType, name, resourceInputs, opts); } } exports.UserPoolClient = UserPoolClient; /** @internal */ UserPoolClient.__pulumiType = 'aws-native:cognito:UserPoolClient'; //# sourceMappingURL=userPoolClient.js.map