def get_boto_session ( region , aws_access_key_id = None , aws_secret_access_key = None , aws_session_token = None ) : return boto3 . session . Session ( region_name = region , aws_secret_access_key = aws_secret_access_key , aws_access_key_id = aws_access_key_id , aws_session_token = aws_session_token )
python boto3 hiding credentials
Get a boto3 session .
def get_boto_session(
        region,
        aws_access_key_id=None,
        aws_secret_access_key=None,
        aws_session_token=None
        ):
    """Get a boto3 session."""
    return boto3.session.Session(
        region_name=region,
        aws_secret_access_key=aws_secret_access_key,
        aws_access_key_id=aws_access_key_id,
        aws_session_token=aws_session_token
    )