@awboost/cfn-resource-types 0.1.45 → 0.1.47
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-AppSync-Resolver.d.ts +3 -0
- package/lib/AWS-CleanRooms-ConfiguredTable.d.ts +19 -1
- package/lib/AWS-CloudFront-OriginAccessControl.d.ts +1 -1
- package/lib/AWS-CodeStarConnections-RepositoryLink.d.ts +1 -2
- package/lib/AWS-CodeStarConnections-SyncConfiguration.d.ts +9 -2
- package/lib/AWS-Connect-PredefinedAttribute.d.ts +16 -1
- package/lib/AWS-DocDBElastic-Cluster.d.ts +3 -0
- package/lib/AWS-EC2-Route.d.ts +17 -15
- package/lib/AWS-EC2-Route.js +3 -1
- package/lib/AWS-EC2-Subnet.d.ts +1 -0
- package/lib/AWS-EC2-TransitGatewayRouteTableAssociation.d.ts +7 -8
- package/lib/AWS-EntityResolution-IdMappingWorkflow.d.ts +4 -3
- package/lib/AWS-Lambda-EventSourceMapping.d.ts +130 -74
- package/lib/AWS-Lambda-EventSourceMapping.js +9 -1
- package/lib/AWS-RDS-Integration.d.ts +13 -0
- package/package.json +1 -1
|
@@ -41,6 +41,9 @@ export type AppSyncResolverProperties = {
|
|
|
41
41
|
* The maximum number of resolver request inputs that will be sent to a single LAMlong function in a ``BatchInvoke`` operation.
|
|
42
42
|
*/
|
|
43
43
|
MaxBatchSize?: number;
|
|
44
|
+
/**
|
|
45
|
+
* Enables or disables enhanced resolver metrics for specified resolvers. Note that ``MetricsConfig`` won't be used unless the ``resolverLevelMetricsBehavior`` value is set to ``PER_RESOLVER_METRICS``. If the ``resolverLevelMetricsBehavior`` is set to ``FULL_REQUEST_RESOLVER_METRICS`` instead, ``MetricsConfig`` will be ignored. However, you can still set its value.
|
|
46
|
+
*/
|
|
44
47
|
MetricsConfig?: "ENABLED" | "DISABLED";
|
|
45
48
|
/**
|
|
46
49
|
* Functions linked with the pipeline resolver.
|
|
@@ -137,6 +137,7 @@ export type AnalysisRuleCustom = {
|
|
|
137
137
|
* @minLength `0`
|
|
138
138
|
*/
|
|
139
139
|
AllowedAnalysisProviders?: string[];
|
|
140
|
+
DifferentialPrivacy?: DifferentialPrivacy;
|
|
140
141
|
};
|
|
141
142
|
/**
|
|
142
143
|
* Type definition for `AWS::CleanRooms::ConfiguredTable.AnalysisRuleList`.
|
|
@@ -176,6 +177,23 @@ export type ConfiguredTableAnalysisRulePolicyV1 = {
|
|
|
176
177
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtable-configuredtableanalysisruletype.html}
|
|
177
178
|
*/
|
|
178
179
|
export type ConfiguredTableAnalysisRuleType = "AGGREGATION" | "LIST" | "CUSTOM";
|
|
180
|
+
/**
|
|
181
|
+
* Type definition for `AWS::CleanRooms::ConfiguredTable.DifferentialPrivacy`.
|
|
182
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtable-differentialprivacy.html}
|
|
183
|
+
*/
|
|
184
|
+
export type DifferentialPrivacy = {
|
|
185
|
+
/**
|
|
186
|
+
* @minLength `1`
|
|
187
|
+
*/
|
|
188
|
+
Columns: DifferentialPrivacyColumn[];
|
|
189
|
+
};
|
|
190
|
+
/**
|
|
191
|
+
* Type definition for `AWS::CleanRooms::ConfiguredTable.DifferentialPrivacyColumn`.
|
|
192
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtable-differentialprivacycolumn.html}
|
|
193
|
+
*/
|
|
194
|
+
export type DifferentialPrivacyColumn = {
|
|
195
|
+
Name: string;
|
|
196
|
+
};
|
|
179
197
|
/**
|
|
180
198
|
* Type definition for `AWS::CleanRooms::ConfiguredTable.GlueTableReference`.
|
|
181
199
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtable-gluetablereference.html}
|
|
@@ -206,7 +224,7 @@ export type JoinRequiredOption = "QUERY_RUNNER";
|
|
|
206
224
|
* Type definition for `AWS::CleanRooms::ConfiguredTable.ScalarFunctions`.
|
|
207
225
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtable-scalarfunctions.html}
|
|
208
226
|
*/
|
|
209
|
-
export type ScalarFunctions = "TRUNC" | "ABS" | "CEILING" | "FLOOR" | "LN" | "LOG" | "ROUND" | "SQRT" | "CAST" | "LOWER" | "RTRIM" | "UPPER" | "COALESCE";
|
|
227
|
+
export type ScalarFunctions = "TRUNC" | "ABS" | "CEILING" | "FLOOR" | "LN" | "LOG" | "ROUND" | "SQRT" | "CAST" | "LOWER" | "RTRIM" | "UPPER" | "COALESCE" | "CONVERT" | "CURRENT_DATE" | "DATEADD" | "EXTRACT" | "GETDATE" | "SUBSTRING" | "TO_CHAR" | "TO_DATE" | "TO_NUMBER" | "TO_TIMESTAMP" | "TRIM";
|
|
210
228
|
/**
|
|
211
229
|
* Type definition for `AWS::CleanRooms::ConfiguredTable.TableReference`.
|
|
212
230
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtable-tablereference.html}
|
|
@@ -37,9 +37,8 @@ export type CodeStarConnectionsRepositoryLinkProperties = {
|
|
|
37
37
|
export type CodeStarConnectionsRepositoryLinkAttributes = {
|
|
38
38
|
/**
|
|
39
39
|
* The name of the external provider where your third-party code repository is configured.
|
|
40
|
-
* @pattern `^(GitHub|Bitbucket|GitHubEnterprise|GitLab)$`
|
|
41
40
|
*/
|
|
42
|
-
ProviderType:
|
|
41
|
+
ProviderType: "GitHub" | "Bitbucket" | "GitHubEnterprise" | "GitLab" | "GitLabSelfManaged";
|
|
43
42
|
/**
|
|
44
43
|
* A unique Amazon Resource Name (ARN) to designate the repository link.
|
|
45
44
|
* @pattern `arn:(aws|aws-us-gov|aws-cn):.+:.+:[0-9]{12}:.+`
|
|
@@ -13,6 +13,10 @@ export type CodeStarConnectionsSyncConfigurationProperties = {
|
|
|
13
13
|
* The source provider repository path of the sync configuration file of the respective SyncType.
|
|
14
14
|
*/
|
|
15
15
|
ConfigFile: string;
|
|
16
|
+
/**
|
|
17
|
+
* Whether to enable or disable publishing of deployment status to source providers.
|
|
18
|
+
*/
|
|
19
|
+
PublishDeploymentStatus?: "ENABLED" | "DISABLED";
|
|
16
20
|
/**
|
|
17
21
|
* A UUID that uniquely identifies the RepositoryLink that the SyncConfig is associated with.
|
|
18
22
|
* @pattern `[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}`
|
|
@@ -31,6 +35,10 @@ export type CodeStarConnectionsSyncConfigurationProperties = {
|
|
|
31
35
|
* The type of resource synchronization service that is to be configured, for example, CFN_STACK_SYNC.
|
|
32
36
|
*/
|
|
33
37
|
SyncType: string;
|
|
38
|
+
/**
|
|
39
|
+
* When to trigger Git sync to begin the stack update.
|
|
40
|
+
*/
|
|
41
|
+
TriggerResourceUpdateOn?: "ANY_CHANGE" | "FILE_CHANGE";
|
|
34
42
|
};
|
|
35
43
|
/**
|
|
36
44
|
* Attribute type definition for `AWS::CodeStarConnections::SyncConfiguration`.
|
|
@@ -44,9 +52,8 @@ export type CodeStarConnectionsSyncConfigurationAttributes = {
|
|
|
44
52
|
OwnerId: string;
|
|
45
53
|
/**
|
|
46
54
|
* The name of the external provider where your third-party code repository is configured.
|
|
47
|
-
* @pattern `^(GitHub|Bitbucket|GitHubEnterprise|GitLab)$`
|
|
48
55
|
*/
|
|
49
|
-
ProviderType:
|
|
56
|
+
ProviderType: "GitHub" | "Bitbucket" | "GitHubEnterprise" | "GitLab" | "GitLabSelfManaged";
|
|
50
57
|
/**
|
|
51
58
|
* The name of the repository that is being synced to.
|
|
52
59
|
* @pattern `[a-za-z0-9_\.-]+`
|
|
@@ -28,11 +28,26 @@ export type ConnectPredefinedAttributeProperties = {
|
|
|
28
28
|
StringList?: string[];
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
|
+
/**
|
|
32
|
+
* Attribute type definition for `AWS::Connect::PredefinedAttribute`.
|
|
33
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-predefinedattribute.html#aws-resource-connect-predefinedattribute-return-values}
|
|
34
|
+
*/
|
|
35
|
+
export type ConnectPredefinedAttributeAttributes = {
|
|
36
|
+
/**
|
|
37
|
+
* Last modified region.
|
|
38
|
+
* @pattern `[a-z]{2}(-[a-z]+){1,2}(-[0-9])?`
|
|
39
|
+
*/
|
|
40
|
+
LastModifiedRegion: string;
|
|
41
|
+
/**
|
|
42
|
+
* Last modified time.
|
|
43
|
+
*/
|
|
44
|
+
LastModifiedTime: number;
|
|
45
|
+
};
|
|
31
46
|
/**
|
|
32
47
|
* Resource Type definition for AWS::Connect::PredefinedAttribute
|
|
33
48
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-predefinedattribute.html}
|
|
34
49
|
*/
|
|
35
|
-
export declare class ConnectPredefinedAttribute extends $Resource<"AWS::Connect::PredefinedAttribute", ConnectPredefinedAttributeProperties,
|
|
50
|
+
export declare class ConnectPredefinedAttribute extends $Resource<"AWS::Connect::PredefinedAttribute", ConnectPredefinedAttributeProperties, ConnectPredefinedAttributeAttributes> {
|
|
36
51
|
static readonly Type = "AWS::Connect::PredefinedAttribute";
|
|
37
52
|
constructor(logicalId: string, properties: ConnectPredefinedAttributeProperties, options?: $ResourceOptions);
|
|
38
53
|
}
|
|
@@ -8,6 +8,7 @@ export type DocDBElasticClusterProperties = {
|
|
|
8
8
|
AdminUserName: string;
|
|
9
9
|
AdminUserPassword?: string;
|
|
10
10
|
AuthType: string;
|
|
11
|
+
BackupRetentionPeriod?: number;
|
|
11
12
|
/**
|
|
12
13
|
* @minLength `1`
|
|
13
14
|
* @maxLength `50`
|
|
@@ -15,9 +16,11 @@ export type DocDBElasticClusterProperties = {
|
|
|
15
16
|
*/
|
|
16
17
|
ClusterName: string;
|
|
17
18
|
KmsKeyId?: string;
|
|
19
|
+
PreferredBackupWindow?: string;
|
|
18
20
|
PreferredMaintenanceWindow?: string;
|
|
19
21
|
ShardCapacity: number;
|
|
20
22
|
ShardCount: number;
|
|
23
|
+
ShardInstanceCount?: number;
|
|
21
24
|
SubnetIds?: string[];
|
|
22
25
|
/**
|
|
23
26
|
* @minLength `0`
|
package/lib/AWS-EC2-Route.d.ts
CHANGED
|
@@ -1,32 +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
|
-
*
|
|
4
|
+
* Specifies a route in a route table. For more information, see [Routes](https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html#route-table-routes) in the *Amazon VPC User Guide*.
|
|
5
|
+
You must specify either a destination CIDR block or prefix list ID. You must also specify exactly one of the resources as the target.
|
|
6
|
+
If you create a route that references a transit gateway in the same template where you create the transit gateway, you must declare a dependency on the transit gateway attachment. The route table cannot use the transit gateway until it has successfully attached to the VPC. Add a [DependsOn Attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html) in the ``AWS::EC2::Route`` resource to explicitly declare a dependency on the ``AWS::EC2::TransitGatewayAttachment`` resource.
|
|
5
7
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-route.html}
|
|
6
8
|
*/
|
|
7
9
|
export type EC2RouteProperties = {
|
|
8
10
|
/**
|
|
9
|
-
|
|
10
|
-
|
|
11
|
+
* The ID of the carrier gateway.
|
|
12
|
+
You can only use this option when the VPC contains a subnet which is associated with a Wavelength Zone.
|
|
13
|
+
*/
|
|
11
14
|
CarrierGatewayId?: string;
|
|
12
15
|
/**
|
|
13
16
|
* The Amazon Resource Name (ARN) of the core network.
|
|
14
17
|
*/
|
|
15
18
|
CoreNetworkArn?: string;
|
|
16
19
|
/**
|
|
17
|
-
* The IPv4 CIDR block used for the destination match.
|
|
20
|
+
* The IPv4 CIDR address block used for the destination match. Routing decisions are based on the most specific match. We modify the specified CIDR block to its canonical form; for example, if you specify ``100.68.0.18/18``, we modify it to ``100.68.0.0/18``.
|
|
18
21
|
*/
|
|
19
22
|
DestinationCidrBlock?: string;
|
|
20
23
|
/**
|
|
21
|
-
* The IPv6 CIDR block used for the destination match.
|
|
24
|
+
* The IPv6 CIDR block used for the destination match. Routing decisions are based on the most specific match.
|
|
22
25
|
*/
|
|
23
26
|
DestinationIpv6CidrBlock?: string;
|
|
24
27
|
/**
|
|
25
|
-
* The ID of
|
|
28
|
+
* The ID of a prefix list used for the destination match.
|
|
26
29
|
*/
|
|
27
30
|
DestinationPrefixListId?: string;
|
|
28
31
|
/**
|
|
29
|
-
* The ID of
|
|
32
|
+
* [IPv6 traffic only] The ID of an egress-only internet gateway.
|
|
30
33
|
*/
|
|
31
34
|
EgressOnlyInternetGatewayId?: string;
|
|
32
35
|
/**
|
|
@@ -34,7 +37,7 @@ export type EC2RouteProperties = {
|
|
|
34
37
|
*/
|
|
35
38
|
GatewayId?: string;
|
|
36
39
|
/**
|
|
37
|
-
* The ID of a NAT instance in your VPC.
|
|
40
|
+
* The ID of a NAT instance in your VPC. The operation fails if you specify an instance ID unless exactly one network interface is attached.
|
|
38
41
|
*/
|
|
39
42
|
InstanceId?: string;
|
|
40
43
|
/**
|
|
@@ -42,15 +45,15 @@ export type EC2RouteProperties = {
|
|
|
42
45
|
*/
|
|
43
46
|
LocalGatewayId?: string;
|
|
44
47
|
/**
|
|
45
|
-
* The ID of a NAT gateway.
|
|
48
|
+
* [IPv4 traffic only] The ID of a NAT gateway.
|
|
46
49
|
*/
|
|
47
50
|
NatGatewayId?: string;
|
|
48
51
|
/**
|
|
49
|
-
* The ID of
|
|
52
|
+
* The ID of a network interface.
|
|
50
53
|
*/
|
|
51
54
|
NetworkInterfaceId?: string;
|
|
52
55
|
/**
|
|
53
|
-
* The ID of the route table
|
|
56
|
+
* The ID of the route table for the route.
|
|
54
57
|
*/
|
|
55
58
|
RouteTableId: string;
|
|
56
59
|
/**
|
|
@@ -71,13 +74,12 @@ export type EC2RouteProperties = {
|
|
|
71
74
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-route.html#aws-resource-ec2-route-return-values}
|
|
72
75
|
*/
|
|
73
76
|
export type EC2RouteAttributes = {
|
|
74
|
-
/**
|
|
75
|
-
* The primary identifier of the resource generated by the service.
|
|
76
|
-
*/
|
|
77
77
|
CidrBlock: string;
|
|
78
78
|
};
|
|
79
79
|
/**
|
|
80
|
-
*
|
|
80
|
+
* Specifies a route in a route table. For more information, see [Routes](https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html#route-table-routes) in the *Amazon VPC User Guide*.
|
|
81
|
+
You must specify either a destination CIDR block or prefix list ID. You must also specify exactly one of the resources as the target.
|
|
82
|
+
If you create a route that references a transit gateway in the same template where you create the transit gateway, you must declare a dependency on the transit gateway attachment. The route table cannot use the transit gateway until it has successfully attached to the VPC. Add a [DependsOn Attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html) in the ``AWS::EC2::Route`` resource to explicitly declare a dependency on the ``AWS::EC2::TransitGatewayAttachment`` resource.
|
|
81
83
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-route.html}
|
|
82
84
|
*/
|
|
83
85
|
export declare class EC2Route extends $Resource<"AWS::EC2::Route", EC2RouteProperties, EC2RouteAttributes> {
|
package/lib/AWS-EC2-Route.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Resource as $Resource } from "@awboost/cfn-template-builder/template/resource";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Specifies a route in a route table. For more information, see [Routes](https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html#route-table-routes) in the *Amazon VPC User Guide*.
|
|
4
|
+
You must specify either a destination CIDR block or prefix list ID. You must also specify exactly one of the resources as the target.
|
|
5
|
+
If you create a route that references a transit gateway in the same template where you create the transit gateway, you must declare a dependency on the transit gateway attachment. The route table cannot use the transit gateway until it has successfully attached to the VPC. Add a [DependsOn Attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html) in the ``AWS::EC2::Route`` resource to explicitly declare a dependency on the ``AWS::EC2::TransitGatewayAttachment`` resource.
|
|
4
6
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-route.html}
|
|
5
7
|
*/
|
|
6
8
|
export class EC2Route extends $Resource {
|
package/lib/AWS-EC2-Subnet.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ export type EC2SubnetProperties = {
|
|
|
31
31
|
* Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this subnet should return synthetic IPv6 addresses for IPv4-only destinations. For more information, see [DNS64 and NAT64](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html#nat-gateway-nat64-dns64) in the *User Guide*.
|
|
32
32
|
*/
|
|
33
33
|
EnableDns64?: boolean;
|
|
34
|
+
EnableLniAtDeviceIndex?: number;
|
|
34
35
|
/**
|
|
35
36
|
* An IPv4 IPAM pool ID for the subnet.
|
|
36
37
|
*/
|
|
@@ -5,21 +5,20 @@ import type { ResourceOptions as $ResourceOptions } from "@awboost/cfn-template-
|
|
|
5
5
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-transitgatewayroutetableassociation.html}
|
|
6
6
|
*/
|
|
7
7
|
export type EC2TransitGatewayRouteTableAssociationProperties = {
|
|
8
|
+
/**
|
|
9
|
+
* The ID of transit gateway attachment.
|
|
10
|
+
*/
|
|
8
11
|
TransitGatewayAttachmentId: string;
|
|
12
|
+
/**
|
|
13
|
+
* The ID of transit gateway route table.
|
|
14
|
+
*/
|
|
9
15
|
TransitGatewayRouteTableId: string;
|
|
10
16
|
};
|
|
11
|
-
/**
|
|
12
|
-
* Attribute type definition for `AWS::EC2::TransitGatewayRouteTableAssociation`.
|
|
13
|
-
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-transitgatewayroutetableassociation.html#aws-resource-ec2-transitgatewayroutetableassociation-return-values}
|
|
14
|
-
*/
|
|
15
|
-
export type EC2TransitGatewayRouteTableAssociationAttributes = {
|
|
16
|
-
Id: string;
|
|
17
|
-
};
|
|
18
17
|
/**
|
|
19
18
|
* Resource Type definition for AWS::EC2::TransitGatewayRouteTableAssociation
|
|
20
19
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-transitgatewayroutetableassociation.html}
|
|
21
20
|
*/
|
|
22
|
-
export declare class EC2TransitGatewayRouteTableAssociation extends $Resource<"AWS::EC2::TransitGatewayRouteTableAssociation", EC2TransitGatewayRouteTableAssociationProperties,
|
|
21
|
+
export declare class EC2TransitGatewayRouteTableAssociation extends $Resource<"AWS::EC2::TransitGatewayRouteTableAssociation", EC2TransitGatewayRouteTableAssociationProperties, Record<string, never>> {
|
|
23
22
|
static readonly Type = "AWS::EC2::TransitGatewayRouteTableAssociation";
|
|
24
23
|
constructor(logicalId: string, properties: EC2TransitGatewayRouteTableAssociationProperties, options?: $ResourceOptions);
|
|
25
24
|
}
|
|
@@ -22,7 +22,7 @@ export type EntityResolutionIdMappingWorkflowProperties = {
|
|
|
22
22
|
* @minLength `1`
|
|
23
23
|
* @maxLength `1`
|
|
24
24
|
*/
|
|
25
|
-
OutputSourceConfig
|
|
25
|
+
OutputSourceConfig?: IdMappingWorkflowOutputSource[];
|
|
26
26
|
/**
|
|
27
27
|
* @pattern `^arn:(aws|aws-us-gov|aws-cn):iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+$`
|
|
28
28
|
*/
|
|
@@ -73,7 +73,7 @@ export type IdMappingTechniques = {
|
|
|
73
73
|
*/
|
|
74
74
|
export type IdMappingWorkflowInputSource = {
|
|
75
75
|
/**
|
|
76
|
-
* An Glue table ARN for the input source table
|
|
76
|
+
* An Glue table ARN for the input source table or IdNamespace ARN
|
|
77
77
|
* @pattern `arn:(aws|aws-us-gov|aws-cn):.*:.*:[0-9]+:.*$`
|
|
78
78
|
*/
|
|
79
79
|
InputSourceARN: string;
|
|
@@ -81,7 +81,8 @@ export type IdMappingWorkflowInputSource = {
|
|
|
81
81
|
* The SchemaMapping arn associated with the Schema
|
|
82
82
|
* @pattern `^arn:(aws|aws-us-gov|aws-cn):entityresolution:.*:[0-9]+:(schemamapping/.*)$`
|
|
83
83
|
*/
|
|
84
|
-
SchemaArn
|
|
84
|
+
SchemaArn?: string;
|
|
85
|
+
Type?: "SOURCE" | "TARGET";
|
|
85
86
|
};
|
|
86
87
|
/**
|
|
87
88
|
* Type definition for `AWS::EntityResolution::IdMappingWorkflow.IdMappingWorkflowOutputSource`.
|
|
@@ -1,125 +1,162 @@
|
|
|
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
|
-
*
|
|
4
|
+
* The ``AWS::Lambda::EventSourceMapping`` resource creates a mapping between an event source and an LAMlong function. LAM reads items from the event source and triggers the function.
|
|
5
|
+
For details about each event source type, see the following topics. In particular, each of the topics describes the required and optional parameters for the specific event source.
|
|
6
|
+
+ [Configuring a Dynamo DB stream as an event source](https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-dynamodb-eventsourcemapping)
|
|
7
|
+
+ [Configuring a Kinesis stream as an event source](https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-eventsourcemapping)
|
|
8
|
+
+ [Configuring an SQS queue as an event source](https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-eventsource)
|
|
9
|
+
+ [Configuring an MQ broker as an event source](https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html#services-mq-eventsourcemapping)
|
|
10
|
+
+ [Configuring MSK as an event source](https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html)
|
|
11
|
+
+ [Configuring Self-Managed Apache Kafka as an event source](https://docs.aws.amazon.com/lambda/latest/dg/kafka-smaa.html)
|
|
12
|
+
+ [Configuring Amazon DocumentDB as an event source](https://docs.aws.amazon.com/lambda/latest/dg/with-documentdb.html)
|
|
5
13
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html}
|
|
6
14
|
*/
|
|
7
15
|
export type LambdaEventSourceMappingProperties = {
|
|
8
16
|
/**
|
|
9
|
-
* Specific configuration settings for an MSK event source.
|
|
17
|
+
* Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source.
|
|
10
18
|
*/
|
|
11
19
|
AmazonManagedKafkaEventSourceConfig?: AmazonManagedKafkaEventSourceConfig;
|
|
12
20
|
/**
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
21
|
+
* The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function. Lambda passes all of the records in the batch to the function in a single call, up to the payload limit for synchronous invocation (6 MB).
|
|
22
|
+
+ *Amazon Kinesis* – Default 100. Max 10,000.
|
|
23
|
+
+ *Amazon DynamoDB Streams* – Default 100. Max 10,000.
|
|
24
|
+
+ *Amazon Simple Queue Service* – Default 10. For standard queues the max is 10,000. For FIFO queues the max is 10.
|
|
25
|
+
+ *Amazon Managed Streaming for Apache Kafka* – Default 100. Max 10,000.
|
|
26
|
+
+ *Self-managed Apache Kafka* – Default 100. Max 10,000.
|
|
27
|
+
+ *Amazon MQ (ActiveMQ and RabbitMQ)* – Default 100. Max 10,000.
|
|
28
|
+
+ *DocumentDB* – Default 100. Max 10,000.
|
|
29
|
+
* @min `1`
|
|
30
|
+
* @max `10000`
|
|
31
|
+
*/
|
|
17
32
|
BatchSize?: number;
|
|
18
33
|
/**
|
|
19
|
-
* (Streams) If the function returns an error, split the batch in two and retry.
|
|
34
|
+
* (Kinesis and DynamoDB Streams only) If the function returns an error, split the batch in two and retry. The default value is false.
|
|
20
35
|
*/
|
|
21
36
|
BisectBatchOnFunctionError?: boolean;
|
|
22
37
|
/**
|
|
23
|
-
* (Streams
|
|
38
|
+
* (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka event sources only) A configuration object that specifies the destination of an event after Lambda processes it.
|
|
24
39
|
*/
|
|
25
40
|
DestinationConfig?: DestinationConfig;
|
|
26
41
|
/**
|
|
27
|
-
*
|
|
42
|
+
* Specific configuration settings for a DocumentDB event source.
|
|
28
43
|
*/
|
|
29
44
|
DocumentDBEventSourceConfig?: DocumentDBEventSourceConfig;
|
|
30
45
|
/**
|
|
31
|
-
|
|
32
|
-
|
|
46
|
+
* When true, the event source mapping is active. When false, Lambda pauses polling and invocation.
|
|
47
|
+
Default: True
|
|
48
|
+
*/
|
|
33
49
|
Enabled?: boolean;
|
|
34
50
|
/**
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
51
|
+
* The Amazon Resource Name (ARN) of the event source.
|
|
52
|
+
+ *Amazon Kinesis* – The ARN of the data stream or a stream consumer.
|
|
53
|
+
+ *Amazon DynamoDB Streams* – The ARN of the stream.
|
|
54
|
+
+ *Amazon Simple Queue Service* – The ARN of the queue.
|
|
55
|
+
+ *Amazon Managed Streaming for Apache Kafka* – The ARN of the cluster or the ARN of the VPC connection (for [cross-account event source mappings](https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#msk-multi-vpc)).
|
|
56
|
+
+ *Amazon MQ* – The ARN of the broker.
|
|
57
|
+
+ *Amazon DocumentDB* – The ARN of the DocumentDB change stream.
|
|
58
|
+
* @minLength `12`
|
|
59
|
+
* @maxLength `1024`
|
|
60
|
+
* @pattern `arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\-])+:([a-z]{2}(-gov)?(-iso)?(-isob)?-[a-z]+-\d{1})?:(\d{12})?:(.*)`
|
|
61
|
+
*/
|
|
40
62
|
EventSourceArn?: string;
|
|
41
63
|
/**
|
|
42
|
-
*
|
|
64
|
+
* An object that defines the filter criteria that determine whether Lambda should process an event. For more information, see [Lambda event filtering](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html).
|
|
43
65
|
*/
|
|
44
66
|
FilterCriteria?: FilterCriteria;
|
|
45
67
|
/**
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
68
|
+
* The name or ARN of the Lambda function.
|
|
69
|
+
**Name formats**
|
|
70
|
+
+ *Function name* – ``MyFunction``.
|
|
71
|
+
+ *Function ARN* – ``arn:aws:lambda:us-west-2:123456789012:function:MyFunction``.
|
|
72
|
+
+ *Version or Alias ARN* – ``arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD``.
|
|
73
|
+
+ *Partial ARN* – ``123456789012:function:MyFunction``.
|
|
74
|
+
|
|
75
|
+
The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 characters in length.
|
|
76
|
+
* @minLength `1`
|
|
77
|
+
* @maxLength `140`
|
|
78
|
+
* @pattern `(arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}(-gov)?(-iso)?(-isob)?-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?`
|
|
79
|
+
*/
|
|
51
80
|
FunctionName: string;
|
|
52
81
|
/**
|
|
53
|
-
|
|
54
|
-
|
|
82
|
+
* (Streams and SQS) A list of current response type enums applied to the event source mapping.
|
|
83
|
+
Valid Values: ``ReportBatchItemFailures``
|
|
84
|
+
*/
|
|
55
85
|
FunctionResponseTypes?: "ReportBatchItemFailures"[];
|
|
56
86
|
/**
|
|
57
|
-
*
|
|
87
|
+
* The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function.
|
|
88
|
+
*Default (, , event sources)*: 0
|
|
89
|
+
*Default (, Kafka, , event sources)*: 500 ms
|
|
90
|
+
*Related setting:* For SQS event sources, when you set ``BatchSize`` to a value greater than 10, you must set ``MaximumBatchingWindowInSeconds`` to at least 1.
|
|
58
91
|
* @min `0`
|
|
59
92
|
* @max `300`
|
|
60
93
|
*/
|
|
61
94
|
MaximumBatchingWindowInSeconds?: number;
|
|
62
95
|
/**
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
96
|
+
* (Kinesis and DynamoDB Streams only) Discard records older than the specified age. The default value is -1, which sets the maximum age to infinite. When the value is set to infinite, Lambda never discards old records.
|
|
97
|
+
The minimum valid value for maximum record age is 60s. Although values less than 60 and greater than -1 fall within the parameter's absolute range, they are not allowed
|
|
98
|
+
* @min `-1`
|
|
99
|
+
* @max `604800`
|
|
100
|
+
*/
|
|
67
101
|
MaximumRecordAgeInSeconds?: number;
|
|
68
102
|
/**
|
|
69
|
-
* (Streams) The maximum number of
|
|
103
|
+
* (Kinesis and DynamoDB Streams only) Discard records after the specified number of retries. The default value is -1, which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, Lambda retries failed records until the record expires in the event source.
|
|
70
104
|
* @min `-1`
|
|
71
105
|
* @max `10000`
|
|
72
106
|
*/
|
|
73
107
|
MaximumRetryAttempts?: number;
|
|
74
108
|
/**
|
|
75
|
-
* (Streams) The number of batches to process from each shard
|
|
109
|
+
* (Kinesis and DynamoDB Streams only) The number of batches to process concurrently from each shard. The default value is 1.
|
|
76
110
|
* @min `1`
|
|
77
111
|
* @max `10`
|
|
78
112
|
*/
|
|
79
113
|
ParallelizationFactor?: number;
|
|
80
114
|
/**
|
|
81
|
-
* (
|
|
115
|
+
* (Amazon MQ) The name of the Amazon MQ broker destination queue to consume.
|
|
82
116
|
* @minLength `1`
|
|
83
117
|
* @maxLength `1`
|
|
84
118
|
*/
|
|
85
119
|
Queues?: string[];
|
|
86
120
|
/**
|
|
87
|
-
* The scaling configuration for the event source.
|
|
121
|
+
* (Amazon SQS only) The scaling configuration for the event source. For more information, see [Configuring maximum concurrency for Amazon SQS event sources](https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency).
|
|
88
122
|
*/
|
|
89
123
|
ScalingConfig?: ScalingConfig;
|
|
90
124
|
/**
|
|
91
|
-
*
|
|
125
|
+
* The self-managed Apache Kafka cluster for your event source.
|
|
92
126
|
*/
|
|
93
127
|
SelfManagedEventSource?: SelfManagedEventSource;
|
|
94
128
|
/**
|
|
95
|
-
* Specific configuration settings for a
|
|
129
|
+
* Specific configuration settings for a self-managed Apache Kafka event source.
|
|
96
130
|
*/
|
|
97
131
|
SelfManagedKafkaEventSourceConfig?: SelfManagedKafkaEventSourceConfig;
|
|
98
132
|
/**
|
|
99
|
-
*
|
|
133
|
+
* An array of the authentication protocol, VPC components, or virtual host to secure and define your event source.
|
|
100
134
|
* @minLength `1`
|
|
101
135
|
* @maxLength `22`
|
|
102
136
|
*/
|
|
103
137
|
SourceAccessConfigurations?: SourceAccessConfiguration[];
|
|
104
138
|
/**
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
139
|
+
* The position in a stream from which to start reading. Required for Amazon Kinesis and Amazon DynamoDB.
|
|
140
|
+
+ *LATEST* - Read only new records.
|
|
141
|
+
+ *TRIM_HORIZON* - Process all available records.
|
|
142
|
+
+ *AT_TIMESTAMP* - Specify a time from which to start reading records.
|
|
143
|
+
* @minLength `6`
|
|
144
|
+
* @maxLength `12`
|
|
145
|
+
* @pattern `(LATEST|TRIM_HORIZON|AT_TIMESTAMP)+`
|
|
146
|
+
*/
|
|
110
147
|
StartingPosition?: string;
|
|
111
148
|
/**
|
|
112
|
-
* With StartingPosition set to AT_TIMESTAMP
|
|
149
|
+
* With ``StartingPosition`` set to ``AT_TIMESTAMP``, the time from which to start reading, in Unix time seconds. ``StartingPositionTimestamp`` cannot be in the future.
|
|
113
150
|
*/
|
|
114
151
|
StartingPositionTimestamp?: number;
|
|
115
152
|
/**
|
|
116
|
-
*
|
|
153
|
+
* The name of the Kafka topic.
|
|
117
154
|
* @minLength `1`
|
|
118
155
|
* @maxLength `1`
|
|
119
156
|
*/
|
|
120
157
|
Topics?: string[];
|
|
121
158
|
/**
|
|
122
|
-
* (Streams)
|
|
159
|
+
* (Kinesis and DynamoDB Streams only) The duration in seconds of a processing window for DynamoDB and Kinesis Streams event sources. A value of 0 seconds indicates no tumbling window.
|
|
123
160
|
* @min `0`
|
|
124
161
|
* @max `900`
|
|
125
162
|
*/
|
|
@@ -131,7 +168,6 @@ export type LambdaEventSourceMappingProperties = {
|
|
|
131
168
|
*/
|
|
132
169
|
export type LambdaEventSourceMappingAttributes = {
|
|
133
170
|
/**
|
|
134
|
-
* Event Source Mapping Identifier UUID.
|
|
135
171
|
* @minLength `36`
|
|
136
172
|
* @maxLength `36`
|
|
137
173
|
* @pattern `[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}`
|
|
@@ -140,12 +176,12 @@ export type LambdaEventSourceMappingAttributes = {
|
|
|
140
176
|
};
|
|
141
177
|
/**
|
|
142
178
|
* Type definition for `AWS::Lambda::EventSourceMapping.AmazonManagedKafkaEventSourceConfig`.
|
|
143
|
-
* Specific configuration settings for an MSK event source.
|
|
179
|
+
* Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source.
|
|
144
180
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-amazonmanagedkafkaeventsourceconfig.html}
|
|
145
181
|
*/
|
|
146
182
|
export type AmazonManagedKafkaEventSourceConfig = {
|
|
147
183
|
/**
|
|
148
|
-
* The identifier for the Kafka
|
|
184
|
+
* The identifier for the Kafka consumer group to join. The consumer group ID must be unique among all your Kafka event sources. After creating a Kafka event source mapping with the consumer group ID specified, you cannot update this value. For more information, see [Customizable consumer group ID](https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-consumer-group-id).
|
|
149
185
|
* @minLength `1`
|
|
150
186
|
* @maxLength `200`
|
|
151
187
|
* @pattern `[a-zA-Z0-9-\/*:_+=.@-]*`
|
|
@@ -154,7 +190,7 @@ export type AmazonManagedKafkaEventSourceConfig = {
|
|
|
154
190
|
};
|
|
155
191
|
/**
|
|
156
192
|
* Type definition for `AWS::Lambda::EventSourceMapping.DestinationConfig`.
|
|
157
|
-
*
|
|
193
|
+
* A configuration object that specifies the destination of an event after Lambda processes it.
|
|
158
194
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-destinationconfig.html}
|
|
159
195
|
*/
|
|
160
196
|
export type DestinationConfig = {
|
|
@@ -165,35 +201,35 @@ export type DestinationConfig = {
|
|
|
165
201
|
};
|
|
166
202
|
/**
|
|
167
203
|
* Type definition for `AWS::Lambda::EventSourceMapping.DocumentDBEventSourceConfig`.
|
|
168
|
-
*
|
|
204
|
+
* Specific configuration settings for a DocumentDB event source.
|
|
169
205
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-documentdbeventsourceconfig.html}
|
|
170
206
|
*/
|
|
171
207
|
export type DocumentDBEventSourceConfig = {
|
|
172
208
|
/**
|
|
173
|
-
* The collection
|
|
209
|
+
* The name of the collection to consume within the database. If you do not specify a collection, Lambda consumes all collections.
|
|
174
210
|
* @minLength `1`
|
|
175
211
|
* @maxLength `57`
|
|
176
212
|
*/
|
|
177
213
|
CollectionName?: string;
|
|
178
214
|
/**
|
|
179
|
-
* The database
|
|
215
|
+
* The name of the database to consume within the DocumentDB cluster.
|
|
180
216
|
* @minLength `1`
|
|
181
217
|
* @maxLength `63`
|
|
182
218
|
*/
|
|
183
219
|
DatabaseName?: string;
|
|
184
220
|
/**
|
|
185
|
-
*
|
|
221
|
+
* Determines what DocumentDB sends to your event stream during document update operations. If set to UpdateLookup, DocumentDB sends a delta describing the changes, along with a copy of the entire document. Otherwise, DocumentDB sends only a partial document that contains the changes.
|
|
186
222
|
*/
|
|
187
223
|
FullDocument?: "UpdateLookup" | "Default";
|
|
188
224
|
};
|
|
189
225
|
/**
|
|
190
226
|
* Type definition for `AWS::Lambda::EventSourceMapping.Endpoints`.
|
|
191
|
-
* The
|
|
227
|
+
* The list of bootstrap servers for your Kafka brokers in the following format: ``"KafkaBootstrapServers": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"]``.
|
|
192
228
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-endpoints.html}
|
|
193
229
|
*/
|
|
194
230
|
export type Endpoints = {
|
|
195
231
|
/**
|
|
196
|
-
*
|
|
232
|
+
* The list of bootstrap servers for your Kafka brokers in the following format: ``"KafkaBootstrapServers": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"]``.
|
|
197
233
|
* @minLength `1`
|
|
198
234
|
* @maxLength `10`
|
|
199
235
|
*/
|
|
@@ -201,12 +237,12 @@ export type Endpoints = {
|
|
|
201
237
|
};
|
|
202
238
|
/**
|
|
203
239
|
* Type definition for `AWS::Lambda::EventSourceMapping.Filter`.
|
|
204
|
-
*
|
|
240
|
+
* A structure within a ``FilterCriteria`` object that defines an event filtering pattern.
|
|
205
241
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-filter.html}
|
|
206
242
|
*/
|
|
207
243
|
export type Filter = {
|
|
208
244
|
/**
|
|
209
|
-
*
|
|
245
|
+
* A filter pattern. For more information on the syntax of a filter pattern, see [Filter rule syntax](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-syntax).
|
|
210
246
|
* @minLength `0`
|
|
211
247
|
* @maxLength `4096`
|
|
212
248
|
* @pattern `.*`
|
|
@@ -215,12 +251,12 @@ export type Filter = {
|
|
|
215
251
|
};
|
|
216
252
|
/**
|
|
217
253
|
* Type definition for `AWS::Lambda::EventSourceMapping.FilterCriteria`.
|
|
218
|
-
*
|
|
254
|
+
* An object that contains the filters for an event source.
|
|
219
255
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-filtercriteria.html}
|
|
220
256
|
*/
|
|
221
257
|
export type FilterCriteria = {
|
|
222
258
|
/**
|
|
223
|
-
*
|
|
259
|
+
* A list of filters.
|
|
224
260
|
* @minLength `1`
|
|
225
261
|
* @maxLength `20`
|
|
226
262
|
*/
|
|
@@ -233,21 +269,24 @@ export type FilterCriteria = {
|
|
|
233
269
|
*/
|
|
234
270
|
export type OnFailure = {
|
|
235
271
|
/**
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
272
|
+
* The Amazon Resource Name (ARN) of the destination resource.
|
|
273
|
+
To retain records of [asynchronous invocations](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations), you can configure an Amazon SNS topic, Amazon SQS queue, Lambda function, or Amazon EventBridge event bus as the destination.
|
|
274
|
+
To retain records of failed invocations from [Kinesis and DynamoDB event sources](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventsourcemapping.html#event-source-mapping-destinations), you can configure an Amazon SNS topic or Amazon SQS queue as the destination.
|
|
275
|
+
To retain records of failed invocations from [self-managed Kafka](https://docs.aws.amazon.com/lambda/latest/dg/with-kafka.html#services-smaa-onfailure-destination) or [Amazon MSK](https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-onfailure-destination), you can configure an Amazon SNS topic, Amazon SQS queue, or Amazon S3 bucket as the destination.
|
|
276
|
+
* @minLength `12`
|
|
277
|
+
* @maxLength `1024`
|
|
278
|
+
* @pattern `arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\-])+:([a-z]{2}(-gov)?(-iso)?(-isob)?-[a-z]+-\d{1})?:(\d{12})?:(.*)`
|
|
279
|
+
*/
|
|
241
280
|
Destination?: string;
|
|
242
281
|
};
|
|
243
282
|
/**
|
|
244
283
|
* Type definition for `AWS::Lambda::EventSourceMapping.ScalingConfig`.
|
|
245
|
-
* The scaling configuration for the event source.
|
|
284
|
+
* (Amazon SQS only) The scaling configuration for the event source. To remove the configuration, pass an empty value.
|
|
246
285
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-scalingconfig.html}
|
|
247
286
|
*/
|
|
248
287
|
export type ScalingConfig = {
|
|
249
288
|
/**
|
|
250
|
-
*
|
|
289
|
+
* Limits the number of concurrent instances that the SQS event source can invoke.
|
|
251
290
|
* @min `2`
|
|
252
291
|
* @max `1000`
|
|
253
292
|
*/
|
|
@@ -255,23 +294,23 @@ export type ScalingConfig = {
|
|
|
255
294
|
};
|
|
256
295
|
/**
|
|
257
296
|
* Type definition for `AWS::Lambda::EventSourceMapping.SelfManagedEventSource`.
|
|
258
|
-
* The
|
|
297
|
+
* The self-managed Apache Kafka cluster for your event source.
|
|
259
298
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-selfmanagedeventsource.html}
|
|
260
299
|
*/
|
|
261
300
|
export type SelfManagedEventSource = {
|
|
262
301
|
/**
|
|
263
|
-
* The
|
|
302
|
+
* The list of bootstrap servers for your Kafka brokers in the following format: ``"KafkaBootstrapServers": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"]``.
|
|
264
303
|
*/
|
|
265
304
|
Endpoints?: Endpoints;
|
|
266
305
|
};
|
|
267
306
|
/**
|
|
268
307
|
* Type definition for `AWS::Lambda::EventSourceMapping.SelfManagedKafkaEventSourceConfig`.
|
|
269
|
-
* Specific configuration settings for a
|
|
308
|
+
* Specific configuration settings for a self-managed Apache Kafka event source.
|
|
270
309
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-selfmanagedkafkaeventsourceconfig.html}
|
|
271
310
|
*/
|
|
272
311
|
export type SelfManagedKafkaEventSourceConfig = {
|
|
273
312
|
/**
|
|
274
|
-
* The identifier for the Kafka
|
|
313
|
+
* The identifier for the Kafka consumer group to join. The consumer group ID must be unique among all your Kafka event sources. After creating a Kafka event source mapping with the consumer group ID specified, you cannot update this value. For more information, see [Customizable consumer group ID](https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-consumer-group-id).
|
|
275
314
|
* @minLength `1`
|
|
276
315
|
* @maxLength `200`
|
|
277
316
|
* @pattern `[a-zA-Z0-9-\/*:_+=.@-]*`
|
|
@@ -280,16 +319,25 @@ export type SelfManagedKafkaEventSourceConfig = {
|
|
|
280
319
|
};
|
|
281
320
|
/**
|
|
282
321
|
* Type definition for `AWS::Lambda::EventSourceMapping.SourceAccessConfiguration`.
|
|
283
|
-
*
|
|
322
|
+
* An array of the authentication protocol, VPC components, or virtual host to secure and define your event source.
|
|
284
323
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-sourceaccessconfiguration.html}
|
|
285
324
|
*/
|
|
286
325
|
export type SourceAccessConfiguration = {
|
|
287
326
|
/**
|
|
288
|
-
|
|
289
|
-
|
|
327
|
+
* The type of authentication protocol, VPC components, or virtual host for your event source. For example: ``"Type":"SASL_SCRAM_512_AUTH"``.
|
|
328
|
+
+ ``BASIC_AUTH`` – (Amazon MQ) The ASMlong secret that stores your broker credentials.
|
|
329
|
+
+ ``BASIC_AUTH`` – (Self-managed Apache Kafka) The Secrets Manager ARN of your secret key used for SASL/PLAIN authentication of your Apache Kafka brokers.
|
|
330
|
+
+ ``VPC_SUBNET`` – (Self-managed Apache Kafka) The subnets associated with your VPC. Lambda connects to these subnets to fetch data from your self-managed Apache Kafka cluster.
|
|
331
|
+
+ ``VPC_SECURITY_GROUP`` – (Self-managed Apache Kafka) The VPC security group used to manage access to your self-managed Apache Kafka brokers.
|
|
332
|
+
+ ``SASL_SCRAM_256_AUTH`` – (Self-managed Apache Kafka) The Secrets Manager ARN of your secret key used for SASL SCRAM-256 authentication of your self-managed Apache Kafka brokers.
|
|
333
|
+
+ ``SASL_SCRAM_512_AUTH`` – (Amazon MSK, Self-managed Apache Kafka) The Secrets Manager ARN of your secret key used for SASL SCRAM-512 authentication of your self-managed Apache Kafka brokers.
|
|
334
|
+
+ ``VIRTUAL_HOST`` –- (RabbitMQ) The name of the virtual host in your RabbitMQ broker. Lambda uses this RabbitMQ host as the event source. This property cannot be specified in an UpdateEventSourceMapping API call.
|
|
335
|
+
+ ``CLIENT_CERTIFICATE_TLS_AUTH`` – (Amazon MSK, self-managed Apache Kafka) The Secrets Manager ARN of your secret key containing the certificate chain (X.509 PEM), private key (PKCS#8 PEM), and private key password (optional) used for mutual TLS authentication of your MSK/Apache Kafka brokers.
|
|
336
|
+
+ ``SERVER_ROOT_CA_CERTIFICATE`` – (Self-managed Apache Kafka) The Secrets Manager ARN of your secret key containing the root CA certificate (X.509 PEM) used for TLS encryption of your Apache Kafka brokers.
|
|
337
|
+
*/
|
|
290
338
|
Type?: "BASIC_AUTH" | "VPC_SUBNET" | "VPC_SECURITY_GROUP" | "SASL_SCRAM_512_AUTH" | "SASL_SCRAM_256_AUTH" | "VIRTUAL_HOST" | "CLIENT_CERTIFICATE_TLS_AUTH" | "SERVER_ROOT_CA_CERTIFICATE";
|
|
291
339
|
/**
|
|
292
|
-
* The
|
|
340
|
+
* The value for your chosen configuration in ``Type``. For example: ``"URI": "arn:aws:secretsmanager:us-east-1:01234567890:secret:MyBrokerSecretName"``.
|
|
293
341
|
* @minLength `1`
|
|
294
342
|
* @maxLength `200`
|
|
295
343
|
* @pattern `[a-zA-Z0-9-\/*:_+=.@-]*`
|
|
@@ -297,7 +345,15 @@ export type SourceAccessConfiguration = {
|
|
|
297
345
|
URI?: string;
|
|
298
346
|
};
|
|
299
347
|
/**
|
|
300
|
-
*
|
|
348
|
+
* The ``AWS::Lambda::EventSourceMapping`` resource creates a mapping between an event source and an LAMlong function. LAM reads items from the event source and triggers the function.
|
|
349
|
+
For details about each event source type, see the following topics. In particular, each of the topics describes the required and optional parameters for the specific event source.
|
|
350
|
+
+ [Configuring a Dynamo DB stream as an event source](https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-dynamodb-eventsourcemapping)
|
|
351
|
+
+ [Configuring a Kinesis stream as an event source](https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-eventsourcemapping)
|
|
352
|
+
+ [Configuring an SQS queue as an event source](https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-eventsource)
|
|
353
|
+
+ [Configuring an MQ broker as an event source](https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html#services-mq-eventsourcemapping)
|
|
354
|
+
+ [Configuring MSK as an event source](https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html)
|
|
355
|
+
+ [Configuring Self-Managed Apache Kafka as an event source](https://docs.aws.amazon.com/lambda/latest/dg/kafka-smaa.html)
|
|
356
|
+
+ [Configuring Amazon DocumentDB as an event source](https://docs.aws.amazon.com/lambda/latest/dg/with-documentdb.html)
|
|
301
357
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html}
|
|
302
358
|
*/
|
|
303
359
|
export declare class LambdaEventSourceMapping extends $Resource<"AWS::Lambda::EventSourceMapping", LambdaEventSourceMappingProperties, LambdaEventSourceMappingAttributes> {
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { Resource as $Resource } from "@awboost/cfn-template-builder/template/resource";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* The ``AWS::Lambda::EventSourceMapping`` resource creates a mapping between an event source and an LAMlong function. LAM reads items from the event source and triggers the function.
|
|
4
|
+
For details about each event source type, see the following topics. In particular, each of the topics describes the required and optional parameters for the specific event source.
|
|
5
|
+
+ [Configuring a Dynamo DB stream as an event source](https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-dynamodb-eventsourcemapping)
|
|
6
|
+
+ [Configuring a Kinesis stream as an event source](https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-eventsourcemapping)
|
|
7
|
+
+ [Configuring an SQS queue as an event source](https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-eventsource)
|
|
8
|
+
+ [Configuring an MQ broker as an event source](https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html#services-mq-eventsourcemapping)
|
|
9
|
+
+ [Configuring MSK as an event source](https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html)
|
|
10
|
+
+ [Configuring Self-Managed Apache Kafka as an event source](https://docs.aws.amazon.com/lambda/latest/dg/kafka-smaa.html)
|
|
11
|
+
+ [Configuring Amazon DocumentDB as an event source](https://docs.aws.amazon.com/lambda/latest/dg/with-documentdb.html)
|
|
4
12
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html}
|
|
5
13
|
*/
|
|
6
14
|
export class LambdaEventSourceMapping extends $Resource {
|
|
@@ -10,6 +10,19 @@ export type RDSIntegrationProperties = {
|
|
|
10
10
|
* An optional set of non-secret key–value pairs that contains additional contextual information about the data.
|
|
11
11
|
*/
|
|
12
12
|
AdditionalEncryptionContext?: EncryptionContextMap;
|
|
13
|
+
/**
|
|
14
|
+
* The data filter for the integration.
|
|
15
|
+
* @minLength `1`
|
|
16
|
+
* @maxLength `25600`
|
|
17
|
+
* @pattern `[a-zA-Z0-9_ "\\\-$,*.:?+\/]*`
|
|
18
|
+
*/
|
|
19
|
+
DataFilter?: string;
|
|
20
|
+
/**
|
|
21
|
+
* The description of the integration.
|
|
22
|
+
* @minLength `1`
|
|
23
|
+
* @maxLength `1000`
|
|
24
|
+
*/
|
|
25
|
+
Description?: string;
|
|
13
26
|
/**
|
|
14
27
|
* The name of the integration.
|
|
15
28
|
* @minLength `1`
|