MediaConnect

Table of Contents

Client

class MediaConnect.Client

A low-level client representing AWS MediaConnect:

import boto3

client = boto3.client('mediaconnect')

These are the available methods:

add_flow_outputs(**kwargs)

Adds outputs to an existing flow. You can create up to 20 outputs per flow.

See also: AWS API Documentation

Request Syntax

response = client.add_flow_outputs(
    FlowArn='string',
    Outputs=[
        {
            'Description': 'string',
            'Destination': 'string',
            'Encryption': {
                'Algorithm': 'aes128'|'aes192'|'aes256',
                'KeyType': 'static-key',
                'RoleArn': 'string',
                'SecretArn': 'string'
            },
            'MaxLatency': 123,
            'Name': 'string',
            'Port': 123,
            'Protocol': 'zixi-push'|'rtp-fec'|'rtp',
            'SmoothingLatency': 123,
            'StreamId': 'string'
        },
    ]
)
Parameters
  • FlowArn (string) -- [REQUIRED] The flow that you want to add outputs to.
  • Outputs (list) --

    [REQUIRED] A list of outputs that you want to add.

    • (dict) -- The output that you want to add to this flow.
      • Description (string) -- A description of the output. This description appears only on the AWS Elemental MediaConnect console and will not be seen by the end user.
      • Destination (string) -- [REQUIRED] The IP address from which video will be sent to output destinations.
      • Encryption (dict) -- The type of key used for the encryption. If no keyType is provided, the service will use the default setting (static-key).
        • Algorithm (string) -- [REQUIRED] The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).
        • KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key).
        • RoleArn (string) -- [REQUIRED] The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity).
        • SecretArn (string) -- [REQUIRED] The ARN that was assigned to the secret that you created in AWS Secrets Manager to store the encryption key.
      • MaxLatency (integer) -- The maximum latency in milliseconds for Zixi-based streams.
      • Name (string) -- The name of the output. This value must be unique within the current flow.
      • Port (integer) -- [REQUIRED] The port to use when content is distributed to this output.
      • Protocol (string) -- [REQUIRED] The protocol to use for the output.
      • SmoothingLatency (integer) -- The smoothing latency in milliseconds for RTP and RTP-FEC streams.
      • StreamId (string) -- The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams.
Return type

dict

Returns

Response Syntax

{
    'FlowArn': 'string',
    'Outputs': [
        {
            'Description': 'string',
            'Destination': 'string',
            'Encryption': {
                'Algorithm': 'aes128'|'aes192'|'aes256',
                'KeyType': 'static-key',
                'RoleArn': 'string',
                'SecretArn': 'string'
            },
            'EntitlementArn': 'string',
            'MediaLiveInputArn': 'string',
            'Name': 'string',
            'OutputArn': 'string',
            'Port': 123,
            'Transport': {
                'MaxBitrate': 123,
                'MaxLatency': 123,
                'Protocol': 'zixi-push'|'rtp-fec'|'rtp',
                'SmoothingLatency': 123,
                'StreamId': 'string'
            }
        },
    ]
}

Response Structure

  • (dict) -- AWS Elemental MediaConnect added the outputs successfully.
    • FlowArn (string) -- The ARN of the flow that these outputs were added to.
    • Outputs (list) -- The details of the newly added outputs.
      • (dict) -- The settings for an output.
        • Description (string) -- A description of the output.
        • Destination (string) -- The address where you want to send the output.
        • Encryption (dict) -- The type of key used for the encryption. If no keyType is provided, the service will use the default setting (static-key).
          • Algorithm (string) -- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).
          • KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key).
          • RoleArn (string) -- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity).
          • SecretArn (string) -- The ARN that was assigned to the secret that you created in AWS Secrets Manager to store the encryption key.
        • EntitlementArn (string) -- The ARN of the entitlement on the originator''s flow. This value is relevant only on entitled flows.
        • MediaLiveInputArn (string) -- The input ARN of the AWS Elemental MediaLive channel. This parameter is relevant only for outputs that were added by creating a MediaLive input.
        • Name (string) -- The name of the output. This value must be unique within the current flow.
        • OutputArn (string) -- The ARN of the output.
        • Port (integer) -- The port to use when content is distributed to this output.
        • Transport (dict) -- Attributes related to the transport stream that are used in the output.
          • MaxBitrate (integer) -- The smoothing max bitrate for RTP and RTP-FEC streams.
          • MaxLatency (integer) -- The maximum latency in milliseconds for Zixi-based streams.
          • Protocol (string) -- The protocol that is used by the source or output.
          • SmoothingLatency (integer) -- The smoothing latency in milliseconds for RTP and RTP-FEC streams.
          • StreamId (string) -- The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams.

can_paginate(operation_name)

Check if an operation can be paginated.

Parameters
operation_name (string) -- The operation name. This is the same name as the method name on the client. For example, if the method name is create_foo, and you'd normally invoke the operation as client.create_foo(**kwargs), if the create_foo operation can be paginated, you can use the call client.get_paginator("create_foo").
Returns
True if the operation can be paginated, False otherwise.
create_flow(**kwargs)

Creates a new flow. The request must include one source. The request optionally can include outputs (up to 20) and entitlements (up to 50).

See also: AWS API Documentation

Request Syntax

