RTBFabric / Client / create_responder_gateway
create_responder_gateway¶
- RTBFabric.Client.create_responder_gateway(**kwargs)¶
Creates a responder gateway.
Warning
A domain name or managed endpoint is required.
See also: AWS API Documentation
Request Syntax
response = client.create_responder_gateway( vpcId='string', subnetIds=[ 'string', ], securityGroupIds=[ 'string', ], domainName='string', port=123, protocol='HTTP'|'HTTPS', listenerConfig={ 'protocols': [ 'HTTP'|'HTTPS', ] }, trustStoreConfiguration={ 'certificateAuthorityCertificates': [ 'string', ] }, managedEndpointConfiguration={ 'autoScalingGroups': { 'autoScalingGroupNames': [ 'string', ], 'roleArn': 'string', 'healthCheckConfig': { 'port': 123, 'path': 'string', 'protocol': 'HTTP'|'HTTPS', 'timeoutMs': 123, 'intervalSeconds': 123, 'statusCodeMatcher': 'string', 'healthyThresholdCount': 123, 'unhealthyThresholdCount': 123 } }, 'eksEndpoints': { 'endpointsResourceName': 'string', 'endpointsResourceNamespace': 'string', 'clusterApiServerEndpointUri': 'string', 'clusterApiServerCaCertificateChain': 'string', 'clusterName': 'string', 'roleArn': 'string' } }, clientToken='string', description='string', tags={ 'string': 'string' }, gatewayType='EXTERNAL'|'INTERNAL', clientRoutingPolicy='AVAILABILITY_ZONE_AFFINITY'|'ANY_AVAILABILITY_ZONE' )
- Parameters:
vpcId (string) –
[REQUIRED]
The unique identifier of the Virtual Private Cloud (VPC).
subnetIds (list) –
[REQUIRED]
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.
(string) –
securityGroupIds (list) –
[REQUIRED]
The unique identifiers of the security groups.
(string) –
domainName (string) – The domain name for the responder gateway.
port (integer) –
[REQUIRED]
The networking port to use.
protocol (string) –
[REQUIRED]
The networking protocol to use.
listenerConfig (dict) –
Listener configuration for the protocols (HTTP, HTTPS, or both) accepted by the gateway.
protocols (list) – [REQUIRED]
The protocol for connections from clients to the gateway
(string) –
trustStoreConfiguration (dict) –
The configuration of the trust store.
certificateAuthorityCertificates (list) – [REQUIRED]
The certificate authority certificate.
(string) –
managedEndpointConfiguration (dict) –
The configuration for the managed endpoint.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:
autoScalingGroups,eksEndpoints.autoScalingGroups (dict) –
Describes the configuration of an auto scaling group.
autoScalingGroupNames (list) – [REQUIRED]
The names of the auto scaling group.
(string) –
roleArn (string) – [REQUIRED]
The role ARN of the auto scaling group.
healthCheckConfig (dict) –
The health check configuration for the Auto Scaling group managed endpoint.
port (integer) – [REQUIRED]
The port to use for health check probes. Valid range is 80 to 65535.
path (string) – [REQUIRED]
The destination path for the health check request. Must start with
/.protocol (string) –
The protocol to use for health check probes.
timeoutMs (integer) –
The timeout for each health check probe, in milliseconds. Valid range is 100 to 5000.
intervalSeconds (integer) –
The interval between health check probes, in seconds. Valid range is 5 to 60.
statusCodeMatcher (string) –
The expected HTTP status code or status code pattern from healthy instances. Supports a single code (for example,
200), a range (for example,200-299), or a comma-separated list (for example,200,204).healthyThresholdCount (integer) –
The number of consecutive successful health checks required before an instance is considered healthy. Valid range is 2 to 10.
unhealthyThresholdCount (integer) –
The number of consecutive failed health checks required before an instance is considered unhealthy. Valid range is 2 to 10.
eksEndpoints (dict) –
Describes the configuration of an Amazon Elastic Kubernetes Service endpoint.
endpointsResourceName (string) – [REQUIRED]
The name of the endpoint resource.
endpointsResourceNamespace (string) – [REQUIRED]
The namespace of the endpoint resource.
clusterApiServerEndpointUri (string) – [REQUIRED]
The URI of the cluster API server endpoint.
clusterApiServerCaCertificateChain (string) – [REQUIRED]
The CA certificate chain of the cluster API server.
clusterName (string) – [REQUIRED]
The name of the cluster.
roleArn (string) – [REQUIRED]
The role ARN for the cluster.
clientToken (string) –
[REQUIRED]
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.This field is autopopulated if not provided.
description (string) – An optional description for the responder gateway.
tags (dict) –
A map of the key-value pairs of the tag or tags to assign to the resource.
(string) –
(string) –
gatewayType (string) – The type of gateway. Valid values are
EXTERNALorINTERNAL.clientRoutingPolicy (string) –
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.
- Return type:
dict
- Returns:
Response Syntax
{ 'gatewayId': 'string', 'status': 'PENDING_CREATION'|'ACTIVE'|'PENDING_DELETION'|'DELETED'|'ERROR'|'PENDING_UPDATE'|'ISOLATED'|'PENDING_ISOLATION'|'PENDING_RESTORATION', 'listenerConfig': { 'protocols': [ 'HTTP'|'HTTPS', ] }, 'externalInboundEndpoint': 'string', 'clientRoutingPolicy': 'AVAILABILITY_ZONE_AFFINITY'|'ANY_AVAILABILITY_ZONE' }
Response Structure
(dict) –
gatewayId (string) –
The unique identifier of the gateway.
status (string) –
The status of the request.
listenerConfig (dict) –
The listener configuration for the responder gateway.
protocols (list) –
The protocol for connections from clients to the gateway
(string) –
externalInboundEndpoint (string) –
The external inbound endpoint for the responder gateway.
clientRoutingPolicy (string) –
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. For more information, see Configuring Availability Zone affinity in the Amazon Web Services RTB Fabric User Guide.
Exceptions
RTBFabric.Client.exceptions.ServiceQuotaExceededExceptionRTBFabric.Client.exceptions.ResourceNotFoundExceptionRTBFabric.Client.exceptions.ThrottlingExceptionRTBFabric.Client.exceptions.AccessDeniedExceptionRTBFabric.Client.exceptions.InternalServerExceptionRTBFabric.Client.exceptions.ValidationException