create_endpoint_access
¶
create_endpoint_access(
endpoint_name: str,
subnet_ids: SubnetIdList,
workgroup_name: str,
*,
config_overrides: Optional[RedshiftServerlessClientConfig] = 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/redshift_serverless.py
1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 | |