delete_domain_permissions_policy

CodeArtifact.Client.delete_domain_permissions_policy(**kwargs)

Deletes the resource policy set on a domain.

See also: AWS API Documentation

Request Syntax

response = client.delete_domain_permissions_policy(
    domain='string',
    domainOwner='string',
    policyRevision='string'
)
Parameters
  • domain (string) --

    [REQUIRED]

    The name of the domain associated with the resource policy to be deleted.

  • domainOwner (string) -- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.
  • policyRevision (string) -- The current revision of the resource policy to be deleted. This revision is used for optimistic locking, which prevents others from overwriting your changes to the domain's resource policy.
Return type

dict

Returns

Response Syntax

{
    'policy': {
        'resourceArn': 'string',
        'revision': 'string',
        'document': 'string'
    }
}

Response Structure

  • (dict) --

    • policy (dict) --

      Information about the deleted resource policy after processing the request.

      • resourceArn (string) --

        The ARN of the resource associated with the resource policy

      • revision (string) --

        The current revision of the resource policy.

      • document (string) --

        The resource policy formatted in JSON.

Exceptions

  • CodeArtifact.Client.exceptions.AccessDeniedException
  • CodeArtifact.Client.exceptions.ConflictException
  • CodeArtifact.Client.exceptions.InternalServerException
  • CodeArtifact.Client.exceptions.ResourceNotFoundException
  • CodeArtifact.Client.exceptions.ThrottlingException
  • CodeArtifact.Client.exceptions.ValidationException