create_private_connection
¶
create_private_connection(
private_connection_name: PrivateConnectionName,
mode: PrivateConnectionMode,
*,
config_overrides: Optional[SecurityAgentClientConfig] = 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/security_agent.py
6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 | |