create_responder_gateway
¶
create_responder_gateway(
vpc_id: VpcId,
subnet_ids: SubnetIdList,
security_group_ids: SecurityGroupIdList,
port: int,
protocol: Protocol,
client_token: str,
*,
config_overrides: Optional[RTBFabricClientConfig] = 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,
tags: Optional[TagsMap] = None,
gateway_type: Optional[GatewayType] = None,
client_routing_policy: Optional[ClientRoutingPolicy] = None,
) -> CreateResponderGatewayResponse
Creates a responder gateway.
A domain name or managed endpoint is required.
Parameters:
-
vpc_id(VpcId) –The unique identifier of the Virtual Private Cloud (VPC).
-
subnet_ids(SubnetIdList) –Unique identifiers of the subnets. A service quota for your account sets the number of Availability Zones that your subnets can span. By default, this quota is one Availability Zone. To span more Availability Zones, request a quota increase.
-
security_group_ids(SecurityGroupIdList) –The unique identifiers of the security groups.
-
domain_name(Optional[DomainName], default:None) –The domain name for the responder gateway.
-
port(int) –The networking port to use.
-
protocol(Protocol) –The networking protocol to use.
-
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. -
description(Optional[str], default:None) –An optional description for the responder gateway.
-
tags(Optional[TagsMap], default:None) –A map of the key-value pairs of the tag or tags to assign to the resource.
-
gateway_type(Optional[GatewayType], default:None) –The type of gateway. Valid values are
EXTERNALorINTERNAL. -
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, RTB Fabric uses
AVAILABILITY_ZONE_AFFINITY. To get the behavior ofANY_AVAILABILITY_ZONE, create the gateway with subnets in more than one Availability Zone. 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.
-
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 responder gateway Create responder gateway
>>> client.create_responder_gateway(description='My responder gateway', vpc_id='vpc-12345678', subnet_ids=['subnet-12345678', 'subnet-87654321'], security_group_ids=['sg-12345678'], port=443, protocol='HTTPS', client_token='12345678-1234-1234-1234-123456789012')
Source code in docs_src/capo_rtbfabric/_services/rtb_fabric.py
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 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 | |