class_docstr: RetryPolicy for exception thrown by SageMaker Job.
  
  Attributes:
      exception_types (List[SageMakerJobExceptionTypeEnum]):
          The SageMaker exception to match for this policy. The SageMaker exceptions
          captured here are the exceptions thrown by synchronously
          creating the job. For instance the resource limit exception.
      failure_reason_types (List[SageMakerJobExceptionTypeEnum]): the SageMaker
          failure reason types to match for this policy. The failure reason type
          is presented in FailureReason field of the Describe response, it indicates
          the runtime failure reason for a job.
      backoff_rate (float): The multiplier by which the retry interval increases
          during each attempt (default: 2.0)
      interval_seconds (int): An integer that represents the number of seconds before the
          first retry attempt (default: 1)
      max_attempts (int): A positive integer that represents the maximum
          number of retry attempts. (default: None)
      expire_after_mins (int): A positive integer that represents the maximum minute
          to expire any further retry attempt (default: None)
class_docstr_tok: ["RetryPolicy","for","exception","thrown","by","SageMaker","Job",".","Attributes",":","exception_types","(","List","[","SageMakerJobExceptionTypeEnum","]",")",":","The","SageMaker","exception","to","match","for","this","policy",".","The","SageMaker","exceptions","captured","here","are","the","exceptions","thrown","by","synchronously","creating","the","job",".","For","instance","the","resource","limit","exception",".","failure_reason_types","(","List","[","SageMakerJobExceptionTypeEnum","]",")",":","the","SageMaker","failure","reason","types","to","match","for","this","policy",".","The","failure","reason","type","is","presented","in","FailureReason","field","of","the","Describe","response",",","it","indicates","the","runtime","failure","reason","for","a","job",".","backoff_rate","(","float",")",":","The","multiplier","by","which","the","retry","interval","increases","during","each","attempt","(","default",":","2.0",")","interval_seconds","(","int",")",":","An","integer","that","represents","the","number","of","seconds","before","the","first","retry","attempt","(","default",":","1",")","max_attempts","(","int",")",":","A","positive","integer","that","represents","the","maximum","number","of","retry","attempts",".","(","default",":","None",")","expire_after_mins","(","int",")",":","A","positive","integer","that","represents","the","maximum","minute","to","expire","any","further","retry","attempt","(","default",":","None",")"]
docstr: Gets the request structure for retry policy.
docstr_tok: ["Gets","the","request","structure","for","retry","policy","."]
code: def to_request(self) -> RequestType:
      """Gets the request structure for retry policy."""
      request = super().to_request()
      request["ExceptionType"] = [
          e.value for e in self.exception_type_list
      ]
      return request
  
imports: from __future__ import absolute_import
  from enum import Enum
  from typing import List
  import attr
  from sagemaker.workflow.entities import Entity, DefaultEnumMeta, RequestType
label_desc: Use image node_id 2 for calling the SageMakerJobStepRetryPolicy obj's underlying member method code with example usage: obj.to_request() and returns: request