aws-cdk-lib 2.184.0__py3-none-any.whl → 2.185.0__py3-none-any.whl
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.
Potentially problematic release.
This version of aws-cdk-lib might be problematic. Click here for more details.
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.184.0.jsii.tgz → aws-cdk-lib@2.185.0.jsii.tgz} +0 -0
- aws_cdk/aws_apigateway/__init__.py +1 -1
- aws_cdk/aws_applicationsignals/__init__.py +134 -0
- aws_cdk/aws_appsync/__init__.py +0 -8
- aws_cdk/aws_athena/__init__.py +143 -0
- aws_cdk/aws_backup/__init__.py +4 -2
- aws_cdk/aws_batch/__init__.py +9 -0
- aws_cdk/aws_bedrock/__init__.py +260 -185
- aws_cdk/aws_cassandra/__init__.py +3 -5
- aws_cdk/aws_chatbot/__init__.py +41 -0
- aws_cdk/aws_codebuild/__init__.py +10 -3
- aws_cdk/aws_config/__init__.py +1 -1
- aws_cdk/aws_datasync/__init__.py +12 -14
- aws_cdk/aws_ec2/__init__.py +148 -19
- aws_cdk/aws_ecr/__init__.py +84 -2
- aws_cdk/aws_ecs/__init__.py +5 -5
- aws_cdk/aws_eks/__init__.py +2 -0
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +42 -5
- aws_cdk/aws_elasticsearch/__init__.py +1 -1
- aws_cdk/aws_events_targets/__init__.py +5 -5
- aws_cdk/aws_gamelift/__init__.py +162 -162
- aws_cdk/aws_gameliftstreams/__init__.py +199 -59
- aws_cdk/aws_iam/__init__.py +58 -30
- aws_cdk/aws_imagebuilder/__init__.py +42 -5
- aws_cdk/aws_iotfleetwise/__init__.py +15 -6
- aws_cdk/aws_kinesisfirehose/__init__.py +113 -110
- aws_cdk/aws_logs/__init__.py +21 -27
- aws_cdk/aws_msk/__init__.py +9 -48
- aws_cdk/aws_opensearchservice/__init__.py +1 -1
- aws_cdk/aws_pcs/__init__.py +33 -22
- aws_cdk/aws_rds/__init__.py +8 -4
- aws_cdk/aws_rum/__init__.py +148 -0
- aws_cdk/aws_s3/__init__.py +4 -6
- aws_cdk/aws_s3_deployment/__init__.py +2 -0
- aws_cdk/aws_sagemaker/__init__.py +524 -0
- aws_cdk/aws_ses/__init__.py +9 -9
- aws_cdk/aws_sns/__init__.py +12 -12
- aws_cdk/cx_api/__init__.py +30 -0
- aws_cdk/region_info/__init__.py +2 -2
- {aws_cdk_lib-2.184.0.dist-info → aws_cdk_lib-2.185.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.184.0.dist-info → aws_cdk_lib-2.185.0.dist-info}/RECORD +46 -46
- {aws_cdk_lib-2.184.0.dist-info → aws_cdk_lib-2.185.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.184.0.dist-info → aws_cdk_lib-2.185.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.184.0.dist-info → aws_cdk_lib-2.185.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.184.0.dist-info → aws_cdk_lib-2.185.0.dist-info}/top_level.txt +0 -0
|
@@ -84,8 +84,7 @@ Data must be provided via "direct put", ie., by using a `PutRecord` or
|
|
|
84
84
|
|
|
85
85
|
Amazon Data Firehose supports multiple AWS and third-party services as destinations, including Amazon S3, Amazon Redshift, and more. You can find the full list of supported destination [here](https://docs.aws.amazon.com/firehose/latest/dev/create-destination.html).
|
|
86
86
|
|
|
87
|
-
Currently in the AWS CDK, only S3 is implemented as an L2 construct destination. Other destinations can still be configured using L1 constructs.
|
|
88
|
-
for the implementations of these destinations.
|
|
87
|
+
Currently in the AWS CDK, only S3 is implemented as an L2 construct destination. Other destinations can still be configured using L1 constructs.
|
|
89
88
|
|
|
90
89
|
### S3
|
|
91
90
|
|
|
@@ -221,7 +220,7 @@ limit of records per second (indicating data is flowing into your delivery strea
|
|
|
221
220
|
than it is configured to process).
|
|
222
221
|
|
|
223
222
|
CDK provides methods for accessing delivery stream metrics with default configuration,
|
|
224
|
-
such as `metricIncomingBytes`, and `metricIncomingRecords` (see [`IDeliveryStream`](https://docs.aws.amazon.com/cdk/api/latest/docs
|
|
223
|
+
such as `metricIncomingBytes`, and `metricIncomingRecords` (see [`IDeliveryStream`](https://docs.aws.amazon.com/cdk/api/latest/docs/aws-cdk-lib.aws_kinesisfirehose.IDeliveryStream.html)
|
|
225
224
|
for a full list). CDK also provides a generic `metric` method that can be used to produce
|
|
226
225
|
metric configurations for any metric provided by Amazon Data Firehose; the configurations
|
|
227
226
|
are pre-populated with the correct dimensions for the delivery stream.
|
|
@@ -9403,7 +9402,7 @@ class CommonDestinationProps:
|
|
|
9403
9402
|
|
|
9404
9403
|
:param logging_config: Configuration that determines whether to log errors during data transformation or delivery failures, and specifies the CloudWatch log group for storing error logs. Default: - errors will be logged and a log group will be created for you.
|
|
9405
9404
|
:param processor: The data transformation that should be performed on the data before writing to the destination. Default: - no data transformation will occur.
|
|
9406
|
-
:param role: The IAM role associated with this destination. Assumed by
|
|
9405
|
+
:param role: The IAM role associated with this destination. Assumed by Amazon Data Firehose to invoke processors and write to destinations Default: - a role will be created with default permissions.
|
|
9407
9406
|
:param s3_backup: The configuration for backing up source records to S3. Default: - source records will not be backed up to S3.
|
|
9408
9407
|
|
|
9409
9408
|
:exampleMetadata: fixture=_generated
|
|
@@ -9483,7 +9482,7 @@ class CommonDestinationProps:
|
|
|
9483
9482
|
def role(self) -> typing.Optional[_IRole_235f5d8e]:
|
|
9484
9483
|
'''The IAM role associated with this destination.
|
|
9485
9484
|
|
|
9486
|
-
Assumed by
|
|
9485
|
+
Assumed by Amazon Data Firehose to invoke processors and write to destinations
|
|
9487
9486
|
|
|
9488
9487
|
:default: - a role will be created with default permissions.
|
|
9489
9488
|
'''
|
|
@@ -9534,14 +9533,14 @@ class CommonDestinationS3Props:
|
|
|
9534
9533
|
encryption_key: typing.Optional[_IKey_5f11635f] = None,
|
|
9535
9534
|
error_output_prefix: typing.Optional[builtins.str] = None,
|
|
9536
9535
|
) -> None:
|
|
9537
|
-
'''Common properties for defining a backup, intermediary, or final S3 destination for a
|
|
9536
|
+
'''Common properties for defining a backup, intermediary, or final S3 destination for a Amazon Data Firehose delivery stream.
|
|
9538
9537
|
|
|
9539
9538
|
:param buffering_interval: The length of time that Firehose buffers incoming data before delivering it to the S3 bucket. Minimum: Duration.seconds(0) Maximum: Duration.seconds(900) Default: Duration.seconds(300)
|
|
9540
|
-
:param buffering_size: The size of the buffer that
|
|
9541
|
-
:param compression: The type of compression that
|
|
9542
|
-
:param data_output_prefix: A prefix that
|
|
9539
|
+
:param buffering_size: The size of the buffer that Amazon Data Firehose uses for incoming data before delivering it to the S3 bucket. Minimum: Size.mebibytes(1) Maximum: Size.mebibytes(128) Default: Size.mebibytes(5)
|
|
9540
|
+
:param compression: The type of compression that Amazon Data Firehose uses to compress the data that it delivers to the Amazon S3 bucket. The compression formats SNAPPY or ZIP cannot be specified for Amazon Redshift destinations because they are not supported by the Amazon Redshift COPY operation that reads from the S3 bucket. Default: - UNCOMPRESSED
|
|
9541
|
+
:param data_output_prefix: A prefix that Amazon Data Firehose evaluates and adds to records before writing them to S3. This prefix appears immediately following the bucket name. Default: "YYYY/MM/DD/HH"
|
|
9543
9542
|
:param encryption_key: The AWS KMS key used to encrypt the data that it delivers to your Amazon S3 bucket. Default: - Data is not encrypted.
|
|
9544
|
-
:param error_output_prefix: A prefix that
|
|
9543
|
+
:param error_output_prefix: A prefix that Amazon Data Firehose evaluates and adds to failed records before writing them to S3. This prefix appears immediately following the bucket name. Default: "YYYY/MM/DD/HH"
|
|
9545
9544
|
|
|
9546
9545
|
:exampleMetadata: fixture=_generated
|
|
9547
9546
|
|
|
@@ -9602,7 +9601,7 @@ class CommonDestinationS3Props:
|
|
|
9602
9601
|
|
|
9603
9602
|
@builtins.property
|
|
9604
9603
|
def buffering_size(self) -> typing.Optional[_Size_7b441c34]:
|
|
9605
|
-
'''The size of the buffer that
|
|
9604
|
+
'''The size of the buffer that Amazon Data Firehose uses for incoming data before delivering it to the S3 bucket.
|
|
9606
9605
|
|
|
9607
9606
|
Minimum: Size.mebibytes(1)
|
|
9608
9607
|
Maximum: Size.mebibytes(128)
|
|
@@ -9614,7 +9613,7 @@ class CommonDestinationS3Props:
|
|
|
9614
9613
|
|
|
9615
9614
|
@builtins.property
|
|
9616
9615
|
def compression(self) -> typing.Optional["Compression"]:
|
|
9617
|
-
'''The type of compression that
|
|
9616
|
+
'''The type of compression that Amazon Data Firehose uses to compress the data that it delivers to the Amazon S3 bucket.
|
|
9618
9617
|
|
|
9619
9618
|
The compression formats SNAPPY or ZIP cannot be specified for Amazon Redshift
|
|
9620
9619
|
destinations because they are not supported by the Amazon Redshift COPY operation
|
|
@@ -9627,7 +9626,7 @@ class CommonDestinationS3Props:
|
|
|
9627
9626
|
|
|
9628
9627
|
@builtins.property
|
|
9629
9628
|
def data_output_prefix(self) -> typing.Optional[builtins.str]:
|
|
9630
|
-
'''A prefix that
|
|
9629
|
+
'''A prefix that Amazon Data Firehose evaluates and adds to records before writing them to S3.
|
|
9631
9630
|
|
|
9632
9631
|
This prefix appears immediately following the bucket name.
|
|
9633
9632
|
|
|
@@ -9649,7 +9648,7 @@ class CommonDestinationS3Props:
|
|
|
9649
9648
|
|
|
9650
9649
|
@builtins.property
|
|
9651
9650
|
def error_output_prefix(self) -> typing.Optional[builtins.str]:
|
|
9652
|
-
'''A prefix that
|
|
9651
|
+
'''A prefix that Amazon Data Firehose evaluates and adds to failed records before writing them to S3.
|
|
9653
9652
|
|
|
9654
9653
|
This prefix appears immediately following the bucket name.
|
|
9655
9654
|
|
|
@@ -9676,7 +9675,7 @@ class Compression(
|
|
|
9676
9675
|
metaclass=jsii.JSIIMeta,
|
|
9677
9676
|
jsii_type="aws-cdk-lib.aws_kinesisfirehose.Compression",
|
|
9678
9677
|
):
|
|
9679
|
-
'''Possible compression options
|
|
9678
|
+
'''Possible compression options Amazon Data Firehose can use to compress data on delivery.
|
|
9680
9679
|
|
|
9681
9680
|
:exampleMetadata: infused
|
|
9682
9681
|
|
|
@@ -9751,7 +9750,7 @@ class DataProcessorBindOptions:
|
|
|
9751
9750
|
def __init__(self, *, role: _IRole_235f5d8e) -> None:
|
|
9752
9751
|
'''Options when binding a DataProcessor to a delivery stream destination.
|
|
9753
9752
|
|
|
9754
|
-
:param role: The IAM role assumed by
|
|
9753
|
+
:param role: The IAM role assumed by Amazon Data Firehose to write to the destination that this DataProcessor will bind to.
|
|
9755
9754
|
|
|
9756
9755
|
:exampleMetadata: fixture=_generated
|
|
9757
9756
|
|
|
@@ -9777,7 +9776,7 @@ class DataProcessorBindOptions:
|
|
|
9777
9776
|
|
|
9778
9777
|
@builtins.property
|
|
9779
9778
|
def role(self) -> _IRole_235f5d8e:
|
|
9780
|
-
'''The IAM role assumed by
|
|
9779
|
+
'''The IAM role assumed by Amazon Data Firehose to write to the destination that this DataProcessor will bind to.'''
|
|
9781
9780
|
result = self._values.get("role")
|
|
9782
9781
|
assert result is not None, "Required property 'role' is missing"
|
|
9783
9782
|
return typing.cast(_IRole_235f5d8e, result)
|
|
@@ -9967,9 +9966,9 @@ class DataProcessorProps:
|
|
|
9967
9966
|
) -> None:
|
|
9968
9967
|
'''Configure the data processor.
|
|
9969
9968
|
|
|
9970
|
-
:param buffer_interval: The length of time
|
|
9971
|
-
:param buffer_size: The amount of incoming data
|
|
9972
|
-
:param retries: The number of times
|
|
9969
|
+
:param buffer_interval: The length of time Amazon Data Firehose will buffer incoming data before calling the processor. s Default: Duration.minutes(1)
|
|
9970
|
+
:param buffer_size: The amount of incoming data Amazon Data Firehose will buffer before calling the processor. Default: Size.mebibytes(3)
|
|
9971
|
+
:param retries: The number of times Amazon Data Firehose will retry the processor invocation after a failure due to network timeout or invocation limits. Default: 3
|
|
9973
9972
|
|
|
9974
9973
|
:exampleMetadata: infused
|
|
9975
9974
|
|
|
@@ -10010,7 +10009,7 @@ class DataProcessorProps:
|
|
|
10010
10009
|
|
|
10011
10010
|
@builtins.property
|
|
10012
10011
|
def buffer_interval(self) -> typing.Optional[_Duration_4839e8c3]:
|
|
10013
|
-
'''The length of time
|
|
10012
|
+
'''The length of time Amazon Data Firehose will buffer incoming data before calling the processor.
|
|
10014
10013
|
|
|
10015
10014
|
s
|
|
10016
10015
|
|
|
@@ -10021,7 +10020,7 @@ class DataProcessorProps:
|
|
|
10021
10020
|
|
|
10022
10021
|
@builtins.property
|
|
10023
10022
|
def buffer_size(self) -> typing.Optional[_Size_7b441c34]:
|
|
10024
|
-
'''The amount of incoming data
|
|
10023
|
+
'''The amount of incoming data Amazon Data Firehose will buffer before calling the processor.
|
|
10025
10024
|
|
|
10026
10025
|
:default: Size.mebibytes(3)
|
|
10027
10026
|
'''
|
|
@@ -10030,7 +10029,7 @@ class DataProcessorProps:
|
|
|
10030
10029
|
|
|
10031
10030
|
@builtins.property
|
|
10032
10031
|
def retries(self) -> typing.Optional[jsii.Number]:
|
|
10033
|
-
'''The number of times
|
|
10032
|
+
'''The number of times Amazon Data Firehose will retry the processor invocation after a failure due to network timeout or invocation limits.
|
|
10034
10033
|
|
|
10035
10034
|
:default: 3
|
|
10036
10035
|
'''
|
|
@@ -10070,7 +10069,7 @@ class DeliveryStreamAttributes:
|
|
|
10070
10069
|
|
|
10071
10070
|
:param delivery_stream_arn: The ARN of the delivery stream. At least one of deliveryStreamArn and deliveryStreamName must be provided. Default: - derived from ``deliveryStreamName``.
|
|
10072
10071
|
:param delivery_stream_name: The name of the delivery stream. At least one of deliveryStreamName and deliveryStreamArn must be provided. Default: - derived from ``deliveryStreamArn``.
|
|
10073
|
-
:param role: The IAM role associated with this delivery stream. Assumed by
|
|
10072
|
+
:param role: The IAM role associated with this delivery stream. Assumed by Amazon Data Firehose to read from sources and encrypt data server-side. Default: - the imported stream cannot be granted access to other resources as an ``iam.IGrantable``.
|
|
10074
10073
|
|
|
10075
10074
|
:exampleMetadata: fixture=_generated
|
|
10076
10075
|
|
|
@@ -10128,7 +10127,7 @@ class DeliveryStreamAttributes:
|
|
|
10128
10127
|
def role(self) -> typing.Optional[_IRole_235f5d8e]:
|
|
10129
10128
|
'''The IAM role associated with this delivery stream.
|
|
10130
10129
|
|
|
10131
|
-
Assumed by
|
|
10130
|
+
Assumed by Amazon Data Firehose to read from sources and encrypt data server-side.
|
|
10132
10131
|
|
|
10133
10132
|
:default: - the imported stream cannot be granted access to other resources as an ``iam.IGrantable``.
|
|
10134
10133
|
'''
|
|
@@ -10173,29 +10172,31 @@ class DeliveryStreamProps:
|
|
|
10173
10172
|
:param destination: The destination that this delivery stream will deliver data to.
|
|
10174
10173
|
:param delivery_stream_name: A name for the delivery stream. Default: - a name is generated by CloudFormation.
|
|
10175
10174
|
:param encryption: Indicates the type of customer master key (CMK) to use for server-side encryption, if any. Default: StreamEncryption.unencrypted()
|
|
10176
|
-
:param role: The IAM role associated with this delivery stream. Assumed by
|
|
10175
|
+
:param role: The IAM role associated with this delivery stream. Assumed by Amazon Data Firehose to read from sources and encrypt data server-side. Default: - a role will be created with default permissions.
|
|
10177
10176
|
:param source: The Kinesis data stream to use as a source for this delivery stream. Default: - data must be written to the delivery stream via a direct put.
|
|
10178
10177
|
|
|
10179
10178
|
:exampleMetadata: infused
|
|
10180
10179
|
|
|
10181
10180
|
Example::
|
|
10182
10181
|
|
|
10183
|
-
|
|
10184
|
-
|
|
10185
|
-
|
|
10186
|
-
|
|
10187
|
-
|
|
10188
|
-
|
|
10182
|
+
# bucket: s3.Bucket
|
|
10183
|
+
# Provide a Lambda function that will transform records before delivery, with custom
|
|
10184
|
+
# buffering and retry configuration
|
|
10185
|
+
lambda_function = lambda_.Function(self, "Processor",
|
|
10186
|
+
runtime=lambda_.Runtime.NODEJS_LATEST,
|
|
10187
|
+
handler="index.handler",
|
|
10188
|
+
code=lambda_.Code.from_asset(path.join(__dirname, "process-records"))
|
|
10189
10189
|
)
|
|
10190
|
-
|
|
10191
|
-
|
|
10192
|
-
|
|
10193
|
-
|
|
10194
|
-
|
|
10195
|
-
|
|
10196
|
-
|
|
10197
|
-
|
|
10198
|
-
|
|
10190
|
+
lambda_processor = firehose.LambdaFunctionProcessor(lambda_function,
|
|
10191
|
+
buffer_interval=Duration.minutes(5),
|
|
10192
|
+
buffer_size=Size.mebibytes(5),
|
|
10193
|
+
retries=5
|
|
10194
|
+
)
|
|
10195
|
+
s3_destination = firehose.S3Bucket(bucket,
|
|
10196
|
+
processor=lambda_processor
|
|
10197
|
+
)
|
|
10198
|
+
firehose.DeliveryStream(self, "Delivery Stream",
|
|
10199
|
+
destination=s3_destination
|
|
10199
10200
|
)
|
|
10200
10201
|
'''
|
|
10201
10202
|
if __debug__:
|
|
@@ -10246,7 +10247,7 @@ class DeliveryStreamProps:
|
|
|
10246
10247
|
def role(self) -> typing.Optional[_IRole_235f5d8e]:
|
|
10247
10248
|
'''The IAM role associated with this delivery stream.
|
|
10248
10249
|
|
|
10249
|
-
Assumed by
|
|
10250
|
+
Assumed by Amazon Data Firehose to read from sources and encrypt data server-side.
|
|
10250
10251
|
|
|
10251
10252
|
:default: - a role will be created with default permissions.
|
|
10252
10253
|
'''
|
|
@@ -10322,7 +10323,7 @@ class DestinationConfig:
|
|
|
10322
10323
|
dependables: typing.Optional[typing.Sequence[_constructs_77d1e7e8.IDependable]] = None,
|
|
10323
10324
|
extended_s3_destination_configuration: typing.Optional[typing.Union[CfnDeliveryStream.ExtendedS3DestinationConfigurationProperty, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
10324
10325
|
) -> None:
|
|
10325
|
-
'''
|
|
10326
|
+
'''An Amazon Data Firehose delivery stream destination configuration.
|
|
10326
10327
|
|
|
10327
10328
|
:param dependables: Any resources that were created by the destination when binding it to the stack that must be deployed before the delivery stream is deployed. Default: []
|
|
10328
10329
|
:param extended_s3_destination_configuration: S3 destination configuration properties. Default: - S3 destination is not used.
|
|
@@ -10540,11 +10541,11 @@ class DestinationS3BackupProps(CommonDestinationS3Props):
|
|
|
10540
10541
|
S3 backup is available for all destinations, regardless of whether the final destination is S3 or not.
|
|
10541
10542
|
|
|
10542
10543
|
:param buffering_interval: The length of time that Firehose buffers incoming data before delivering it to the S3 bucket. Minimum: Duration.seconds(0) Maximum: Duration.seconds(900) Default: Duration.seconds(300)
|
|
10543
|
-
:param buffering_size: The size of the buffer that
|
|
10544
|
-
:param compression: The type of compression that
|
|
10545
|
-
:param data_output_prefix: A prefix that
|
|
10544
|
+
:param buffering_size: The size of the buffer that Amazon Data Firehose uses for incoming data before delivering it to the S3 bucket. Minimum: Size.mebibytes(1) Maximum: Size.mebibytes(128) Default: Size.mebibytes(5)
|
|
10545
|
+
:param compression: The type of compression that Amazon Data Firehose uses to compress the data that it delivers to the Amazon S3 bucket. The compression formats SNAPPY or ZIP cannot be specified for Amazon Redshift destinations because they are not supported by the Amazon Redshift COPY operation that reads from the S3 bucket. Default: - UNCOMPRESSED
|
|
10546
|
+
:param data_output_prefix: A prefix that Amazon Data Firehose evaluates and adds to records before writing them to S3. This prefix appears immediately following the bucket name. Default: "YYYY/MM/DD/HH"
|
|
10546
10547
|
:param encryption_key: The AWS KMS key used to encrypt the data that it delivers to your Amazon S3 bucket. Default: - Data is not encrypted.
|
|
10547
|
-
:param error_output_prefix: A prefix that
|
|
10548
|
+
:param error_output_prefix: A prefix that Amazon Data Firehose evaluates and adds to failed records before writing them to S3. This prefix appears immediately following the bucket name. Default: "YYYY/MM/DD/HH"
|
|
10548
10549
|
:param bucket: The S3 bucket that will store data and failed records. Default: - If ``mode`` is set to ``BackupMode.ALL`` or ``BackupMode.FAILED``, a bucket will be created for you.
|
|
10549
10550
|
:param logging_config: Configuration that determines whether to log errors during data transformation or delivery failures, and specifies the CloudWatch log group for storing error logs. Default: - errors will be logged and a log group will be created for you.
|
|
10550
10551
|
:param mode: Indicates the mode by which incoming records should be backed up to S3, if any. If ``bucket`` is provided, this will be implicitly set to ``BackupMode.ALL``. Default: - If ``bucket`` is provided, the default will be ``BackupMode.ALL``. Otherwise, source records are not backed up to S3.
|
|
@@ -10630,7 +10631,7 @@ class DestinationS3BackupProps(CommonDestinationS3Props):
|
|
|
10630
10631
|
|
|
10631
10632
|
@builtins.property
|
|
10632
10633
|
def buffering_size(self) -> typing.Optional[_Size_7b441c34]:
|
|
10633
|
-
'''The size of the buffer that
|
|
10634
|
+
'''The size of the buffer that Amazon Data Firehose uses for incoming data before delivering it to the S3 bucket.
|
|
10634
10635
|
|
|
10635
10636
|
Minimum: Size.mebibytes(1)
|
|
10636
10637
|
Maximum: Size.mebibytes(128)
|
|
@@ -10642,7 +10643,7 @@ class DestinationS3BackupProps(CommonDestinationS3Props):
|
|
|
10642
10643
|
|
|
10643
10644
|
@builtins.property
|
|
10644
10645
|
def compression(self) -> typing.Optional[Compression]:
|
|
10645
|
-
'''The type of compression that
|
|
10646
|
+
'''The type of compression that Amazon Data Firehose uses to compress the data that it delivers to the Amazon S3 bucket.
|
|
10646
10647
|
|
|
10647
10648
|
The compression formats SNAPPY or ZIP cannot be specified for Amazon Redshift
|
|
10648
10649
|
destinations because they are not supported by the Amazon Redshift COPY operation
|
|
@@ -10655,7 +10656,7 @@ class DestinationS3BackupProps(CommonDestinationS3Props):
|
|
|
10655
10656
|
|
|
10656
10657
|
@builtins.property
|
|
10657
10658
|
def data_output_prefix(self) -> typing.Optional[builtins.str]:
|
|
10658
|
-
'''A prefix that
|
|
10659
|
+
'''A prefix that Amazon Data Firehose evaluates and adds to records before writing them to S3.
|
|
10659
10660
|
|
|
10660
10661
|
This prefix appears immediately following the bucket name.
|
|
10661
10662
|
|
|
@@ -10677,7 +10678,7 @@ class DestinationS3BackupProps(CommonDestinationS3Props):
|
|
|
10677
10678
|
|
|
10678
10679
|
@builtins.property
|
|
10679
10680
|
def error_output_prefix(self) -> typing.Optional[builtins.str]:
|
|
10680
|
-
'''A prefix that
|
|
10681
|
+
'''A prefix that Amazon Data Firehose evaluates and adds to failed records before writing them to S3.
|
|
10681
10682
|
|
|
10682
10683
|
This prefix appears immediately following the bucket name.
|
|
10683
10684
|
|
|
@@ -10734,7 +10735,7 @@ class DestinationS3BackupProps(CommonDestinationS3Props):
|
|
|
10734
10735
|
|
|
10735
10736
|
@jsii.interface(jsii_type="aws-cdk-lib.aws_kinesisfirehose.IDataProcessor")
|
|
10736
10737
|
class IDataProcessor(typing_extensions.Protocol):
|
|
10737
|
-
'''A data processor that
|
|
10738
|
+
'''A data processor that Amazon Data Firehose will call to transform records before delivering data.'''
|
|
10738
10739
|
|
|
10739
10740
|
@builtins.property
|
|
10740
10741
|
@jsii.member(jsii_name="props")
|
|
@@ -10755,13 +10756,13 @@ class IDataProcessor(typing_extensions.Protocol):
|
|
|
10755
10756
|
necessary configuration to register as a processor.
|
|
10756
10757
|
|
|
10757
10758
|
:param scope: -
|
|
10758
|
-
:param role: The IAM role assumed by
|
|
10759
|
+
:param role: The IAM role assumed by Amazon Data Firehose to write to the destination that this DataProcessor will bind to.
|
|
10759
10760
|
'''
|
|
10760
10761
|
...
|
|
10761
10762
|
|
|
10762
10763
|
|
|
10763
10764
|
class _IDataProcessorProxy:
|
|
10764
|
-
'''A data processor that
|
|
10765
|
+
'''A data processor that Amazon Data Firehose will call to transform records before delivering data.'''
|
|
10765
10766
|
|
|
10766
10767
|
__jsii_type__: typing.ClassVar[str] = "aws-cdk-lib.aws_kinesisfirehose.IDataProcessor"
|
|
10767
10768
|
|
|
@@ -10784,7 +10785,7 @@ class _IDataProcessorProxy:
|
|
|
10784
10785
|
necessary configuration to register as a processor.
|
|
10785
10786
|
|
|
10786
10787
|
:param scope: -
|
|
10787
|
-
:param role: The IAM role assumed by
|
|
10788
|
+
:param role: The IAM role assumed by Amazon Data Firehose to write to the destination that this DataProcessor will bind to.
|
|
10788
10789
|
'''
|
|
10789
10790
|
if __debug__:
|
|
10790
10791
|
type_hints = typing.get_type_hints(_typecheckingstub__4720a6b97c475eae9ec0d65aca8250b00f57d45f0efb2368b8df6d486162c508)
|
|
@@ -10804,7 +10805,7 @@ class IDeliveryStream(
|
|
|
10804
10805
|
_IConnectable_10015a05,
|
|
10805
10806
|
typing_extensions.Protocol,
|
|
10806
10807
|
):
|
|
10807
|
-
'''Represents
|
|
10808
|
+
'''Represents an Amazon Data Firehose delivery stream.'''
|
|
10808
10809
|
|
|
10809
10810
|
@builtins.property
|
|
10810
10811
|
@jsii.member(jsii_name="deliveryStreamArn")
|
|
@@ -10924,7 +10925,7 @@ class IDeliveryStream(
|
|
|
10924
10925
|
statistic: typing.Optional[builtins.str] = None,
|
|
10925
10926
|
unit: typing.Optional[_Unit_61bc6f70] = None,
|
|
10926
10927
|
) -> _Metric_e396a4dc:
|
|
10927
|
-
'''Metric for the age (from getting into
|
|
10928
|
+
'''Metric for the age (from getting into Amazon Data Firehose to now) of the oldest record in Amazon Data Firehose.
|
|
10928
10929
|
|
|
10929
10930
|
Any record older than this age has been delivered to the Amazon S3 bucket for backup.
|
|
10930
10931
|
|
|
@@ -11045,7 +11046,7 @@ class _IDeliveryStreamProxy(
|
|
|
11045
11046
|
jsii.proxy_for(_IGrantable_71c4f5de), # type: ignore[misc]
|
|
11046
11047
|
jsii.proxy_for(_IConnectable_10015a05), # type: ignore[misc]
|
|
11047
11048
|
):
|
|
11048
|
-
'''Represents
|
|
11049
|
+
'''Represents an Amazon Data Firehose delivery stream.'''
|
|
11049
11050
|
|
|
11050
11051
|
__jsii_type__: typing.ClassVar[str] = "aws-cdk-lib.aws_kinesisfirehose.IDeliveryStream"
|
|
11051
11052
|
|
|
@@ -11203,7 +11204,7 @@ class _IDeliveryStreamProxy(
|
|
|
11203
11204
|
statistic: typing.Optional[builtins.str] = None,
|
|
11204
11205
|
unit: typing.Optional[_Unit_61bc6f70] = None,
|
|
11205
11206
|
) -> _Metric_e396a4dc:
|
|
11206
|
-
'''Metric for the age (from getting into
|
|
11207
|
+
'''Metric for the age (from getting into Amazon Data Firehose to now) of the oldest record in Amazon Data Firehose.
|
|
11207
11208
|
|
|
11208
11209
|
Any record older than this age has been delivered to the Amazon S3 bucket for backup.
|
|
11209
11210
|
|
|
@@ -11376,11 +11377,11 @@ typing.cast(typing.Any, IDeliveryStream).__jsii_proxy_class__ = lambda : _IDeliv
|
|
|
11376
11377
|
|
|
11377
11378
|
@jsii.interface(jsii_type="aws-cdk-lib.aws_kinesisfirehose.IDestination")
|
|
11378
11379
|
class IDestination(typing_extensions.Protocol):
|
|
11379
|
-
'''
|
|
11380
|
+
'''An Amazon Data Firehose delivery stream destination.'''
|
|
11380
11381
|
|
|
11381
11382
|
@jsii.member(jsii_name="bind")
|
|
11382
11383
|
def bind(self, scope: _constructs_77d1e7e8.Construct) -> DestinationConfig:
|
|
11383
|
-
'''Binds this destination to the
|
|
11384
|
+
'''Binds this destination to the Amazon Data Firehose delivery stream.
|
|
11384
11385
|
|
|
11385
11386
|
Implementers should use this method to bind resources to the stack and initialize values using the provided stream.
|
|
11386
11387
|
|
|
@@ -11390,13 +11391,13 @@ class IDestination(typing_extensions.Protocol):
|
|
|
11390
11391
|
|
|
11391
11392
|
|
|
11392
11393
|
class _IDestinationProxy:
|
|
11393
|
-
'''
|
|
11394
|
+
'''An Amazon Data Firehose delivery stream destination.'''
|
|
11394
11395
|
|
|
11395
11396
|
__jsii_type__: typing.ClassVar[str] = "aws-cdk-lib.aws_kinesisfirehose.IDestination"
|
|
11396
11397
|
|
|
11397
11398
|
@jsii.member(jsii_name="bind")
|
|
11398
11399
|
def bind(self, scope: _constructs_77d1e7e8.Construct) -> DestinationConfig:
|
|
11399
|
-
'''Binds this destination to the
|
|
11400
|
+
'''Binds this destination to the Amazon Data Firehose delivery stream.
|
|
11400
11401
|
|
|
11401
11402
|
Implementers should use this method to bind resources to the stack and initialize values using the provided stream.
|
|
11402
11403
|
|
|
@@ -11473,7 +11474,7 @@ typing.cast(typing.Any, ILoggingConfig).__jsii_proxy_class__ = lambda : _ILoggin
|
|
|
11473
11474
|
|
|
11474
11475
|
@jsii.interface(jsii_type="aws-cdk-lib.aws_kinesisfirehose.ISource")
|
|
11475
11476
|
class ISource(typing_extensions.Protocol):
|
|
11476
|
-
'''An interface for defining a source that can be used in
|
|
11477
|
+
'''An interface for defining a source that can be used in an Amazon Data Firehose delivery stream.'''
|
|
11477
11478
|
|
|
11478
11479
|
@jsii.member(jsii_name="grantRead")
|
|
11479
11480
|
def grant_read(self, grantee: _IGrantable_71c4f5de) -> _Grant_a7ae64f8:
|
|
@@ -11488,7 +11489,7 @@ class ISource(typing_extensions.Protocol):
|
|
|
11488
11489
|
|
|
11489
11490
|
|
|
11490
11491
|
class _ISourceProxy:
|
|
11491
|
-
'''An interface for defining a source that can be used in
|
|
11492
|
+
'''An interface for defining a source that can be used in an Amazon Data Firehose delivery stream.'''
|
|
11492
11493
|
|
|
11493
11494
|
__jsii_type__: typing.ClassVar[str] = "aws-cdk-lib.aws_kinesisfirehose.ISource"
|
|
11494
11495
|
|
|
@@ -11515,7 +11516,7 @@ class KinesisStreamSource(
|
|
|
11515
11516
|
metaclass=jsii.JSIIMeta,
|
|
11516
11517
|
jsii_type="aws-cdk-lib.aws_kinesisfirehose.KinesisStreamSource",
|
|
11517
11518
|
):
|
|
11518
|
-
'''
|
|
11519
|
+
'''An Amazon Data Firehose delivery stream source.
|
|
11519
11520
|
|
|
11520
11521
|
:exampleMetadata: infused
|
|
11521
11522
|
|
|
@@ -11598,9 +11599,9 @@ class LambdaFunctionProcessor(
|
|
|
11598
11599
|
) -> None:
|
|
11599
11600
|
'''
|
|
11600
11601
|
:param lambda_function: -
|
|
11601
|
-
:param buffer_interval: The length of time
|
|
11602
|
-
:param buffer_size: The amount of incoming data
|
|
11603
|
-
:param retries: The number of times
|
|
11602
|
+
:param buffer_interval: The length of time Amazon Data Firehose will buffer incoming data before calling the processor. s Default: Duration.minutes(1)
|
|
11603
|
+
:param buffer_size: The amount of incoming data Amazon Data Firehose will buffer before calling the processor. Default: Size.mebibytes(3)
|
|
11604
|
+
:param retries: The number of times Amazon Data Firehose will retry the processor invocation after a failure due to network timeout or invocation limits. Default: 3
|
|
11604
11605
|
'''
|
|
11605
11606
|
if __debug__:
|
|
11606
11607
|
type_hints = typing.get_type_hints(_typecheckingstub__c9ef06af75a5f9424b9a83d955544e1a8c769bb828e54b77e5dcec4ddd0f9154)
|
|
@@ -11624,7 +11625,7 @@ class LambdaFunctionProcessor(
|
|
|
11624
11625
|
necessary configuration to register as a processor.
|
|
11625
11626
|
|
|
11626
11627
|
:param _scope: -
|
|
11627
|
-
:param role: The IAM role assumed by
|
|
11628
|
+
:param role: The IAM role assumed by Amazon Data Firehose to write to the destination that this DataProcessor will bind to.
|
|
11628
11629
|
'''
|
|
11629
11630
|
if __debug__:
|
|
11630
11631
|
type_hints = typing.get_type_hints(_typecheckingstub__393c41d8ae2fe5acab13fd70fff9f4778e727adfd78b86d20820f067071490de)
|
|
@@ -11645,7 +11646,7 @@ class S3Bucket(
|
|
|
11645
11646
|
metaclass=jsii.JSIIMeta,
|
|
11646
11647
|
jsii_type="aws-cdk-lib.aws_kinesisfirehose.S3Bucket",
|
|
11647
11648
|
):
|
|
11648
|
-
'''An S3 bucket destination for data from
|
|
11649
|
+
'''An S3 bucket destination for data from an Amazon Data Firehose delivery stream.
|
|
11649
11650
|
|
|
11650
11651
|
:exampleMetadata: infused
|
|
11651
11652
|
|
|
@@ -11688,14 +11689,14 @@ class S3Bucket(
|
|
|
11688
11689
|
'''
|
|
11689
11690
|
:param bucket: -
|
|
11690
11691
|
:param buffering_interval: The length of time that Firehose buffers incoming data before delivering it to the S3 bucket. Minimum: Duration.seconds(0) Maximum: Duration.seconds(900) Default: Duration.seconds(300)
|
|
11691
|
-
:param buffering_size: The size of the buffer that
|
|
11692
|
-
:param compression: The type of compression that
|
|
11693
|
-
:param data_output_prefix: A prefix that
|
|
11692
|
+
:param buffering_size: The size of the buffer that Amazon Data Firehose uses for incoming data before delivering it to the S3 bucket. Minimum: Size.mebibytes(1) Maximum: Size.mebibytes(128) Default: Size.mebibytes(5)
|
|
11693
|
+
:param compression: The type of compression that Amazon Data Firehose uses to compress the data that it delivers to the Amazon S3 bucket. The compression formats SNAPPY or ZIP cannot be specified for Amazon Redshift destinations because they are not supported by the Amazon Redshift COPY operation that reads from the S3 bucket. Default: - UNCOMPRESSED
|
|
11694
|
+
:param data_output_prefix: A prefix that Amazon Data Firehose evaluates and adds to records before writing them to S3. This prefix appears immediately following the bucket name. Default: "YYYY/MM/DD/HH"
|
|
11694
11695
|
:param encryption_key: The AWS KMS key used to encrypt the data that it delivers to your Amazon S3 bucket. Default: - Data is not encrypted.
|
|
11695
|
-
:param error_output_prefix: A prefix that
|
|
11696
|
+
:param error_output_prefix: A prefix that Amazon Data Firehose evaluates and adds to failed records before writing them to S3. This prefix appears immediately following the bucket name. Default: "YYYY/MM/DD/HH"
|
|
11696
11697
|
:param logging_config: Configuration that determines whether to log errors during data transformation or delivery failures, and specifies the CloudWatch log group for storing error logs. Default: - errors will be logged and a log group will be created for you.
|
|
11697
11698
|
:param processor: The data transformation that should be performed on the data before writing to the destination. Default: - no data transformation will occur.
|
|
11698
|
-
:param role: The IAM role associated with this destination. Assumed by
|
|
11699
|
+
:param role: The IAM role associated with this destination. Assumed by Amazon Data Firehose to invoke processors and write to destinations Default: - a role will be created with default permissions.
|
|
11699
11700
|
:param s3_backup: The configuration for backing up source records to S3. Default: - source records will not be backed up to S3.
|
|
11700
11701
|
'''
|
|
11701
11702
|
if __debug__:
|
|
@@ -11718,7 +11719,7 @@ class S3Bucket(
|
|
|
11718
11719
|
|
|
11719
11720
|
@jsii.member(jsii_name="bind")
|
|
11720
11721
|
def bind(self, scope: _constructs_77d1e7e8.Construct) -> DestinationConfig:
|
|
11721
|
-
'''Binds this destination to the
|
|
11722
|
+
'''Binds this destination to the Amazon Data Firehose delivery stream.
|
|
11722
11723
|
|
|
11723
11724
|
Implementers should use this method to bind resources to the stack and initialize values using the provided stream.
|
|
11724
11725
|
|
|
@@ -11763,17 +11764,17 @@ class S3BucketProps(CommonDestinationS3Props, CommonDestinationProps):
|
|
|
11763
11764
|
role: typing.Optional[_IRole_235f5d8e] = None,
|
|
11764
11765
|
s3_backup: typing.Optional[typing.Union[DestinationS3BackupProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
11765
11766
|
) -> None:
|
|
11766
|
-
'''Props for defining an S3 destination of
|
|
11767
|
+
'''Props for defining an S3 destination of an Amazon Data Firehose delivery stream.
|
|
11767
11768
|
|
|
11768
11769
|
:param buffering_interval: The length of time that Firehose buffers incoming data before delivering it to the S3 bucket. Minimum: Duration.seconds(0) Maximum: Duration.seconds(900) Default: Duration.seconds(300)
|
|
11769
|
-
:param buffering_size: The size of the buffer that
|
|
11770
|
-
:param compression: The type of compression that
|
|
11771
|
-
:param data_output_prefix: A prefix that
|
|
11770
|
+
:param buffering_size: The size of the buffer that Amazon Data Firehose uses for incoming data before delivering it to the S3 bucket. Minimum: Size.mebibytes(1) Maximum: Size.mebibytes(128) Default: Size.mebibytes(5)
|
|
11771
|
+
:param compression: The type of compression that Amazon Data Firehose uses to compress the data that it delivers to the Amazon S3 bucket. The compression formats SNAPPY or ZIP cannot be specified for Amazon Redshift destinations because they are not supported by the Amazon Redshift COPY operation that reads from the S3 bucket. Default: - UNCOMPRESSED
|
|
11772
|
+
:param data_output_prefix: A prefix that Amazon Data Firehose evaluates and adds to records before writing them to S3. This prefix appears immediately following the bucket name. Default: "YYYY/MM/DD/HH"
|
|
11772
11773
|
:param encryption_key: The AWS KMS key used to encrypt the data that it delivers to your Amazon S3 bucket. Default: - Data is not encrypted.
|
|
11773
|
-
:param error_output_prefix: A prefix that
|
|
11774
|
+
:param error_output_prefix: A prefix that Amazon Data Firehose evaluates and adds to failed records before writing them to S3. This prefix appears immediately following the bucket name. Default: "YYYY/MM/DD/HH"
|
|
11774
11775
|
:param logging_config: Configuration that determines whether to log errors during data transformation or delivery failures, and specifies the CloudWatch log group for storing error logs. Default: - errors will be logged and a log group will be created for you.
|
|
11775
11776
|
:param processor: The data transformation that should be performed on the data before writing to the destination. Default: - no data transformation will occur.
|
|
11776
|
-
:param role: The IAM role associated with this destination. Assumed by
|
|
11777
|
+
:param role: The IAM role associated with this destination. Assumed by Amazon Data Firehose to invoke processors and write to destinations Default: - a role will be created with default permissions.
|
|
11777
11778
|
:param s3_backup: The configuration for backing up source records to S3. Default: - source records will not be backed up to S3.
|
|
11778
11779
|
|
|
11779
11780
|
:exampleMetadata: infused
|
|
@@ -11850,7 +11851,7 @@ class S3BucketProps(CommonDestinationS3Props, CommonDestinationProps):
|
|
|
11850
11851
|
|
|
11851
11852
|
@builtins.property
|
|
11852
11853
|
def buffering_size(self) -> typing.Optional[_Size_7b441c34]:
|
|
11853
|
-
'''The size of the buffer that
|
|
11854
|
+
'''The size of the buffer that Amazon Data Firehose uses for incoming data before delivering it to the S3 bucket.
|
|
11854
11855
|
|
|
11855
11856
|
Minimum: Size.mebibytes(1)
|
|
11856
11857
|
Maximum: Size.mebibytes(128)
|
|
@@ -11862,7 +11863,7 @@ class S3BucketProps(CommonDestinationS3Props, CommonDestinationProps):
|
|
|
11862
11863
|
|
|
11863
11864
|
@builtins.property
|
|
11864
11865
|
def compression(self) -> typing.Optional[Compression]:
|
|
11865
|
-
'''The type of compression that
|
|
11866
|
+
'''The type of compression that Amazon Data Firehose uses to compress the data that it delivers to the Amazon S3 bucket.
|
|
11866
11867
|
|
|
11867
11868
|
The compression formats SNAPPY or ZIP cannot be specified for Amazon Redshift
|
|
11868
11869
|
destinations because they are not supported by the Amazon Redshift COPY operation
|
|
@@ -11875,7 +11876,7 @@ class S3BucketProps(CommonDestinationS3Props, CommonDestinationProps):
|
|
|
11875
11876
|
|
|
11876
11877
|
@builtins.property
|
|
11877
11878
|
def data_output_prefix(self) -> typing.Optional[builtins.str]:
|
|
11878
|
-
'''A prefix that
|
|
11879
|
+
'''A prefix that Amazon Data Firehose evaluates and adds to records before writing them to S3.
|
|
11879
11880
|
|
|
11880
11881
|
This prefix appears immediately following the bucket name.
|
|
11881
11882
|
|
|
@@ -11897,7 +11898,7 @@ class S3BucketProps(CommonDestinationS3Props, CommonDestinationProps):
|
|
|
11897
11898
|
|
|
11898
11899
|
@builtins.property
|
|
11899
11900
|
def error_output_prefix(self) -> typing.Optional[builtins.str]:
|
|
11900
|
-
'''A prefix that
|
|
11901
|
+
'''A prefix that Amazon Data Firehose evaluates and adds to failed records before writing them to S3.
|
|
11901
11902
|
|
|
11902
11903
|
This prefix appears immediately following the bucket name.
|
|
11903
11904
|
|
|
@@ -11930,7 +11931,7 @@ class S3BucketProps(CommonDestinationS3Props, CommonDestinationProps):
|
|
|
11930
11931
|
def role(self) -> typing.Optional[_IRole_235f5d8e]:
|
|
11931
11932
|
'''The IAM role associated with this destination.
|
|
11932
11933
|
|
|
11933
|
-
Assumed by
|
|
11934
|
+
Assumed by Amazon Data Firehose to invoke processors and write to destinations
|
|
11934
11935
|
|
|
11935
11936
|
:default: - a role will be created with default permissions.
|
|
11936
11937
|
'''
|
|
@@ -11962,7 +11963,7 @@ class StreamEncryption(
|
|
|
11962
11963
|
metaclass=jsii.JSIIAbstractClass,
|
|
11963
11964
|
jsii_type="aws-cdk-lib.aws_kinesisfirehose.StreamEncryption",
|
|
11964
11965
|
):
|
|
11965
|
-
'''Represents server-side encryption for
|
|
11966
|
+
'''Represents server-side encryption for an Amazon Firehose Delivery Stream.
|
|
11966
11967
|
|
|
11967
11968
|
:exampleMetadata: infused
|
|
11968
11969
|
|
|
@@ -12019,7 +12020,7 @@ class StreamEncryption(
|
|
|
12019
12020
|
@builtins.property
|
|
12020
12021
|
@jsii.member(jsii_name="type")
|
|
12021
12022
|
def type(self) -> "StreamEncryptionType":
|
|
12022
|
-
'''The type of server-side encryption for the
|
|
12023
|
+
'''The type of server-side encryption for the Amazon Firehose delivery stream.'''
|
|
12023
12024
|
return typing.cast("StreamEncryptionType", jsii.get(self, "type"))
|
|
12024
12025
|
|
|
12025
12026
|
@builtins.property
|
|
@@ -12054,29 +12055,31 @@ class DeliveryStream(
|
|
|
12054
12055
|
metaclass=jsii.JSIIMeta,
|
|
12055
12056
|
jsii_type="aws-cdk-lib.aws_kinesisfirehose.DeliveryStream",
|
|
12056
12057
|
):
|
|
12057
|
-
'''Create a
|
|
12058
|
+
'''Create a Amazon Data Firehose delivery stream.
|
|
12058
12059
|
|
|
12059
12060
|
:resource: AWS::KinesisFirehose::DeliveryStream
|
|
12060
12061
|
:exampleMetadata: infused
|
|
12061
12062
|
|
|
12062
12063
|
Example::
|
|
12063
12064
|
|
|
12064
|
-
|
|
12065
|
-
|
|
12066
|
-
|
|
12067
|
-
|
|
12068
|
-
|
|
12069
|
-
|
|
12065
|
+
# bucket: s3.Bucket
|
|
12066
|
+
# Provide a Lambda function that will transform records before delivery, with custom
|
|
12067
|
+
# buffering and retry configuration
|
|
12068
|
+
lambda_function = lambda_.Function(self, "Processor",
|
|
12069
|
+
runtime=lambda_.Runtime.NODEJS_LATEST,
|
|
12070
|
+
handler="index.handler",
|
|
12071
|
+
code=lambda_.Code.from_asset(path.join(__dirname, "process-records"))
|
|
12070
12072
|
)
|
|
12071
|
-
|
|
12072
|
-
|
|
12073
|
-
|
|
12074
|
-
|
|
12075
|
-
|
|
12076
|
-
|
|
12077
|
-
|
|
12078
|
-
|
|
12079
|
-
|
|
12073
|
+
lambda_processor = firehose.LambdaFunctionProcessor(lambda_function,
|
|
12074
|
+
buffer_interval=Duration.minutes(5),
|
|
12075
|
+
buffer_size=Size.mebibytes(5),
|
|
12076
|
+
retries=5
|
|
12077
|
+
)
|
|
12078
|
+
s3_destination = firehose.S3Bucket(bucket,
|
|
12079
|
+
processor=lambda_processor
|
|
12080
|
+
)
|
|
12081
|
+
firehose.DeliveryStream(self, "Delivery Stream",
|
|
12082
|
+
destination=s3_destination
|
|
12080
12083
|
)
|
|
12081
12084
|
'''
|
|
12082
12085
|
|
|
@@ -12097,7 +12100,7 @@ class DeliveryStream(
|
|
|
12097
12100
|
:param destination: The destination that this delivery stream will deliver data to.
|
|
12098
12101
|
:param delivery_stream_name: A name for the delivery stream. Default: - a name is generated by CloudFormation.
|
|
12099
12102
|
:param encryption: Indicates the type of customer master key (CMK) to use for server-side encryption, if any. Default: StreamEncryption.unencrypted()
|
|
12100
|
-
:param role: The IAM role associated with this delivery stream. Assumed by
|
|
12103
|
+
:param role: The IAM role associated with this delivery stream. Assumed by Amazon Data Firehose to read from sources and encrypt data server-side. Default: - a role will be created with default permissions.
|
|
12101
12104
|
:param source: The Kinesis data stream to use as a source for this delivery stream. Default: - data must be written to the delivery stream via a direct put.
|
|
12102
12105
|
'''
|
|
12103
12106
|
if __debug__:
|
|
@@ -12152,7 +12155,7 @@ class DeliveryStream(
|
|
|
12152
12155
|
:param id: -
|
|
12153
12156
|
:param delivery_stream_arn: The ARN of the delivery stream. At least one of deliveryStreamArn and deliveryStreamName must be provided. Default: - derived from ``deliveryStreamName``.
|
|
12154
12157
|
:param delivery_stream_name: The name of the delivery stream. At least one of deliveryStreamName and deliveryStreamArn must be provided. Default: - derived from ``deliveryStreamArn``.
|
|
12155
|
-
:param role: The IAM role associated with this delivery stream. Assumed by
|
|
12158
|
+
:param role: The IAM role associated with this delivery stream. Assumed by Amazon Data Firehose to read from sources and encrypt data server-side. Default: - the imported stream cannot be granted access to other resources as an ``iam.IGrantable``.
|
|
12156
12159
|
'''
|
|
12157
12160
|
if __debug__:
|
|
12158
12161
|
type_hints = typing.get_type_hints(_typecheckingstub__60d49cb1de4cae1a83d89ae7d419d2e7a17f1c8a25478897973ca006cf1f5066)
|
|
@@ -12323,7 +12326,7 @@ class DeliveryStream(
|
|
|
12323
12326
|
statistic: typing.Optional[builtins.str] = None,
|
|
12324
12327
|
unit: typing.Optional[_Unit_61bc6f70] = None,
|
|
12325
12328
|
) -> _Metric_e396a4dc:
|
|
12326
|
-
'''Metric for the age (from getting into
|
|
12329
|
+
'''Metric for the age (from getting into Amazon Data Firehose to now) of the oldest record in Amazon Data Firehose.
|
|
12327
12330
|
|
|
12328
12331
|
Any record older than this age has been delivered to the Amazon S3 bucket for backup.
|
|
12329
12332
|
|
|
@@ -12493,7 +12496,7 @@ class DeliveryStream(
|
|
|
12493
12496
|
@builtins.property
|
|
12494
12497
|
@jsii.member(jsii_name="connections")
|
|
12495
12498
|
def connections(self) -> _Connections_0f31fce8:
|
|
12496
|
-
'''Network connections between
|
|
12499
|
+
'''Network connections between Amazon Data Firehose and other resources, i.e. Redshift cluster.'''
|
|
12497
12500
|
return typing.cast(_Connections_0f31fce8, jsii.get(self, "connections"))
|
|
12498
12501
|
|
|
12499
12502
|
@builtins.property
|