response = client.create_flow(
    AvailabilityZone='string',
    Entitlements=[
        {
            'Description': 'string',
            'Encryption': {
                'Algorithm': 'aes128'|'aes192'|'aes256',
                'KeyType': 'static-key',
                'RoleArn': 'string',
                'SecretArn': 'string'
            },
            'Name': 'string',
            'Subscribers': [
                'string',
            ]
        },
    ],
    Name='string',
    Outputs=[
        {
            'Description': 'string',
            'Destination': 'string',
            'Encryption': {
                'Algorithm': 'aes128'|'aes192'|'aes256',
                'KeyType': 'static-key',
                'RoleArn': 'string',
                'SecretArn': 'string'
            },
            'MaxLatency': 123,
            'Name': 'string',
            'Port': 123,
            'Protocol': 'zixi-push'|'rtp-fec'|'rtp',
            'SmoothingLatency': 123,
            'StreamId': 'string'
        },
    ],
    Source={
        'Decryption': {
            'Algorithm': 'aes128'|'aes192'|'aes256',
            'KeyType': 'static-key',
            'RoleArn': 'string',
            'SecretArn': 'string'
        },
        'Description': 'string',
        'EntitlementArn': 'string',
        'IngestPort': 123,
        'MaxBitrate': 123,
        'MaxLatency': 123,
        'Name': 'string',
        'Protocol': 'zixi-push'|'rtp-fec'|'rtp',
        'StreamId': 'string',
        'WhitelistCidr': 'string'
    }
)
Parameters
  • AvailabilityZone (string) -- The Availability Zone that you want to create the flow in. These options are limited to the Availability Zones within the current AWS Region.
  • Entitlements (list) --

    The entitlements that you want to grant on a flow.

    • (dict) -- The entitlements that you want to grant on a flow.
      • Description (string) -- A description of the entitlement. This description appears only on the AWS Elemental MediaConnect console and will not be seen by the subscriber or end user.
      • Encryption (dict) -- The type of encryption that will be used on the output that is associated with this entitlement.
        • Algorithm (string) -- [REQUIRED] The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).
        • KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key).
        • RoleArn (string) -- [REQUIRED] The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity).
        • SecretArn (string) -- [REQUIRED] The ARN that was assigned to the secret that you created in AWS Secrets Manager to store the encryption key.
      • Name (string) -- The name of the entitlement. This value must be unique within the current flow.
      • Subscribers (list) -- [REQUIRED] The AWS account IDs that you want to share your content with. The receiving accounts (subscribers) will be allowed to create their own flows using your content as the source.
        • (string) --
  • Name (string) -- [REQUIRED] The name of the flow.
  • Outputs (list) --

    The outputs that you want to add to this flow.

    • (dict) -- The output that you want to add to this flow.
      • Description (string) -- A description of the output. This description appears only on the AWS Elemental MediaConnect console and will not be seen by the end user.
      • Destination (string) -- [REQUIRED] The IP address from which video will be sent to output destinations.
      • Encryption (dict) -- The type of key used for the encryption. If no keyType is provided, the service will use the default setting (static-key).
        • Algorithm (string) -- [REQUIRED] The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).
        • KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key).
        • RoleArn (string) -- [REQUIRED] The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity).
        • SecretArn (string) -- [REQUIRED] The ARN that was assigned to the secret that you created in AWS Secrets Manager to store the encryption key.
      • MaxLatency (integer) -- The maximum latency in milliseconds for Zixi-based streams.
      • Name (string) -- The name of the output. This value must be unique within the current flow.
      • Port (integer) -- [REQUIRED] The port to use when content is distributed to this output.
      • Protocol (string) -- [REQUIRED] The protocol to use for the output.
      • SmoothingLatency (integer) -- The smoothing latency in milliseconds for RTP and RTP-FEC streams.
      • StreamId (string) -- The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams.
  • Source (dict) --

    [REQUIRED] The settings for the source of the flow.

    • Decryption (dict) -- The type of encryption that is used on the content ingested from this source.
      • Algorithm (string) -- [REQUIRED] The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).
      • KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key).
      • RoleArn (string) -- [REQUIRED] The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity).
      • SecretArn (string) -- [REQUIRED] The ARN that was assigned to the secret that you created in AWS Secrets Manager to store the encryption key.
    • Description (string) -- A description for the source. This value is not used or seen outside of the current AWS Elemental MediaConnect account.
    • EntitlementArn (string) -- The ARN of the entitlement that allows you to subscribe to this flow. The entitlement is set by the flow originator, and the ARN is generated as part of the originator's flow.
    • IngestPort (integer) -- The port that the flow will be listening on for incoming content.
    • MaxBitrate (integer) -- The smoothing max bitrate for RTP and RTP-FEC streams.
    • MaxLatency (integer) -- The maximum latency in milliseconds for Zixi-based streams.
    • Name (string) -- The name of the source.
    • Protocol (string) -- The protocol that is used by the source.
    • StreamId (string) -- The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams.
    • WhitelistCidr (string) -- The range of IP addresses that should be allowed to contribute content to your source. These IP addresses should in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.
Return type

dict

Returns

Response Syntax

{
    'Flow': {
        'AvailabilityZone': 'string',
        'Description': 'string',
        'EgressIp': 'string',
        'Entitlements': [
            {
                'Description': 'string',
                'Encryption': {
                    'Algorithm': 'aes128'|'aes192'|'aes256',
                    'KeyType': 'static-key',
                    'RoleArn': 'string',
                    'SecretArn': 'string'
                },
                'EntitlementArn': 'string',
                'Name': 'string',
                'Subscribers': [
                    'string',
                ]
            },
        ],
        'FlowArn': 'string',
        'Name': 'string',
        'Outputs': [
            {
                'Description': 'string',
                'Destination': 'string',
                'Encryption': {
                    'Algorithm': 'aes128'|'aes192'|'aes256',
                    'KeyType': 'static-key',
                    'RoleArn': 'string',
                    'SecretArn': 'string'
                },
                'EntitlementArn': 'string',
                'MediaLiveInputArn': 'string',
                'Name': 'string',
                'OutputArn': 'string',
                'Port': 123,
                'Transport': {
                    'MaxBitrate': 123,
                    'MaxLatency': 123,
                    'Protocol': 'zixi-push'|'rtp-fec'|'rtp',
                    'SmoothingLatency': 123,
                    'StreamId': 'string'
                }
            },
        ],
        'Source': {
            'Decryption': {
                'Algorithm': 'aes128'|'aes192'|'aes256',
                'KeyType': 'static-key',
                'RoleArn': 'string',
                'SecretArn': 'string'
            },
            'Description': 'string',
            'EntitlementArn': 'string',
            'IngestIp': 'string',
            'IngestPort': 123,
            'Name': 'string',
            'SourceArn': 'string',
            'Transport': {
                'MaxBitrate': 123,
                'MaxLatency': 123,
                'Protocol': 'zixi-push'|'rtp-fec'|'rtp',
                'SmoothingLatency': 123,
                'StreamId': 'string'
            },
            'WhitelistCidr': 'string'
        },
        'Status': 'STANDBY'|'ACTIVE'|'UPDATING'|'DELETING'|'STARTING'|'STOPPING'|'ERROR'
    }
}

