Class InvalidAttestationDocumentException
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<InvalidAttestationDocumentException.Builder,InvalidAttestationDocumentException>
Amazon Web Services STS can't use the attestation document in the request. The reason member says why.
Correct the attestation document and then retry the request.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()reason()Why Amazon Web Services STS can't use the attestation document.Why Amazon Web Services STS can't use the attestation document.static Class<? extends InvalidAttestationDocumentException.Builder> Create aAwsServiceException.Builderinitialized with the properties of thisAwsServiceException.Methods inherited from class software.amazon.awssdk.awscore.exception.AwsServiceException
awsErrorDetails, getMessage, isClockSkewException, isThrottlingExceptionMethods inherited from class software.amazon.awssdk.core.exception.SdkServiceException
extendedRequestId, isRetryableException, requestId, statusCodeMethods inherited from class software.amazon.awssdk.core.exception.SdkException
create, numAttempts, rawMessage, retryableMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFieldsMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
toBuilder
Description copied from class:AwsServiceExceptionCreate aAwsServiceException.Builderinitialized with the properties of thisAwsServiceException.- Specified by:
toBuilderin interfaceToCopyableBuilder<InvalidAttestationDocumentException.Builder,InvalidAttestationDocumentException> - Overrides:
toBuilderin classStsException- Returns:
- A new builder initialized with this config's properties.
-
builder
-
serializableBuilderClass
public static Class<? extends InvalidAttestationDocumentException.Builder> serializableBuilderClass() -
reason
Why Amazon Web Services STS can't use the attestation document. The value is one of the following:
-
providerNotFound– Amazon Web Services STS has no attestation rules for the calling service, so the calling service can't attest workloads. -
cannotParse– The document is empty or isn't a single JSON object. -
tooLarge– The document is longer than 2,048 characters. This reason is also returned when the context assertion built from the document is too large to pass toAssumeRole. -
invalidKey– A key isn't in a valid format. -
unexpectedAttestation– The document contains a key that the calling service can't attest. -
invalidValue– The document has no keys, or a value is empty, isn't of the type that the key expects, or contains characters that aren't allowed. -
duplicateKey– Two keys are the same when you ignore case. This reason is also returned when the document repeats a key that the workload identity template uses. -
unresolvedTemplateVariable– The workload identity template uses an attested value that the document doesn't contain.
If the service returns an enum value that is not available in the current SDK version,
reasonwill returnInvalidAttestationDocumentReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromreasonAsString().- Returns:
- Why Amazon Web Services STS can't use the attestation document. The value is one of the following:
-
providerNotFound– Amazon Web Services STS has no attestation rules for the calling service, so the calling service can't attest workloads. -
cannotParse– The document is empty or isn't a single JSON object. -
tooLarge– The document is longer than 2,048 characters. This reason is also returned when the context assertion built from the document is too large to pass toAssumeRole. -
invalidKey– A key isn't in a valid format. -
unexpectedAttestation– The document contains a key that the calling service can't attest. -
invalidValue– The document has no keys, or a value is empty, isn't of the type that the key expects, or contains characters that aren't allowed. -
duplicateKey– Two keys are the same when you ignore case. This reason is also returned when the document repeats a key that the workload identity template uses. -
unresolvedTemplateVariable– The workload identity template uses an attested value that the document doesn't contain.
-
- See Also:
-
-
reasonAsString
Why Amazon Web Services STS can't use the attestation document. The value is one of the following:
-
providerNotFound– Amazon Web Services STS has no attestation rules for the calling service, so the calling service can't attest workloads. -
cannotParse– The document is empty or isn't a single JSON object. -
tooLarge– The document is longer than 2,048 characters. This reason is also returned when the context assertion built from the document is too large to pass toAssumeRole. -
invalidKey– A key isn't in a valid format. -
unexpectedAttestation– The document contains a key that the calling service can't attest. -
invalidValue– The document has no keys, or a value is empty, isn't of the type that the key expects, or contains characters that aren't allowed. -
duplicateKey– Two keys are the same when you ignore case. This reason is also returned when the document repeats a key that the workload identity template uses. -
unresolvedTemplateVariable– The workload identity template uses an attested value that the document doesn't contain.
If the service returns an enum value that is not available in the current SDK version,
reasonwill returnInvalidAttestationDocumentReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromreasonAsString().- Returns:
- Why Amazon Web Services STS can't use the attestation document. The value is one of the following:
-
providerNotFound– Amazon Web Services STS has no attestation rules for the calling service, so the calling service can't attest workloads. -
cannotParse– The document is empty or isn't a single JSON object. -
tooLarge– The document is longer than 2,048 characters. This reason is also returned when the context assertion built from the document is too large to pass toAssumeRole. -
invalidKey– A key isn't in a valid format. -
unexpectedAttestation– The document contains a key that the calling service can't attest. -
invalidValue– The document has no keys, or a value is empty, isn't of the type that the key expects, or contains characters that aren't allowed. -
duplicateKey– Two keys are the same when you ignore case. This reason is also returned when the document repeats a key that the workload identity template uses. -
unresolvedTemplateVariable– The workload identity template uses an attested value that the document doesn't contain.
-
- See Also:
-
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-