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
1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 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 | |