create_requester_gateway
async
¶
create_requester_gateway(
vpc_id: VpcId,
subnet_ids: SubnetIdList,
security_group_ids: SecurityGroupIdList,
client_token: str,
*,
config_overrides: Optional[AsyncRTBFabricClientConfig] = None,
description: Optional[str] = None,
tags: Optional[TagsMap] = None,
) -> CreateRequesterGatewayResponse
Creates a requester gateway.
Parameters:
-
vpc_id(VpcId) –The unique identifier of the Virtual Private Cloud (VPC).
-
subnet_ids(SubnetIdList) –The unique identifiers of the subnets.
-
security_group_ids(SecurityGroupIdList) –The unique identifiers of the security groups.
-
client_token(str) –Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value.
If you don't provide this value, then Amazon Web Services generates a random one for you.
If you retry the operation with the same
clientToken, but with different parameters, the retry fails with anIdempotentParameterMismatcherror. -
description(Optional[str], default:None) –An optional description for the requester gateway.
-
tags(Optional[TagsMap], default:None) –A map of the key-value pairs of the tag or tags to assign to the resource.
Raises:
-
AccessDeniedException–The request could not be completed because you do not have sufficient access to perform this action.
-
InternalServerException–The request could not be completed because of an internal server error. Try your call again.
-
ResourceNotFoundException–The request could not be completed because the resource does not exist.
-
ServiceQuotaExceededException–The request could not be completed because you exceeded a service quota.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The request could not be completed because it fails satisfy the constraints specified by the service.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Create a requester gateway Create requester gateway
>>> await client.create_requester_gateway(description='My requester gateway', vpc_id='vpc-12345678', subnet_ids=['subnet-12345678', 'subnet-87654321'], security_group_ids=['sg-12345678'], client_token='12345678-1234-1234-1234-123456789012')
Source code in docs_src/capo_rtbfabric/_services/async_rtb_fabric.py
2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 | |