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
6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 | |