Response Structure

  • (dict) -- AWS Elemental MediaConnect created the new flow successfully.
    • Flow (dict) -- The settings for a flow, including its source, outputs, and entitlements.
      • AvailabilityZone (string) -- The Availability Zone that you want to create the flow in. These options are limited to the Availability Zones within the current AWS.
      • Description (string) -- A description of the flow. This value is not used or seen outside of the current AWS Elemental MediaConnect account.
      • EgressIp (string) -- The IP address from which video will be sent to output destinations.
      • Entitlements (list) -- The entitlements in this flow.
        • (dict) -- The settings for a flow entitlement.
          • Description (string) -- A description of the entitlement.
          • Encryption (dict) -- The type of encryption that will be used on the output that is associated with this entitlement.
            • Algorithm (string) -- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).
            • KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key).
            • RoleArn (string) -- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity).
            • SecretArn (string) -- The ARN that was assigned to the secret that you created in AWS Secrets Manager to store the encryption key.
          • EntitlementArn (string) -- The ARN of the entitlement.
          • Name (string) -- The name of the entitlement.
          • Subscribers (list) -- The AWS account IDs that you want to share your content with. The receiving accounts (subscribers) will be allowed to create their own flow using your content as the source.
            • (string) --
      • FlowArn (string) -- The Amazon Resource Name (ARN), a unique identifier for any AWS resource, of the flow.
      • Name (string) -- The name of the flow.
      • Outputs (list) -- The outputs in this flow.
        • (dict) -- The settings for an output.
          • Description (string) -- A description of the output.
          • Destination (string) -- The address where you want to send the output.
          • Encryption (dict) -- The type of key used for the encryption. If no keyType is provided, the service will use the default setting (static-key).
            • Algorithm (string) -- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).
            • KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key).
            • RoleArn (string) -- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity).
            • SecretArn (string) -- The ARN that was assigned to the secret that you created in AWS Secrets Manager to store the encryption key.
          • EntitlementArn (string) -- The ARN of the entitlement on the originator''s flow. This value is relevant only on entitled flows.
          • MediaLiveInputArn (string) -- The input ARN of the AWS Elemental MediaLive channel. This parameter is relevant only for outputs that were added by creating a MediaLive input.
          • Name (string) -- The name of the output. This value must be unique within the current flow.
          • OutputArn (string) -- The ARN of the output.
          • Port (integer) -- The port to use when content is distributed to this output.
          • Transport (dict) -- Attributes related to the transport stream that are used in the output.
            • MaxBitrate (integer) -- The smoothing max bitrate for RTP and RTP-FEC streams.
            • MaxLatency (integer) -- The maximum latency in milliseconds for Zixi-based streams.
            • Protocol (string) -- The protocol that is used by the source or output.
            • SmoothingLatency (integer) -- The smoothing latency in milliseconds for RTP and RTP-FEC streams.
            • StreamId (string) -- The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams.
      • Source (dict) -- The settings for the source of the flow.
        • Decryption (dict) -- The type of encryption that is used on the content ingested from this source.
          • Algorithm (string) -- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).
          • KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key).
          • RoleArn (string) -- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity).
          • SecretArn (string) -- The ARN that was assigned to the secret that you created in AWS Secrets Manager to store the encryption key.
        • Description (string) -- A description for the source. This value is not used or seen outside of the current AWS Elemental MediaConnect account.
        • EntitlementArn (string) -- The ARN of the entitlement that allows you to subscribe to content that comes from another AWS account. The entitlement is set by the content originator and the ARN is generated as part of the originator's flow.
        • IngestIp (string) -- The IP address that the flow will be listening on for incoming content.
        • IngestPort (integer) -- The port that the flow will be listening on for incoming content.
        • Name (string) -- The name of the source.
        • SourceArn (string) -- The ARN of the source.
        • Transport (dict) -- Attributes related to the transport stream that are used in the source.
          • MaxBitrate (integer) -- The smoothing max bitrate for RTP and RTP-FEC streams.
          • MaxLatency (integer) -- The maximum latency in milliseconds for Zixi-based streams.
          • Protocol (string) -- The protocol that is used by the source or output.
          • SmoothingLatency (integer) -- The smoothing latency in milliseconds for RTP and RTP-FEC streams.
          • StreamId (string) -- The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams.
        • WhitelistCidr (string) -- The range of IP addresses that should be allowed to contribute content to your source. These IP addresses should in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.
      • Status (string) -- The current status of the flow.

delete_flow(**kwargs)

Deletes a flow. Before you can delete a flow, you must stop the flow.

See also: AWS API Documentation

Request Syntax

response = client.delete_flow(
    FlowArn='string'
)
Parameters
FlowArn (string) -- [REQUIRED] The ARN of the flow that you want to delete.
Return type
dict
Returns
Response Syntax
{
    'FlowArn': 'string',
    'Status': 'STANDBY'|'ACTIVE'|'UPDATING'|'DELETING'|'STARTING'|'STOPPING'|'ERROR'
}

Response Structure

  • (dict) -- AWS Elemental MediaConnect is deleting the flow.
    • FlowArn (string) -- The ARN of the flow that was deleted.
    • Status (string) -- The status of the flow when the DeleteFlow process begins.
describe_flow(**kwargs)

Displays the details of a flow. The response includes the flow ARN, name, and Availability Zone, as well as details about the source, outputs, and entitlements.

See also: AWS API Documentation

Request Syntax

