@awboost/cfn-resource-types 0.1.273 → 0.1.274
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/AWS-ECR-PublicRepository.d.ts +13 -12
- package/lib/AWS-ECR-PublicRepository.js +1 -1
- package/lib/AWS-ECR-PullThroughCacheRule.d.ts +6 -6
- package/lib/AWS-ECR-PullThroughCacheRule.js +1 -1
- package/lib/AWS-ECR-ReplicationConfiguration.d.ts +16 -17
- package/lib/AWS-ECR-ReplicationConfiguration.js +2 -1
- package/lib/AWS-ECR-Repository.d.ts +5 -3
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Resource as $Resource } from "@awboost/cfn-template-builder/template/resource";
|
|
2
2
|
import type { ResourceOptions as $ResourceOptions } from "@awboost/cfn-template-builder/template";
|
|
3
3
|
/**
|
|
4
|
-
* The AWS::ECR::PublicRepository resource specifies an Amazon Elastic Container Public
|
|
4
|
+
* 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](https://docs.aws.amazon.com/AmazonECR/latest/public/public-repositories.html) in the *Amazon ECR Public User Guide*.
|
|
5
5
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-publicrepository.html}
|
|
6
6
|
*/
|
|
7
7
|
export type ECRPublicRepositoryProperties = {
|
|
8
8
|
/**
|
|
9
|
-
* The
|
|
9
|
+
* The details about the repository that are publicly visible in the Amazon ECR Public Gallery. For more information, see [Amazon ECR Public repository catalog data](https://docs.aws.amazon.com/AmazonECR/latest/public/public-repository-catalog-data.html) in the *Amazon ECR Public User Guide*.
|
|
10
10
|
*/
|
|
11
11
|
RepositoryCatalogData?: {
|
|
12
12
|
/**
|
|
@@ -36,14 +36,15 @@ export type ECRPublicRepositoryProperties = {
|
|
|
36
36
|
UsageText?: string;
|
|
37
37
|
};
|
|
38
38
|
/**
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
39
|
+
* The name to use for the public repository. 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, CFNlong generates a unique physical ID and uses that ID for the repository name. For more information, see [Name Type](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-name.html).
|
|
40
|
+
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.
|
|
41
|
+
* @minLength `2`
|
|
42
|
+
* @maxLength `256`
|
|
43
|
+
* @pattern `^(?=.{2,256}$)((?:[a-z0-9]+(?:[._-][a-z0-9]+)/*)*[a-z0-9]+(?:[._-][a-z0-9]+)*)$`
|
|
44
|
+
*/
|
|
44
45
|
RepositoryName?: string;
|
|
45
46
|
/**
|
|
46
|
-
* The JSON repository policy text to apply to the repository. For more information, see https://docs.aws.amazon.com/AmazonECR/latest/
|
|
47
|
+
* The JSON repository policy text to apply to the public repository. For more information, see [Amazon ECR Public repository policies](https://docs.aws.amazon.com/AmazonECR/latest/public/public-repository-policies.html) in the *Amazon ECR Public User Guide*.
|
|
47
48
|
*/
|
|
48
49
|
RepositoryPolicyText?: Record<string, any> | string;
|
|
49
50
|
/**
|
|
@@ -61,25 +62,25 @@ export type ECRPublicRepositoryAttributes = {
|
|
|
61
62
|
};
|
|
62
63
|
/**
|
|
63
64
|
* Type definition for `AWS::ECR::PublicRepository.Tag`.
|
|
64
|
-
*
|
|
65
|
+
* The metadata to apply to a resource to help you categorize and organize them. Each tag consists of a key and a value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
|
|
65
66
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecr-publicrepository-tag.html}
|
|
66
67
|
*/
|
|
67
68
|
export type Tag = {
|
|
68
69
|
/**
|
|
69
|
-
*
|
|
70
|
+
* One part of a key-value pair that make up a tag. A ``key`` is a general label that acts like a category for more specific tag values.
|
|
70
71
|
* @minLength `1`
|
|
71
72
|
* @maxLength `127`
|
|
72
73
|
*/
|
|
73
74
|
Key: string;
|
|
74
75
|
/**
|
|
75
|
-
*
|
|
76
|
+
* A ``value`` acts as a descriptor within a tag category (key).
|
|
76
77
|
* @minLength `1`
|
|
77
78
|
* @maxLength `255`
|
|
78
79
|
*/
|
|
79
80
|
Value: string;
|
|
80
81
|
};
|
|
81
82
|
/**
|
|
82
|
-
* The AWS::ECR::PublicRepository resource specifies an Amazon Elastic Container Public
|
|
83
|
+
* 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](https://docs.aws.amazon.com/AmazonECR/latest/public/public-repositories.html) in the *Amazon ECR Public User Guide*.
|
|
83
84
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-publicrepository.html}
|
|
84
85
|
*/
|
|
85
86
|
export declare class ECRPublicRepository extends $Resource<"AWS::ECR::PublicRepository", ECRPublicRepositoryProperties, ECRPublicRepositoryAttributes> {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Resource as $Resource } from "@awboost/cfn-template-builder/template/resource";
|
|
2
2
|
/**
|
|
3
|
-
* The AWS::ECR::PublicRepository resource specifies an Amazon Elastic Container Public
|
|
3
|
+
* 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](https://docs.aws.amazon.com/AmazonECR/latest/public/public-repositories.html) in the *Amazon ECR Public User Guide*.
|
|
4
4
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-publicrepository.html}
|
|
5
5
|
*/
|
|
6
6
|
export class ECRPublicRepository extends $Resource {
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import { Resource as $Resource } from "@awboost/cfn-template-builder/template/resource";
|
|
2
2
|
import type { ResourceOptions as $ResourceOptions } from "@awboost/cfn-template-builder/template";
|
|
3
3
|
/**
|
|
4
|
-
* The AWS::ECR::PullThroughCacheRule resource
|
|
4
|
+
* The ``AWS::ECR::PullThroughCacheRule`` resource creates or updates a pull through cache rule. A pull through cache rule provides a way to cache images from an upstream registry in your Amazon ECR private registry.
|
|
5
5
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-pullthroughcacherule.html}
|
|
6
6
|
*/
|
|
7
7
|
export type ECRPullThroughCacheRuleProperties = {
|
|
8
8
|
/**
|
|
9
|
-
* The
|
|
9
|
+
* The ARN of the Secrets Manager secret associated with the pull through cache rule.
|
|
10
10
|
* @minLength `50`
|
|
11
11
|
* @maxLength `612`
|
|
12
12
|
* @pattern `^arn:aws:secretsmanager:[a-zA-Z0-9-:]+:secret:ecr\-pullthroughcache\/[a-zA-Z0-9\/_+=.@-]+$`
|
|
13
13
|
*/
|
|
14
14
|
CredentialArn?: string;
|
|
15
15
|
/**
|
|
16
|
-
* The
|
|
16
|
+
* The Amazon ECR repository prefix associated with the pull through cache rule.
|
|
17
17
|
* @minLength `2`
|
|
18
18
|
* @maxLength `30`
|
|
19
19
|
* @pattern `(?:[a-z0-9]+(?:[._-][a-z0-9]+)/*)*[a-z0-9]+(?:[._-][a-z0-9]+)*`
|
|
20
20
|
*/
|
|
21
21
|
EcrRepositoryPrefix?: string;
|
|
22
22
|
/**
|
|
23
|
-
* The name of the upstream registry.
|
|
23
|
+
* The name of the upstream source registry associated with the pull through cache rule.
|
|
24
24
|
*/
|
|
25
25
|
UpstreamRegistry?: string;
|
|
26
26
|
/**
|
|
27
|
-
* The
|
|
27
|
+
* The upstream registry URL associated with the pull through cache rule.
|
|
28
28
|
*/
|
|
29
29
|
UpstreamRegistryUrl?: string;
|
|
30
30
|
};
|
|
31
31
|
/**
|
|
32
|
-
* The AWS::ECR::PullThroughCacheRule resource
|
|
32
|
+
* The ``AWS::ECR::PullThroughCacheRule`` resource creates or updates a pull through cache rule. A pull through cache rule provides a way to cache images from an upstream registry in your Amazon ECR private registry.
|
|
33
33
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-pullthroughcacherule.html}
|
|
34
34
|
*/
|
|
35
35
|
export declare class ECRPullThroughCacheRule extends $Resource<"AWS::ECR::PullThroughCacheRule", ECRPullThroughCacheRuleProperties, Record<string, never>> {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Resource as $Resource } from "@awboost/cfn-template-builder/template/resource";
|
|
2
2
|
/**
|
|
3
|
-
* The AWS::ECR::PullThroughCacheRule resource
|
|
3
|
+
* The ``AWS::ECR::PullThroughCacheRule`` resource creates or updates a pull through cache rule. A pull through cache rule provides a way to cache images from an upstream registry in your Amazon ECR private registry.
|
|
4
4
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-pullthroughcacherule.html}
|
|
5
5
|
*/
|
|
6
6
|
export class ECRPullThroughCacheRule extends $Resource {
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { Resource as $Resource } from "@awboost/cfn-template-builder/template/resource";
|
|
2
2
|
import type { ResourceOptions as $ResourceOptions } from "@awboost/cfn-template-builder/template";
|
|
3
3
|
/**
|
|
4
|
-
* The AWS::ECR::ReplicationConfiguration resource
|
|
4
|
+
* The ``AWS::ECR::ReplicationConfiguration`` resource creates or updates the replication configuration for a private registry. The first time a replication configuration is applied to a private registry, a service-linked IAM role is created in your account for the replication process. For more information, see [Using Service-Linked Roles for Amazon ECR](https://docs.aws.amazon.com/AmazonECR/latest/userguide/using-service-linked-roles.html) in the *Amazon Elastic Container Registry User Guide*.
|
|
5
|
+
When configuring cross-account replication, the destination account must grant the source account permission to replicate. This permission is controlled using a private registry permissions policy. For more information, see ``AWS::ECR::RegistryPolicy``.
|
|
5
6
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-replicationconfiguration.html}
|
|
6
7
|
*/
|
|
7
8
|
export type ECRReplicationConfigurationProperties = {
|
|
8
9
|
/**
|
|
9
|
-
*
|
|
10
|
+
* The replication configuration for a registry.
|
|
10
11
|
*/
|
|
11
12
|
ReplicationConfiguration: ReplicationConfiguration;
|
|
12
13
|
};
|
|
@@ -15,9 +16,6 @@ export type ECRReplicationConfigurationProperties = {
|
|
|
15
16
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-replicationconfiguration.html#aws-resource-ecr-replicationconfiguration-return-values}
|
|
16
17
|
*/
|
|
17
18
|
export type ECRReplicationConfigurationAttributes = {
|
|
18
|
-
/**
|
|
19
|
-
* The RegistryId associated with the aws account.
|
|
20
|
-
*/
|
|
21
19
|
RegistryId: string;
|
|
22
20
|
};
|
|
23
21
|
/**
|
|
@@ -28,12 +26,12 @@ export type ECRReplicationConfigurationAttributes = {
|
|
|
28
26
|
export type FilterType = "PREFIX_MATCH";
|
|
29
27
|
/**
|
|
30
28
|
* Type definition for `AWS::ECR::ReplicationConfiguration.ReplicationConfiguration`.
|
|
31
|
-
*
|
|
29
|
+
* The replication configuration for a registry.
|
|
32
30
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecr-replicationconfiguration-replicationconfiguration.html}
|
|
33
31
|
*/
|
|
34
32
|
export type ReplicationConfiguration = {
|
|
35
33
|
/**
|
|
36
|
-
* An array of objects representing the replication
|
|
34
|
+
* An array of objects representing the replication destinations and repository filters for a replication configuration.
|
|
37
35
|
* @minLength `0`
|
|
38
36
|
* @maxLength `10`
|
|
39
37
|
*/
|
|
@@ -41,35 +39,35 @@ export type ReplicationConfiguration = {
|
|
|
41
39
|
};
|
|
42
40
|
/**
|
|
43
41
|
* Type definition for `AWS::ECR::ReplicationConfiguration.ReplicationDestination`.
|
|
44
|
-
* An array of objects representing the
|
|
42
|
+
* An array of objects representing the destination for a replication rule.
|
|
45
43
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecr-replicationconfiguration-replicationdestination.html}
|
|
46
44
|
*/
|
|
47
45
|
export type ReplicationDestination = {
|
|
48
46
|
/**
|
|
49
|
-
*
|
|
47
|
+
* The Region to replicate to.
|
|
50
48
|
* @pattern `[0-9a-z-]{2,25}`
|
|
51
49
|
*/
|
|
52
50
|
Region: string;
|
|
53
51
|
/**
|
|
54
|
-
* The account ID of the
|
|
52
|
+
* The AWS account ID of the Amazon ECR private registry to replicate to. When configuring cross-Region replication within your own registry, specify your own account ID.
|
|
55
53
|
* @pattern `^[0-9]{12}$`
|
|
56
54
|
*/
|
|
57
55
|
RegistryId: string;
|
|
58
56
|
};
|
|
59
57
|
/**
|
|
60
58
|
* Type definition for `AWS::ECR::ReplicationConfiguration.ReplicationRule`.
|
|
61
|
-
* An array of objects representing the
|
|
59
|
+
* An array of objects representing the replication destinations and repository filters for a replication configuration.
|
|
62
60
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecr-replicationconfiguration-replicationrule.html}
|
|
63
61
|
*/
|
|
64
62
|
export type ReplicationRule = {
|
|
65
63
|
/**
|
|
66
|
-
* An array of objects representing the
|
|
64
|
+
* An array of objects representing the destination for a replication rule.
|
|
67
65
|
* @minLength `1`
|
|
68
66
|
* @maxLength `25`
|
|
69
67
|
*/
|
|
70
68
|
Destinations: ReplicationDestination[];
|
|
71
69
|
/**
|
|
72
|
-
* An array of objects representing the
|
|
70
|
+
* An array of objects representing the filters for a replication rule. Specifying a repository filter for a replication rule provides a method for controlling which repositories in a private registry are replicated.
|
|
73
71
|
* @minLength `0`
|
|
74
72
|
* @maxLength `100`
|
|
75
73
|
*/
|
|
@@ -77,22 +75,23 @@ export type ReplicationRule = {
|
|
|
77
75
|
};
|
|
78
76
|
/**
|
|
79
77
|
* Type definition for `AWS::ECR::ReplicationConfiguration.RepositoryFilter`.
|
|
80
|
-
*
|
|
78
|
+
* The filter settings used with image replication. Specifying a repository filter to a replication rule provides a method for controlling which repositories in a private registry are replicated. If no filters are added, the contents of all repositories are replicated.
|
|
81
79
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecr-replicationconfiguration-repositoryfilter.html}
|
|
82
80
|
*/
|
|
83
81
|
export type RepositoryFilter = {
|
|
84
82
|
/**
|
|
85
|
-
* The repository filter
|
|
83
|
+
* The repository filter details. When the ``PREFIX_MATCH`` filter type is specified, this value is required and should be the repository name prefix to configure replication for.
|
|
86
84
|
* @pattern `^(?:[a-z0-9]+(?:[._-][a-z0-9]*)/*)*[a-z0-9]*(?:[._-][a-z0-9]*)*$`
|
|
87
85
|
*/
|
|
88
86
|
Filter: string;
|
|
89
87
|
/**
|
|
90
|
-
*
|
|
88
|
+
* The repository filter type. The only supported value is ``PREFIX_MATCH``, which is a repository name prefix specified with the ``filter`` parameter.
|
|
91
89
|
*/
|
|
92
90
|
FilterType: FilterType;
|
|
93
91
|
};
|
|
94
92
|
/**
|
|
95
|
-
* The AWS::ECR::ReplicationConfiguration resource
|
|
93
|
+
* The ``AWS::ECR::ReplicationConfiguration`` resource creates or updates the replication configuration for a private registry. The first time a replication configuration is applied to a private registry, a service-linked IAM role is created in your account for the replication process. For more information, see [Using Service-Linked Roles for Amazon ECR](https://docs.aws.amazon.com/AmazonECR/latest/userguide/using-service-linked-roles.html) in the *Amazon Elastic Container Registry User Guide*.
|
|
94
|
+
When configuring cross-account replication, the destination account must grant the source account permission to replicate. This permission is controlled using a private registry permissions policy. For more information, see ``AWS::ECR::RegistryPolicy``.
|
|
96
95
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-replicationconfiguration.html}
|
|
97
96
|
*/
|
|
98
97
|
export declare class ECRReplicationConfiguration extends $Resource<"AWS::ECR::ReplicationConfiguration", ECRReplicationConfigurationProperties, ECRReplicationConfigurationAttributes> {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Resource as $Resource } from "@awboost/cfn-template-builder/template/resource";
|
|
2
2
|
/**
|
|
3
|
-
* The AWS::ECR::ReplicationConfiguration resource
|
|
3
|
+
* The ``AWS::ECR::ReplicationConfiguration`` resource creates or updates the replication configuration for a private registry. The first time a replication configuration is applied to a private registry, a service-linked IAM role is created in your account for the replication process. For more information, see [Using Service-Linked Roles for Amazon ECR](https://docs.aws.amazon.com/AmazonECR/latest/userguide/using-service-linked-roles.html) in the *Amazon Elastic Container Registry User Guide*.
|
|
4
|
+
When configuring cross-account replication, the destination account must grant the source account permission to replicate. This permission is controlled using a private registry permissions policy. For more information, see ``AWS::ECR::RegistryPolicy``.
|
|
4
5
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-replicationconfiguration.html}
|
|
5
6
|
*/
|
|
6
7
|
export class ECRReplicationConfiguration extends $Resource {
|
|
@@ -55,15 +55,17 @@ export type ECRRepositoryAttributes = {
|
|
|
55
55
|
/**
|
|
56
56
|
* Type definition for `AWS::ECR::Repository.EncryptionConfiguration`.
|
|
57
57
|
* The encryption configuration for the repository. This determines how the contents of your repository are encrypted at rest.
|
|
58
|
-
By default, when no encryption configuration is set or the ``AES256`` encryption type is used, Amazon ECR uses server-side encryption with Amazon S3-managed encryption keys which encrypts your data at rest using an
|
|
58
|
+
By default, when no encryption configuration is set or the ``AES256`` encryption type is used, Amazon ECR uses server-side encryption with Amazon S3-managed encryption keys which encrypts your data at rest using an AES256 encryption algorithm. This does not require any action on your part.
|
|
59
59
|
For more control over the encryption of the contents of your repository, you can use server-side encryption with KMSlong key stored in KMSlong (KMS) to encrypt your images. For more information, see [Amazon ECR encryption at rest](https://docs.aws.amazon.com/AmazonECR/latest/userguide/encryption-at-rest.html) in the *Amazon Elastic Container Registry User Guide*.
|
|
60
60
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecr-repository-encryptionconfiguration.html}
|
|
61
61
|
*/
|
|
62
62
|
export type EncryptionConfiguration = {
|
|
63
63
|
/**
|
|
64
64
|
* The encryption type to use.
|
|
65
|
-
If you use the ``KMS`` encryption type, the contents of the repository will be encrypted using server-side encryption with KMSlong key stored in KMS. When you use KMS to encrypt your data, you can either use the default AWS managed KMS key for Amazon ECR, or specify your own KMS key, which you already created.
|
|
66
|
-
If you use the ``
|
|
65
|
+
If you use the ``KMS`` encryption type, the contents of the repository will be encrypted using server-side encryption with KMSlong key stored in KMS. When you use KMS to encrypt your data, you can either use the default AWS managed KMS key for Amazon ECR, or specify your own KMS key, which you already created.
|
|
66
|
+
If you use the ``KMS_DSSE`` encryption type, the contents of the repository will be encrypted with two layers of encryption using server-side encryption with the KMS Management Service key stored in KMS. Similar to the ``KMS`` encryption type, you can either use the default AWS managed KMS key for Amazon ECR, or specify your own KMS key, which you've already created.
|
|
67
|
+
If you use the ``AES256`` encryption type, Amazon ECR uses server-side encryption with Amazon S3-managed encryption keys which encrypts the images in the repository using an AES256 encryption algorithm.
|
|
68
|
+
For more information, see [Amazon ECR encryption at rest](https://docs.aws.amazon.com/AmazonECR/latest/userguide/encryption-at-rest.html) in the *Amazon Elastic Container Registry User Guide*.
|
|
67
69
|
*/
|
|
68
70
|
EncryptionType: EncryptionType;
|
|
69
71
|
/**
|