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
2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 | |