createResponderGateway method
- required int port,
- required Protocol protocol,
- required List<
String> securityGroupIds, - required List<
String> subnetIds, - required String vpcId,
- String? clientToken,
- String? description,
- String? domainName,
- GatewayType? gatewayType,
- ListenerConfig? listenerConfig,
- ManagedEndpointConfiguration? managedEndpointConfiguration,
- Map<
String, String> ? tags, - TrustStoreConfiguration? trustStoreConfiguration,
Creates a responder gateway.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ServiceQuotaExceededException.
May throw ThrottlingException.
May throw ValidationException.
Parameter port :
The networking port to use.
Parameter protocol :
The networking protocol to use.
Parameter securityGroupIds :
The unique identifiers of the security groups.
Parameter subnetIds :
The unique identifiers of the subnets.
Parameter vpcId :
The unique identifier of the Virtual Private Cloud (VPC).
Parameter clientToken :
The unique client token.
Parameter description :
An optional description for the responder gateway.
Parameter domainName :
The domain name for the responder gateway.
Parameter gatewayType :
The type of gateway. Valid values are EXTERNAL or
INTERNAL.
Parameter managedEndpointConfiguration :
The configuration for the managed endpoint.
Parameter tags :
A map of the key-value pairs of the tag or tags to assign to the resource.
Parameter trustStoreConfiguration :
The configuration of the trust store.
Implementation
Future<CreateResponderGatewayResponse> createResponderGateway({
required int port,
required Protocol protocol,
required List<String> securityGroupIds,
required List<String> subnetIds,
required String vpcId,
String? clientToken,
String? description,
String? domainName,
GatewayType? gatewayType,
ListenerConfig? listenerConfig,
ManagedEndpointConfiguration? managedEndpointConfiguration,
Map<String, String>? tags,
TrustStoreConfiguration? trustStoreConfiguration,
}) async {
final $payload = <String, dynamic>{
'port': port,
'protocol': protocol.value,
'securityGroupIds': securityGroupIds,
'subnetIds': subnetIds,
'vpcId': vpcId,
'clientToken': clientToken ?? _s.generateIdempotencyToken(),
if (description != null) 'description': description,
if (domainName != null) 'domainName': domainName,
if (gatewayType != null) 'gatewayType': gatewayType.value,
if (listenerConfig != null) 'listenerConfig': listenerConfig,
if (managedEndpointConfiguration != null)
'managedEndpointConfiguration': managedEndpointConfiguration,
if (tags != null) 'tags': tags,
if (trustStoreConfiguration != null)
'trustStoreConfiguration': trustStoreConfiguration,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/responder-gateway',
exceptionFnMap: _exceptionFns,
);
return CreateResponderGatewayResponse.fromJson(response);
}