create_requester_gateway
¶
create_requester_gateway(
vpc_id: VpcId,
subnet_ids: SubnetIdList,
security_group_ids: SecurityGroupIdList,
client_token: str,
*,
config_overrides: Optional[RTBFabricClientConfig] = None,
description: Optional[str] = None,
tags: Optional[TagsMap] = None,
) -> CreateRequesterGatewayResponse
Creates a requester gateway.
Parameters:
-
vpc_id(VpcId) –The unique identifier of the Virtual Private Cloud (VPC).
-
subnet_ids(SubnetIdList) –The unique identifiers of the subnets.
-
security_group_ids(SecurityGroupIdList) –The unique identifiers of the security groups.
-
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 requester gateway.
-
tags(Optional[TagsMap], default:None) –A map of the key-value pairs of the tag or tags to assign to the resource.
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 requester gateway Create requester gateway
>>> client.create_requester_gateway(description='My requester gateway', vpc_id='vpc-12345678', subnet_ids=['subnet-12345678', 'subnet-87654321'], security_group_ids=['sg-12345678'], client_token='12345678-1234-1234-1234-123456789012')
Source code in docs_src/capo_rtbfabric/_services/rtb_fabric.py
1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 | |