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 PutResourcePolicy operation. Stores a resource policy for the ARN of a Project or ReportGroup object.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.CodeBuild.AmazonCodeBuildRequest
      Amazon.CodeBuild.Model.PutResourcePolicyRequest

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

Syntax

C#
public class PutResourcePolicyRequest : AmazonCodeBuildRequest
         IAmazonWebServiceRequest

The PutResourcePolicyRequest type exposes the following members

Constructors

NameDescription
Public Method PutResourcePolicyRequest()

Properties

NameTypeDescription
Public Property Policy System.String

Gets and sets the property Policy.

A JSON-formatted resource policy. For more information, see Sharing a Project and Sharing a Report Group in the CodeBuild User Guide.

Public Property ResourceArn System.String

Gets and sets the property ResourceArn.

The ARN of the Project or ReportGroup resource you want to associate with a 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