Class CfnRegistryPolicy
The AWS::ECR::RegistryPolicy
resource creates or updates the permissions policy for a private registry.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.ECR
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnRegistryPolicy : CfnResource, IInspectable
Syntax (vb)
Public Class CfnRegistryPolicy Inherits CfnResource Implements IInspectable
Remarks
A private registry policy is used to specify permissions for another AWS account and is used when configuring cross-account replication. For more information, see Registry permissions in the Amazon Elastic Container Registry User Guide .
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-registrypolicy.html
CloudformationResource: AWS::ECR::RegistryPolicy
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ECR;
var policyText;
var cfnRegistryPolicy = new CfnRegistryPolicy(this, "MyCfnRegistryPolicy", new CfnRegistryPolicyProps {
PolicyText = policyText
});
Synopsis
Constructors
CfnRegistryPolicy(Construct, string, ICfnRegistryPolicyProps) | The |
Properties
AttrRegistryId | The account ID of the private registry the policy is associated with. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | The |
PolicyText | The JSON policy text for your registry. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<string, object>) | The |
Constructors
CfnRegistryPolicy(Construct, string, ICfnRegistryPolicyProps)
The AWS::ECR::RegistryPolicy
resource creates or updates the permissions policy for a private registry.
public CfnRegistryPolicy(Construct scope, string id, ICfnRegistryPolicyProps props)
Parameters
- scope Construct
Scope in which this resource is defined.
- id string
Construct identifier for this resource (unique in its scope).
- props ICfnRegistryPolicyProps
Resource properties.
Remarks
A private registry policy is used to specify permissions for another AWS account and is used when configuring cross-account replication. For more information, see Registry permissions in the Amazon Elastic Container Registry User Guide .
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-registrypolicy.html
CloudformationResource: AWS::ECR::RegistryPolicy
ExampleMetadata: fixture=_generated
Properties
AttrRegistryId
The account ID of the private registry the policy is associated with.
public virtual string AttrRegistryId { get; }
Property Value
Remarks
CloudformationAttribute: RegistryId
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
Remarks
A private registry policy is used to specify permissions for another AWS account and is used when configuring cross-account replication. For more information, see Registry permissions in the Amazon Elastic Container Registry User Guide .
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-registrypolicy.html
CloudformationResource: AWS::ECR::RegistryPolicy
ExampleMetadata: fixture=_generated
CfnProperties
The AWS::ECR::RegistryPolicy
resource creates or updates the permissions policy for a private registry.
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
Overrides
Remarks
A private registry policy is used to specify permissions for another AWS account and is used when configuring cross-account replication. For more information, see Registry permissions in the Amazon Elastic Container Registry User Guide .
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-registrypolicy.html
CloudformationResource: AWS::ECR::RegistryPolicy
ExampleMetadata: fixture=_generated
PolicyText
The JSON policy text for your registry.
public virtual object PolicyText { get; set; }
Property Value
Remarks
A private registry policy is used to specify permissions for another AWS account and is used when configuring cross-account replication. For more information, see Registry permissions in the Amazon Elastic Container Registry User Guide .
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-registrypolicy.html
CloudformationResource: AWS::ECR::RegistryPolicy
ExampleMetadata: fixture=_generated
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
Remarks
A private registry policy is used to specify permissions for another AWS account and is used when configuring cross-account replication. For more information, see Registry permissions in the Amazon Elastic Container Registry User Guide .
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-registrypolicy.html
CloudformationResource: AWS::ECR::RegistryPolicy
ExampleMetadata: fixture=_generated
RenderProperties(IDictionary<string, object>)
The AWS::ECR::RegistryPolicy
resource creates or updates the permissions policy for a private registry.
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props IDictionary<string, object>
Returns
Overrides
Remarks
A private registry policy is used to specify permissions for another AWS account and is used when configuring cross-account replication. For more information, see Registry permissions in the Amazon Elastic Container Registry User Guide .
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-registrypolicy.html
CloudformationResource: AWS::ECR::RegistryPolicy
ExampleMetadata: fixture=_generated