Documentation
¶
Index ¶
- func AuthorizationToken_GrantRead(grantee awsiam.IGrantable)
- func CfnPublicRepository_CFN_RESOURCE_TYPE_NAME() *string
- func CfnPublicRepository_IsCfnElement(x interface{}) *bool
- func CfnPublicRepository_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnPublicRepository_IsConstruct(x interface{}) *bool
- func CfnRegistryPolicy_CFN_RESOURCE_TYPE_NAME() *string
- func CfnRegistryPolicy_IsCfnElement(x interface{}) *bool
- func CfnRegistryPolicy_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnRegistryPolicy_IsConstruct(x interface{}) *bool
- func CfnReplicationConfiguration_CFN_RESOURCE_TYPE_NAME() *string
- func CfnReplicationConfiguration_IsCfnElement(x interface{}) *bool
- func CfnReplicationConfiguration_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnReplicationConfiguration_IsConstruct(x interface{}) *bool
- func CfnRepository_CFN_RESOURCE_TYPE_NAME() *string
- func CfnRepository_IsCfnElement(x interface{}) *bool
- func CfnRepository_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnRepository_IsConstruct(x interface{}) *bool
- func NewCfnPublicRepository_Override(c CfnPublicRepository, scope constructs.Construct, id *string, ...)
- func NewCfnRegistryPolicy_Override(c CfnRegistryPolicy, scope constructs.Construct, id *string, ...)
- func NewCfnReplicationConfiguration_Override(c CfnReplicationConfiguration, scope constructs.Construct, id *string, ...)
- func NewCfnRepository_Override(c CfnRepository, scope constructs.Construct, id *string, ...)
- func NewRepositoryBase_Override(r RepositoryBase, scope constructs.Construct, id *string, ...)
- func NewRepository_Override(r Repository, scope constructs.Construct, id *string, props *RepositoryProps)
- func PublicGalleryAuthorizationToken_GrantRead(grantee awsiam.IGrantable)
- func RepositoryBase_IsConstruct(x interface{}) *bool
- func RepositoryBase_IsResource(construct constructs.IConstruct) *bool
- func Repository_ArnForLocalRepository(repositoryName *string, scope constructs.IConstruct, account *string) *string
- func Repository_IsConstruct(x interface{}) *bool
- func Repository_IsResource(construct constructs.IConstruct) *bool
- type AuthorizationToken
- type CfnPublicRepository
- type CfnPublicRepositoryProps
- type CfnRegistryPolicy
- type CfnRegistryPolicyProps
- type CfnReplicationConfiguration
- type CfnReplicationConfigurationProps
- type CfnReplicationConfiguration_ReplicationConfigurationProperty
- type CfnReplicationConfiguration_ReplicationDestinationProperty
- type CfnReplicationConfiguration_ReplicationRuleProperty
- type CfnReplicationConfiguration_RepositoryFilterProperty
- type CfnRepository
- type CfnRepositoryProps
- type CfnRepository_EncryptionConfigurationProperty
- type CfnRepository_ImageScanningConfigurationProperty
- type CfnRepository_LifecyclePolicyProperty
- type IRepository
- func Repository_FromRepositoryArn(scope constructs.Construct, id *string, repositoryArn *string) IRepository
- func Repository_FromRepositoryAttributes(scope constructs.Construct, id *string, attrs *RepositoryAttributes) IRepository
- func Repository_FromRepositoryName(scope constructs.Construct, id *string, repositoryName *string) IRepository
- type LifecycleRule
- type OnCloudTrailImagePushedOptions
- type OnImageScanCompletedOptions
- type PublicGalleryAuthorizationToken
- type Repository
- type RepositoryAttributes
- type RepositoryBase
- type RepositoryProps
- type TagMutability
- type TagStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthorizationToken_GrantRead ¶
func AuthorizationToken_GrantRead(grantee awsiam.IGrantable)
Grant access to retrieve an authorization token. Experimental.
func CfnPublicRepository_CFN_RESOURCE_TYPE_NAME ¶
func CfnPublicRepository_CFN_RESOURCE_TYPE_NAME() *string
func CfnPublicRepository_IsCfnElement ¶
func CfnPublicRepository_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element. Experimental.
func CfnPublicRepository_IsCfnResource ¶
func CfnPublicRepository_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource. Experimental.
func CfnPublicRepository_IsConstruct ¶
func CfnPublicRepository_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func CfnRegistryPolicy_CFN_RESOURCE_TYPE_NAME ¶
func CfnRegistryPolicy_CFN_RESOURCE_TYPE_NAME() *string
func CfnRegistryPolicy_IsCfnElement ¶
func CfnRegistryPolicy_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element. Experimental.
func CfnRegistryPolicy_IsCfnResource ¶
func CfnRegistryPolicy_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource. Experimental.
func CfnRegistryPolicy_IsConstruct ¶
func CfnRegistryPolicy_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func CfnReplicationConfiguration_CFN_RESOURCE_TYPE_NAME ¶
func CfnReplicationConfiguration_CFN_RESOURCE_TYPE_NAME() *string
func CfnReplicationConfiguration_IsCfnElement ¶
func CfnReplicationConfiguration_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element. Experimental.
func CfnReplicationConfiguration_IsCfnResource ¶
func CfnReplicationConfiguration_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource. Experimental.
func CfnReplicationConfiguration_IsConstruct ¶
func CfnReplicationConfiguration_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func CfnRepository_CFN_RESOURCE_TYPE_NAME ¶
func CfnRepository_CFN_RESOURCE_TYPE_NAME() *string
func CfnRepository_IsCfnElement ¶
func CfnRepository_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element. Experimental.
func CfnRepository_IsCfnResource ¶
func CfnRepository_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource. Experimental.
func CfnRepository_IsConstruct ¶
func CfnRepository_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func NewCfnPublicRepository_Override ¶
func NewCfnPublicRepository_Override(c CfnPublicRepository, scope constructs.Construct, id *string, props *CfnPublicRepositoryProps)
Create a new `AWS::ECR::PublicRepository`.
func NewCfnRegistryPolicy_Override ¶
func NewCfnRegistryPolicy_Override(c CfnRegistryPolicy, scope constructs.Construct, id *string, props *CfnRegistryPolicyProps)
Create a new `AWS::ECR::RegistryPolicy`.
func NewCfnReplicationConfiguration_Override ¶
func NewCfnReplicationConfiguration_Override(c CfnReplicationConfiguration, scope constructs.Construct, id *string, props *CfnReplicationConfigurationProps)
Create a new `AWS::ECR::ReplicationConfiguration`.
func NewCfnRepository_Override ¶
func NewCfnRepository_Override(c CfnRepository, scope constructs.Construct, id *string, props *CfnRepositoryProps)
Create a new `AWS::ECR::Repository`.
func NewRepositoryBase_Override ¶
func NewRepositoryBase_Override(r RepositoryBase, scope constructs.Construct, id *string, props *awscdk.ResourceProps)
Experimental.
func NewRepository_Override ¶
func NewRepository_Override(r Repository, scope constructs.Construct, id *string, props *RepositoryProps)
Experimental.
func PublicGalleryAuthorizationToken_GrantRead ¶
func PublicGalleryAuthorizationToken_GrantRead(grantee awsiam.IGrantable)
Grant access to retrieve an authorization token. Experimental.
func RepositoryBase_IsConstruct ¶
func RepositoryBase_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func RepositoryBase_IsResource ¶
func RepositoryBase_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource. Experimental.
func Repository_ArnForLocalRepository ¶
func Repository_ArnForLocalRepository(repositoryName *string, scope constructs.IConstruct, account *string) *string
Returns an ECR ARN for a repository that resides in the same account/region as the current stack. Experimental.
func Repository_IsConstruct ¶
func Repository_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func Repository_IsResource ¶
func Repository_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource. Experimental.
Types ¶
type AuthorizationToken ¶
type AuthorizationToken interface { }
Authorization token to access private ECR repositories in the current environment via Docker CLI. See: https://docs.aws.amazon.com/AmazonECR/latest/userguide/registry_auth.html
Experimental.
type CfnPublicRepository ¶
type CfnPublicRepository interface { awscdk.CfnResource awscdk.IInspectable AttrArn() *string CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} CfnResourceType() *string CreationStack() *[]*string LogicalId() *string Node() constructs.Node Ref() *string RepositoryCatalogData() interface{} SetRepositoryCatalogData(val interface{}) RepositoryName() *string SetRepositoryName(val *string) RepositoryPolicyText() interface{} SetRepositoryPolicyText(val interface{}) Stack() awscdk.Stack Tags() awscdk.TagManager UpdatedProperites() *map[string]interface{} AddDeletionOverride(path *string) AddDependsOn(target awscdk.CfnResource) AddMetadata(key *string, value interface{}) AddOverride(path *string, value interface{}) AddPropertyDeletionOverride(propertyPath *string) AddPropertyOverride(propertyPath *string, value interface{}) ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions) GetAtt(attributeName *string) awscdk.Reference GetMetadata(key *string) interface{} Inspect(inspector awscdk.TreeInspector) OverrideLogicalId(newLogicalId *string) RenderProperties(props *map[string]interface{}) *map[string]interface{} ShouldSynthesize() *bool ToString() *string ValidateProperties(_properties interface{}) }
A CloudFormation `AWS::ECR::PublicRepository`.
func NewCfnPublicRepository ¶
func NewCfnPublicRepository(scope constructs.Construct, id *string, props *CfnPublicRepositoryProps) CfnPublicRepository
Create a new `AWS::ECR::PublicRepository`.
type CfnPublicRepositoryProps ¶
type CfnPublicRepositoryProps struct { // `AWS::ECR::PublicRepository.RepositoryCatalogData`. RepositoryCatalogData interface{} `json:"repositoryCatalogData"` // `AWS::ECR::PublicRepository.RepositoryName`. RepositoryName *string `json:"repositoryName"` // `AWS::ECR::PublicRepository.RepositoryPolicyText`. RepositoryPolicyText interface{} `json:"repositoryPolicyText"` // `AWS::ECR::PublicRepository.Tags`. Tags *[]*awscdk.CfnTag `json:"tags"` }
Properties for defining a `AWS::ECR::PublicRepository`.
type CfnRegistryPolicy ¶
type CfnRegistryPolicy interface { awscdk.CfnResource awscdk.IInspectable AttrRegistryId() *string CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} CfnResourceType() *string CreationStack() *[]*string LogicalId() *string Node() constructs.Node PolicyText() interface{} SetPolicyText(val interface{}) Ref() *string Stack() awscdk.Stack UpdatedProperites() *map[string]interface{} AddDeletionOverride(path *string) AddDependsOn(target awscdk.CfnResource) AddMetadata(key *string, value interface{}) AddOverride(path *string, value interface{}) AddPropertyDeletionOverride(propertyPath *string) AddPropertyOverride(propertyPath *string, value interface{}) ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions) GetAtt(attributeName *string) awscdk.Reference GetMetadata(key *string) interface{} Inspect(inspector awscdk.TreeInspector) OverrideLogicalId(newLogicalId *string) RenderProperties(props *map[string]interface{}) *map[string]interface{} ShouldSynthesize() *bool ToString() *string ValidateProperties(_properties interface{}) }
A CloudFormation `AWS::ECR::RegistryPolicy`.
func NewCfnRegistryPolicy ¶
func NewCfnRegistryPolicy(scope constructs.Construct, id *string, props *CfnRegistryPolicyProps) CfnRegistryPolicy
Create a new `AWS::ECR::RegistryPolicy`.
type CfnRegistryPolicyProps ¶
type CfnRegistryPolicyProps struct {
// `AWS::ECR::RegistryPolicy.PolicyText`.
PolicyText interface{} `json:"policyText"`
}
Properties for defining a `AWS::ECR::RegistryPolicy`.
type CfnReplicationConfiguration ¶
type CfnReplicationConfiguration interface { awscdk.CfnResource awscdk.IInspectable AttrRegistryId() *string CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} CfnResourceType() *string CreationStack() *[]*string LogicalId() *string Node() constructs.Node Ref() *string ReplicationConfiguration() interface{} SetReplicationConfiguration(val interface{}) Stack() awscdk.Stack UpdatedProperites() *map[string]interface{} AddDeletionOverride(path *string) AddDependsOn(target awscdk.CfnResource) AddMetadata(key *string, value interface{}) AddOverride(path *string, value interface{}) AddPropertyDeletionOverride(propertyPath *string) AddPropertyOverride(propertyPath *string, value interface{}) ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions) GetAtt(attributeName *string) awscdk.Reference GetMetadata(key *string) interface{} Inspect(inspector awscdk.TreeInspector) OverrideLogicalId(newLogicalId *string) RenderProperties(props *map[string]interface{}) *map[string]interface{} ShouldSynthesize() *bool ToString() *string ValidateProperties(_properties interface{}) }
A CloudFormation `AWS::ECR::ReplicationConfiguration`.
func NewCfnReplicationConfiguration ¶
func NewCfnReplicationConfiguration(scope constructs.Construct, id *string, props *CfnReplicationConfigurationProps) CfnReplicationConfiguration
Create a new `AWS::ECR::ReplicationConfiguration`.
type CfnReplicationConfigurationProps ¶
type CfnReplicationConfigurationProps struct {
// `AWS::ECR::ReplicationConfiguration.ReplicationConfiguration`.
ReplicationConfiguration interface{} `json:"replicationConfiguration"`
}
Properties for defining a `AWS::ECR::ReplicationConfiguration`.
type CfnReplicationConfiguration_ReplicationConfigurationProperty ¶
type CfnReplicationConfiguration_ReplicationConfigurationProperty struct {
// `CfnReplicationConfiguration.ReplicationConfigurationProperty.Rules`.
Rules interface{} `json:"rules"`
}
type CfnReplicationConfiguration_ReplicationRuleProperty ¶
type CfnReplicationConfiguration_ReplicationRuleProperty struct { // `CfnReplicationConfiguration.ReplicationRuleProperty.Destinations`. Destinations interface{} `json:"destinations"` // `CfnReplicationConfiguration.ReplicationRuleProperty.RepositoryFilters`. RepositoryFilters interface{} `json:"repositoryFilters"` }
type CfnRepository ¶
type CfnRepository interface { awscdk.CfnResource awscdk.IInspectable AttrArn() *string AttrRepositoryUri() *string CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} CfnResourceType() *string CreationStack() *[]*string EncryptionConfiguration() interface{} SetEncryptionConfiguration(val interface{}) ImageScanningConfiguration() interface{} SetImageScanningConfiguration(val interface{}) ImageTagMutability() *string SetImageTagMutability(val *string) LifecyclePolicy() interface{} SetLifecyclePolicy(val interface{}) LogicalId() *string Node() constructs.Node Ref() *string RepositoryName() *string SetRepositoryName(val *string) RepositoryPolicyText() interface{} SetRepositoryPolicyText(val interface{}) Stack() awscdk.Stack Tags() awscdk.TagManager UpdatedProperites() *map[string]interface{} AddDeletionOverride(path *string) AddDependsOn(target awscdk.CfnResource) AddMetadata(key *string, value interface{}) AddOverride(path *string, value interface{}) AddPropertyDeletionOverride(propertyPath *string) AddPropertyOverride(propertyPath *string, value interface{}) ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions) GetAtt(attributeName *string) awscdk.Reference GetMetadata(key *string) interface{} Inspect(inspector awscdk.TreeInspector) OverrideLogicalId(newLogicalId *string) RenderProperties(props *map[string]interface{}) *map[string]interface{} ShouldSynthesize() *bool ToString() *string ValidateProperties(_properties interface{}) }
A CloudFormation `AWS::ECR::Repository`.
func NewCfnRepository ¶
func NewCfnRepository(scope constructs.Construct, id *string, props *CfnRepositoryProps) CfnRepository
Create a new `AWS::ECR::Repository`.
type CfnRepositoryProps ¶
type CfnRepositoryProps struct { // `AWS::ECR::Repository.EncryptionConfiguration`. EncryptionConfiguration interface{} `json:"encryptionConfiguration"` // `AWS::ECR::Repository.ImageScanningConfiguration`. ImageScanningConfiguration interface{} `json:"imageScanningConfiguration"` // `AWS::ECR::Repository.ImageTagMutability`. ImageTagMutability *string `json:"imageTagMutability"` // `AWS::ECR::Repository.LifecyclePolicy`. LifecyclePolicy interface{} `json:"lifecyclePolicy"` // `AWS::ECR::Repository.RepositoryName`. RepositoryName *string `json:"repositoryName"` // `AWS::ECR::Repository.RepositoryPolicyText`. RepositoryPolicyText interface{} `json:"repositoryPolicyText"` // `AWS::ECR::Repository.Tags`. Tags *[]*awscdk.CfnTag `json:"tags"` }
Properties for defining a `AWS::ECR::Repository`.
type CfnRepository_ImageScanningConfigurationProperty ¶
type CfnRepository_ImageScanningConfigurationProperty struct {
// `CfnRepository.ImageScanningConfigurationProperty.ScanOnPush`.
ScanOnPush interface{} `json:"scanOnPush"`
}
type IRepository ¶
type IRepository interface { awscdk.IResource // Add a policy statement to the repository's resource policy. // Experimental. AddToResourcePolicy(statement awsiam.PolicyStatement) *awsiam.AddToResourcePolicyResult // Grant the given principal identity permissions to perform the actions on this repository. // Experimental. Grant(grantee awsiam.IGrantable, actions ...*string) awsiam.Grant // Grant the given identity permissions to pull images in this repository. // Experimental. GrantPull(grantee awsiam.IGrantable) awsiam.Grant // Grant the given identity permissions to pull and push images to this repository. // Experimental. GrantPullPush(grantee awsiam.IGrantable) awsiam.Grant // Define a CloudWatch event that triggers when something happens to this repository. // // Requires that there exists at least one CloudTrail Trail in your account // that captures the event. This method will not create the Trail. // Experimental. OnCloudTrailEvent(id *string, options *awsevents.OnEventOptions) awsevents.Rule // Defines an AWS CloudWatch event rule that can trigger a target when an image is pushed to this repository. // // Requires that there exists at least one CloudTrail Trail in your account // that captures the event. This method will not create the Trail. // Experimental. OnCloudTrailImagePushed(id *string, options *OnCloudTrailImagePushedOptions) awsevents.Rule // Defines a CloudWatch event rule which triggers for repository events. // // Use // `rule.addEventPattern(pattern)` to specify a filter. // Experimental. OnEvent(id *string, options *awsevents.OnEventOptions) awsevents.Rule // Defines an AWS CloudWatch event rule that can trigger a target when the image scan is completed. // Experimental. OnImageScanCompleted(id *string, options *OnImageScanCompletedOptions) awsevents.Rule // Returns the URI of the repository for a certain tag. Can be used in `docker push/pull`. // // ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY[@DIGEST] // Experimental. RepositoryUriForDigest(digest *string) *string // Returns the URI of the repository for a certain tag. Can be used in `docker push/pull`. // // ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY[:TAG] // Experimental. RepositoryUriForTag(tag *string) *string // The ARN of the repository. // Experimental. RepositoryArn() *string // The name of the repository. // Experimental. RepositoryName() *string // The URI of this repository (represents the latest image):. // // ACCOUNT.dkr.ecr.REGION.amazonaws.com/REPOSITORY // Experimental. RepositoryUri() *string }
Represents an ECR repository. Experimental.
func Repository_FromRepositoryArn ¶
func Repository_FromRepositoryArn(scope constructs.Construct, id *string, repositoryArn *string) IRepository
Experimental.
func Repository_FromRepositoryAttributes ¶
func Repository_FromRepositoryAttributes(scope constructs.Construct, id *string, attrs *RepositoryAttributes) IRepository
Import a repository. Experimental.
func Repository_FromRepositoryName ¶
func Repository_FromRepositoryName(scope constructs.Construct, id *string, repositoryName *string) IRepository
Experimental.
type LifecycleRule ¶
type LifecycleRule struct { // Describes the purpose of the rule. // Experimental. Description *string `json:"description"` // The maximum age of images to retain. The value must represent a number of days. // // Specify exactly one of maxImageCount and maxImageAge. // Experimental. MaxImageAge awscdk.Duration `json:"maxImageAge"` // The maximum number of images to retain. // // Specify exactly one of maxImageCount and maxImageAge. // Experimental. MaxImageCount *float64 `json:"maxImageCount"` // Controls the order in which rules are evaluated (low to high). // // All rules must have a unique priority, where lower numbers have // higher precedence. The first rule that matches is applied to an image. // // There can only be one rule with a tagStatus of Any, and it must have // the highest rulePriority. // // All rules without a specified priority will have incrementing priorities // automatically assigned to them, higher than any rules that DO have priorities. // Experimental. RulePriority *float64 `json:"rulePriority"` // Select images that have ALL the given prefixes in their tag. // // Only if tagStatus == TagStatus.Tagged // Experimental. TagPrefixList *[]*string `json:"tagPrefixList"` // Select images based on tags. // // Only one rule is allowed to select untagged images, and it must // have the highest rulePriority. // Experimental. TagStatus TagStatus `json:"tagStatus"` }
An ECR life cycle rule. Experimental.
type OnCloudTrailImagePushedOptions ¶
type OnCloudTrailImagePushedOptions struct { // A description of the rule's purpose. // Experimental. Description *string `json:"description"` // Additional restrictions for the event to route to the specified target. // // The method that generates the rule probably imposes some type of event // filtering. The filtering implied by what you pass here is added // on top of that filtering. // See: https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html // // Experimental. EventPattern *awsevents.EventPattern `json:"eventPattern"` // A name for the rule. // Experimental. RuleName *string `json:"ruleName"` // The target to register for the event. // Experimental. Target awsevents.IRuleTarget `json:"target"` // Only watch changes to this image tag. // Experimental. ImageTag *string `json:"imageTag"` }
Options for the onCloudTrailImagePushed method. Experimental.
type OnImageScanCompletedOptions ¶
type OnImageScanCompletedOptions struct { // A description of the rule's purpose. // Experimental. Description *string `json:"description"` // Additional restrictions for the event to route to the specified target. // // The method that generates the rule probably imposes some type of event // filtering. The filtering implied by what you pass here is added // on top of that filtering. // See: https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html // // Experimental. EventPattern *awsevents.EventPattern `json:"eventPattern"` // A name for the rule. // Experimental. RuleName *string `json:"ruleName"` // The target to register for the event. // Experimental. Target awsevents.IRuleTarget `json:"target"` // Only watch changes to the image tags spedified. // // Leave it undefined to watch the full repository. // Experimental. ImageTags *[]*string `json:"imageTags"` }
Options for the OnImageScanCompleted method. Experimental.
type PublicGalleryAuthorizationToken ¶
type PublicGalleryAuthorizationToken interface { }
Authorization token to access the global public ECR Gallery via Docker CLI. See: https://docs.aws.amazon.com/AmazonECR/latest/public/public-registries.html#public-registry-auth
Experimental.
type Repository ¶
type Repository interface { RepositoryBase Env() *awscdk.ResourceEnvironment Node() constructs.Node PhysicalName() *string RepositoryArn() *string RepositoryName() *string RepositoryUri() *string Stack() awscdk.Stack AddLifecycleRule(rule *LifecycleRule) AddToResourcePolicy(statement awsiam.PolicyStatement) *awsiam.AddToResourcePolicyResult ApplyRemovalPolicy(policy awscdk.RemovalPolicy) GeneratePhysicalName() *string GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string GetResourceNameAttribute(nameAttr *string) *string Grant(grantee awsiam.IGrantable, actions ...*string) awsiam.Grant GrantPull(grantee awsiam.IGrantable) awsiam.Grant GrantPullPush(grantee awsiam.IGrantable) awsiam.Grant OnCloudTrailEvent(id *string, options *awsevents.OnEventOptions) awsevents.Rule OnCloudTrailImagePushed(id *string, options *OnCloudTrailImagePushedOptions) awsevents.Rule OnEvent(id *string, options *awsevents.OnEventOptions) awsevents.Rule OnImageScanCompleted(id *string, options *OnImageScanCompletedOptions) awsevents.Rule RepositoryUriForDigest(digest *string) *string RepositoryUriForTag(tag *string) *string ToString() *string }
Define an ECR repository. Experimental.
func NewRepository ¶
func NewRepository(scope constructs.Construct, id *string, props *RepositoryProps) Repository
Experimental.
type RepositoryAttributes ¶
type RepositoryAttributes struct { // Experimental. RepositoryArn *string `json:"repositoryArn"` // Experimental. RepositoryName *string `json:"repositoryName"` }
Experimental.
type RepositoryBase ¶
type RepositoryBase interface { awscdk.Resource IRepository Env() *awscdk.ResourceEnvironment Node() constructs.Node PhysicalName() *string RepositoryArn() *string RepositoryName() *string RepositoryUri() *string Stack() awscdk.Stack AddToResourcePolicy(statement awsiam.PolicyStatement) *awsiam.AddToResourcePolicyResult ApplyRemovalPolicy(policy awscdk.RemovalPolicy) GeneratePhysicalName() *string GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string GetResourceNameAttribute(nameAttr *string) *string Grant(grantee awsiam.IGrantable, actions ...*string) awsiam.Grant GrantPull(grantee awsiam.IGrantable) awsiam.Grant GrantPullPush(grantee awsiam.IGrantable) awsiam.Grant OnCloudTrailEvent(id *string, options *awsevents.OnEventOptions) awsevents.Rule OnCloudTrailImagePushed(id *string, options *OnCloudTrailImagePushedOptions) awsevents.Rule OnEvent(id *string, options *awsevents.OnEventOptions) awsevents.Rule OnImageScanCompleted(id *string, options *OnImageScanCompletedOptions) awsevents.Rule RepositoryUriForDigest(digest *string) *string RepositoryUriForTag(tag *string) *string ToString() *string }
Base class for ECR repository.
Reused between imported repositories and owned repositories. Experimental.
type RepositoryProps ¶
type RepositoryProps struct { // Enable the scan on push when creating the repository. // Experimental. ImageScanOnPush *bool `json:"imageScanOnPush"` // The tag mutability setting for the repository. // // If this parameter is omitted, the default setting of MUTABLE will be used which will allow image tags to be overwritten. // Experimental. ImageTagMutability TagMutability `json:"imageTagMutability"` // The AWS account ID associated with the registry that contains the repository. // See: https://docs.aws.amazon.com/AmazonECR/latest/APIReference/API_PutLifecyclePolicy.html // // Experimental. LifecycleRegistryId *string `json:"lifecycleRegistryId"` // Life cycle rules to apply to this registry. // Experimental. LifecycleRules *[]*LifecycleRule `json:"lifecycleRules"` // Determine what happens to the repository when the resource/stack is deleted. // Experimental. RemovalPolicy awscdk.RemovalPolicy `json:"removalPolicy"` // Name for this repository. // Experimental. RepositoryName *string `json:"repositoryName"` }
Experimental.
type TagMutability ¶
type TagMutability string
The tag mutability setting for your repository. Experimental.
const ( TagMutability_MUTABLE TagMutability = "MUTABLE" TagMutability_IMMUTABLE TagMutability = "IMMUTABLE" )