Chilkat Examples

ChilkatHOME.NET Core C#Android™AutoItCC#C++Chilkat2-PythonCkPythonClassic ASPDataFlexDelphi ActiveXDelphi DLLGoJavaLianjaMono C#Node.jsObjective-CPHP ActiveXPHP ExtensionPerlPowerBuilderPowerShellPureBasicRubySQL ServerSwift 2Swift 3,4,5...TclUnicode CUnicode C++VB.NETVBScriptVisual Basic 6.0Visual FoxProXojo Plugin

SQL Server Web API Examples

Primary Categories

ABN AMRO
AWS Secrets Manager
AWS Security Token Service
AWS Translate
Activix CRM
Adyen
Alibaba Cloud OSS
Amazon Cognito
Amazon DynamoDB
Amazon MWS
Amazon Pay
Amazon Rekognition
Amazon SP-API
Amazon Voice ID
Aruba Fatturazione
Azure Maps
Azure Monitor
Azure OAuth2
Azure Storage Accounts
Backblaze S3
Banco Inter
Belgian eHealth Platform
Bitfinex v2 REST
Bluzone
BrickLink
Bunny CDN
CallRail
CardConnect
Cerved
ClickBank
Clickatell
Cloudfare
Constant Contact
DocuSign
Duo Auth MFA
ETrade
Ecwid
Egypt ITIDA
Egypt eReceipt
Etsy
Facebook
Faire
Frame.io
GeoOp
GetHarvest
Global Payments
Google People
Google Search Console
Google Translate
Google Vision
Hungary NAV Invoicing
IBM Text to Speech
Ibanity
IntakeQ
Jira
Lightspeed
MYOB
Magento
Mailgun

Mastercard
MedTunnel
MercadoLibre
MessageMedia
Microsoft Calendar
Microsoft Group
Microsoft Tasks and Plans
Microsoft Teams
Moody's
Okta OAuth/OIDC
OneLogin OIDC
OneNote
OpenAI ChatGPT
PRODA
PayPal
Paynow.pl
Peoplevox
Populi
QuickBooks
Rabobank
Refinitiv
Royal Mail OBA
SCiS Schools Catalogue
SII Chile
SMSAPI
SOAP finkok.com
SendGrid
Shippo
Shopify
Shopware
Shopware 6
SimpleTexting
Square
Stripe
SugarCRM
TicketBAI
Trello
Twilio
Twitter API v2
Twitter v1
UPS
UniPin
VoiceBase
Vonage
WaTrend
Walmart v3
Wasabi
WhatsApp
WiX
WooCommerce
WordPress
Xero
Yahoo Mail
Yapily
Yousign
ZATCA
Zendesk
Zoom
_Miscellaneous_
eBay
effectconnect
hacienda.go.cr

 

 

 

(SQL Server) Amazon Cognito - Describe User Pool

See more Amazon Cognito Examples

Returns the configuration information and metadata of the specified user pool.

For more information, see https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPool.html

Chilkat ActiveX Downloads

ActiveX for 32-bit and 64-bit Windows

