CognitoIdentityProvider / Client / exceptions / InvalidSmsRoleTrustRelationshipException
InvalidSmsRoleTrustRelationshipException#
- class CognitoIdentityProvider.Client.exceptions.InvalidSmsRoleTrustRelationshipException#
This exception is thrown when the trust relationship is not valid for the role provided for SMS configuration. This can happen if you don’t trust
cognito-idp.amazonaws.com
or the external ID provided in the role does not match what is provided in the SMS configuration for the user pool.Example
try: ... except client.exceptions.InvalidSmsRoleTrustRelationshipException as e: print(e.response)
- response#
The parsed error response. All exceptions have a top level
Error
key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.Syntax
{ 'message': 'string', 'Error': { 'Code': 'string', 'Message': 'string' } }
Structure
(dict) –
This exception is thrown when the trust relationship is not valid for the role provided for SMS configuration. This can happen if you don’t trust
cognito-idp.amazonaws.com
or the external ID provided in the role does not match what is provided in the SMS configuration for the user pool.message (string) –
The message returned when the role trust relationship for the SMS message is not valid.
Error (dict) – Normalized access to common exception attributes.
Code (string) – An identifier specifying the exception type.
Message (string) – A descriptive message explaining why the exception occured.