create_private_connection
async
¶
create_private_connection(
private_connection_name: PrivateConnectionName,
mode: PrivateConnectionMode,
*,
config_overrides: Optional[AsyncSecurityAgentClientConfig] = None,
tags: Optional[TagMap] = None,
) -> CreatePrivateConnectionOutput
Creates a private connection for reaching a self-hosted provider instance over private networking using Amazon VPC Lattice.
Parameters:
-
private_connection_name(PrivateConnectionName) –A unique name for the private connection within your account.
-
mode(PrivateConnectionMode) –The configuration for the private connection. Specify either a service-managed or a self-managed mode.
-
tags(Optional[TagMap], default:None) –The tags to attach to the private connection.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–The request could not be completed due to a conflict with the current state of the resource.
-
InternalServerException–An unexpected error occurred during the processing of your request.
-
ResourceNotFoundException–The specified resource was not found. Verify that the resource identifier is correct and that the resource exists in the specified agent space or account.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by the service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_securityagent/_services/async_security_agent.py
6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 | |