@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)
120 lines • 7.43 kB
JavaScript
;
// *** 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.UserPool = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Definition of AWS::Cognito::UserPool Resource Type
*/
class UserPool extends pulumi.CustomResource {
/**
* Get an existing UserPool 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 UserPool(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of UserPool. 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'] === UserPool.__pulumiType;
}
/**
* Create a UserPool 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) {
resourceInputs["accountRecoverySetting"] = args ? args.accountRecoverySetting : undefined;
resourceInputs["adminCreateUserConfig"] = args ? args.adminCreateUserConfig : undefined;
resourceInputs["aliasAttributes"] = args ? args.aliasAttributes : undefined;
resourceInputs["autoVerifiedAttributes"] = args ? args.autoVerifiedAttributes : undefined;
resourceInputs["deletionProtection"] = args ? args.deletionProtection : undefined;
resourceInputs["deviceConfiguration"] = args ? args.deviceConfiguration : undefined;
resourceInputs["emailAuthenticationMessage"] = args ? args.emailAuthenticationMessage : undefined;
resourceInputs["emailAuthenticationSubject"] = args ? args.emailAuthenticationSubject : undefined;
resourceInputs["emailConfiguration"] = args ? args.emailConfiguration : undefined;
resourceInputs["emailVerificationMessage"] = args ? args.emailVerificationMessage : undefined;
resourceInputs["emailVerificationSubject"] = args ? args.emailVerificationSubject : undefined;
resourceInputs["enabledMfas"] = args ? args.enabledMfas : undefined;
resourceInputs["lambdaConfig"] = args ? args.lambdaConfig : undefined;
resourceInputs["mfaConfiguration"] = args ? args.mfaConfiguration : undefined;
resourceInputs["policies"] = args ? args.policies : undefined;
resourceInputs["schema"] = args ? args.schema : undefined;
resourceInputs["smsAuthenticationMessage"] = args ? args.smsAuthenticationMessage : undefined;
resourceInputs["smsConfiguration"] = args ? args.smsConfiguration : undefined;
resourceInputs["smsVerificationMessage"] = args ? args.smsVerificationMessage : undefined;
resourceInputs["userAttributeUpdateSettings"] = args ? args.userAttributeUpdateSettings : undefined;
resourceInputs["userPoolAddOns"] = args ? args.userPoolAddOns : undefined;
resourceInputs["userPoolName"] = args ? args.userPoolName : undefined;
resourceInputs["userPoolTags"] = args ? args.userPoolTags : undefined;
resourceInputs["userPoolTier"] = args ? args.userPoolTier : undefined;
resourceInputs["usernameAttributes"] = args ? args.usernameAttributes : undefined;
resourceInputs["usernameConfiguration"] = args ? args.usernameConfiguration : undefined;
resourceInputs["verificationMessageTemplate"] = args ? args.verificationMessageTemplate : undefined;
resourceInputs["webAuthnRelyingPartyId"] = args ? args.webAuthnRelyingPartyId : undefined;
resourceInputs["webAuthnUserVerification"] = args ? args.webAuthnUserVerification : undefined;
resourceInputs["arn"] = undefined /*out*/;
resourceInputs["providerName"] = undefined /*out*/;
resourceInputs["providerUrl"] = undefined /*out*/;
resourceInputs["userPoolId"] = undefined /*out*/;
}
else {
resourceInputs["accountRecoverySetting"] = undefined /*out*/;
resourceInputs["adminCreateUserConfig"] = undefined /*out*/;
resourceInputs["aliasAttributes"] = undefined /*out*/;
resourceInputs["arn"] = undefined /*out*/;
resourceInputs["autoVerifiedAttributes"] = undefined /*out*/;
resourceInputs["deletionProtection"] = undefined /*out*/;
resourceInputs["deviceConfiguration"] = undefined /*out*/;
resourceInputs["emailAuthenticationMessage"] = undefined /*out*/;
resourceInputs["emailAuthenticationSubject"] = undefined /*out*/;
resourceInputs["emailConfiguration"] = undefined /*out*/;
resourceInputs["emailVerificationMessage"] = undefined /*out*/;
resourceInputs["emailVerificationSubject"] = undefined /*out*/;
resourceInputs["enabledMfas"] = undefined /*out*/;
resourceInputs["lambdaConfig"] = undefined /*out*/;
resourceInputs["mfaConfiguration"] = undefined /*out*/;
resourceInputs["policies"] = undefined /*out*/;
resourceInputs["providerName"] = undefined /*out*/;
resourceInputs["providerUrl"] = undefined /*out*/;
resourceInputs["schema"] = undefined /*out*/;
resourceInputs["smsAuthenticationMessage"] = undefined /*out*/;
resourceInputs["smsConfiguration"] = undefined /*out*/;
resourceInputs["smsVerificationMessage"] = undefined /*out*/;
resourceInputs["userAttributeUpdateSettings"] = undefined /*out*/;
resourceInputs["userPoolAddOns"] = undefined /*out*/;
resourceInputs["userPoolId"] = undefined /*out*/;
resourceInputs["userPoolName"] = undefined /*out*/;
resourceInputs["userPoolTags"] = undefined /*out*/;
resourceInputs["userPoolTier"] = undefined /*out*/;
resourceInputs["usernameAttributes"] = undefined /*out*/;
resourceInputs["usernameConfiguration"] = undefined /*out*/;
resourceInputs["verificationMessageTemplate"] = undefined /*out*/;
resourceInputs["webAuthnRelyingPartyId"] = undefined /*out*/;
resourceInputs["webAuthnUserVerification"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(UserPool.__pulumiType, name, resourceInputs, opts);
}
}
exports.UserPool = UserPool;
/** @internal */
UserPool.__pulumiType = 'aws-native:cognito:UserPool';
//# sourceMappingURL=userPool.js.map