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.
This is the response object from the DeleteRepositoryPolicy operation.
Namespace: Amazon.ECR.Model
Assembly: AWSSDK.ECR.dll
Version: 3.x.y.z
public class DeleteRepositoryPolicyResponse : AmazonWebServiceResponse
The DeleteRepositoryPolicyResponse type exposes the following members
Name | Description | |
---|---|---|
DeleteRepositoryPolicyResponse() |
Name | Type | Description | |
---|---|---|---|
ContentLength | System.Int64 | Inherited from Amazon.Runtime.AmazonWebServiceResponse. | |
HttpStatusCode | System.Net.HttpStatusCode | Inherited from Amazon.Runtime.AmazonWebServiceResponse. | |
PolicyText | System.String |
Gets and sets the property PolicyText. The JSON repository policy that was deleted from the repository. |
|
RegistryId | System.String |
Gets and sets the property RegistryId. The registry ID associated with the request. |
|
RepositoryName | System.String |
Gets and sets the property RepositoryName. The repository name associated with the request. |
|
ResponseMetadata | Amazon.Runtime.ResponseMetadata | Inherited from Amazon.Runtime.AmazonWebServiceResponse. |
This example deletes the policy associated with the repository named ubuntu in the current account.
var client = new AmazonECRClient(); var response = client.DeleteRepositoryPolicy(new DeleteRepositoryPolicyRequest { RepositoryName = "ubuntu" }); string policyText = response.PolicyText; string registryId = response.RegistryId; string repositoryName = response.RepositoryName;
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer, 3.5