create_endpoint_access
async
¶
create_endpoint_access(
endpoint_name: str,
subnet_ids: SubnetIdList,
workgroup_name: str,
*,
config_overrides: Optional[AsyncRedshiftServerlessClientConfig] = None,
vpc_security_group_ids: Optional[VpcSecurityGroupIdList] = None,
owner_account: Optional[OwnerAccount] = None,
) -> CreateEndpointAccessResponse
Creates an Amazon Redshift Serverless managed VPC endpoint.
Parameters:
-
endpoint_name(str) –The name of the VPC endpoint. An endpoint name must contain 1-30 characters. Valid characters are A-Z, a-z, 0-9, and hyphen(-). The first character must be a letter. The name can't contain two consecutive hyphens or end with a hyphen.
-
subnet_ids(SubnetIdList) –The unique identifers of subnets from which Amazon Redshift Serverless chooses one to deploy a VPC endpoint.
-
workgroup_name(str) –The name of the workgroup to associate with the VPC endpoint.
-
vpc_security_group_ids(Optional[VpcSecurityGroupIdList], default:None) –The unique identifiers of the security group that defines the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.
-
owner_account(Optional[OwnerAccount], default:None) –The owner Amazon Web Services account for the Amazon Redshift Serverless workgroup.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–The submitted action has conflicts.
-
InternalServerException–The request processing has failed because of an unknown error, exception or failure.
-
ResourceNotFoundException–The resource could not be found.
-
ServiceQuotaExceededException–The service limit was exceeded.
-
ValidationException–The input failed to 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_redshift_serverless/_services/async_redshift_serverless.py
1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 | |