@@ -75,7 +75,8 @@ def __init__(self, boto_session=None, sagemaker_client=None, sagemaker_runtime_c
75
75
sagemaker_runtime_client (boto3.SageMakerRuntime.Client): Client which makes ``InvokeEndpoint``
76
76
calls to Amazon SageMaker (default: None). Predictors created using this ``Session`` use this client.
77
77
If not provided, one will be created using this instance's ``boto_session``.
78
- sts_endpoint_url (str): Endpoint URL for STS endpoint. If none provided, boto3 will default to use sts.amazonaws.com.
78
+ sts_endpoint_url (str): Endpoint URL for STS endpoint. If none provided, boto3 will default to
79
+ use sts.amazonaws.com.
79
80
"""
80
81
self ._default_bucket = None
81
82
self .sts_endpoint_url = sts_endpoint_url
@@ -181,7 +182,8 @@ def default_bucket(self):
181
182
return self ._default_bucket
182
183
183
184
if self .sts_endpoint_url :
184
- account = self .boto_session .client ('sts' , endpoint_url = self .sts_endpoint_url ).get_caller_identity ()['Account' ]
185
+ account = \
186
+ self .boto_session .client ('sts' , endpoint_url = self .sts_endpoint_url ).get_caller_identity ()['Account' ]
185
187
else :
186
188
account = self .boto_session .client ('sts' ).get_caller_identity ()['Account' ]
187
189
@@ -1097,7 +1099,8 @@ def get_caller_identity_arn(self):
1097
1099
(str): The ARN user or role
1098
1100
"""
1099
1101
if self .sts_endpoint_url :
1100
- assumed_role = self .boto_session .client ('sts' , endpoint_url = self .sts_endpoint_url ).get_caller_identity ()['Arn' ]
1102
+ assumed_role = \
1103
+ self .boto_session .client ('sts' , endpoint_url = self .sts_endpoint_url ).get_caller_identity ()['Arn' ]
1101
1104
else :
1102
1105
assumed_role = self .boto_session .client ('sts' ).get_caller_identity ()['Arn' ]
1103
1106
0 commit comments