CodeArtifact / Client / get_domain_permissions_policy
get_domain_permissions_policy#
- CodeArtifact.Client.get_domain_permissions_policy(**kwargs)#
Returns the resource policy attached to the specified domain.
Note
The policy is a resource-based policy, not an identity-based policy. For more information, see `Identity-based policies and resource-based policies <https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_identity-vs-resource.html>`__in the IAM User Guide.
See also: AWS API Documentation
Request Syntax
response = client.get_domain_permissions_policy( domain='string', domainOwner='string' )
- Parameters:
domain (string) –
[REQUIRED]
The name of the domain to which the resource policy is attached.
domainOwner (string) – The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.
- Return type:
dict
- Returns:
Response Syntax
{ 'policy': { 'resourceArn': 'string', 'revision': 'string', 'document': 'string' } }
Response Structure
(dict) –
policy (dict) –
The returned resource policy.
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.InternalServerException
CodeArtifact.Client.exceptions.ResourceNotFoundException
CodeArtifact.Client.exceptions.ThrottlingException
CodeArtifact.Client.exceptions.ValidationException