MediaLive / Client / create_network

create_network#

MediaLive.Client.create_network(**kwargs)#

Create as many Networks as you need. You will associate one or more Clusters with each Network.Each Network provides MediaLive Anywhere with required information about the network in your organization that you are using for video encoding using MediaLive.

See also: AWS API Documentation

Request Syntax

response = client.create_network(
    IpPools=[
        {
            'Cidr': 'string'
        },
    ],
    Name='string',
    RequestId='string',
    Routes=[
        {
            'Cidr': 'string',
            'Gateway': 'string'
        },
    ],
    Tags={
        'string': 'string'
    }
)
Parameters:
  • IpPools (list) –

    An array of IpPoolCreateRequests that identify a collection of IP addresses in your network that you want to reserve for use in MediaLive Anywhere. MediaLiveAnywhere uses these IP addresses for Push inputs (in both Bridge and NATnetworks) and for output destinations (only in Bridge networks). EachIpPoolUpdateRequest specifies one CIDR block.

    • (dict) – Used in CreateNetworkRequest.

      • Cidr (string) – A CIDR block of IP addresses to reserve for MediaLive Anywhere.

  • Name (string) – Specify a name that is unique in the AWS account. We recommend that you assign a name that hints at the type of traffic on the network. Names are case-sensitive.

  • RequestId (string) – An ID that you assign to a create request. This ID ensures idempotency when creating resources.This field is autopopulated if not provided.

  • Routes (list) –

    An array of routes that MediaLive Anywhere needs to know about in order to route encoding traffic.

    • (dict) – Used in CreateNetworkRequest.

      • Cidr (string) – A CIDR block for one Route.

      • Gateway (string) – The IP address of the Gateway for this route, if applicable.

  • Tags (dict) –

    A collection of key-value pairs.

    • (string) – Placeholder documentation for __string

      • (string) – Placeholder documentation for __string

Return type:

dict

Returns:

Response Syntax

{
    'Arn': 'string',
    'AssociatedClusterIds': [
        'string',
    ],
    'Id': 'string',
    'IpPools': [
        {
            'Cidr': 'string'
        },
    ],
    'Name': 'string',
    'Routes': [
        {
            'Cidr': 'string',
            'Gateway': 'string'
        },
    ],
    'State': 'CREATING'|'CREATE_FAILED'|'ACTIVE'|'DELETING'|'IDLE'|'IN_USE'|'UPDATING'|'DELETE_FAILED'|'DELETED'
}

Response Structure

  • (dict) – Creation of the Network is in progress.

    • Arn (string) – The ARN of this Network. It is automatically assigned when the Network is created.

    • AssociatedClusterIds (list) – Placeholder documentation for __listOf__string

      • (string) – Placeholder documentation for __string

    • Id (string) – The ID of the Network. Unique in the AWS account. The ID is the resource-id portion of the ARN.

    • IpPools (list) – An array of IpPools in your organization’s network that identify a collection of IP addresses in this network that are reserved for use in MediaLive Anywhere. MediaLive Anywhere uses these IP addresses for Push inputs (in both Bridge and NAT networks) and for output destinations (only in Bridge networks). Each IpPool specifies one CIDR block.

      • (dict) – Used in DescribeNetworkResult, DescribeNetworkSummary, UpdateNetworkResult.

        • Cidr (string) – A CIDR block of IP addresses that are reserved for MediaLive Anywhere.

    • Name (string) – The name that you specified for the Network.

    • Routes (list) – An array of routes that MediaLive Anywhere needs to know about in order to route encoding traffic.

      • (dict) – Used in DescribeNetworkResult, DescribeNetworkSummary, UpdateNetworkResult.

        • Cidr (string) – A CIDR block for one Route.

        • Gateway (string) – The IP address of the Gateway for this route, if applicable.

    • State (string) – The current state of the Network. Only MediaLive Anywhere can change the state.

Exceptions

  • MediaLive.Client.exceptions.BadRequestException

  • MediaLive.Client.exceptions.InternalServerErrorException

  • MediaLive.Client.exceptions.ForbiddenException

  • MediaLive.Client.exceptions.BadGatewayException

  • MediaLive.Client.exceptions.GatewayTimeoutException

  • MediaLive.Client.exceptions.TooManyRequestsException

  • MediaLive.Client.exceptions.ConflictException