Skip to content

get_network_migration_mapper_segment_construct

get_network_migration_mapper_segment_construct(
    network_migration_definition_id: NetworkMigrationDefinitionID,
    network_migration_execution_id: NetworkMigrationExecutionID,
    segment_id: SegmentID,
    construct_id: ConstructID,
    *,
    config_overrides: Optional[mgnClientConfig] = None,
) -> GetNetworkMigrationMapperSegmentConstructResponse

Retrieves detailed information about a specific construct within a mapper segment, including its properties and configuration data.

Parameters:

  • network_migration_definition_id (NetworkMigrationDefinitionID) –

    The unique identifier of the network migration definition.

  • network_migration_execution_id (NetworkMigrationExecutionID) –

    The unique identifier of the network migration execution.

  • segment_id (SegmentID) –

    The unique identifier of the mapper segment.

  • construct_id (ConstructID) –

    The unique identifier of the construct within the segment.

Raises:

Examples:

Sample GetNetworkMigrationMapperSegmentConstruct call

>>> client.get_network_migration_mapper_segment_construct(network_migration_execution_id='01234567-abcd-abcd-abcd-0123456789ab', network_migration_definition_id='nmd-01234567891234567', segment_id='12345678-abcd-abcd-efab-0123456789ab', construct_id='abc45678-abcd-abcd-efab-012345678abc')
Source code in docs_src/capo_mgn/_services/mgn.py
def get_network_migration_mapper_segment_construct(
    self,
    network_migration_definition_id: "capo_mgn.types.network_migration_definition_id.NetworkMigrationDefinitionID",
    network_migration_execution_id: "capo_mgn.types.network_migration_execution_id.NetworkMigrationExecutionID",
    segment_id: "capo_mgn.types.segment_id.SegmentID",
    construct_id: "capo_mgn.types.construct_id.ConstructID",
    *,
    config_overrides: Optional[mgnClientConfig] = None,
) -> "capo_mgn.types.get_network_migration_mapper_segment_construct_response.GetNetworkMigrationMapperSegmentConstructResponse":
    """<p>Retrieves detailed information about a specific construct within a mapper segment, including its properties and configuration data.</p>

    Args:
        network_migration_definition_id: <p>The unique identifier of the network migration definition.</p>
        network_migration_execution_id: <p>The unique identifier of the network migration execution.</p>
        segment_id: <p>The unique identifier of the mapper segment.</p>
        construct_id: <p>The unique identifier of the construct within the segment.</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.resource_not_found_exception.ResourceNotFoundException: <p>Resource not found 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 GetNetworkMigrationMapperSegmentConstruct call

        >>> client.get_network_migration_mapper_segment_construct(network_migration_execution_id='01234567-abcd-abcd-abcd-0123456789ab', network_migration_definition_id='nmd-01234567891234567', segment_id='12345678-abcd-abcd-efab-0123456789ab', construct_id='abc45678-abcd-abcd-efab-012345678abc')
    """

    def _handler(
        req: "OperationRequest[capo_mgn.types.get_network_migration_mapper_segment_construct_request.GetNetworkMigrationMapperSegmentConstructRequest]",
    ) -> OperationResponse[
        "capo_mgn.types.get_network_migration_mapper_segment_construct_response.GetNetworkMigrationMapperSegmentConstructResponse"
    ]:
        import capo_mgn._operations.application_migration_service.get_network_migration_mapper_segment_construct

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

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging("GetNetworkMigrationMapperSegmentConstruct"),
    )
    input_: capo_mgn.types.get_network_migration_mapper_segment_construct_request.GetNetworkMigrationMapperSegmentConstructRequest = {
        "network_migration_definition_id": network_migration_definition_id,
        "network_migration_execution_id": network_migration_execution_id,
        "segment_id": segment_id,
        "construct_id": construct_id,
    }

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