Class InvalidWorkloadIdentityConfigurationException

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

@Generated("software.amazon.awssdk:codegen") public final class InvalidWorkloadIdentityConfigurationException extends StsException implements ToCopyableBuilder<InvalidWorkloadIdentityConfigurationException.Builder,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 reason member says why. Ask the administrator of the resource to correct it, 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<InvalidWorkloadIdentityConfigurationException.Builder,InvalidWorkloadIdentityConfigurationException>
      Overrides:
      toBuilder in class StsException
      Returns:
      A new builder initialized with this config's properties.
    • builder

    • serializableBuilderClass

      public static Class<? extends InvalidWorkloadIdentityConfigurationException.Builder> serializableBuilderClass()
    • reason

      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.

      If the service returns an enum value that is not available in the current SDK version, reason will return InvalidWorkloadIdentityConfigurationReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from reasonAsString().

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

      See Also:
    • reasonAsString

      public String reasonAsString()

      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.

      If the service returns an enum value that is not available in the current SDK version, reason will return InvalidWorkloadIdentityConfigurationReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from reasonAsString().

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

      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.