Updates an Amazon Redshift Serverless managed endpoint.
Parameters:
-
endpoint_name
(str)
–
The name of the VPC endpoint to update.
-
vpc_security_group_ids
(Optional[VpcSecurityGroupIdList], default:
None
)
–
The list of VPC security groups associated with the endpoint after the endpoint is modified.
Raises:
Source code in docs_src/capo_redshift_serverless/_services/async_redshift_serverless.py
| async def update_endpoint_access(
self,
endpoint_name: str,
*,
config_overrides: Optional[AsyncRedshiftServerlessClientConfig] = None,
vpc_security_group_ids: Optional[
"capo_redshift_serverless.types.vpc_security_group_id_list.VpcSecurityGroupIdList"
] = None,
) -> "capo_redshift_serverless.types.update_endpoint_access_response.UpdateEndpointAccessResponse":
"""<p>Updates an Amazon Redshift Serverless managed endpoint.</p>
Args:
endpoint_name: <p>The name of the VPC endpoint to update.</p>
vpc_security_group_ids: <p>The list of VPC security groups associated with the endpoint after the endpoint is modified.</p>
Raises:
capo_redshift_serverless.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
capo_redshift_serverless.errors.conflict_exception.ConflictException: <p>The submitted action has conflicts.</p>
capo_redshift_serverless.errors.internal_server_exception.InternalServerException: <p>The request processing has failed because of an unknown error, exception or failure.</p>
capo_redshift_serverless.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource could not be found.</p>
capo_redshift_serverless.errors.validation_exception.ValidationException: <p>The input failed to satisfy the constraints specified by an Amazon Web Services service.</p>
capo_redshift_serverless.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_redshift_serverless.types.update_endpoint_access_request.UpdateEndpointAccessRequest]",
) -> AsyncOperationResponse[
"capo_redshift_serverless.types.update_endpoint_access_response.UpdateEndpointAccessResponse"
]:
import capo_redshift_serverless._operations.redshift_serverless.update_endpoint_access
(
output,
http_response,
) = await capo_redshift_serverless._operations.redshift_serverless.update_endpoint_access.async_update_endpoint_access(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("UpdateEndpointAccess")
)
input_: capo_redshift_serverless.types.update_endpoint_access_request.UpdateEndpointAccessRequest = {
"endpoint_name": endpoint_name
}
if vpc_security_group_ids is not None:
input_["vpc_security_group_ids"] = vpc_security_group_ids
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|