response = client.describe_flow(
    FlowArn='string'
)
Parameters
FlowArn (string) -- [REQUIRED] The ARN of the flow that you want to describe.
Return type
dict
Returns
Response Syntax
{
    'Flow': {
        'AvailabilityZone': 'string',
        'Description': 'string',
        'EgressIp': 'string',
        'Entitlements': [
            {
                'Description': 'string',
                'Encryption': {
                    'Algorithm': 'aes128'|'aes192'|'aes256',
                    'KeyType': 'static-key',
                    'RoleArn': 'string',
                    'SecretArn': 'string'
                },
                'EntitlementArn': 'string',
                'Name': 'string',
                'Subscribers': [
                    'string',
                ]
            },
        ],
        'FlowArn': 'string',
        'Name': 'string',
        'Outputs': [
            {
                'Description': 'string',
                'Destination': 'string',
                'Encryption': {
                    'Algorithm': 'aes128'|'aes192'|'aes256',
                    'KeyType': 'static-key',
                    'RoleArn': 'string',
                    'SecretArn': 'string'
                },
                'EntitlementArn': 'string',
                'MediaLiveInputArn': 'string',
                'Name': 'string',
                'OutputArn': 'string',
                'Port': 123,
                'Transport': {
                    'MaxBitrate': 123,
                    'MaxLatency': 123,
                    'Protocol': 'zixi-push'|'rtp-fec'|'rtp',
                    'SmoothingLatency': 123,
                    'StreamId': 'string'
                }
            },
        ],
        'Source': {
            'Decryption': {
                'Algorithm': 'aes128'|'aes192'|'aes256',
                'KeyType': 'static-key',
                'RoleArn': 'string',
                'SecretArn': 'string'
            },
            'Description': 'string',
            'EntitlementArn': 'string',
            'IngestIp': 'string',
            'IngestPort': 123,
            'Name': 'string',
            'SourceArn': 'string',
            'Transport': {
                'MaxBitrate': 123,
                'MaxLatency': 123,
                'Protocol': 'zixi-push'|'rtp-fec'|'rtp',
                'SmoothingLatency': 123,
                'StreamId': 'string'
            },
            'WhitelistCidr': 'string'
        },
        'Status': 'STANDBY'|'ACTIVE'|'UPDATING'|'DELETING'|'STARTING'|'STOPPING'|'ERROR'
    },
    'Messages': {
        'Errors': [
            'string',
        ]
    }
}

Response Structure

  • (dict) -- AWS Elemental MediaConnect returned the flow details successfully.
    • Flow (dict) -- The settings for a flow, including its source, outputs, and entitlements.
      • AvailabilityZone (string) -- The Availability Zone that you want to create the flow in. These options are limited to the Availability Zones within the current AWS.
      • Description (string) -- A description of the flow. This value is not used or seen outside of the current AWS Elemental MediaConnect account.
      • EgressIp (string) -- The IP address from which video will be sent to output destinations.
      • Entitlements (list) -- The entitlements in this flow.
        • (dict) -- The settings for a flow entitlement.
          • Description (string) -- A description of the entitlement.
          • Encryption (dict) -- The type of encryption that will be used on the output that is associated with this entitlement.
            • Algorithm (string) -- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).
            • KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key).
            • RoleArn (string) -- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity).
            • SecretArn (string) -- The ARN that was assigned to the secret that you created in AWS Secrets Manager to store the encryption key.
          • EntitlementArn (string) -- The ARN of the entitlement.
          • Name (string) -- The name of the entitlement.
          • Subscribers (list) -- The AWS account IDs that you want to share your content with. The receiving accounts (subscribers) will be allowed to create their own flow using your content as the source.
            • (string) --
      • FlowArn (string) -- The Amazon Resource Name (ARN), a unique identifier for any AWS resource, of the flow.
      • Name (string) -- The name of the flow.
      • Outputs (list) -- The outputs in this flow.
        • (dict) -- The settings for an output.
          • Description (string) -- A description of the output.
          • Destination (string) -- The address where you want to send the output.
          • Encryption (dict) -- The type of key used for the encryption. If no keyType is provided, the service will use the default setting (static-key).
            • Algorithm (string) -- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).
            • KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key).
            • RoleArn (string) -- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity).
            • SecretArn (string) -- The ARN that was assigned to the secret that you created in AWS Secrets Manager to store the encryption key.
          • EntitlementArn (string) -- The ARN of the entitlement on the originator''s flow. This value is relevant only on entitled flows.
          • MediaLiveInputArn (string) -- The input ARN of the AWS Elemental MediaLive channel. This parameter is relevant only for outputs that were added by creating a MediaLive input.
          • Name (string) -- The name of the output. This value must be unique within the current flow.
          • OutputArn (string) -- The ARN of the output.
          • Port (integer) -- The port to use when content is distributed to this output.
          • Transport (dict) -- Attributes related to the transport stream that are used in the output.
            • MaxBitrate (integer) -- The smoothing max bitrate for RTP and RTP-FEC streams.
            • MaxLatency (integer) -- The maximum latency in milliseconds for Zixi-based streams.
            • Protocol (string) -- The protocol that is used by the source or output.
            • SmoothingLatency (integer) -- The smoothing latency in milliseconds for RTP and RTP-FEC streams.
            • StreamId (string) -- The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams.
      • Source (dict) -- The settings for the source of the flow.
        • Decryption (dict) -- The type of encryption that is used on the content ingested from this source.
          • Algorithm (string) -- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).
          • KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key).
          • RoleArn (string) -- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity).
          • SecretArn (string) -- The ARN that was assigned to the secret that you created in AWS Secrets Manager to store the encryption key.
        • Description (string) -- A description for the source. This value is not used or seen outside of the current AWS Elemental MediaConnect account.
        • EntitlementArn (string) -- The ARN of the entitlement that allows you to subscribe to content that comes from another AWS account. The entitlement is set by the content originator and the ARN is generated as part of the originator's flow.
        • IngestIp (string) -- The IP address that the flow will be listening on for incoming content.
        • IngestPort (integer) -- The port that the flow will be listening on for incoming content.
        • Name (string) -- The name of the source.
        • SourceArn (string) -- The ARN of the source.
        • Transport (dict) -- Attributes related to the transport stream that are used in the source.
          • MaxBitrate (integer) -- The smoothing max bitrate for RTP and RTP-FEC streams.
          • MaxLatency (integer) -- The maximum latency in milliseconds for Zixi-based streams.
          • Protocol (string) -- The protocol that is used by the source or output.
          • SmoothingLatency (integer) -- The smoothing latency in milliseconds for RTP and RTP-FEC streams.
          • StreamId (string) -- The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams.
        • WhitelistCidr (string) -- The range of IP addresses that should be allowed to contribute content to your source. These IP addresses should in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.
      • Status (string) -- The current status of the flow.
    • Messages (dict) -- Messages that provide the state of the flow.
      • Errors (list) -- A list of errors that might have been generated from processes on this flow.
        • (string) --
