VPCLattice / Client / delete_auth_policy

delete_auth_policy#

VPCLattice.Client.delete_auth_policy(**kwargs)#

Deletes the specified auth policy. If an auth is set to Amazon Web Services_IAM and the auth policy is deleted, all requests will be denied by default. If you are trying to remove the auth policy completely, you must set the auth_type to NONE. If auth is enabled on the resource, but no auth policy is set, all requests will be denied.

See also: AWS API Documentation

Request Syntax

response = client.delete_auth_policy(
    resourceIdentifier='string'
)
Parameters:

resourceIdentifier (string) –

[REQUIRED]

The ID or Amazon Resource Name (ARN) of the resource.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions

  • VPCLattice.Client.exceptions.ValidationException

  • VPCLattice.Client.exceptions.AccessDeniedException

  • VPCLattice.Client.exceptions.ThrottlingException

  • VPCLattice.Client.exceptions.ResourceNotFoundException

  • VPCLattice.Client.exceptions.InternalServerException