create_resource_gateway
async
¶
create_resource_gateway(
name: ResourceGatewayName,
*,
config_overrides: Optional[AsyncVPCLatticeClientConfig] = None,
client_token: Optional[ClientToken] = None,
vpc_identifier: Optional[VpcId] = None,
subnet_ids: Optional[SubnetList] = None,
security_group_ids: Optional[SecurityGroupList] = None,
ip_address_type: Optional[ResourceGatewayIpAddressType] = None,
ipv4_addresses_per_eni: Optional[Ipv4AddressesPerEni] = None,
resource_config_dns_resolution: Optional[ResourceConfigDnsResolution] = None,
tags: Optional[TagMap] = None,
) -> CreateResourceGatewayResponse
A resource gateway is a point of ingress into the VPC where a resource resides. It spans multiple Availability Zones. For your resource to be accessible from all Availability Zones, you should create your resource gateways to span as many Availability Zones as possible. A VPC can have multiple resource gateways.
Parameters:
-
client_token(Optional[ClientToken], default:None) –A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you retry a request that completed successfully using the same client token and parameters, the retry succeeds without performing any actions. If the parameters aren't identical, the retry fails.
-
name(ResourceGatewayName) –The name of the resource gateway.
-
vpc_identifier(Optional[VpcId], default:None) –The ID of the VPC for the resource gateway.
-
subnet_ids(Optional[SubnetList], default:None) –The IDs of the VPC subnets in which to create the resource gateway.
-
security_group_ids(Optional[SecurityGroupList], default:None) –The IDs of the security groups to apply to the resource gateway. The security groups must be in the same VPC.
-
ip_address_type(Optional[ResourceGatewayIpAddressType], default:None) –A resource gateway can have IPv4, IPv6 or dualstack addresses. The IP address type of a resource gateway must be compatible with the subnets of the resource gateway and the IP address type of the resource, as described here:
-
IPv4Assign IPv4 addresses to your resource gateway network interfaces. This option is supported only if all selected subnets have IPv4 address ranges, and the resource also has an IPv4 address.
-
IPv6Assign IPv6 addresses to your resource gateway network interfaces. This option is supported only if all selected subnets are IPv6 only subnets, and the resource also has an IPv6 address.
-
DualstackAssign both IPv4 and IPv6 addresses to your resource gateway network interfaces. This option is supported only if all selected subnets have both IPv4 and IPv6 address ranges, and the resource either has an IPv4 or IPv6 address.
The IP address type of the resource gateway is independent of the IP address type of the client or the VPC endpoint through which the resource is accessed.
-
-
ipv4_addresses_per_eni(Optional[Ipv4AddressesPerEni], default:None) –The number of IPv4 addresses in each ENI for the resource gateway.
-
resource_config_dns_resolution(Optional[ResourceConfigDnsResolution], default:None) –Indicates how DNS is resolved for resource configurations associated with this resource gateway. This value is set when you create the resource gateway and can't be changed afterward. The default is
PUBLIC.-
IN_VPC- DNS resolution occurs privately within the resource gateway's VPC. DNS queries for resources behind this resource gateway resolve using the DNS resolvers defined in the VPC's DHCP option sets. Use this when your resource domain names are hosted in private Route 53 hosted zones or on-premises DNS servers reachable from the VPC. A CIDR resource configuration requires a resource gateway that usesIN_VPC, and anIN_VPCresource gateway can't be used for ARN resource configurations, so a single resource gateway can't serve both ARN and CIDR resource configurations. -
PUBLIC- DNS resolution occurs against public DNS resolvers. DNS queries for resources behind this resource gateway resolve using standard public DNS. Use this when your resource domain names are publicly resolvable.
-
-
tags(Optional[TagMap], default:None) –The tags for the resource gateway.
Raises:
-
AccessDeniedException–The user does not have sufficient access to perform this action.
-
ConflictException–The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.
-
InternalServerException–An unexpected error occurred while processing the request.
-
ResourceNotFoundException–The request references a resource that does not exist.
-
ServiceQuotaExceededException–The request would cause a service quota to be exceeded.
-
ThrottlingException–The limit on the number of requests per second was exceeded.
-
ValidationException–The input does not satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_vpc_lattice/_services/async_vpc_lattice.py
2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 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 | |