generate_presigned_url(ClientMethod, Params=None, ExpiresIn=3600, HttpMethod=None)

Generate a presigned url given a client, its method, and arguments

Parameters
  • ClientMethod (string) -- The client method to presign for
  • Params (dict) -- The parameters normally passed to ClientMethod.
  • ExpiresIn (int) -- The number of seconds the presigned url is valid for. By default it expires in an hour (3600 seconds)
  • HttpMethod (string) -- The http method to use on the generated url. By default, the http method is whatever is used in the method's model.
Returns

The presigned url

get_paginator(operation_name)

Create a paginator for an operation.

Parameters
operation_name (string) -- The operation name. This is the same name as the method name on the client. For example, if the method name is create_foo, and you'd normally invoke the operation as client.create_foo(**kwargs), if the create_foo operation can be paginated, you can use the call client.get_paginator("create_foo").
Raises OperationNotPageableError
Raised if the operation is not pageable. You can use the client.can_paginate method to check if an operation is pageable.
Return type
L{botocore.paginate.Paginator}
Returns
A paginator object.
get_waiter(waiter_name)

Returns an object that can wait for some condition.

Parameters
waiter_name (str) -- The name of the waiter to get. See the waiters section of the service docs for a list of available waiters.
Returns
The specified waiter object.
Return type
botocore.waiter.Waiter
grant_flow_entitlements(**kwargs)

Grants entitlements to an existing flow.

See also: AWS API Documentation

Request Syntax

response = client.grant_flow_entitlements(
    Entitlements=[
        {
            'Description': 'string',
            'Encryption': {
                'Algorithm': 'aes128'|'aes192'|'aes256',
                'KeyType': 'static-key',
                'RoleArn': 'string',
                'SecretArn': 'string'
            },
            'Name': 'string',
            'Subscribers': [
                'string',
            ]
        },
    ],
    FlowArn='string'
)
Parameters
  • Entitlements (list) --

    [REQUIRED] The list of entitlements that you want to grant.

    • (dict) -- The entitlements that you want to grant on a flow.
      • Description (string) -- A description of the entitlement. This description appears only on the AWS Elemental MediaConnect console and will not be seen by the subscriber or end user.
      • Encryption (dict) -- The type of encryption that will be used on the output that is associated with this entitlement.
        • Algorithm (string) -- [REQUIRED] The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).
        • KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key).
        • RoleArn (string) -- [REQUIRED] The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity).
        • SecretArn (string) -- [REQUIRED] The ARN that was assigned to the secret that you created in AWS Secrets Manager to store the encryption key.
      • Name (string) -- The name of the entitlement. This value must be unique within the current flow.
      • Subscribers (list) -- [REQUIRED] The AWS account IDs that you want to share your content with. The receiving accounts (subscribers) will be allowed to create their own flows using your content as the source.
        • (string) --
  • FlowArn (string) -- [REQUIRED] The flow that you want to grant entitlements on.
Return type

dict

Returns

Response Syntax

{
    'Entitlements': [
        {
            'Description': 'string',
            'Encryption': {
                'Algorithm': 'aes128'|'aes192'|'aes256',
                'KeyType': 'static-key',
                'RoleArn': 'string',
                'SecretArn': 'string'
            },
            'EntitlementArn': 'string',
            'Name': 'string',
            'Subscribers': [
                'string',
            ]
        },
    ],
    'FlowArn': 'string'
}

Response Structure

  • (dict) -- AWS Elemental MediaConnect granted the entitlements successfully.
    • Entitlements (list) -- The entitlements that were just granted.
      • (dict) -- The settings for a flow entitlement.
        • Description (string) -- A description of the entitlement.
        • Encryption (dict) -- The type of encryption that will be used on the output that is associated with this entitlement.
          • Algorithm (string) -- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).
          • KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key).
          • RoleArn (string) -- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity).
          • SecretArn (string) -- The ARN that was assigned to the secret that you created in AWS Secrets Manager to store the encryption key.
        • EntitlementArn (string) -- The ARN of the entitlement.
        • Name (string) -- The name of the entitlement.
        • Subscribers (list) -- The AWS account IDs that you want to share your content with. The receiving accounts (subscribers) will be allowed to create their own flow using your content as the source.
          • (string) --
    • FlowArn (string) -- The ARN of the flow that these entitlements were granted to.

list_entitlements(**kwargs)

Displays a list of all entitlements that have been granted to this account. This request returns 20 results per page.

See also: AWS API Documentation

Request Syntax

response = client.list_entitlements(
    MaxResults=123,
    NextToken='string'
)
Parameters
  • MaxResults (integer) -- The maximum number of results to return per API request. For example, you submit a ListEntitlements request with MaxResults set at 5. Although 20 items match your request, the service returns no more than the first 5 items. (The service also returns a NextToken value that you can use to fetch the next batch of results.) The service might return fewer results than the MaxResults value. If MaxResults is not included in the request, the service defaults to pagination with a maximum of 20 results per page.
  • NextToken (string) -- The token that identifies which batch of results that you want to see. For example, you submit a ListEntitlements request with MaxResults set at 5. The service returns the first batch of results (up to 5) and a NextToken value. To see the next batch of results, you can submit the ListEntitlements request a second time and specify the NextToken value.
Return type

dict

Returns

Response Syntax

