AWS SDK Version 3 for .NET
API Reference

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.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.CodeArtifact.AmazonCodeArtifactRequest
      Amazon.CodeArtifact.Model.PutDomainPermissionsPolicyRequest

Namespace: Amazon.CodeArtifact.Model
Assembly: AWSSDK.CodeArtifact.dll
Version: 3.x.y.z

Syntax

C#
public class PutDomainPermissionsPolicyRequest : AmazonCodeArtifactRequest
         IAmazonWebServiceRequest

The PutDomainPermissionsPolicyRequest type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property Domain System.String

Gets and sets the property Domain.

The name of the domain on which to set the resource policy.

Public Property 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.

Public Property 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.

Public Property 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.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5