Interface InvalidAttestationDocumentException.Builder

  • Method Details

    • 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.

      Parameters:
      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.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.

      Parameters:
      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.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • awsErrorDetails

      Description copied from interface: AwsServiceException.Builder
      Specifies the additional awsErrorDetails from the service response.
      Specified by:
      awsErrorDetails in interface AwsServiceException.Builder
      Specified by:
      awsErrorDetails in interface StsException.Builder
      Parameters:
      awsErrorDetails - Object containing additional details from the response.
      Returns:
      This object for method chaining.
    • message

      Description copied from interface: SdkException.Builder
      Specifies the details of this exception.
      Specified by:
      message in interface AwsServiceException.Builder
      Specified by:
      message in interface SdkException.Builder
      Specified by:
      message in interface SdkServiceException.Builder
      Specified by:
      message in interface StsException.Builder
      Parameters:
      message - The details of this exception.
      Returns:
      This method for object chaining
    • requestId

      Description copied from interface: SdkServiceException.Builder
      Specifies the requestId returned by the called service.
      Specified by:
      requestId in interface AwsServiceException.Builder
      Specified by:
      requestId in interface SdkServiceException.Builder
      Specified by:
      requestId in interface StsException.Builder
      Parameters:
      requestId - A string that identifies the request made to a service.
      Returns:
      This object for method chaining.
    • statusCode

      InvalidAttestationDocumentException.Builder statusCode(int statusCode)
      Description copied from interface: SdkServiceException.Builder
      Specifies the status code returned by the service.
      Specified by:
      statusCode in interface AwsServiceException.Builder
      Specified by:
      statusCode in interface SdkServiceException.Builder
      Specified by:
      statusCode in interface StsException.Builder
      Parameters:
      statusCode - an int containing the status code returned by the service.
      Returns:
      This method for object chaining.
    • cause

      Description copied from interface: SdkException.Builder
      Specifies the exception that caused this exception to occur.
      Specified by:
      cause in interface AwsServiceException.Builder
      Specified by:
      cause in interface SdkException.Builder
      Specified by:
      cause in interface SdkServiceException.Builder
      Specified by:
      cause in interface StsException.Builder
      Parameters:
      cause - The exception that caused this exception to occur.
      Returns:
      This object for method chaining.
    • writableStackTrace

      InvalidAttestationDocumentException.Builder writableStackTrace(Boolean writableStackTrace)
      Description copied from interface: SdkException.Builder
      Specifies whether the stack trace in this exception can be written.
      Specified by:
      writableStackTrace in interface SdkException.Builder
      Specified by:
      writableStackTrace in interface SdkServiceException.Builder
      Specified by:
      writableStackTrace in interface StsException.Builder
      Parameters:
      writableStackTrace - Whether the stack trace can be written.
      Returns:
      This method for object chaining
    • numAttempts

      Specified by:
      numAttempts in interface AwsServiceException.Builder
      Specified by:
      numAttempts in interface SdkException.Builder
      Specified by:
      numAttempts in interface SdkServiceException.Builder
      Specified by:
      numAttempts in interface StsException.Builder
      Parameters:
      numAttempts - The attempt count
      Returns:
      This method for object chaining