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 PutRepositoryPermissionsPolicy operation. Sets the resource policy on a repository that specifies permissions to access it.

When you call PutRepositoryPermissionsPolicy, the resource policy on the repository is ignored when evaluting permissions. This ensures that the owner of a repository cannot lock themselves out of the repository, 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.PutRepositoryPermissionsPolicyRequest

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

Syntax

C#
public class PutRepositoryPermissionsPolicyRequest : AmazonCodeArtifactRequest
         IAmazonWebServiceRequest

The PutRepositoryPermissionsPolicyRequest type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property Domain System.String

Gets and sets the property Domain.

The name of the domain containing the repository to set the resource policy on.

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 repository.

Public Property PolicyRevision System.String

Gets and sets the property PolicyRevision.

Sets the revision of the resource policy that specifies permissions to access the repository. This revision is used for optimistic locking, which prevents others from overwriting your changes to the repository's resource policy.

Public Property Repository System.String

Gets and sets the property Repository.

The name of the repository to set the resource policy on.

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