Class CfnRepositoryCreationTemplate
AWS::ECR::RepositoryCreationTemplate is used to create repository with configuration from a pre-defined template.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.ECR
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnRepositoryCreationTemplate : CfnResource, IInspectable
Syntax (vb)
Public Class CfnRepositoryCreationTemplate
Inherits CfnResource
Implements IInspectable
Remarks
CloudformationResource: AWS::ECR::RepositoryCreationTemplate
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 cfnRepositoryCreationTemplate = new CfnRepositoryCreationTemplate(this, "MyCfnRepositoryCreationTemplate", new CfnRepositoryCreationTemplateProps {
AppliedFor = new [] { "appliedFor" },
Prefix = "prefix",
// the properties below are optional
Description = "description",
EncryptionConfiguration = new EncryptionConfigurationProperty {
EncryptionType = "encryptionType",
// the properties below are optional
KmsKey = "kmsKey"
},
ImageTagMutability = "imageTagMutability",
LifecyclePolicy = "lifecyclePolicy",
RepositoryPolicy = "repositoryPolicy",
ResourceTags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
});
Synopsis
Constructors
CfnRepositoryCreationTemplate(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnRepositoryCreationTemplate(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnRepositoryCreationTemplate(Construct, String, ICfnRepositoryCreationTemplateProps) |
Properties
AppliedFor | A list of enumerable Strings representing the repository creation scenarios that the template will apply towards. |
AttrCreatedAt | Create timestamp of the template. |
AttrUpdatedAt | Update timestamp of the template. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
Description | The description of the template. |
EncryptionConfiguration | The encryption configuration for the repository. |
ImageTagMutability | The image tag mutability setting for the repository. |
LifecyclePolicy | The JSON lifecycle policy text to apply to the repository. |
Prefix | The prefix use to match the repository name and apply the template. |
RepositoryPolicy | The JSON repository policy text to apply to the repository. |
ResourceTags | The tags attached to the resource. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnRepositoryCreationTemplate(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnRepositoryCreationTemplate(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnRepositoryCreationTemplate(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnRepositoryCreationTemplate(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnRepositoryCreationTemplate(Construct, String, ICfnRepositoryCreationTemplateProps)
public CfnRepositoryCreationTemplate(Construct scope, string id, ICfnRepositoryCreationTemplateProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnRepositoryCreationTemplateProps
Resource properties.
Properties
AppliedFor
A list of enumerable Strings representing the repository creation scenarios that the template will apply towards.
public virtual string[] AppliedFor { get; set; }
Property Value
System.String[]
AttrCreatedAt
Create timestamp of the template.
public virtual string AttrCreatedAt { get; }
Property Value
System.String
Remarks
CloudformationAttribute: CreatedAt
AttrUpdatedAt
Update timestamp of the template.
public virtual string AttrUpdatedAt { get; }
Property Value
System.String
Remarks
CloudformationAttribute: UpdatedAt
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
Description
The description of the template.
public virtual string Description { get; set; }
Property Value
System.String
EncryptionConfiguration
The encryption configuration for the repository.
public virtual object EncryptionConfiguration { get; set; }
Property Value
System.Object
Remarks
This determines how the contents of your repository are encrypted at rest.
ImageTagMutability
The image tag mutability setting for the repository.
public virtual string ImageTagMutability { get; set; }
Property Value
System.String
LifecyclePolicy
The JSON lifecycle policy text to apply to the repository.
public virtual string LifecyclePolicy { get; set; }
Property Value
System.String
Prefix
The prefix use to match the repository name and apply the template.
public virtual string Prefix { get; set; }
Property Value
System.String
RepositoryPolicy
The JSON repository policy text to apply to the repository.
public virtual string RepositoryPolicy { get; set; }
Property Value
System.String
ResourceTags
The tags attached to the resource.
public virtual object ResourceTags { get; set; }
Property Value
System.Object
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>