create_gateway
async
¶
create_gateway(
*,
config_overrides: Optional[AsyncMediaConnectClientConfig] = None,
egress_cidr_blocks: Optional[__listOfString] = None,
name: Optional[str] = None,
networks: Optional[__listOfGatewayNetwork] = None,
) -> CreateGatewayResponse
Creates a new gateway. The request must include at least one network (up to four).
Parameters:
-
egress_cidr_blocks(Optional[__listOfString], default:None) –The range of IP addresses that are allowed to contribute content or initiate output requests for flows communicating with this gateway. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.
-
name(Optional[str], default:None) –The name of the gateway. This name can not be modified after the gateway is created.
-
networks(Optional[__listOfGatewayNetwork], default:None) –The list of networks that you want to add to the gateway.
Raises:
-
BadRequestException–This exception is thrown if the request contains a semantic error. The precise meaning depends on the API, and is documented in the error message.
-
ConflictException–The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.
-
CreateGateway420Exception–Exception raised by Elemental MediaConnect when creating the gateway. See the error message for the operation for more information on the cause of this exception.
-
ForbiddenException–You do not have sufficient access to perform this action.
-
InternalServerErrorException–The server encountered an internal error and is unable to complete the request.
-
ServiceUnavailableException–The service is currently unavailable or busy.
-
TooManyRequestsException–The request was denied due to request throttling.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_mediaconnect/_services/async_media_connect.py
3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 | |