@awboost/cfn-resource-types 0.1.77 → 0.1.79

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.
@@ -38,7 +38,6 @@ export type ConnectRoutingProfileProperties = {
38
38
  /**
39
39
  * The queues to associate with this routing profile.
40
40
  * @minLength `1`
41
- * @maxLength `10`
42
41
  */
43
42
  QueueConfigs?: RoutingProfileQueueConfig[];
44
43
  /**
@@ -58,6 +58,9 @@ export type DynamoDBTableProperties = {
58
58
  * Local secondary indexes to be created on the table. You can create up to 5 local secondary indexes. Each index is scoped to a given hash key value. The size of each hash key can be up to 10 gigabytes.
59
59
  */
60
60
  LocalSecondaryIndexes?: LocalSecondaryIndex[];
61
+ /**
62
+ * Sets the maximum number of read and write units for the specified on-demand table. If you use this property, you must specify ``MaxReadRequestUnits``, ``MaxWriteRequestUnits``, or both.
63
+ */
61
64
  OnDemandThroughput?: OnDemandThroughput;
62
65
  /**
63
66
  * The settings used to enable point in time recovery.
@@ -176,6 +179,9 @@ export type GlobalSecondaryIndex = {
176
179
  The sort key of an item is also known as its *range attribute*. The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.
177
180
  */
178
181
  KeySchema: KeySchema[];
182
+ /**
183
+ * The maximum number of read and write units for the specified global secondary index. If you use this parameter, you must specify ``MaxReadRequestUnits``, ``MaxWriteRequestUnits``, or both.
184
+ */
179
185
  OnDemandThroughput?: OnDemandThroughput;
180
186
  /**
181
187
  * Represents attributes that are copied (projected) from the table into the global secondary index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.
@@ -285,16 +291,21 @@ export type LocalSecondaryIndex = {
285
291
  };
286
292
  /**
287
293
  * Type definition for `AWS::DynamoDB::Table.OnDemandThroughput`.
294
+ * Sets the maximum number of read and write units for the specified on-demand table. If you use this property, you must specify ``MaxReadRequestUnits``, ``MaxWriteRequestUnits``, or both.
288
295
  * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-ondemandthroughput.html}
289
296
  */
290
297
  export type OnDemandThroughput = {
291
298
  /**
292
- * @min `1`
293
- */
299
+ * Maximum number of read request units for the specified table.
300
+ To specify a maximum ``OnDemandThroughput`` on your table, set the value of ``MaxReadRequestUnits`` as greater than or equal to 1. To remove the maximum ``OnDemandThroughput`` that is currently set on your table, set the value of ``MaxReadRequestUnits`` to -1.
301
+ * @min `1`
302
+ */
294
303
  MaxReadRequestUnits?: number;
295
304
  /**
296
- * @min `1`
297
- */
305
+ * Maximum number of write request units for the specified table.
306
+ To specify a maximum ``OnDemandThroughput`` on your table, set the value of ``MaxWriteRequestUnits`` as greater than or equal to 1. To remove the maximum ``OnDemandThroughput`` that is currently set on your table, set the value of ``MaxWriteRequestUnits`` to -1.
307
+ * @min `1`
308
+ */
298
309
  MaxWriteRequestUnits?: number;
299
310
  };
300
311
  /**
@@ -5,9 +5,21 @@ import type { ResourceOptions as $ResourceOptions } from "@awboost/cfn-template-
5
5
  * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-parametergroup.html}
6
6
  */
7
7
  export type ElastiCacheParameterGroupProperties = {
8
+ /**
9
+ * The name of the cache parameter group family that this cache parameter group is compatible with.
10
+ */
8
11
  CacheParameterGroupFamily: string;
12
+ /**
13
+ * The description for this cache parameter group.
14
+ */
9
15
  Description: string;
16
+ /**
17
+ * A comma-delimited list of parameter name/value pairs. For more information see ModifyCacheParameterGroup in the Amazon ElastiCache API Reference Guide.
18
+ */
10
19
  Properties?: Record<string, string>;
20
+ /**
21
+ * Tags are composed of a Key/Value pair. You can use tags to categorize and track each parameter group. The tag value null is permitted.
22
+ */
11
23
  Tags?: Tag[];
12
24
  };
13
25
  /**
@@ -15,7 +27,10 @@ export type ElastiCacheParameterGroupProperties = {
15
27
  * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-parametergroup.html#aws-resource-elasticache-parametergroup-return-values}
16
28
  */
17
29
  export type ElastiCacheParameterGroupAttributes = {
18
- Id: string;
30
+ /**
31
+ * The name of the Cache Parameter Group.
32
+ */
33
+ CacheParameterGroupName: string;
19
34
  };
20
35
  /**
21
36
  * Type definition for `AWS::ElastiCache::ParameterGroup.Tag`.
@@ -3,7 +3,8 @@ import type { ResourceOptions as $ResourceOptions } from "@awboost/cfn-template-
3
3
  /**
4
4
  * The ``AWS::Lambda::Permission`` resource grants an AWS service or another account permission to use a function. You can apply the policy at the function level, or specify a qualifier to restrict access to a single version or alias. If you use a qualifier, the invoker must use the full Amazon Resource Name (ARN) of that version or alias to invoke the function.
5
5
  To grant permission to another account, specify the account ID as the ``Principal``. To grant permission to an organization defined in AOlong, specify the organization ID as the ``PrincipalOrgID``. For AWS services, the principal is a domain-style identifier defined by the service, like ``s3.amazonaws.com`` or ``sns.amazonaws.com``. For AWS services, you can also specify the ARN of the associated resource as the ``SourceArn``. If you grant permission to a service principal without specifying the source, other accounts could potentially configure resources in their account to invoke your Lambda function.
6
- If your function has a fu
6
+ If your function has a function URL, you can specify the ``FunctionUrlAuthType`` parameter. This adds a condition to your permission that only applies when your function URL's ``AuthType`` matches the specified ``FunctionUrlAuthType``. For more information about the ``AuthType`` parameter, see [Security and auth model for function URLs](https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html).
7
+ This resource adds a statement to a resource-based permission policy for the function. For more information about function policies, see [Lambda Function Policies](https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html).
7
8
  * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html}
8
9
  */
9
10
  export type LambdaPermissionProperties = {
@@ -22,7 +23,7 @@ export type LambdaPermissionProperties = {
22
23
  */
23
24
  EventSourceToken?: string;
24
25
  /**
25
- * The name of the Lambda function, version, or alias.
26
+ * The name or ARN of the Lambda function, version, or alias.
26
27
  **Name formats**
27
28
  + *Function name* – ``my-function`` (name-only), ``my-function:v1`` (with alias).
28
29
  + *Function ARN* – ``arn:aws:lambda:us-west-2:123456789012:function:my-function``.
@@ -83,7 +84,8 @@ export type LambdaPermissionAttributes = {
83
84
  /**
84
85
  * The ``AWS::Lambda::Permission`` resource grants an AWS service or another account permission to use a function. You can apply the policy at the function level, or specify a qualifier to restrict access to a single version or alias. If you use a qualifier, the invoker must use the full Amazon Resource Name (ARN) of that version or alias to invoke the function.
85
86
  To grant permission to another account, specify the account ID as the ``Principal``. To grant permission to an organization defined in AOlong, specify the organization ID as the ``PrincipalOrgID``. For AWS services, the principal is a domain-style identifier defined by the service, like ``s3.amazonaws.com`` or ``sns.amazonaws.com``. For AWS services, you can also specify the ARN of the associated resource as the ``SourceArn``. If you grant permission to a service principal without specifying the source, other accounts could potentially configure resources in their account to invoke your Lambda function.
86
- If your function has a fu
87
+ If your function has a function URL, you can specify the ``FunctionUrlAuthType`` parameter. This adds a condition to your permission that only applies when your function URL's ``AuthType`` matches the specified ``FunctionUrlAuthType``. For more information about the ``AuthType`` parameter, see [Security and auth model for function URLs](https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html).
88
+ This resource adds a statement to a resource-based permission policy for the function. For more information about function policies, see [Lambda Function Policies](https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html).
87
89
  * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html}
88
90
  */
89
91
  export declare class LambdaPermission extends $Resource<"AWS::Lambda::Permission", LambdaPermissionProperties, LambdaPermissionAttributes> {
@@ -2,7 +2,8 @@ import { Resource as $Resource } from "@awboost/cfn-template-builder/template/re
2
2
  /**
3
3
  * The ``AWS::Lambda::Permission`` resource grants an AWS service or another account permission to use a function. You can apply the policy at the function level, or specify a qualifier to restrict access to a single version or alias. If you use a qualifier, the invoker must use the full Amazon Resource Name (ARN) of that version or alias to invoke the function.
4
4
  To grant permission to another account, specify the account ID as the ``Principal``. To grant permission to an organization defined in AOlong, specify the organization ID as the ``PrincipalOrgID``. For AWS services, the principal is a domain-style identifier defined by the service, like ``s3.amazonaws.com`` or ``sns.amazonaws.com``. For AWS services, you can also specify the ARN of the associated resource as the ``SourceArn``. If you grant permission to a service principal without specifying the source, other accounts could potentially configure resources in their account to invoke your Lambda function.
5
- If your function has a fu
5
+ If your function has a function URL, you can specify the ``FunctionUrlAuthType`` parameter. This adds a condition to your permission that only applies when your function URL's ``AuthType`` matches the specified ``FunctionUrlAuthType``. For more information about the ``AuthType`` parameter, see [Security and auth model for function URLs](https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html).
6
+ This resource adds a statement to a resource-based permission policy for the function. For more information about function policies, see [Lambda Function Policies](https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html).
6
7
  * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html}
7
8
  */
8
9
  export class LambdaPermission extends $Resource {
@@ -19,9 +19,13 @@ export type LambdaVersionProperties = {
19
19
  * The name of the Lambda function.
20
20
  * @minLength `1`
21
21
  * @maxLength `140`
22
- * @pattern `^(arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}(-gov)?-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?$`
22
+ * @pattern `^(arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?$`
23
23
  */
24
24
  FunctionName: string;
25
+ /**
26
+ * The resource policy of your function
27
+ */
28
+ Policy?: Record<string, any>;
25
29
  /**
26
30
  * Specifies a provisioned concurrency configuration for a function's version. Updates are not supported for this property.
27
31
  */
@@ -38,6 +42,7 @@ export type LambdaVersionProperties = {
38
42
  export type LambdaVersionAttributes = {
39
43
  /**
40
44
  * The ARN of the version.
45
+ * @pattern `^(arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?$`
41
46
  */
42
47
  FunctionArn: string;
43
48
  /**
@@ -66,7 +71,7 @@ export type RuntimePolicy = {
66
71
  * The ARN of the runtime the function is configured to use. If the runtime update mode is manual, the ARN is returned, otherwise null is returned.
67
72
  * @minLength `26`
68
73
  * @maxLength `2048`
69
- * @pattern `^arn:(aws[a-zA-Z-]*):lambda:[a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\d{1}::runtime:.+$`
74
+ * @pattern `^arn:(aws[a-zA-Z-]*):lambda:[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\d{1}::runtime:.+$`
70
75
  */
71
76
  RuntimeVersionArn?: string;
72
77
  /**
@@ -90,6 +90,9 @@ export type RDSDBInstanceProperties = {
90
90
  * A value that indicates whether minor engine upgrades are applied automatically to the DB instance during the maintenance window. By default, minor engine upgrades are applied automatically.
91
91
  */
92
92
  AutoMinorVersionUpgrade?: boolean;
93
+ /**
94
+ * The AWS KMS key identifier for encryption of the replicated automated backups. The KMS key ID is the Amazon Resource Name (ARN) for the KMS encryption key in the destination AWS-Region, for example, ``arn:aws:kms:us-east-1:123456789012:key/AKIAIOSFODNN7EXAMPLE``.
95
+ */
93
96
  AutomaticBackupReplicationKmsKeyId?: string;
94
97
  /**
95
98
  * The destination region for the backup replication of the DB instance. For more info, see [Replicating automated backups to another Region](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ReplicateBackups.html) in the *Amazon RDS User Guide*.
@@ -385,7 +388,7 @@ export type RDSDBInstanceProperties = {
385
388
  /**
386
389
  * The name of the database engine to use for this DB instance. Not every database engine is available in every AWS Region.
387
390
  This property is required when creating a DB instance.
388
- You can change the architecture of an Oracle database from the non-container database (CDB) architecture to the CDB architecture by updating the ``Engine`` value in your templates from ``oracle-ee`` or ``oracle-ee-cdb`` to ``oracle-se2-cdb``. Converting to the CDB architecture requires an interruption.
391
+ You can convert an Oracle database from the non-CDB architecture to the container database (CDB) architecture by updating the ``Engine`` value in your templates from ``oracle-ee`` to ``oracle-ee-cdb`` or from ``oracle-se2`` to ``oracle-se2-cdb``. Converting to the CDB architecture requires an interruption.
389
392
  Valid Values:
390
393
  + ``aurora-mysql`` (for Aurora MySQL DB instances)
391
394
  + ``aurora-postgresql`` (for Aurora PostgreSQL DB instances)
@@ -442,7 +445,7 @@ export type RDSDBInstanceProperties = {
442
445
  * The ARN of the AWS KMS key that's used to encrypt the DB instance, such as ``arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef``. If you enable the StorageEncrypted property but don't specify this property, AWS CloudFormation uses the default KMS key. If you specify this property, you must set the StorageEncrypted property to true.
443
446
  If you specify the ``SourceDBInstanceIdentifier`` property, the value is inherited from the source DB instance if the read replica is created in the same region.
444
447
  If you create an encrypted read replica in a different AWS Region, then you must specify a KMS key for the destination AWS Region. KMS encryption keys are specific to the region that they're created in, and you can't use encryption keys from one region in another region.
445
- If you specify the ``SnapshotIdentifier`` property, the ``StorageEncrypted`` property value is inherited from the snapshot, and if the DB instance is encrypted, the specified ``KmsKeyId`` property is used.
448
+ If you specify the ``DBSnapshotIdentifier`` property, don't specify this property. The ``StorageEncrypted`` property value is inherited from the snapshot. If the DB instance is encrypted, the specified ``KmsKeyId`` property is also inherited from the snapshot.
446
449
  If you specify ``DBSecurityGroups``, AWS CloudFormation ignores this property. To specify both a security group and this property, you must use a VPC security group. For more information about Amazon RDS and VPC, see [Using Amazon RDS with Amazon VPC](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.html) in the *Amazon RDS User Guide*.
447
450
  *Amazon Aurora*
448
451
  Not applicable. The KMS key identifier is managed by the DB cluster.
@@ -707,8 +710,7 @@ export type RDSDBInstanceProperties = {
707
710
  * A value that indicates whether the DB instance is encrypted. By default, it isn't encrypted.
708
711
  If you specify the ``KmsKeyId`` property, then you must enable encryption.
709
712
  If you specify the ``SourceDBInstanceIdentifier`` property, don't specify this property. The value is inherited from the source DB instance, and if the DB instance is encrypted, the specified ``KmsKeyId`` property is used.
710
- If you specify the ``DBSnapshotIdentifier`` and the specified snapshot is encrypted, don't specify this property. The value is inherited from the snapshot, and the specified ``KmsKeyId`` property is used.
711
- If you specify the ``DBSnapshotIdentifier`` and the specified snapshot isn't encrypted, you can use this property to specify that the restored DB instance is encrypted. Specify the ``KmsKeyId`` property for the KMS key to use for encryption. If you don't want the restored DB instance to be encrypted, then don't set this property or set it to ``false``.
713
+ If you specify ``DBSnapshotIdentifier`` property, don't specify this property. The value is inherited from the snapshot.
712
714
  *Amazon Aurora*
713
715
  Not applicable. The encryption for DB instances is managed by the DB cluster.
714
716
  */
@@ -733,7 +735,7 @@ export type RDSDBInstanceProperties = {
733
735
  TdeCredentialArn?: string;
734
736
  TdeCredentialPassword?: string;
735
737
  /**
736
- * The time zone of the DB instance. The time zone parameter is currently supported only by [Microsoft SQL Server](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_SQLServer.html#SQLServer.Concepts.General.TimeZone).
738
+ * The time zone of the DB instance. The time zone parameter is currently supported only by [RDS for Db2](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-time-zone) and [RDS for SQL Server](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_SQLServer.html#SQLServer.Concepts.General.TimeZone).
737
739
  */
738
740
  Timezone?: string;
739
741
  /**
@@ -0,0 +1,13 @@
1
+ import { Resource as $Resource } from "@awboost/cfn-template-builder/template/resource";
2
+ /**
3
+ * Resource type definition for `AWS::SecurityHub::SecurityControl`.
4
+ * A security control in Security Hub describes a security best practice related to a specific resource.
5
+ * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-securitycontrol.html}
6
+ */
7
+ export class SecurityHubSecurityControl extends $Resource {
8
+ static Type = "AWS::SecurityHub::SecurityControl";
9
+ constructor(logicalId, properties, options) {
10
+ super(logicalId, SecurityHubSecurityControl.Type, properties, options);
11
+ }
12
+ }
13
+ //# sourceMappingURL=AWS-SecurityHub-SecurityControl.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awboost/cfn-resource-types",
3
- "version": "0.1.77",
3
+ "version": "0.1.79",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },