create_sse_connect_transit_gateway_attachment
async
¶
create_sse_connect_transit_gateway_attachment(
sse_connect_id: SseConnectId,
transit_gateway_arn: TransitGatewayArn,
*,
config_overrides: Optional[AsyncNetworkManagerClientConfig] = None,
dry_run: Optional[Boolean] = None,
tags: Optional[TagList] = None,
client_token: Optional[ClientToken] = None,
) -> CreateSseConnectTransitGatewayAttachmentResponse
Creates an attachment between an SSE connect and a transit gateway. The attachment is in the Region of the transit gateway, which doesn't need to be one of the Regions of the SSE connect. The SSE connect must be in the AVAILABLE state.
If another account owns the transit gateway, the attachment is in the PENDING_ATTACHMENT_ACCEPTANCE state until the transit gateway owner accepts it. You can't change the transit gateway of an attachment.
Parameters:
-
sse_connect_id(SseConnectId) –The ID of the SSE connect.
-
transit_gateway_arn(TransitGatewayArn) –The ARN of the transit gateway to attach.
-
dry_run(Optional[Boolean], default:None) –Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isAccessDeniedException. -
tags(Optional[TagList], default:None) –The tags to apply to the attachment.
-
client_token(Optional[ClientToken], default:None) –A unique, case-sensitive identifier that you provide to ensure that the operation completes no more than one time. If you retry a request with the same client token, the operation returns the result of the original request instead of creating another resource.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–There was a conflict processing the request. Updating or deleting the resource can cause an inconsistent state.
-
DryRunOperation–You have the required permissions. You specified the
DryRunparameter, so the request didn't run. -
InternalServerException–The request has failed due to an internal error.
-
ResourceNotFoundException–The specified resource could not be found.
-
ServiceQuotaExceededException–A service limit was exceeded.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To attach a transit gateway to an SSE connect The following example creates an attachment between an SSE connect and a transit gateway in aa-example-1.
>>> await client.create_sse_connect_transit_gateway_attachment(sse_connect_id='sse-connect-1234567890abcdef0', transit_gateway_arn='arn:aws:ec2:aa-example-1:111122223333:transit-gateway/tgw-1234567890abcdef0')
Source code in docs_src/capo_networkmanager/_services/async_network_manager.py
2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 | |