Skip to content

start_network_migration_deployment

start_network_migration_deployment(
    network_migration_execution_id: NetworkMigrationExecutionID,
    network_migration_definition_id: NetworkMigrationDefinitionID,
    *,
    config_overrides: Optional[mgnClientConfig] = None,
) -> StartNetworkMigrationDeployerJobResponse

Starts a deployment job to create the target network infrastructure based on the generated code templates.

Parameters:

Raises:

Examples:

Sample StartNetworkMigrationDeployment call

>>> client.start_network_migration_deployment(network_migration_execution_id='01234567-abcd-abcd-abcd-0123456789ab', network_migration_definition_id='nmd-01234567891234567')
Source code in docs_src/capo_mgn/_services/mgn.py
def start_network_migration_deployment(
    self,
    network_migration_execution_id: "capo_mgn.types.network_migration_execution_id.NetworkMigrationExecutionID",
    network_migration_definition_id: "capo_mgn.types.network_migration_definition_id.NetworkMigrationDefinitionID",
    *,
    config_overrides: Optional[mgnClientConfig] = None,
) -> "capo_mgn.types.start_network_migration_deployer_job_response.StartNetworkMigrationDeployerJobResponse":
    """<p>Starts a deployment job to create the target network infrastructure based on the generated code templates.</p>

    Args:
        network_migration_execution_id: <p>The unique identifier of the network migration execution.</p>
        network_migration_definition_id: <p>The unique identifier of the network migration definition.</p>

    Raises:
        capo_mgn.errors.access_denied_exception.AccessDeniedException: <p>Operation denied due to a file permission or access check error.</p>
        capo_mgn.errors.conflict_exception.ConflictException: <p>The request could not be completed due to a conflict with the current state of the target resource.</p>
        capo_mgn.errors.resource_not_found_exception.ResourceNotFoundException: <p>Resource not found exception.</p>
        capo_mgn.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>The request could not be completed because it exceeded the service quota.</p>
        capo_mgn.errors.throttling_exception.ThrottlingException: <p>Reached throttling quota exception.</p>
        capo_mgn.errors.validation_exception.ValidationException: <p>Validate exception.</p>
        capo_mgn.errors.UnknownServiceError: The service returned an error code this client does not model.

    Examples:
        Sample StartNetworkMigrationDeployment call

        >>> client.start_network_migration_deployment(network_migration_execution_id='01234567-abcd-abcd-abcd-0123456789ab', network_migration_definition_id='nmd-01234567891234567')
    """

    def _handler(
        req: "OperationRequest[capo_mgn.types.start_network_migration_deployment_request.StartNetworkMigrationDeploymentRequest]",
    ) -> OperationResponse[
        "capo_mgn.types.start_network_migration_deployer_job_response.StartNetworkMigrationDeployerJobResponse"
    ]:
        import capo_mgn._operations.application_migration_service.start_network_migration_deployment

        output, http_response = (
            capo_mgn._operations.application_migration_service.start_network_migration_deployment.start_network_migration_deployment(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("StartNetworkMigrationDeployment")
    )
    input_: capo_mgn.types.start_network_migration_deployment_request.StartNetworkMigrationDeploymentRequest = {
        "network_migration_execution_id": network_migration_execution_id,
        "network_migration_definition_id": network_migration_definition_id,
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output