aws_codeseeder.services

Package Contents

Functions

boto3_client(service_name: str, session: Optional[Union[Callable[[], boto3.Session], boto3.Session]] = None) → boto3.client

boto3_resource(service_name: str, session: Optional[Union[Callable[[], boto3.Session], boto3.Session]] = None) → boto3.resource

get_region(session: Optional[Union[Callable[[], boto3.Session], boto3.Session]] = None) → str

get_sts_info(session: Optional[Union[Callable[[], boto3.Session], boto3.Session]] = None) → Tuple[str, str, str]

get_sts_info _summary_

set_boto3_session(session: boto3.Session) → None

try_it(f: Callable[Ellipsis, Any], ex: Any, base: float = 1.0, max_num_tries: int = 3, **kwargs: Any) → Any

Run function with decorrelated Jitter.

aws_codeseeder.services.boto3_client(service_name: str, session: Optional[Union[Callable[[], boto3.Session], boto3.Session]] = None) boto3.client
aws_codeseeder.services.boto3_resource(service_name: str, session: Optional[Union[Callable[[], boto3.Session], boto3.Session]] = None) boto3.resource
aws_codeseeder.services.get_region(session: Optional[Union[Callable[[], boto3.Session], boto3.Session]] = None) str
aws_codeseeder.services.get_sts_info(session: Optional[Union[Callable[[], boto3.Session], boto3.Session]] = None) Tuple[str, str, str]

get_sts_info _summary_

Parameters

session (Optional[Union[Callable[[], boto3.Session], boto3.Session]], optional) – _description_, by default None

Returns

returns the account id, role arn, and aws partition of the session provided

Return type

Tuple[str, str, str]

aws_codeseeder.services.set_boto3_session(session: boto3.Session) None
aws_codeseeder.services.try_it(f: Callable[Ellipsis, Any], ex: Any, base: float = 1.0, max_num_tries: int = 3, **kwargs: Any) Any

Run function with decorrelated Jitter.

Reference: https://aws.amazon.com/blogs/architecture/exponential-backoff-and-jitter/