create_gateway
¶
create_gateway(
*,
config_overrides: Optional[MediaConnectClientConfig] = 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/media_connect.py
3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 | |