WorkSpacesWeb / Client / create_network_settings



Creates a network settings resource that can be associated with a web portal. Once associated with a web portal, network settings define how streaming instances will connect with your specified VPC.

See also: AWS API Documentation

Request Syntax

response = client.create_network_settings(
            'Key': 'string',
            'Value': 'string'
  • clientToken (string) –

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, subsequent retries with the same client token returns the result from the original successful request.

    If you do not specify a client token, one is automatically generated by the Amazon Web Services SDK.

    This field is autopopulated if not provided.

  • securityGroupIds (list) –


    One or more security groups used to control access from streaming instances to your VPC.

    • (string) –

  • subnetIds (list) –


    The subnets in which network interfaces are created to connect streaming instances to your VPC. At least two of these subnets must be in different availability zones.

    • (string) –

  • tags (list) –

    The tags to add to the network settings resource. A tag is a key-value pair.

    • (dict) –

      The tag.

      • Key (string) – [REQUIRED]

        The key of the tag.

      • Value (string) – [REQUIRED]

        The value of the tag

  • vpcId (string) –


    The VPC that streaming instances will connect to.

Return type:



Response Syntax

    'networkSettingsArn': 'string'

Response Structure

  • (dict) –

    • networkSettingsArn (string) –

      The ARN of the network settings.


  • WorkSpacesWeb.Client.exceptions.InternalServerException

  • WorkSpacesWeb.Client.exceptions.AccessDeniedException

  • WorkSpacesWeb.Client.exceptions.ThrottlingException

  • WorkSpacesWeb.Client.exceptions.ServiceQuotaExceededException

  • WorkSpacesWeb.Client.exceptions.ValidationException

  • WorkSpacesWeb.Client.exceptions.ConflictException