Class CfnRegistryPolicy
A CloudFormation AWS::ECR::RegistryPolicy
.
Inherited Members
Namespace: Amazon.CDK.AWS.ECR
Assembly: Amazon.CDK.AWS.ECR.dll
Syntax (csharp)
public class CfnRegistryPolicy : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnRegistryPolicy
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
The AWS::ECR::RegistryPolicy
resource creates or updates the permissions policy for a private registry.
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 .
CloudformationResource: AWS::ECR::RegistryPolicy
Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-registrypolicy.html
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) | Create a new |
CfnRegistryPolicy(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnRegistryPolicy(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
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 | |
PolicyText | The JSON policy text for your registry. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnRegistryPolicy(Construct, String, ICfnRegistryPolicyProps)
Create a new AWS::ECR::RegistryPolicy
.
public CfnRegistryPolicy(Construct scope, string id, ICfnRegistryPolicyProps props)
Parameters
- scope Construct
- scope in which this resource is defined.
- id System.String
- scoped id of the resource.
- props ICfnRegistryPolicyProps
- resource properties.
CfnRegistryPolicy(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnRegistryPolicy(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnRegistryPolicy(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnRegistryPolicy(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
AttrRegistryId
The account ID of the private registry the policy is associated with.
public virtual string AttrRegistryId { get; }
Property Value
System.String
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
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
PolicyText
The JSON policy text for your registry.
public virtual object PolicyText { get; set; }
Property Value
System.Object
Remarks
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.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>