SageMaker / Client / delete_endpoint_policy
delete_endpoint_policy¶
- SageMaker.Client.delete_endpoint_policy(**kwargs)¶
Deletes the resource-based policy that is attached to an endpoint. After you delete the policy, other accounts can no longer send requests to the endpoint through an inference router. The endpoint continues to serve requests from your account. If the endpoint doesn’t have a policy, the operation succeeds.
The change typically takes effect within 30 seconds, and can take up to 5 minutes. To revoke access for one account only, use PutEndpointPolicy to replace the policy with one that doesn’t include that account.
See also: AWS API Documentation
Request Syntax
response = client.delete_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
{}Response Structure
(dict) –
Exceptions
SageMaker.Client.exceptions.ResourceNotFound