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
1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 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 | |