// Important: See this note about string length limitations for strings returned by sp_OAMethod calls.
//
CREATE PROCEDURE ChilkatSample
AS
BEGIN
    DECLARE @hr int
    DECLARE @iTmp0 int
    DECLARE @sTmp0 nvarchar(4000)
    -- This example requires the Chilkat API to have been previously unlocked.
    -- See Global Unlock Sample for sample code.

    DECLARE @rest int
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.Rest', @rest OUT
    IF @hr <> 0
    BEGIN
        PRINT 'Failed to create ActiveX component'
        RETURN
    END

    DECLARE @success int

    DECLARE @authAws int
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.AuthAws', @authAws OUT

    EXEC sp_OASetProperty @authAws, 'AccessKey', 'AWS_ACCESS_KEY'
    EXEC sp_OASetProperty @authAws, 'SecretKey', 'AWS_SECRET_KEY'
    -- Don't forget to change the region to your particular region. (Also make the same change in the call to Connect below.)
    EXEC sp_OASetProperty @authAws, 'Region', 'us-west-2'
    EXEC sp_OASetProperty @authAws, 'ServiceName', 'cognito-idp'
    -- SetAuthAws causes Chilkat to automatically add the following headers: Authorization, X-Amz-Date
    EXEC sp_OAMethod @rest, 'SetAuthAws', @success OUT, @authAws

    -- URL: https://cognito-idp.us-west-2.amazonaws.com/
    DECLARE @bTls int
    SELECT @bTls = 1
    DECLARE @port int
    SELECT @port = 443
    DECLARE @bAutoReconnect int
    SELECT @bAutoReconnect = 1
    -- Use the same region as specified above.
    EXEC sp_OAMethod @rest, 'Connect', @success OUT, 'cognito-idp.us-west-2.amazonaws.com', @port, @bTls, @bAutoReconnect
    IF @success <> 1
      BEGIN

        EXEC sp_OAGetProperty @rest, 'ConnectFailReason', @iTmp0 OUT
        PRINT 'ConnectFailReason: ' + @iTmp0
        EXEC sp_OAGetProperty @rest, 'LastErrorText', @sTmp0 OUT
        PRINT @sTmp0
        EXEC @hr = sp_OADestroy @rest
        EXEC @hr = sp_OADestroy @authAws
        RETURN
      END

    -- Note: The above code does not need to be repeatedly called for each REST request.
    -- The rest object can be setup once, and then many requests can be sent.  Chilkat will automatically
    -- reconnect within a FullRequest* method as needed.  It is only the very first connection that is explicitly
    -- made via the Connect method.

    DECLARE @json int
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.JsonObject', @json OUT

    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'UserPoolId', 'us-west-2_yt6WzO3SA'

    EXEC sp_OAMethod @rest, 'AddHeader', @success OUT, 'Content-Type', 'application/x-amz-json-1.0'
    EXEC sp_OAMethod @rest, 'AddHeader', @success OUT, 'X-Amz-Target', 'AWSCognitoIdentityProviderService.DescribeUserPool'
    EXEC sp_OAMethod @rest, 'AddHeader', @success OUT, 'Accept-Encoding', 'identity'

    DECLARE @sbRequestBody int
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.StringBuilder', @sbRequestBody OUT

    EXEC sp_OAMethod @json, 'EmitSb', @success OUT, @sbRequestBody
    DECLARE @sbResponseBody int
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.StringBuilder', @sbResponseBody OUT

    EXEC sp_OAMethod @rest, 'FullRequestSb', @success OUT, 'POST', '/', @sbRequestBody, @sbResponseBody
    IF @success <> 1
      BEGIN
        EXEC sp_OAGetProperty @rest, 'LastErrorText', @sTmp0 OUT
        PRINT @sTmp0
        EXEC @hr = sp_OADestroy @rest
        EXEC @hr = sp_OADestroy @authAws
        EXEC @hr = sp_OADestroy @json
        EXEC @hr = sp_OADestroy @sbRequestBody
        EXEC @hr = sp_OADestroy @sbResponseBody
        RETURN
      END

    DECLARE @respStatusCode int
    EXEC sp_OAGetProperty @rest, 'ResponseStatusCode', @respStatusCode OUT

    PRINT 'response status code = ' + @respStatusCode
    IF @respStatusCode <> 200
      BEGIN

        PRINT 'Response Status Code = ' + @respStatusCode

        PRINT 'Response Header:'
        EXEC sp_OAGetProperty @rest, 'ResponseHeader', @sTmp0 OUT
        PRINT @sTmp0

        PRINT 'Response Body:'
        EXEC sp_OAMethod @sbResponseBody, 'GetAsString', @sTmp0 OUT
        PRINT @sTmp0
        EXEC @hr = sp_OADestroy @rest
        EXEC @hr = sp_OADestroy @authAws
        EXEC @hr = sp_OADestroy @json
        EXEC @hr = sp_OADestroy @sbRequestBody
        EXEC @hr = sp_OADestroy @sbResponseBody
        RETURN
      END

    DECLARE @jsonResponse int
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.JsonObject', @jsonResponse OUT

    EXEC sp_OAMethod @jsonResponse, 'LoadSb', @success OUT, @sbResponseBody

    EXEC sp_OASetProperty @jsonResponse, 'EmitCompact', 0
    EXEC sp_OAMethod @jsonResponse, 'Emit', @sTmp0 OUT
    PRINT @sTmp0

    -- Sample JSON response:
    -- (Sample code for parsing the JSON response is shown below)

    -- Use this online tool to generate parsing code from sample JSON: 
    -- Generate Parsing Code from JSON

    -- {
    --   "UserPool": {
    --     "AccountRecoverySetting": {
    --       "RecoveryMechanisms": [
    --         {
    --           "Name": "verified_phone_number",
    --           "Priority": 1
    --         },
    --         {
    --           "Name": "verified_email",
    --           "Priority": 2
    --         }
    --       ]
    --     },
    --     "AdminCreateUserConfig": {
    --       "AllowAdminCreateUserOnly": false,
    --       "InviteMessageTemplate": {
    --         "EmailMessage": "Your username is {username} and temporary password is {####}. ",
    --         "EmailSubject": "Your temporary password",
    --         "SMSMessage": "Your username is {username} and temporary password is {####}. "
    --       },
    --       "UnusedAccountValidityDays": 7
    --     },
    --     "Arn": "arn:aws:cognito-idp:us-west-2:954491834127:userpool/us-west-2_yt6WzO3SA",
    --     "AutoVerifiedAttributes": [
    --       "email",
    --       "phone_number"
    --     ],
    --     "CreationDate": 1.636388909817E9,
    --     "EmailConfiguration": {
    --       "EmailSendingAccount": "DEVELOPER",
    --       "From": "admin@chilkatsoft.com",
    --       "ReplyToEmailAddress": "admin@chilkatsoft.com",
    --       "SourceArn": "arn:aws:ses:us-west-2:954491834127:identity/admin@chilkatsoft.com"
    --     },
    --     "EmailVerificationMessage": "Your verification code is {####}. ",
    --     "EmailVerificationSubject": "Your verification code",
    --     "EstimatedNumberOfUsers": 0,
    --     "Id": "us-west-2_yt6WzO3SA",
    --     "LambdaConfig": {},
    --     "LastModifiedDate": 1.636388910377E9,
    --     "MfaConfiguration": "ON",
    --     "Name": "chilkat",
    --     "Policies": {
    --       "PasswordPolicy": {
    --         "MinimumLength": 8,
    --         "RequireLowercase": true,
    --         "RequireNumbers": true,
    --         "RequireSymbols": true,
    --         "RequireUppercase": true,
    --         "TemporaryPasswordValidityDays": 7
    --       }
    --     },
    --     "SchemaAttributes": [
    --       {
    --         "AttributeDataType": "String",
    --         "DeveloperOnlyAttribute": false,
    --         "Mutable": false,
    --         "Name": "sub",
    --         "Required": true,
    --         "StringAttributeConstraints": {
    --           "MaxLength": "2048",
    --           "MinLength": "1"
    --         }
    --       },
    --       {
    --         "AttributeDataType": "String",
    --         "DeveloperOnlyAttribute": false,
    --         "Mutable": true,
    --         "Name": "name",
    --         "Required": false,
    --         "StringAttributeConstraints": {
    --           "MaxLength": "2048",
    --           "MinLength": "0"
    --         }
    --       },
    --       {
    --         "AttributeDataType": "String",
    --         "DeveloperOnlyAttribute": false,
    --         "Mutable": true,
    --         "Name": "given_name",
    --         "Required": false,
    --         "StringAttributeConstraints": {
    --           "MaxLength": "2048",
    --           "MinLength": "0"
    --         }
    --       },
    --       {
    --         "AttributeDataType": "String",
    --         "DeveloperOnlyAttribute": false,
    --         "Mutable": true,
    --         "Name": "family_name",
    --         "Required": false,
    --         "StringAttributeConstraints": {
    --           "MaxLength": "2048",
    --           "MinLength": "0"
    --         }
    --       },
    --       {
    --         "AttributeDataType": "String",
    --         "DeveloperOnlyAttribute": false,
    --         "Mutable": true,
    --         "Name": "middle_name",
    --         "Required": false,
    --         "StringAttributeConstraints": {
    --           "MaxLength": "2048",
    --           "MinLength": "0"
    --         }
    --       },
    --       {
    --         "AttributeDataType": "String",
    --         "DeveloperOnlyAttribute": false,
    --         "Mutable": true,
    --         "Name": "nickname",
    --         "Required": false,
    --         "StringAttributeConstraints": {
    --           "MaxLength": "2048",
    --           "MinLength": "0"
    --         }
    --       },
    --       {
    --         "AttributeDataType": "String",
    --         "DeveloperOnlyAttribute": false,
    --         "Mutable": true,
    --         "Name": "preferred_username",
    --         "Required": false,
    --         "StringAttributeConstraints": {
    --           "MaxLength": "2048",
    --           "MinLength": "0"
    --         }
    --       },
    --       {
    --         "AttributeDataType": "String",
    --         "DeveloperOnlyAttribute": false,
    --         "Mutable": true,
    --         "Name": "profile",
    --         "Required": false,
    --         "StringAttributeConstraints": {
    --           "MaxLength": "2048",
    --           "MinLength": "0"
    --         }
    --       },
    --       {
    --         "AttributeDataType": "String",
    --         "DeveloperOnlyAttribute": false,
    --         "Mutable": true,
    --         "Name": "picture",
    --         "Required": false,
    --         "StringAttributeConstraints": {
    --           "MaxLength": "2048",
    --           "MinLength": "0"
    --         }
    --       },
    --       {
    --         "AttributeDataType": "String",
    --         "DeveloperOnlyAttribute": false,
    --         "Mutable": true,
    --         "Name": "website",
    --         "Required": false,
    --         "StringAttributeConstraints": {
    --           "MaxLength": "2048",
    --           "MinLength": "0"
    --         }
    --       },
    --       {
    --         "AttributeDataType": "String",
    --         "DeveloperOnlyAttribute": false,
    --         "Mutable": true,
    --         "Name": "email",
    --         "Required": true,
    --         "StringAttributeConstraints": {
    --           "MaxLength": "2048",
    --           "MinLength": "0"
    --         }
    --       },
    --       {
    --         "AttributeDataType": "Boolean",
    --         "DeveloperOnlyAttribute": false,
    --         "Mutable": true,
    --         "Name": "email_verified",
    --         "Required": false
    --       },
    --       {
    --         "AttributeDataType": "String",
    --         "DeveloperOnlyAttribute": false,
    --         "Mutable": true,
    --         "Name": "gender",
    --         "Required": false,
    --         "StringAttributeConstraints": {
    --           "MaxLength": "2048",
    --           "MinLength": "0"
    --         }
    --       },
    --       {
    --         "AttributeDataType": "String",
    --         "DeveloperOnlyAttribute": false,
    --         "Mutable": true,
    --         "Name": "birthdate",
    --         "Required": false,
    --         "StringAttributeConstraints": {
    --           "MaxLength": "10",
    --           "MinLength": "10"
    --         }
    --       },
    --       {
    --         "AttributeDataType": "String",
    --         "DeveloperOnlyAttribute": false,
    --         "Mutable": true,
    --         "Name": "zoneinfo",
    --         "Required": false,
    --         "StringAttributeConstraints": {
    --           "MaxLength": "2048",
    --           "MinLength": "0"
    --         }
    --       },
    --       {
    --         "AttributeDataType": "String",
    --         "DeveloperOnlyAttribute": false,
    --         "Mutable": true,
    --         "Name": "locale",
    --         "Required": false,
    --         "StringAttributeConstraints": {
    --           "MaxLength": "2048",
    --           "MinLength": "0"
    --         }
    --       },
    --       {
    --         "AttributeDataType": "String",
    --         "DeveloperOnlyAttribute": false,
    --         "Mutable": true,
    --         "Name": "phone_number",
    --         "Required": false,
    --         "StringAttributeConstraints": {
    --           "MaxLength": "2048",
    --           "MinLength": "0"
    --         }
    --       },
    --       {
    --         "AttributeDataType": "Boolean",
    --         "DeveloperOnlyAttribute": false,
    --         "Mutable": true,
    --         "Name": "phone_number_verified",
    --         "Required": false
    --       },
    --       {
    --         "AttributeDataType": "String",
    --         "DeveloperOnlyAttribute": false,
    --         "Mutable": true,
    --         "Name": "address",
    --         "Required": false,
    --         "StringAttributeConstraints": {
    --           "MaxLength": "2048",
    --           "MinLength": "0"
    --         }
    --       },
    --       {
    --         "AttributeDataType": "Number",
    --         "DeveloperOnlyAttribute": false,
    --         "Mutable": true,
    --         "Name": "updated_at",
    --         "NumberAttributeConstraints": {
    --           "MinValue": "0"
    --         },
    --         "Required": false
    --       }
    --     ],
    --     "SmsAuthenticationMessage": "Your verification code is {####}. ",
    --     "SmsConfiguration": {
    --       "ExternalId": "94b17737-216b-4cf7-a29e-17e990e91300",
    --       "SnsCallerArn": "arn:aws:iam::954491834127:role/service-role/chilkat-SMS-Role"
    --     },
    --     "SmsVerificationMessage": "Your verification code is {####}. ",
    --     "UserPoolTags": {
    --       "sampleUserPoolTag": "test"
    --     },
    --     "UsernameConfiguration": {
    --       "CaseSensitive": false
    --     },
    --     "VerificationMessageTemplate": {
    --       "DefaultEmailOption": "CONFIRM_WITH_CODE",
    --       "EmailMessage": "Your verification code is {####}. ",
    --       "EmailSubject": "Your verification code",
    --       "SmsMessage": "Your verification code is {####}. "
    --     }
    --   }
    -- }

    DECLARE @Name nvarchar(4000)

    DECLARE @Priority int

    DECLARE @strVal nvarchar(4000)

    DECLARE @AttributeDataType nvarchar(4000)

    DECLARE @DeveloperOnlyAttribute int

    DECLARE @Mutable int

    DECLARE @Required int

    DECLARE @StringAttributeConstraintsMaxLength nvarchar(4000)

    DECLARE @StringAttributeConstraintsMinLength nvarchar(4000)

    DECLARE @NumberAttributeConstraintsMinValue nvarchar(4000)

    DECLARE @UserPoolAdminCreateUserConfigAllowAdminCreateUserOnly int
    EXEC sp_OAMethod @jsonResponse, 'BoolOf', @UserPoolAdminCreateUserConfigAllowAdminCreateUserOnly OUT, 'UserPool.AdminCreateUserConfig.AllowAdminCreateUserOnly'
    DECLARE @UserPoolAdminCreateUserConfigInviteMessageTemplateEmailMessage nvarchar(4000)
    EXEC sp_OAMethod @jsonResponse, 'StringOf', @UserPoolAdminCreateUserConfigInviteMessageTemplateEmailMessage OUT, 'UserPool.AdminCreateUserConfig.InviteMessageTemplate.EmailMessage'
    DECLARE @UserPoolAdminCreateUserConfigInviteMessageTemplateEmailSubject nvarchar(4000)
    EXEC sp_OAMethod @jsonResponse, 'StringOf', @UserPoolAdminCreateUserConfigInviteMessageTemplateEmailSubject OUT, 'UserPool.AdminCreateUserConfig.InviteMessageTemplate.EmailSubject'
    DECLARE @UserPoolAdminCreateUserConfigInviteMessageTemplateSMSMessage nvarchar(4000)
    EXEC sp_OAMethod @jsonResponse, 'StringOf', @UserPoolAdminCreateUserConfigInviteMessageTemplateSMSMessage OUT, 'UserPool.AdminCreateUserConfig.InviteMessageTemplate.SMSMessage'
    DECLARE @UserPoolAdminCreateUserConfigUnusedAccountValidityDays int
    EXEC sp_OAMethod @jsonResponse, 'IntOf', @UserPoolAdminCreateUserConfigUnusedAccountValidityDays OUT, 'UserPool.AdminCreateUserConfig.UnusedAccountValidityDays'
    DECLARE @UserPoolArn nvarchar(4000)
    EXEC sp_OAMethod @jsonResponse, 'StringOf', @UserPoolArn OUT, 'UserPool.Arn'
    DECLARE @UserPoolCreationDate nvarchar(4000)
    EXEC sp_OAMethod @jsonResponse, 'StringOf', @UserPoolCreationDate OUT, 'UserPool.CreationDate'
    DECLARE @UserPoolEmailConfigurationEmailSendingAccount nvarchar(4000)
    EXEC sp_OAMethod @jsonResponse, 'StringOf', @UserPoolEmailConfigurationEmailSendingAccount OUT, 'UserPool.EmailConfiguration.EmailSendingAccount'
    DECLARE @UserPoolEmailConfigurationFrom nvarchar(4000)
    EXEC sp_OAMethod @jsonResponse, 'StringOf', @UserPoolEmailConfigurationFrom OUT, 'UserPool.EmailConfiguration.From'
    DECLARE @UserPoolEmailConfigurationReplyToEmailAddress nvarchar(4000)
    EXEC sp_OAMethod @jsonResponse, 'StringOf', @UserPoolEmailConfigurationReplyToEmailAddress OUT, 'UserPool.EmailConfiguration.ReplyToEmailAddress'
    DECLARE @UserPoolEmailConfigurationSourceArn nvarchar(4000)
    EXEC sp_OAMethod @jsonResponse, 'StringOf', @UserPoolEmailConfigurationSourceArn OUT, 'UserPool.EmailConfiguration.SourceArn'
    DECLARE @UserPoolEmailVerificationMessage nvarchar(4000)
    EXEC sp_OAMethod @jsonResponse, 'StringOf', @UserPoolEmailVerificationMessage OUT, 'UserPool.EmailVerificationMessage'
    DECLARE @UserPoolEmailVerificationSubject nvarchar(4000)
    EXEC sp_OAMethod @jsonResponse, 'StringOf', @UserPoolEmailVerificationSubject OUT, 'UserPool.EmailVerificationSubject'
    DECLARE @UserPoolEstimatedNumberOfUsers int
    EXEC sp_OAMethod @jsonResponse, 'IntOf', @UserPoolEstimatedNumberOfUsers OUT, 'UserPool.EstimatedNumberOfUsers'
    DECLARE @UserPoolId nvarchar(4000)
    EXEC sp_OAMethod @jsonResponse, 'StringOf', @UserPoolId OUT, 'UserPool.Id'
    DECLARE @UserPoolLastModifiedDate nvarchar(4000)
    EXEC sp_OAMethod @jsonResponse, 'StringOf', @UserPoolLastModifiedDate OUT, 'UserPool.LastModifiedDate'
    DECLARE @UserPoolMfaConfiguration nvarchar(4000)
    EXEC sp_OAMethod @jsonResponse, 'StringOf', @UserPoolMfaConfiguration OUT, 'UserPool.MfaConfiguration'
    DECLARE @UserPoolName nvarchar(4000)
    EXEC sp_OAMethod @jsonResponse, 'StringOf', @UserPoolName OUT, 'UserPool.Name'
    DECLARE @UserPoolPoliciesPasswordPolicyMinimumLength int
    EXEC sp_OAMethod @jsonResponse, 'IntOf', @UserPoolPoliciesPasswordPolicyMinimumLength OUT, 'UserPool.Policies.PasswordPolicy.MinimumLength'
    DECLARE @UserPoolPoliciesPasswordPolicyRequireLowercase int
    EXEC sp_OAMethod @jsonResponse, 'BoolOf', @UserPoolPoliciesPasswordPolicyRequireLowercase OUT, 'UserPool.Policies.PasswordPolicy.RequireLowercase'
    DECLARE @UserPoolPoliciesPasswordPolicyRequireNumbers int
    EXEC sp_OAMethod @jsonResponse, 'BoolOf', @UserPoolPoliciesPasswordPolicyRequireNumbers OUT, 'UserPool.Policies.PasswordPolicy.RequireNumbers'
    DECLARE @UserPoolPoliciesPasswordPolicyRequireSymbols int
    EXEC sp_OAMethod @jsonResponse, 'BoolOf', @UserPoolPoliciesPasswordPolicyRequireSymbols OUT, 'UserPool.Policies.PasswordPolicy.RequireSymbols'
    DECLARE @UserPoolPoliciesPasswordPolicyRequireUppercase int
    EXEC sp_OAMethod @jsonResponse, 'BoolOf', @UserPoolPoliciesPasswordPolicyRequireUppercase OUT, 'UserPool.Policies.PasswordPolicy.RequireUppercase'
    DECLARE @UserPoolPoliciesPasswordPolicyTemporaryPasswordValidityDays int
    EXEC sp_OAMethod @jsonResponse, 'IntOf', @UserPoolPoliciesPasswordPolicyTemporaryPasswordValidityDays OUT, 'UserPool.Policies.PasswordPolicy.TemporaryPasswordValidityDays'
    DECLARE @UserPoolSmsAuthenticationMessage nvarchar(4000)
    EXEC sp_OAMethod @jsonResponse, 'StringOf', @UserPoolSmsAuthenticationMessage OUT, 'UserPool.SmsAuthenticationMessage'
    DECLARE @UserPoolSmsConfigurationExternalId nvarchar(4000)
    EXEC sp_OAMethod @jsonResponse, 'StringOf', @UserPoolSmsConfigurationExternalId OUT, 'UserPool.SmsConfiguration.ExternalId'
    DECLARE @UserPoolSmsConfigurationSnsCallerArn nvarchar(4000)
    EXEC sp_OAMethod @jsonResponse, 'StringOf', @UserPoolSmsConfigurationSnsCallerArn OUT, 'UserPool.SmsConfiguration.SnsCallerArn'
    DECLARE @UserPoolSmsVerificationMessage nvarchar(4000)
    EXEC sp_OAMethod @jsonResponse, 'StringOf', @UserPoolSmsVerificationMessage OUT, 'UserPool.SmsVerificationMessage'
    DECLARE @UserPoolUserPoolTagsSampleUserPoolTag nvarchar(4000)
    EXEC sp_OAMethod @jsonResponse, 'StringOf', @UserPoolUserPoolTagsSampleUserPoolTag OUT, 'UserPool.UserPoolTags.sampleUserPoolTag'
    DECLARE @UserPoolUsernameConfigurationCaseSensitive int
    EXEC sp_OAMethod @jsonResponse, 'BoolOf', @UserPoolUsernameConfigurationCaseSensitive OUT, 'UserPool.UsernameConfiguration.CaseSensitive'
    DECLARE @UserPoolVerificationMessageTemplateDefaultEmailOption nvarchar(4000)
    EXEC sp_OAMethod @jsonResponse, 'StringOf', @UserPoolVerificationMessageTemplateDefaultEmailOption OUT, 'UserPool.VerificationMessageTemplate.DefaultEmailOption'
    DECLARE @UserPoolVerificationMessageTemplateEmailMessage nvarchar(4000)
    EXEC sp_OAMethod @jsonResponse, 'StringOf', @UserPoolVerificationMessageTemplateEmailMessage OUT, 'UserPool.VerificationMessageTemplate.EmailMessage'
    DECLARE @UserPoolVerificationMessageTemplateEmailSubject nvarchar(4000)
    EXEC sp_OAMethod @jsonResponse, 'StringOf', @UserPoolVerificationMessageTemplateEmailSubject OUT, 'UserPool.VerificationMessageTemplate.EmailSubject'
    DECLARE @UserPoolVerificationMessageTemplateSmsMessage nvarchar(4000)
    EXEC sp_OAMethod @jsonResponse, 'StringOf', @UserPoolVerificationMessageTemplateSmsMessage OUT, 'UserPool.VerificationMessageTemplate.SmsMessage'

    DECLARE @i int
    SELECT @i = 0
    DECLARE @count_i int
    EXEC sp_OAMethod @jsonResponse, 'SizeOfArray', @count_i OUT, 'UserPool.AccountRecoverySetting.RecoveryMechanisms'
    WHILE @i < @count_i
      BEGIN
        EXEC sp_OASetProperty @jsonResponse, 'I', @i
        EXEC sp_OAMethod @jsonResponse, 'StringOf', @Name OUT, 'UserPool.AccountRecoverySetting.RecoveryMechanisms[i].Name'
        EXEC sp_OAMethod @jsonResponse, 'IntOf', @Priority OUT, 'UserPool.AccountRecoverySetting.RecoveryMechanisms[i].Priority'
        SELECT @i = @i + 1
      END

    SELECT @i = 0
    EXEC sp_OAMethod @jsonResponse, 'SizeOfArray', @count_i OUT, 'UserPool.AutoVerifiedAttributes'
    WHILE @i < @count_i
      BEGIN
        EXEC sp_OASetProperty @jsonResponse, 'I', @i
        EXEC sp_OAMethod @jsonResponse, 'StringOf', @strVal OUT, 'UserPool.AutoVerifiedAttributes[i]'
        SELECT @i = @i + 1
      END

    SELECT @i = 0
    EXEC sp_OAMethod @jsonResponse, 'SizeOfArray', @count_i OUT, 'UserPool.SchemaAttributes'
    WHILE @i < @count_i
      BEGIN
        EXEC sp_OASetProperty @jsonResponse, 'I', @i
        EXEC sp_OAMethod @jsonResponse, 'StringOf', @AttributeDataType OUT, 'UserPool.SchemaAttributes[i].AttributeDataType'
        EXEC sp_OAMethod @jsonResponse, 'BoolOf', @DeveloperOnlyAttribute OUT, 'UserPool.SchemaAttributes[i].DeveloperOnlyAttribute'
        EXEC sp_OAMethod @jsonResponse, 'BoolOf', @Mutable OUT, 'UserPool.SchemaAttributes[i].Mutable'
        EXEC sp_OAMethod @jsonResponse, 'StringOf', @Name OUT, 'UserPool.SchemaAttributes[i].Name'
        EXEC sp_OAMethod @jsonResponse, 'BoolOf', @Required OUT, 'UserPool.SchemaAttributes[i].Required'
        EXEC sp_OAMethod @jsonResponse, 'StringOf', @StringAttributeConstraintsMaxLength OUT, 'UserPool.SchemaAttributes[i].StringAttributeConstraints.MaxLength'
        EXEC sp_OAMethod @jsonResponse, 'StringOf', @StringAttributeConstraintsMinLength OUT, 'UserPool.SchemaAttributes[i].StringAttributeConstraints.MinLength'
        EXEC sp_OAMethod @jsonResponse, 'StringOf', @NumberAttributeConstraintsMinValue OUT, 'UserPool.SchemaAttributes[i].NumberAttributeConstraints.MinValue'
        SELECT @i = @i + 1
      END

    EXEC @hr = sp_OADestroy @rest
    EXEC @hr = sp_OADestroy @authAws
    EXEC @hr = sp_OADestroy @json
    EXEC @hr = sp_OADestroy @sbRequestBody
    EXEC @hr = sp_OADestroy @sbResponseBody
    EXEC @hr = sp_OADestroy @jsonResponse


END
GO

 

© 2000-2024 Chilkat Software, Inc. All Rights Reserved.