SageMaker / Client / get_endpoint_policy
get_endpoint_policy¶
- SageMaker.Client.get_endpoint_policy(**kwargs)¶
Returns the resource-based policy that is attached to an endpoint. If the endpoint doesn’t have a policy, you get a
ValidationException.See also: AWS API Documentation
Request Syntax
response = client.get_endpoint_policy( EndpointName='string' )
- Parameters:
EndpointName (string) –
[REQUIRED]
The name of the endpoint. The endpoint must be in your account and in the current Amazon Web Services Region.
- Return type:
dict
- Returns:
Response Syntax
{ 'EndpointName': 'string', 'EndpointArn': 'string', 'ResourcePolicy': 'string' }
Response Structure
(dict) –
EndpointName (string) –
The name of the endpoint.
EndpointArn (string) –
The Amazon Resource Name (ARN) of the endpoint.
ResourcePolicy (string) –
The endpoint policy, as a JSON policy document.
Exceptions
SageMaker.Client.exceptions.ResourceNotFound