STS / Client / exceptions / InvalidWorkloadIdentityConfigurationException
InvalidWorkloadIdentityConfigurationException¶
- class STS.Client.exceptions.InvalidWorkloadIdentityConfigurationException¶
Amazon Web Services STS can’t issue a workload identity context because the workload identity template or workload identity provider has a configuration that Amazon Web Services STS can’t use, or that doesn’t work with the values in the request. The
reasonmember says why. Ask the administrator of the resource to correct it, and then retry the request.Example
try: ... except client.exceptions.InvalidWorkloadIdentityConfigurationException as e: print(e.response)
- response¶
The parsed error response. All exceptions have a top level
Errorkey that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.Syntax
{ 'message': 'string', 'reason': 'unrenderableTemplate'|'identifierTooLarge'|'caseOnlyDuplicateTagKeys'|'unsupportedTagKeyCharacters', 'Error': { 'Code': 'string', 'Message': 'string' } }
Structure
(dict) –
Amazon Web Services STS can’t issue a workload identity context because the workload identity template or workload identity provider has a configuration that Amazon Web Services STS can’t use, or that doesn’t work with the values in the request. The
reasonmember says why. Ask the administrator of the resource to correct it, and then retry the request.message (string) –
reason (string) –
Why Amazon Web Services STS can’t issue the context. The value is one of the following:
unrenderableTemplate– Amazon Web Services STS can’t build a valid workload identifier. For example, the template uses a condition key that isn’t available for the request or that has more than one value, a value isn’t a valid path segment, or the domain of the workload identity provider isn’t a valid trust domain.identifierTooLarge– The workload identifier is longer than 256 characters.caseOnlyDuplicateTagKeys– The template has tag keys that differ only in case.unsupportedTagKeyCharacters– A tag key on the template contains a character that Amazon Web Services STS doesn’t support.
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.