Creates the private connectivity configuration for the specified Outpost. Private connectivity establishes a service link VPN connection between the Outpost and its home Amazon Web Services Region using a VPC and subnet that you specify, which allows the service link traffic to flow through your VPC and minimizes public internet exposure.
Parameters:
-
outpost_id
(OutpostId)
–
The ID or ARN of the Outpost.
-
vpc_information_list
(VpcInformationList)
–
Information about the VPC used for private connectivity, including the VPC, its subnets, and an associated VPC endpoint. You can specify at most one entry.
Raises:
Source code in docs_src/capo_outposts/_services/outposts.py
| def create_private_connectivity_config(
self,
outpost_id: "capo_outposts.types.outpost_id.OutpostId",
vpc_information_list: "capo_outposts.types.vpc_information_list.VpcInformationList",
*,
config_overrides: Optional[OutpostsClientConfig] = None,
) -> "capo_outposts.types.create_private_connectivity_config_output.CreatePrivateConnectivityConfigOutput":
"""<p>Creates the private connectivity configuration for the specified Outpost. Private connectivity establishes a service link VPN connection between the Outpost and its home Amazon Web Services Region using a VPC and subnet that you specify, which allows the service link traffic to flow through your VPC and minimizes public internet exposure.</p>
Args:
outpost_id: <p>The ID or ARN of the Outpost.</p>
vpc_information_list: <p>Information about the VPC used for private connectivity, including the VPC, its subnets, and an associated VPC endpoint. You can specify at most one entry.</p>
Raises:
capo_outposts.errors.access_denied_exception.AccessDeniedException: <p>You do not have permission to perform this operation.</p>
capo_outposts.errors.conflict_exception.ConflictException: <p>Updating or deleting this resource can cause an inconsistent state.</p>
capo_outposts.errors.internal_server_exception.InternalServerException: <p>An internal error has occurred.</p>
capo_outposts.errors.not_found_exception.NotFoundException: <p>The specified request is not valid.</p>
capo_outposts.errors.validation_exception.ValidationException: <p>A parameter is not valid.</p>
capo_outposts.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_outposts.types.create_private_connectivity_config_input.CreatePrivateConnectivityConfigInput]",
) -> OperationResponse[
"capo_outposts.types.create_private_connectivity_config_output.CreatePrivateConnectivityConfigOutput"
]:
import capo_outposts._operations.outposts_olaf_service.create_private_connectivity_config
output, http_response = (
capo_outposts._operations.outposts_olaf_service.create_private_connectivity_config.create_private_connectivity_config(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("CreatePrivateConnectivityConfig")
)
input_: capo_outposts.types.create_private_connectivity_config_input.CreatePrivateConnectivityConfigInput = {
"outpost_id": outpost_id,
"vpc_information_list": vpc_information_list,
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|