create_vpc_connection
async
¶
create_vpc_connection(
*,
config_overrides: Optional[AsyncKafkaClientConfig] = None,
target_cluster_arn: Optional[__string] = None,
authentication: Optional[__string] = None,
vpc_id: Optional[__string] = None,
client_subnets: Optional[__listOf__string] = None,
security_groups: Optional[__listOf__string] = None,
tags: Optional[__mapOf__string] = None,
) -> CreateVpcConnectionResponse
Creates a new MSK VPC connection.
Parameters:
-
target_cluster_arn(Optional[__string], default:None) –The cluster Amazon Resource Name (ARN) for the VPC connection.
-
authentication(Optional[__string], default:None) –The authentication type of VPC connection.
-
vpc_id(Optional[__string], default:None) –The VPC ID of VPC connection.
-
client_subnets(Optional[__listOf__string], default:None) –The list of client subnets.
-
security_groups(Optional[__listOf__string], default:None) –The list of security groups.
-
tags(Optional[__mapOf__string], default:None) –A map of tags for the VPC connection.
Raises:
-
BadRequestException–Returns information about an error.
-
ForbiddenException–Returns information about an error.
-
InternalServerErrorException–Returns information about an error.
-
ServiceUnavailableException–Returns information about an error.
-
TooManyRequestsException–Returns information about an error.
-
UnauthorizedException–Returns information about an error.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_kafka/_services/async_kafka.py
954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 | |