create_private_connection
async
¶
create_private_connection(
name: PrivateConnectionName,
mode: PrivateConnectionMode,
*,
config_overrides: Optional[AsyncDevOpsAgentClientConfig] = None,
tags: Optional[Tags] = None,
) -> CreatePrivateConnectionOutput
Creates a Private Connection to a target resource.
Parameters:
-
name(PrivateConnectionName) –Unique name for this Private Connection within the account.
-
mode(PrivateConnectionMode) –Private Connection mode configuration.
-
tags(Optional[Tags], default:None) –Tags to add to the Private Connection at creation time.
Raises:
-
AccessDeniedException–Access to the requested resource is denied due to insufficient permissions.
-
ConflictException–The request conflicts with the current state of the resource.
-
ContentSizeExceededException–This exception is thrown when the content size exceeds the allowed limit.
-
InternalServerException–This exception is thrown when an unexpected error occurs in the processing of a request.
-
InvalidParameterException–One or more parameters provided in the request are invalid.
-
ResourceNotFoundException–The requested resource could not be found.
-
ServiceQuotaExceededException–The request would exceed the service quota limit.
-
ThrottlingException–The request was throttled due to too many requests. Please slow down and try again.
-
ValidationException–The input fails to satisfy the constraints specified by the service.
-
UnknownServiceError–The service returned an error code this client does not model.