Class CfnPublicRepository
A CloudFormation AWS::ECR::PublicRepository
.
Inherited Members
Namespace: Amazon.CDK.AWS.ECR
Assembly: Amazon.CDK.AWS.ECR.dll
Syntax (csharp)
public class CfnPublicRepository : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnPublicRepository
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
The AWS::ECR::PublicRepository
resource specifies an Amazon Elastic Container Registry Public (Amazon ECR Public) repository, where users can push and pull Docker images, Open Container Initiative (OCI) images, and OCI compatible artifacts. For more information, see Amazon ECR public repositories in the Amazon ECR Public User Guide .
CloudformationResource: AWS::ECR::PublicRepository
Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-publicrepository.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 repositoryCatalogData;
var repositoryPolicyText;
var cfnPublicRepository = new CfnPublicRepository(this, "MyCfnPublicRepository", new CfnPublicRepositoryProps {
RepositoryCatalogData = repositoryCatalogData,
RepositoryName = "repositoryName",
RepositoryPolicyText = repositoryPolicyText,
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
});
Synopsis
Constructors
CfnPublicRepository(Construct, String, ICfnPublicRepositoryProps) | Create a new |
CfnPublicRepository(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnPublicRepository(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
AttrArn | Returns the Amazon Resource Name (ARN) for the specified |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
RepositoryCatalogData | The details about the repository that are publicly visible in the Amazon ECR Public Gallery. |
RepositoryName | The name to use for the public repository. |
RepositoryPolicyText | The JSON repository policy text to apply to the public repository. |
Tags | An array of key-value pairs to apply to this resource. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnPublicRepository(Construct, String, ICfnPublicRepositoryProps)
Create a new AWS::ECR::PublicRepository
.
public CfnPublicRepository(Construct scope, string id, ICfnPublicRepositoryProps props = null)
Parameters
- scope Construct
- scope in which this resource is defined.
- id System.String
- scoped id of the resource.
- props ICfnPublicRepositoryProps
- resource properties.
CfnPublicRepository(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnPublicRepository(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnPublicRepository(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnPublicRepository(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
AttrArn
Returns the Amazon Resource Name (ARN) for the specified AWS::ECR::PublicRepository
resource.
public virtual string AttrArn { get; }
Property Value
System.String
Remarks
For example, arn:aws:ecr-public:: 123456789012 :repository/ test-repository
.
CloudformationAttribute: Arn
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
RepositoryCatalogData
The details about the repository that are publicly visible in the Amazon ECR Public Gallery.
public virtual object RepositoryCatalogData { get; set; }
Property Value
System.Object
Remarks
For more information, see Amazon ECR Public repository catalog data in the Amazon ECR Public User Guide .
RepositoryName
The name to use for the public repository.
public virtual string RepositoryName { get; set; }
Property Value
System.String
Remarks
The repository name may be specified on its own (such as nginx-web-app
) or it can be prepended with a namespace to group the repository into a category (such as project-a/nginx-web-app
). If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the repository name. For more information, see Name Type .
If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
RepositoryPolicyText
The JSON repository policy text to apply to the public repository.
public virtual object RepositoryPolicyText { get; set; }
Property Value
System.Object
Remarks
For more information, see Amazon ECR Public repository policies in the Amazon ECR Public User Guide .
Tags
An array of key-value pairs to apply to this resource.
public virtual TagManager Tags { get; }
Property Value
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>