{
    'Entitlements': [
        {
            'EntitlementArn': 'string',
            'EntitlementName': 'string'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) -- AWS Elemental MediaConnect returned the list of entitlements successfully.
    • Entitlements (list) -- A list of entitlements that have been granted to you from other AWS accounts.
      • (dict) -- An entitlement that has been granted to you from other AWS accounts.
        • EntitlementArn (string) -- The ARN of the entitlement.
        • EntitlementName (string) -- The name of the entitlement.
    • NextToken (string) -- The token that identifies which batch of results that you want to see. For example, you submit a ListEntitlements request with MaxResults set at 5. The service returns the first batch of results (up to 5) and a NextToken value. To see the next batch of results, you can submit the ListEntitlements request a second time and specify the NextToken value.

list_flows(**kwargs)

Displays a list of flows that are associated with this account. This request returns a paginated result.

See also: AWS API Documentation

Request Syntax

response = client.list_flows(
    MaxResults=123,
    NextToken='string'
)
Parameters
  • MaxResults (integer) -- The maximum number of results to return per API request. For example, you submit a ListFlows request with MaxResults set at 5. Although 20 items match your request, the service returns no more than the first 5 items. (The service also returns a NextToken value that you can use to fetch the next batch of results.) The service might return fewer results than the MaxResults value. If MaxResults is not included in the request, the service defaults to pagination with a maximum of 10 results per page.
  • NextToken (string) -- The token that identifies which batch of results that you want to see. For example, you submit a ListFlows request with MaxResults set at 5. The service returns the first batch of results (up to 5) and a NextToken value. To see the next batch of results, you can submit the ListFlows request a second time and specify the NextToken value.
Return type

dict

Returns

Response Syntax

{
    'Flows': [
        {
            'AvailabilityZone': 'string',
            'Description': 'string',
            'FlowArn': 'string',
            'Name': 'string',
            'SourceType': 'OWNED'|'ENTITLED',
            'Status': 'STANDBY'|'ACTIVE'|'UPDATING'|'DELETING'|'STARTING'|'STOPPING'|'ERROR'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) -- AWS Elemental MediaConnect returned the list of flows successfully.
    • Flows (list) -- A list of flow summaries.
      • (dict) -- Provides a summary of a flow, including its ARN, Availability Zone, and source type.
        • AvailabilityZone (string) -- The Availability Zone that the flow was created in.
        • Description (string) -- A description of the flow.
        • FlowArn (string) -- The ARN of the flow.
        • Name (string) -- The name of the flow.
        • SourceType (string) -- The type of source. This value is either owned (originated somewhere other than an AWS Elemental MediaConnect flow owned by another AWS account) or entitled (originated at an AWS Elemental MediaConnect flow owned by another AWS account).
        • Status (string) -- The current status of the flow.
    • NextToken (string) -- The token that identifies which batch of results that you want to see. For example, you submit a ListFlows request with MaxResults set at 5. The service returns the first batch of results (up to 5) and a NextToken value. To see the next batch of results, you can submit the ListFlows request a second time and specify the NextToken value.

remove_flow_output(**kwargs)

Removes an output from an existing flow. This request can be made only on an output that does not have an entitlement associated with it. If the output has an entitlement, you must revoke the entitlement instead. When an entitlement is revoked from a flow, the service automatically removes the associated output.

See also: AWS API Documentation

Request Syntax

response = client.remove_flow_output(
    FlowArn='string',
    OutputArn='string'
)
Parameters
  • FlowArn (string) -- [REQUIRED] The flow that you want to remove an output from.
  • OutputArn (string) -- [REQUIRED] The ARN of the output that you want to remove.
Return type

dict

Returns

Response Syntax

{
    'FlowArn': 'string',
    'OutputArn': 'string'
}

Response Structure

  • (dict) -- output successfully removed from flow configuration.
    • FlowArn (string) -- The ARN of the flow that is associated with the output you removed.
    • OutputArn (string) -- The ARN of the output that was removed.

revoke_flow_entitlement(**kwargs)

Revokes an entitlement from a flow. Once an entitlement is revoked, the content becomes unavailable to the subscriber and the associated output is removed.

See also: AWS API Documentation

Request Syntax

response = client.revoke_flow_entitlement(
    EntitlementArn='string',
    FlowArn='string'
)
Parameters
  • EntitlementArn (string) -- [REQUIRED] The ARN of the entitlement that you want to revoke.
  • FlowArn (string) -- [REQUIRED] The flow that you want to revoke an entitlement from.
Return type

dict

Returns

Response Syntax

{
    'EntitlementArn': 'string',
    'FlowArn': 'string'
}

Response Structure

  • (dict) -- AWS Elemental MediaConnect revoked the entitlement successfully.
    • EntitlementArn (string) -- The ARN of the entitlement that was revoked.
    • FlowArn (string) -- The ARN of the flow that the entitlement was revoked from.

start_flow(**kwargs)

Starts a flow.

See also: AWS API Documentation

Request Syntax

response = client.start_flow(
    FlowArn='string'
)
Parameters
FlowArn (string) -- [REQUIRED] The ARN of the flow that you want to start.
Return type
dict
Returns
Response Syntax
{
    'FlowArn': 'string',
    'Status': 'STANDBY'|'ACTIVE'|'UPDATING'|'DELETING'|'STARTING'|'STOPPING'|'ERROR'
}

Response Structure

  • (dict) -- AWS Elemental MediaConnect is starting the flow.
    • FlowArn (string) -- The ARN of the flow that you started.
    • Status (string) -- The status of the flow when the StartFlow process begins.
stop_flow(**kwargs)

Stops a flow.

See also: AWS API Documentation

Request Syntax

response = client.stop_flow(
    FlowArn='string'
)
Parameters
FlowArn (string) -- [REQUIRED] The ARN of the flow that you want to stop.
Return type
dict
Returns
Response Syntax
{
    'FlowArn': 'string',
    'Status': 'STANDBY'|'ACTIVE'|'UPDATING'|'DELETING'|'STARTING'|'STOPPING'|'ERROR'
}

Response Structure

  • (dict) -- AWS Elemental MediaConnect is stopping the flow.
    • FlowArn (string) -- The ARN of the flow that you stopped.
    • Status (string) -- The status of the flow when the StopFlow process begins.
update_flow_entitlement(**kwargs)

You can change an entitlement's description, subscribers, and encryption. If you change the subscribers, the service will remove the outputs that are are used by the subscribers that are removed.

See also: AWS API Documentation

Request Syntax

response = client.update_flow_entitlement(
    Description='string',
    Encryption={
        'Algorithm': 'aes128'|'aes192'|'aes256',
        'KeyType': 'static-key',
        'RoleArn': 'string',
        'SecretArn': 'string'
    },
    EntitlementArn='string',
    FlowArn='string',
    Subscribers=[
        'string',
    ]
)
Parameters
  • Description (string) -- A description of the entitlement. This description appears only on the AWS Elemental MediaConnect console and will not be seen by the subscriber or end user.
  • Encryption (dict) --

    The type of encryption that will be used on the output associated with this entitlement.

    • Algorithm (string) -- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).
    • KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key).
    • RoleArn (string) -- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity).
    • SecretArn (string) -- The ARN that was assigned to the secret that you created in AWS Secrets Manager to store the encryption key.
  • EntitlementArn (string) -- [REQUIRED] The ARN of the entitlement that you want to update.
  • FlowArn (string) -- [REQUIRED] The flow that is associated with the entitlement that you want to update.
  • Subscribers (list) --

    The AWS account IDs that you want to share your content with. The receiving accounts (subscribers) will be allowed to create their own flow using your content as the source.

    • (string) --
Return type

dict

Returns

Response Syntax

{
    'Entitlement': {
        'Description': 'string',
        'Encryption': {
            'Algorithm': 'aes128'|'aes192'|'aes256',
            'KeyType': 'static-key',
            'RoleArn': 'string',
            'SecretArn': 'string'
        },
        'EntitlementArn': 'string',
        'Name': 'string',
        'Subscribers': [
            'string',
        ]
    },
    'FlowArn': 'string'
}

Response Structure

  • (dict) -- AWS Elemental MediaConnect updated the entitlement successfully.
    • Entitlement (dict) -- The settings for a flow entitlement.
      • Description (string) -- A description of the entitlement.
      • Encryption (dict) -- The type of encryption that will be used on the output that is associated with this entitlement.
        • Algorithm (string) -- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).
        • KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key).
        • RoleArn (string) -- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity).
        • SecretArn (string) -- The ARN that was assigned to the secret that you created in AWS Secrets Manager to store the encryption key.
      • EntitlementArn (string) -- The ARN of the entitlement.
      • Name (string) -- The name of the entitlement.
      • Subscribers (list) -- The AWS account IDs that you want to share your content with. The receiving accounts (subscribers) will be allowed to create their own flow using your content as the source.
        • (string) --
    • FlowArn (string) -- The ARN of the flow that this entitlement was granted on.

