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
Idawscc.kinesisfirehose.delivery_streams

Fields

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

For more information, see AWS::KinesisFirehose::DeliveryStream.

Methods

NameResourceAccessible byRequired Params
create_resourcedelivery_streamsINSERTregion
delete_resourcedelivery_streamsDELETEIdentifier, region
update_resourcedelivery_streamsUPDATEIdentifier, PatchDocument, region
list_resourcesdelivery_streams_list_onlySELECTregion
get_resourcedelivery_streamsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual delivery_stream.

SELECT
region,
delivery_stream_encryption_configuration_input,
http_endpoint_destination_configuration,
kinesis_stream_source_configuration,
delivery_stream_type,
iceberg_destination_configuration,
redshift_destination_configuration,
amazonopensearchservice_destination_configuration,
msk_source_configuration,
direct_put_source_configuration,
splunk_destination_configuration,
extended_s3_destination_configuration,
amazon_open_search_serverless_destination_configuration,
elasticsearch_destination_configuration,
snowflake_destination_configuration,
database_source_configuration,
s3_destination_configuration,
delivery_stream_name,
arn,
tags
FROM awscc.kinesisfirehose.delivery_streams
WHERE
region = '{{ region }}' AND
Identifier = '{{ delivery_stream_name }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.kinesisfirehose.delivery_streams (
DeliveryStreamEncryptionConfigurationInput,
HttpEndpointDestinationConfiguration,
KinesisStreamSourceConfiguration,
DeliveryStreamType,
IcebergDestinationConfiguration,
RedshiftDestinationConfiguration,
AmazonopensearchserviceDestinationConfiguration,
MSKSourceConfiguration,
DirectPutSourceConfiguration,
SplunkDestinationConfiguration,
ExtendedS3DestinationConfiguration,
AmazonOpenSearchServerlessDestinationConfiguration,
ElasticsearchDestinationConfiguration,
SnowflakeDestinationConfiguration,
DatabaseSourceConfiguration,
S3DestinationConfiguration,
DeliveryStreamName,
Tags,
region
)
SELECT
'{{ delivery_stream_encryption_configuration_input }}',
'{{ http_endpoint_destination_configuration }}',
'{{ kinesis_stream_source_configuration }}',
'{{ delivery_stream_type }}',
'{{ iceberg_destination_configuration }}',
'{{ redshift_destination_configuration }}',
'{{ amazonopensearchservice_destination_configuration }}',
'{{ msk_source_configuration }}',
'{{ direct_put_source_configuration }}',
'{{ splunk_destination_configuration }}',
'{{ extended_s3_destination_configuration }}',
'{{ amazon_open_search_serverless_destination_configuration }}',
'{{ elasticsearch_destination_configuration }}',
'{{ snowflake_destination_configuration }}',
'{{ database_source_configuration }}',
'{{ s3_destination_configuration }}',
'{{ delivery_stream_name }}',
'{{ tags }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

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

/*+ update */
UPDATE awscc.kinesisfirehose.delivery_streams
SET PatchDocument = string('{{ {
"DeliveryStreamEncryptionConfigurationInput": delivery_stream_encryption_configuration_input,
"HttpEndpointDestinationConfiguration": http_endpoint_destination_configuration,
"RedshiftDestinationConfiguration": redshift_destination_configuration,
"SplunkDestinationConfiguration": splunk_destination_configuration,
"ExtendedS3DestinationConfiguration": extended_s3_destination_configuration,
"S3DestinationConfiguration": s3_destination_configuration,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ delivery_stream_name }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.kinesisfirehose.delivery_streams
WHERE
Identifier = '{{ delivery_stream_name }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

firehose:DescribeDeliveryStream,
firehose:ListTagsForDeliveryStream