Skip to main content

delivery_streams

Creates, updates, deletes or gets a delivery_stream resource or lists delivery_streams in a region

Overview

Namedelivery_streams
TypeResource
DescriptionResource Type definition for AWS::KinesisFirehose::DeliveryStream
Idaws.kinesisfirehose.delivery_streams

Fields

NameDatatypeDescription
arnstring
delivery_stream_encryption_configuration_inputobject
delivery_stream_namestring
delivery_stream_typestring
elasticsearch_destination_configurationobject
amazonopensearchservice_destination_configurationobject
amazon_open_search_serverless_destination_configurationobject
extended_s3_destination_configurationobject
kinesis_stream_source_configurationobject
msk_source_configurationobject
redshift_destination_configurationobject
s3_destination_configurationobject
splunk_destination_configurationobject
http_endpoint_destination_configurationobject
snowflake_destination_configurationobject
tagsarray
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTregion
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all delivery_streams in a region.

SELECT
region,
arn,
delivery_stream_encryption_configuration_input,
delivery_stream_name,
delivery_stream_type,
elasticsearch_destination_configuration,
amazonopensearchservice_destination_configuration,
amazon_open_search_serverless_destination_configuration,
extended_s3_destination_configuration,
kinesis_stream_source_configuration,
msk_source_configuration,
redshift_destination_configuration,
s3_destination_configuration,
splunk_destination_configuration,
http_endpoint_destination_configuration,
snowflake_destination_configuration,
tags
FROM aws.kinesisfirehose.delivery_streams
WHERE region = 'us-east-1';

Gets all properties from an individual delivery_stream.

SELECT
region,
arn,
delivery_stream_encryption_configuration_input,
delivery_stream_name,
delivery_stream_type,
elasticsearch_destination_configuration,
amazonopensearchservice_destination_configuration,
amazon_open_search_serverless_destination_configuration,
extended_s3_destination_configuration,
kinesis_stream_source_configuration,
msk_source_configuration,
redshift_destination_configuration,
s3_destination_configuration,
splunk_destination_configuration,
http_endpoint_destination_configuration,
snowflake_destination_configuration,
tags
FROM aws.kinesisfirehose.delivery_streams
WHERE region = 'us-east-1' AND data__Identifier = '<DeliveryStreamName>';

INSERT example

Use the following StackQL query and manifest file to create a new delivery_stream resource, using stack-deploy.

/*+ create */
INSERT INTO aws.kinesisfirehose.delivery_streams (
DeliveryStreamEncryptionConfigurationInput,
DeliveryStreamName,
DeliveryStreamType,
ElasticsearchDestinationConfiguration,
AmazonopensearchserviceDestinationConfiguration,
AmazonOpenSearchServerlessDestinationConfiguration,
ExtendedS3DestinationConfiguration,
KinesisStreamSourceConfiguration,
MSKSourceConfiguration,
RedshiftDestinationConfiguration,
S3DestinationConfiguration,
SplunkDestinationConfiguration,
HttpEndpointDestinationConfiguration,
SnowflakeDestinationConfiguration,
Tags,
region
)
SELECT
'{{ DeliveryStreamEncryptionConfigurationInput }}',
'{{ DeliveryStreamName }}',
'{{ DeliveryStreamType }}',
'{{ ElasticsearchDestinationConfiguration }}',
'{{ AmazonopensearchserviceDestinationConfiguration }}',
'{{ AmazonOpenSearchServerlessDestinationConfiguration }}',
'{{ ExtendedS3DestinationConfiguration }}',
'{{ KinesisStreamSourceConfiguration }}',
'{{ MSKSourceConfiguration }}',
'{{ RedshiftDestinationConfiguration }}',
'{{ S3DestinationConfiguration }}',
'{{ SplunkDestinationConfiguration }}',
'{{ HttpEndpointDestinationConfiguration }}',
'{{ SnowflakeDestinationConfiguration }}',
'{{ Tags }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.kinesisfirehose.delivery_streams
WHERE data__Identifier = '<DeliveryStreamName>'
AND region = 'us-east-1';

Permissions

To operate on the delivery_streams resource, the following permissions are required:

Create

firehose:CreateDeliveryStream,
firehose:DescribeDeliveryStream,
iam:GetRole,
iam:PassRole,
kms:CreateGrant,
kms:DescribeKey

Read

firehose:DescribeDeliveryStream,
firehose:ListTagsForDeliveryStream

Update

firehose:UpdateDestination,
firehose:DescribeDeliveryStream,
firehose:StartDeliveryStreamEncryption,
firehose:StopDeliveryStreamEncryption,
firehose:ListTagsForDeliveryStream,
firehose:TagDeliveryStream,
firehose:UntagDeliveryStream,
kms:CreateGrant,
kms:RevokeGrant,
kms:DescribeKey

Delete

firehose:DeleteDeliveryStream,
firehose:DescribeDeliveryStream,
kms:RevokeGrant,
kms:DescribeKey

List

firehose:ListDeliveryStreams