update_responder_gateway
async
¶
update_responder_gateway(
port: int,
protocol: Protocol,
client_token: str,
gateway_id: GatewayId,
*,
config_overrides: Optional[AsyncRTBFabricClientConfig] = None,
domain_name: Optional[DomainName] = None,
listener_config: Optional[ListenerConfig] = None,
trust_store_configuration: Optional[TrustStoreConfiguration] = None,
managed_endpoint_configuration: Optional[ManagedEndpointConfiguration] = None,
description: Optional[str] = None,
client_routing_policy: Optional[ClientRoutingPolicy] = None,
) -> UpdateResponderGatewayResponse
Updates the description, Auto Scaling group managed endpoint configuration, trust store configuration, and client routing policy of a responder gateway. This operation also updates the protocols list in the listener configuration.
You cannot change the domainName, port, and protocol values that you set when you create a responder gateway. To change any of them, delete the gateway and create a new one.
Parameters:
-
domain_name(Optional[DomainName], default:None) –Domain name for the responder gateway. This operation does not change the domain name of an existing gateway. To use a different domain name, delete the gateway and create a new one.
-
port(int) –Networking port to use. This operation does not change the port of an existing gateway. To use a different port, delete the gateway and create a new one.
-
protocol(Protocol) –Networking protocol to use. This operation does not change the protocol of an existing gateway. To use a different protocol, delete the gateway and create a new one.
-
listener_config(Optional[ListenerConfig], default:None) –The listener configuration for the responder gateway.
-
trust_store_configuration(Optional[TrustStoreConfiguration], default:None) –The configuration of the trust store.
-
managed_endpoint_configuration(Optional[ManagedEndpointConfiguration], default:None) –The configuration for the managed endpoint.
-
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. -
gateway_id(GatewayId) –The unique identifier of the gateway.
-
description(Optional[str], default:None) –An optional description for the responder gateway.
-
client_routing_policy(Optional[ClientRoutingPolicy], default:None) –The client routing policy of the gateway. This policy controls which Availability Zones RTB Fabric uses to reach the gateway for the requester gateways that send traffic to it. Valid values are the following:
-
AVAILABILITY_ZONE_AFFINITY: RTB Fabric routes each requester's traffic to gateway capacity in the requester's own Availability Zone when the gateway has capacity available there. Otherwise, RTB Fabric routes the traffic to gateway capacity in the other Availability Zones of the gateway. -
ANY_AVAILABILITY_ZONE: RTB Fabric routes each requester's traffic to gateway capacity in every Availability Zone that the subnets of the gateway span. The Availability Zone that the requester is in does not change this.
If you don't specify a value, the gateway keeps its current client routing policy. Changing the policy sets the gateway status to
PENDING_UPDATEuntil the change is complete. RTB Fabric does not support partial Availability Zone affinity, soPARTIAL_AVAILABILITY_ZONE_AFFINITYis not a valid value. For more information, see Configuring Availability Zone affinity in the Amazon Web Services RTB Fabric User Guide. -
Raises:
-
AccessDeniedException–The request could not be completed because you do not have sufficient access to perform this action.
-
ConflictException–The request could not be completed because of a conflict in the current state of the resource.
-
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.
-
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:
Update responder gateway Update responder gateway
>>> await client.update_responder_gateway(gateway_id='rtb-gw-12345678', description='Updated responder gateway description', port=8080, protocol='HTTP', client_token='12345678-1234-1234-1234-123456789012')
Source code in docs_src/capo_rtbfabric/_services/async_rtb_fabric.py
3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 | |