Skip to main content

streaming_distributions

Creates, updates, deletes, gets or lists a streaming_distributions resource.

Overview

Namestreaming_distributions
TypeResource
Idaws.cloudfront.streaming_distributions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe ARN (Amazon Resource Name) for the distribution. For example: arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, where 123456789012 is your Amazon Web Services account ID.
active_trusted_signersstringA complex type that lists the Amazon Web Services accounts, if any, that you included in the TrustedSigners complex type for this distribution. These are the accounts that you want to allow to create signed URLs for private content. The Signer complex type lists the Amazon Web Services account number of the trusted signer or self if the signer is the Amazon Web Services account that created the distribution. The Signer element also includes the IDs of any active CloudFront key pairs that are associated with the trusted signer's Amazon Web Services account. If no KeyPairId element appears for a Signer, that signer can't create signed URLs. For more information, see Serving Private Content through CloudFront in the Amazon CloudFront Developer Guide.
domain_namestringThe domain name that corresponds to the streaming distribution, for example, s5c39gqb8ow64r.cloudfront.net.
idstringThe identifier for the RTMP distribution. For example: EGTXBD79EXAMPLE.
last_modified_timestringThe date and time that the distribution was last modified.
statusstringThe current status of the RTMP distribution. When the status is Deployed, the distribution's information is propagated to all CloudFront edge locations.
streaming_distribution_configstringThe current configuration information for the RTMP distribution.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_streaming_distributionselectid, regionGets information about a specified RTMP distribution, including the distribution configuration.
list_streaming_distributionsselectregionMarker, MaxItemsList streaming distributions.
create_streaming_distributioninsertregion, StreamingDistributionConfigThis API is deprecated. Amazon CloudFront is deprecating real-time messaging protocol (RTMP) distributions on December 31, 2020. For more information, read the announcement on the Amazon CloudFront discussion forum.
update_streaming_distributionupdateid, region, StreamingDistributionConfigIf-MatchUpdate a streaming distribution.
delete_streaming_distributiondeleteid, regionIf-MatchDelete a streaming distribution. To delete an RTMP distribution using the CloudFront API, perform the following steps. To delete an RTMP distribution using the CloudFront API: Disable the RTMP distribution. Submit a GET Streaming Distribution Config request to get the current configuration and the Etag header for the distribution. Update the XML document that was returned in the response to your GET Streaming Distribution Config request to change the value of Enabled to false. Submit a PUT Streaming Distribution Config request to update the configuration for your distribution. In the request body, include the XML document that you updated in Step 3. Then set the value of the HTTP If-Match header to the value of the ETag header that CloudFront returned when you submitted the GET Streaming Distribution Config request in Step 2. Review the response to the PUT Streaming Distribution Config request to confirm that the distribution was successfully disabled. Submit a GET Streaming Distribution Config request to confirm that your changes have propagated. When propagation is complete, the value of Status is Deployed. Submit a DELETE Streaming Distribution request. Set the value of the HTTP If-Match header to the value of the ETag header that CloudFront returned when you submitted the GET Streaming Distribution Config request in Step 2. Review the response to your DELETE Streaming Distribution request to confirm that the distribution was successfully deleted. For information about deleting a distribution using the CloudFront console, see Deleting a Distribution in the Amazon CloudFront Developer Guide.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
idstringThe distribution ID.
regionstringAWS region (default: us-east-1)
If-MatchstringThe value of the ETag header that you received when you disabled the streaming distribution. For example: E2QWRUHAPOMQZL.
MarkerstringThe value that you provided for the Marker request parameter.
MaxItemsstringThe value that you provided for the MaxItems request parameter.

SELECT examples

Gets information about a specified RTMP distribution, including the distribution configuration.

SELECT
arn,
active_trusted_signers,
domain_name,
id,
last_modified_time,
status,
streaming_distribution_config
FROM aws.cloudfront.streaming_distributions
WHERE id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

This API is deprecated. Amazon CloudFront is deprecating real-time messaging protocol (RTMP) distributions on December 31, 2020. For more information, read the announcement on the Amazon CloudFront discussion forum.

INSERT INTO aws.cloudfront.streaming_distributions (
StreamingDistributionConfig,
region
)
SELECT
'{{ StreamingDistributionConfig }}' /* required */,
'{{ region }}'
RETURNING
arn,
active_trusted_signers,
domain_name,
id,
last_modified_time,
status,
streaming_distribution_config
;

UPDATE examples

Update a streaming distribution.

UPDATE aws.cloudfront.streaming_distributions
SET
StreamingDistributionConfig = '{{ StreamingDistributionConfig }}'
WHERE
id = '{{ id }}' --required
AND region = '{{ region }}' --required
AND StreamingDistributionConfig = '{{ StreamingDistributionConfig }}' --required
AND `If-Match` = '{{ If-Match}}'
RETURNING
arn,
active_trusted_signers,
domain_name,
id,
last_modified_time,
status,
streaming_distribution_config;

DELETE examples

Delete a streaming distribution. To delete an RTMP distribution using the CloudFront API, perform the following steps. To delete an RTMP distribution using the CloudFront API: Disable the RTMP distribution. Submit a GET Streaming Distribution Config request to get the current configuration and the Etag header for the distribution. Update the XML document that was returned in the response to your GET Streaming Distribution Config request to change the value of Enabled to false. Submit a PUT Streaming Distribution Config request to update the configuration for your distribution. In the request body, include the XML document that you updated in Step 3. Then set the value of the HTTP If-Match header to the value of the ETag header that CloudFront returned when you submitted the GET Streaming Distribution Config request in Step 2. Review the response to the PUT Streaming Distribution Config request to confirm that the distribution was successfully disabled. Submit a GET Streaming Distribution Config request to confirm that your changes have propagated. When propagation is complete, the value of Status is Deployed. Submit a DELETE Streaming Distribution request. Set the value of the HTTP If-Match header to the value of the ETag header that CloudFront returned when you submitted the GET Streaming Distribution Config request in Step 2. Review the response to your DELETE Streaming Distribution request to confirm that the distribution was successfully deleted. For information about deleting a distribution using the CloudFront console, see Deleting a Distribution in the Amazon CloudFront Developer Guide.

DELETE FROM aws.cloudfront.streaming_distributions
WHERE id = '{{ id }}' --required
AND region = '{{ region }}' --required
AND `If-Match` = '{{ If-Match }}'
;