update_flow_output(**kwargs)

Updates an existing flow output.

See also: AWS API Documentation

Request Syntax

response = client.update_flow_output(
    Description='string',
    Destination='string',
    Encryption={
        'Algorithm': 'aes128'|'aes192'|'aes256',
        'KeyType': 'static-key',
        'RoleArn': 'string',
        'SecretArn': 'string'
    },
    FlowArn='string',
    MaxLatency=123,
    OutputArn='string',
    Port=123,
    Protocol='zixi-push'|'rtp-fec'|'rtp',
    SmoothingLatency=123,
    StreamId='string'
)
Parameters
  • Description (string) -- A description of the output. This description appears only on the AWS Elemental MediaConnect console and will not be seen by the end user.
  • Destination (string) -- The IP address where you want to send the output.
  • Encryption (dict) --

    The type of key used for the encryption. If no keyType is provided, the service will use the default setting (static-key).

    • Algorithm (string) -- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).
    • KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key).
    • RoleArn (string) -- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity).
    • SecretArn (string) -- The ARN that was assigned to the secret that you created in AWS Secrets Manager to store the encryption key.
  • FlowArn (string) -- [REQUIRED] The flow that is associated with the output that you want to update.
  • MaxLatency (integer) -- The maximum latency in milliseconds for Zixi-based streams.
  • OutputArn (string) -- [REQUIRED] The ARN of the output that you want to update.
  • Port (integer) -- The port to use when content is distributed to this output.
  • Protocol (string) -- The protocol to use for the output.
  • SmoothingLatency (integer) -- The smoothing latency in milliseconds for RTP and RTP-FEC streams.
  • StreamId (string) -- The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams.
Return type

dict

Returns

Response Syntax

{
    'FlowArn': 'string',
    'Output': {
        'Description': 'string',
        'Destination': 'string',
        'Encryption': {
            'Algorithm': 'aes128'|'aes192'|'aes256',
            'KeyType': 'static-key',
            'RoleArn': 'string',
            'SecretArn': 'string'
        },
        'EntitlementArn': 'string',
        'MediaLiveInputArn': 'string',
        'Name': 'string',
        'OutputArn': 'string',
        'Port': 123,
        'Transport': {
            'MaxBitrate': 123,
            'MaxLatency': 123,
            'Protocol': 'zixi-push'|'rtp-fec'|'rtp',
            'SmoothingLatency': 123,
            'StreamId': 'string'
        }
    }
}

Response Structure

  • (dict) -- AWS Elemental MediaConnect updated the output successfully.
    • FlowArn (string) -- The ARN of the flow that is associated with the updated output.
    • Output (dict) -- The settings for an output.
      • Description (string) -- A description of the output.
      • Destination (string) -- The address where you want to send the output.
      • Encryption (dict) -- The type of key used for the encryption. If no keyType is provided, the service will use the default setting (static-key).
        • Algorithm (string) -- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).
        • KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key).
        • RoleArn (string) -- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity).
        • SecretArn (string) -- The ARN that was assigned to the secret that you created in AWS Secrets Manager to store the encryption key.
      • EntitlementArn (string) -- The ARN of the entitlement on the originator''s flow. This value is relevant only on entitled flows.
      • MediaLiveInputArn (string) -- The input ARN of the AWS Elemental MediaLive channel. This parameter is relevant only for outputs that were added by creating a MediaLive input.
      • Name (string) -- The name of the output. This value must be unique within the current flow.
      • OutputArn (string) -- The ARN of the output.
      • Port (integer) -- The port to use when content is distributed to this output.
      • Transport (dict) -- Attributes related to the transport stream that are used in the output.
        • MaxBitrate (integer) -- The smoothing max bitrate for RTP and RTP-FEC streams.
        • MaxLatency (integer) -- The maximum latency in milliseconds for Zixi-based streams.
        • Protocol (string) -- The protocol that is used by the source or output.
        • SmoothingLatency (integer) -- The smoothing latency in milliseconds for RTP and RTP-FEC streams.
        • StreamId (string) -- The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams.

