public class AdminConfirmSignUpRequest
extends com.amazonaws.AmazonWebServiceRequest
implements java.io.Serializable
Confirms user registration as an admin without using a confirmation code. Works on any user.
Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.
Learn more
| Constructor and Description |
|---|
AdminConfirmSignUpRequest() |
| Modifier and Type | Method and Description |
|---|---|
AdminConfirmSignUpRequest |
addClientMetadataEntry(java.lang.String key,
java.lang.String value)
A map of custom key-value pairs that you can provide as input for any
custom workflows that this action triggers.
|
AdminConfirmSignUpRequest |
clearClientMetadataEntries()
Removes all the entries added into ClientMetadata.
|
boolean |
equals(java.lang.Object obj) |
java.util.Map<java.lang.String,java.lang.String> |
getClientMetadata()
A map of custom key-value pairs that you can provide as input for any
custom workflows that this action triggers.
|
java.lang.String |
getUsername()
The user name for which you want to confirm user registration.
|
java.lang.String |
getUserPoolId()
The user pool ID for which you want to confirm user registration.
|
int |
hashCode() |
void |
setClientMetadata(java.util.Map<java.lang.String,java.lang.String> clientMetadata)
A map of custom key-value pairs that you can provide as input for any
custom workflows that this action triggers.
|
void |
setUsername(java.lang.String username)
The user name for which you want to confirm user registration.
|
void |
setUserPoolId(java.lang.String userPoolId)
The user pool ID for which you want to confirm user registration.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AdminConfirmSignUpRequest |
withClientMetadata(java.util.Map<java.lang.String,java.lang.String> clientMetadata)
A map of custom key-value pairs that you can provide as input for any
custom workflows that this action triggers.
|
AdminConfirmSignUpRequest |
withUsername(java.lang.String username)
The user name for which you want to confirm user registration.
|
AdminConfirmSignUpRequest |
withUserPoolId(java.lang.String userPoolId)
The user pool ID for which you want to confirm user registration.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic java.lang.String getUserPoolId()
The user pool ID for which you want to confirm user registration.
Constraints:
Length: 1 - 55
Pattern: [\w-]+_[0-9a-zA-Z]+
The user pool ID for which you want to confirm user registration.
public void setUserPoolId(java.lang.String userPoolId)
The user pool ID for which you want to confirm user registration.
Constraints:
Length: 1 - 55
Pattern: [\w-]+_[0-9a-zA-Z]+
userPoolId - The user pool ID for which you want to confirm user registration.
public AdminConfirmSignUpRequest withUserPoolId(java.lang.String userPoolId)
The user pool ID for which you want to confirm user registration.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 55
Pattern: [\w-]+_[0-9a-zA-Z]+
userPoolId - The user pool ID for which you want to confirm user registration.
public java.lang.String getUsername()
The user name for which you want to confirm user registration.
Constraints:
Length: 1 - 128
Pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}]+
The user name for which you want to confirm user registration.
public void setUsername(java.lang.String username)
The user name for which you want to confirm user registration.
Constraints:
Length: 1 - 128
Pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}]+
username - The user name for which you want to confirm user registration.
public AdminConfirmSignUpRequest withUsername(java.lang.String username)
The user name for which you want to confirm user registration.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}]+
username - The user name for which you want to confirm user registration.
public java.util.Map<java.lang.String,java.lang.String> getClientMetadata()
A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers.
If your user pool configuration includes triggers, the AdminConfirmSignUp
API action invokes the Lambda function that is specified for the post
confirmation trigger. When Amazon Cognito invokes this function, it
passes a JSON payload, which the function receives as input. In this
payload, the clientMetadata attribute provides the data that
you assigned to the ClientMetadata parameter in your AdminConfirmSignUp
request. In your function code in Lambda, you can process the
ClientMetadata value to enhance your workflow for your specific needs.
For more information, see Customizing user pool Workflows with Lambda Triggers in the Amazon Cognito Developer Guide.
When you use the ClientMetadata parameter, remember that Amazon Cognito won't do the following:
Store the ClientMetadata value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the ClientMetadata parameter serves no purpose.
Validate the ClientMetadata value.
Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive information.
A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers.
If your user pool configuration includes triggers, the
AdminConfirmSignUp API action invokes the Lambda function that is
specified for the post confirmation trigger. When Amazon
Cognito invokes this function, it passes a JSON payload, which
the function receives as input. In this payload, the
clientMetadata attribute provides the data that you
assigned to the ClientMetadata parameter in your
AdminConfirmSignUp request. In your function code in Lambda, you
can process the ClientMetadata value to enhance your workflow for
your specific needs.
For more information, see Customizing user pool Workflows with Lambda Triggers in the Amazon Cognito Developer Guide.
When you use the ClientMetadata parameter, remember that Amazon Cognito won't do the following:
Store the ClientMetadata value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the ClientMetadata parameter serves no purpose.
Validate the ClientMetadata value.
Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive information.
public void setClientMetadata(java.util.Map<java.lang.String,java.lang.String> clientMetadata)
A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers.
If your user pool configuration includes triggers, the AdminConfirmSignUp
API action invokes the Lambda function that is specified for the post
confirmation trigger. When Amazon Cognito invokes this function, it
passes a JSON payload, which the function receives as input. In this
payload, the clientMetadata attribute provides the data that
you assigned to the ClientMetadata parameter in your AdminConfirmSignUp
request. In your function code in Lambda, you can process the
ClientMetadata value to enhance your workflow for your specific needs.
For more information, see Customizing user pool Workflows with Lambda Triggers in the Amazon Cognito Developer Guide.
When you use the ClientMetadata parameter, remember that Amazon Cognito won't do the following:
Store the ClientMetadata value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the ClientMetadata parameter serves no purpose.
Validate the ClientMetadata value.
Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive information.
clientMetadata - A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers.
If your user pool configuration includes triggers, the
AdminConfirmSignUp API action invokes the Lambda function that
is specified for the post confirmation trigger. When
Amazon Cognito invokes this function, it passes a JSON
payload, which the function receives as input. In this
payload, the clientMetadata attribute provides
the data that you assigned to the ClientMetadata parameter in
your AdminConfirmSignUp request. In your function code in
Lambda, you can process the ClientMetadata value to enhance
your workflow for your specific needs.
For more information, see Customizing user pool Workflows with Lambda Triggers in the Amazon Cognito Developer Guide.
When you use the ClientMetadata parameter, remember that Amazon Cognito won't do the following:
Store the ClientMetadata value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the ClientMetadata parameter serves no purpose.
Validate the ClientMetadata value.
Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive information.
public AdminConfirmSignUpRequest withClientMetadata(java.util.Map<java.lang.String,java.lang.String> clientMetadata)
A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers.
If your user pool configuration includes triggers, the AdminConfirmSignUp
API action invokes the Lambda function that is specified for the post
confirmation trigger. When Amazon Cognito invokes this function, it
passes a JSON payload, which the function receives as input. In this
payload, the clientMetadata attribute provides the data that
you assigned to the ClientMetadata parameter in your AdminConfirmSignUp
request. In your function code in Lambda, you can process the
ClientMetadata value to enhance your workflow for your specific needs.
For more information, see Customizing user pool Workflows with Lambda Triggers in the Amazon Cognito Developer Guide.
When you use the ClientMetadata parameter, remember that Amazon Cognito won't do the following:
Store the ClientMetadata value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the ClientMetadata parameter serves no purpose.
Validate the ClientMetadata value.
Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive information.
Returns a reference to this object so that method calls can be chained together.
clientMetadata - A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers.
If your user pool configuration includes triggers, the
AdminConfirmSignUp API action invokes the Lambda function that
is specified for the post confirmation trigger. When
Amazon Cognito invokes this function, it passes a JSON
payload, which the function receives as input. In this
payload, the clientMetadata attribute provides
the data that you assigned to the ClientMetadata parameter in
your AdminConfirmSignUp request. In your function code in
Lambda, you can process the ClientMetadata value to enhance
your workflow for your specific needs.
For more information, see Customizing user pool Workflows with Lambda Triggers in the Amazon Cognito Developer Guide.
When you use the ClientMetadata parameter, remember that Amazon Cognito won't do the following:
Store the ClientMetadata value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the ClientMetadata parameter serves no purpose.
Validate the ClientMetadata value.
Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive information.
public AdminConfirmSignUpRequest addClientMetadataEntry(java.lang.String key, java.lang.String value)
A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers.
If your user pool configuration includes triggers, the AdminConfirmSignUp
API action invokes the Lambda function that is specified for the post
confirmation trigger. When Amazon Cognito invokes this function, it
passes a JSON payload, which the function receives as input. In this
payload, the clientMetadata attribute provides the data that
you assigned to the ClientMetadata parameter in your AdminConfirmSignUp
request. In your function code in Lambda, you can process the
ClientMetadata value to enhance your workflow for your specific needs.
For more information, see Customizing user pool Workflows with Lambda Triggers in the Amazon Cognito Developer Guide.
When you use the ClientMetadata parameter, remember that Amazon Cognito won't do the following:
Store the ClientMetadata value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the ClientMetadata parameter serves no purpose.
Validate the ClientMetadata value.
Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive information.
The method adds a new key-value pair into ClientMetadata parameter, and returns a reference to this object so that method calls can be chained together.
key - The key of the entry to be added into ClientMetadata.value - The corresponding value of the entry to be added into
ClientMetadata.public AdminConfirmSignUpRequest clearClientMetadataEntries()
Returns a reference to this object so that method calls can be chained together.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object