Class InvalidAttestationDocumentException

All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<InvalidAttestationDocumentException.Builder,InvalidAttestationDocumentException>

@Generated("software.amazon.awssdk:codegen") public final class InvalidAttestationDocumentException extends StsException implements 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:
  • Method Details

    • toBuilder

      Description copied from class: AwsServiceException
      Create a AwsServiceException.Builder initialized with the properties of this AwsServiceException.
      Specified by:
      toBuilder in interface ToCopyableBuilder<InvalidAttestationDocumentException.Builder,InvalidAttestationDocumentException>
      Overrides:
      toBuilder in class StsException
      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 to AssumeRole.

      • 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, reason will return InvalidAttestationDocumentReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from reasonAsString().

      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 to AssumeRole.

      • 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

      public String 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 to AssumeRole.

      • 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, reason will return InvalidAttestationDocumentReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from reasonAsString().

      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 to AssumeRole.

      • 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

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Overrides:
      sdkFields in class SdkServiceException
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo
      Returns:
      The mapping between the field name and its corresponding field.