AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Container for the parameters to the PutDomainPermissionsPolicy operation. Sets a resource policy on a domain that specifies permissions to access it.
When you call PutDomainPermissionsPolicy
, the resource policy on the domain
is ignored when evaluting permissions. This ensures that the owner of a domain cannot
lock themselves out of the domain, which would prevent them from being able to update
the resource policy.
Namespace: Amazon.CodeArtifact.Model
Assembly: AWSSDK.CodeArtifact.dll
Version: 3.x.y.z
public class PutDomainPermissionsPolicyRequest : AmazonCodeArtifactRequest IAmazonWebServiceRequest
The PutDomainPermissionsPolicyRequest type exposes the following members
Name | Description | |
---|---|---|
PutDomainPermissionsPolicyRequest() |
Name | Type | Description | |
---|---|---|---|
Domain | System.String |
Gets and sets the property Domain. The name of the domain on which to set the resource policy. |
|
DomainOwner | System.String |
Gets and sets the property DomainOwner. The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. |
|
PolicyDocument | System.String |
Gets and sets the property PolicyDocument. A valid displayable JSON Aspen policy string to be set as the access control resource policy on the provided domain. |
|
PolicyRevision | System.String |
Gets and sets the property PolicyRevision. The current revision of the resource policy to be set. This revision is used for optimistic locking, which prevents others from overwriting your changes to the domain's resource policy. |
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5