class_docstr: RetryPolicy for a retryable step. The pipeline service will retry
  
      `sagemaker.workflow.retry.StepRetryExceptionTypeEnum.SERVICE_FAULT` and
      `sagemaker.workflow.retry.StepRetryExceptionTypeEnum.THROTTLING` regardless of
      pipeline step type by default. However, for step defined as retryable, you can override them
      by specifying a StepRetryPolicy.
  
  Attributes:
      exception_types (List[StepExceptionTypeEnum]): the exception types to match for this policy
      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","a","retryable","step",".","The","pipeline","service","will","retry","`","sagemaker.workflow.retry.StepRetryExceptionTypeEnum.SERVICE_FAULT","`","and","`","sagemaker.workflow.retry.StepRetryExceptionTypeEnum.THROTTLING","`","regardless","of","pipeline","step","type","by","default",".","However",",","for","step","defined","as","retryable",",","you","can","override","them","by","specifying","a","StepRetryPolicy",".","Attributes",":","exception_types","(","List","[","StepExceptionTypeEnum","]",")",":","the","exception","types","to","match","for","this","policy","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_types]
      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 StepRetryPolicy obj's underlying member method code with example usage: obj.to_request() and returns: request