NetworkManager / Client / create_context_store

create_context_store

NetworkManager.Client.create_context_store(**kwargs)

Creates a context store in a global network. A context store maintains context entries, such as security groups, subnets, and attachments, for the resources connected to the transit gateways that you associate with it.

The context store is in the PENDING state when it’s created, and changes to AVAILABLE when it’s ready to use.

See also: AWS API Documentation

Request Syntax

response = client.create_context_store(
    GlobalNetworkId='string',
    Description='string',
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ],
    ClientToken='string'
)
Parameters:
  • GlobalNetworkId (string) –

    [REQUIRED]

    The ID of the global network to create the context store in.

  • Description (string) –

    A description of the context store.

    Constraints: Maximum length of 256 characters. Only printable ASCII characters are allowed.

  • Tags (list) –

    The tags to apply to the context store during creation.

    • (dict) –

      Describes a tag.

      • Key (string) –

        The tag key.

        Constraints: Maximum length of 128 characters.

      • Value (string) –

        The tag value.

        Constraints: Maximum length of 256 characters.

  • ClientToken (string) –

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

    This field is autopopulated if not provided.

Return type:

dict

Returns:

Response Syntax

{
    'ContextStore': {
        'GlobalNetworkId': 'string',
        'ContextStoreId': 'string',
        'ContextStoreArn': 'string',
        'Description': 'string',
        'CreatedAt': datetime(2015, 1, 1),
        'State': 'PENDING'|'AVAILABLE'|'UPDATING'|'DELETING'|'DELETED',
        'Tags': [
            {
                'Key': 'string',
                'Value': 'string'
            },
        ]
    }
}

Response Structure

  • (dict) –

    • ContextStore (dict) –

      Information about the context store.

      • GlobalNetworkId (string) –

        The ID of the global network that the context store belongs to.

      • ContextStoreId (string) –

        The ID of the context store.

      • ContextStoreArn (string) –

        The Amazon Resource Name (ARN) of the context store.

      • Description (string) –

        The description of the context store.

      • CreatedAt (datetime) –

        The date and time that the context store was created.

      • State (string) –

        The state of the context store. The possible values are the following:

        • PENDING: The context store is being created.

        • AVAILABLE: The context store is ready to use.

        • UPDATING: The context store is being updated.

        • DELETING: The context store is being deleted.

        • DELETED: The context store is deleted.

      • Tags (list) –

        The tags associated with the context store.

        • (dict) –

          Describes a tag.

          • Key (string) –

            The tag key.

            Constraints: Maximum length of 128 characters.

          • Value (string) –

            The tag value.

            Constraints: Maximum length of 256 characters.

Exceptions

  • NetworkManager.Client.exceptions.ValidationException

  • NetworkManager.Client.exceptions.AccessDeniedException

  • NetworkManager.Client.exceptions.ResourceNotFoundException

  • NetworkManager.Client.exceptions.ConflictException

  • NetworkManager.Client.exceptions.ServiceQuotaExceededException

  • NetworkManager.Client.exceptions.ThrottlingException

  • NetworkManager.Client.exceptions.InternalServerException