NetworkManager / Client / associate_context_store
associate_context_store¶
- NetworkManager.Client.associate_context_store(**kwargs)¶
Associates a transit gateway with a context store. The transit gateway must be registered with the global network of the context store, and can’t be associated with more than one context store. The context store must be in the
AVAILABLEstate.The association is in the
ASSOCIATINGstate when it’s created, and changes toASSOCIATEDwhen it’s complete.See also: AWS API Documentation
Request Syntax
response = client.associate_context_store( ContextStoreId='string', TransitGatewayArn='string' )
- Parameters:
ContextStoreId (string) –
[REQUIRED]
The ID of the context store.
TransitGatewayArn (string) – The Amazon Resource Name (ARN) of the transit gateway to associate with the context store.
- Return type:
dict
- Returns:
Response Syntax
{ 'ContextStoreAssociation': { 'ContextStoreId': 'string', 'TransitGatewayArn': 'string', 'CreatedAt': datetime(2015, 1, 1), 'State': 'ASSOCIATING'|'ASSOCIATED'|'DISASSOCIATING'|'FAILED' } }
Response Structure
(dict) –
ContextStoreAssociation (dict) –
Information about the context store association.
ContextStoreId (string) –
The ID of the context store.
TransitGatewayArn (string) –
The Amazon Resource Name (ARN) of the transit gateway.
CreatedAt (datetime) –
The date and time that the association was created.
State (string) –
The state of the association. The possible values are the following:
ASSOCIATING: The transit gateway is being associated with the context store.ASSOCIATED: The transit gateway is associated with the context store.DISASSOCIATING: The transit gateway is being disassociated from the context store.FAILED: The association failed. To remove it, disassociate the transit gateway.
Exceptions
NetworkManager.Client.exceptions.ValidationExceptionNetworkManager.Client.exceptions.AccessDeniedExceptionNetworkManager.Client.exceptions.ResourceNotFoundExceptionNetworkManager.Client.exceptions.ConflictExceptionNetworkManager.Client.exceptions.ThrottlingExceptionNetworkManager.Client.exceptions.InternalServerException