update_flow_source(**kwargs)

Updates the source of a flow.

See also: AWS API Documentation

Request Syntax

response = client.update_flow_source(
    Decryption={
        'Algorithm': 'aes128'|'aes192'|'aes256',
        'KeyType': 'static-key',
        'RoleArn': 'string',
        'SecretArn': 'string'
    },
    Description='string',
    EntitlementArn='string',
    FlowArn='string',
    IngestPort=123,
    MaxBitrate=123,
    MaxLatency=123,
    Protocol='zixi-push'|'rtp-fec'|'rtp',
    SourceArn='string',
    StreamId='string',
    WhitelistCidr='string'
)
Parameters
  • Decryption (dict) --

    The type of encryption used on the content ingested from this source.

    • Algorithm (string) -- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).
    • KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key).
    • RoleArn (string) -- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity).
    • SecretArn (string) -- The ARN that was assigned to the secret that you created in AWS Secrets Manager to store the encryption key.
  • Description (string) -- A description for the source. This value is not used or seen outside of the current AWS Elemental MediaConnect account.
  • EntitlementArn (string) -- The ARN of the entitlement that allows you to subscribe to this flow. The entitlement is set by the flow originator, and the ARN is generated as part of the originator's flow.
  • FlowArn (string) -- [REQUIRED] The flow that is associated with the source that you want to update.
  • IngestPort (integer) -- The port that the flow will be listening on for incoming content.
  • MaxBitrate (integer) -- The smoothing max bitrate for RTP and RTP-FEC streams.
  • MaxLatency (integer) -- The maximum latency in milliseconds for Zixi-based streams.
  • Protocol (string) -- The protocol that is used by the source.
  • SourceArn (string) -- [REQUIRED] The ARN of the source that you want to update.
  • StreamId (string) -- The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams.
  • WhitelistCidr (string) -- The range of IP addresses that should be allowed to contribute content to your source. These IP addresses should in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.
Return type

dict

Returns

Response Syntax

{
    'FlowArn': 'string',
    'Source': {
        'Decryption': {
            'Algorithm': 'aes128'|'aes192'|'aes256',
            'KeyType': 'static-key',
            'RoleArn': 'string',
            'SecretArn': 'string'
        },
        'Description': 'string',
        'EntitlementArn': 'string',
        'IngestIp': 'string',
        'IngestPort': 123,
        'Name': 'string',
        'SourceArn': 'string',
        'Transport': {
            'MaxBitrate': 123,
            'MaxLatency': 123,
            'Protocol': 'zixi-push'|'rtp-fec'|'rtp',
            'SmoothingLatency': 123,
            'StreamId': 'string'
        },
        'WhitelistCidr': 'string'
    }
}

Response Structure

  • (dict) -- AWS Elemental MediaConnect updated the flow successfully.
    • FlowArn (string) -- The ARN of the flow that you want to update.
    • Source (dict) -- The settings for the source of the flow.
      • Decryption (dict) -- The type of encryption that is used on the content ingested from this source.
        • Algorithm (string) -- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).
        • KeyType (string) -- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key).
        • RoleArn (string) -- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity).
        • SecretArn (string) -- The ARN that was assigned to the secret that you created in AWS Secrets Manager to store the encryption key.
      • Description (string) -- A description for the source. This value is not used or seen outside of the current AWS Elemental MediaConnect account.
      • EntitlementArn (string) -- The ARN of the entitlement that allows you to subscribe to content that comes from another AWS account. The entitlement is set by the content originator and the ARN is generated as part of the originator's flow.
      • IngestIp (string) -- The IP address that the flow will be listening on for incoming content.
      • IngestPort (integer) -- The port that the flow will be listening on for incoming content.
      • Name (string) -- The name of the source.
      • SourceArn (string) -- The ARN of the source.
      • Transport (dict) -- Attributes related to the transport stream that are used in the source.
        • MaxBitrate (integer) -- The smoothing max bitrate for RTP and RTP-FEC streams.
        • MaxLatency (integer) -- The maximum latency in milliseconds for Zixi-based streams.
        • Protocol (string) -- The protocol that is used by the source or output.
        • SmoothingLatency (integer) -- The smoothing latency in milliseconds for RTP and RTP-FEC streams.
        • StreamId (string) -- The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams.
      • WhitelistCidr (string) -- The range of IP addresses that should be allowed to contribute content to your source. These IP addresses should in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.

Paginators

The available paginators are:

class MediaConnect.Paginator.ListFlows
paginator = client.get_paginator('list_flows')
paginate(**kwargs)

Creates an iterator that will paginate through responses from MediaConnect.Client.list_flows().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters
PaginationConfig (dict) --

A dictionary that provides parameters to control pagination.

  • MaxItems (integer) --

    The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

  • PageSize (integer) --

    The size of each page.

  • StartingToken (string) --

    A token to specify where to start paginating. This is the NextToken from a previous response.

Return type
dict
Returns
Response Syntax
{
    'Flows': [
        {
            'AvailabilityZone': 'string',
            'Description': 'string',
            'FlowArn': 'string',
            'Name': 'string',
            'SourceType': 'OWNED'|'ENTITLED',
            'Status': 'STANDBY'|'ACTIVE'|'UPDATING'|'DELETING'|'STARTING'|'STOPPING'|'ERROR'
        },
    ],

}

Response Structure

  • (dict) -- AWS Elemental MediaConnect returned the list of flows successfully.
    • Flows (list) -- A list of flow summaries.
      • (dict) -- Provides a summary of a flow, including its ARN, Availability Zone, and source type.
        • AvailabilityZone (string) -- The Availability Zone that the flow was created in.
        • Description (string) -- A description of the flow.
        • FlowArn (string) -- The ARN of the flow.
        • Name (string) -- The name of the flow.
        • SourceType (string) -- The type of source. This value is either owned (originated somewhere other than an AWS Elemental MediaConnect flow owned by another AWS account) or entitled (originated at an AWS Elemental MediaConnect flow owned by another AWS account).
        • Status (string) -- The current status of the flow.