list_network_migration_mapper_segment_constructs
async
¶
list_network_migration_mapper_segment_constructs(
network_migration_execution_id: NetworkMigrationExecutionID,
network_migration_definition_id: NetworkMigrationDefinitionID,
segment_id: SegmentID,
*,
config_overrides: Optional[AsyncmgnClientConfig] = None,
filters: Optional[ListNetworkMigrationMapperSegmentConstructsFilters] = None,
max_results: Optional[MaxResultsType] = None,
next_token: Optional[PaginationToken] = None,
include_enriched_properties: Optional[bool] = None,
include_configuration: Optional[bool] = None,
) -> ListNetworkMigrationMapperSegmentConstructsResponse
Lists constructs within a mapper segment, representing individual infrastructure components like VPCs, subnets, or security groups.
Parameters:
-
network_migration_execution_id(NetworkMigrationExecutionID) –The unique identifier of the network migration execution.
-
network_migration_definition_id(NetworkMigrationDefinitionID) –The unique identifier of the network migration definition.
-
segment_id(SegmentID) –The unique identifier of the segment to list constructs for.
-
filters(Optional[ListNetworkMigrationMapperSegmentConstructsFilters], default:None) –Filters to apply when listing constructs, such as construct type or ID.
-
max_results(Optional[MaxResultsType], default:None) –The maximum number of results to return in a single call.
-
next_token(Optional[PaginationToken], default:None) –The token for the next page of results.
-
include_enriched_properties(Optional[bool], default:None) –Whether to return construct properties using their native value types.
-
include_configuration(Optional[bool], default:None) –Whether to return construct-type-specific behavioral configuration.
Raises:
-
AccessDeniedException–Operation denied due to a file permission or access check error.
-
ResourceNotFoundException–Resource not found exception.
-
ThrottlingException–Reached throttling quota exception.
-
ValidationException–Validate exception.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Sample ListNetworkMigrationMapperSegmentConstructs call with properties enabled
>>> await client.list_network_migration_mapper_segment_constructs(network_migration_execution_id='01234567-abcd-abcd-abcd-0123456789ab', network_migration_definition_id='nmd-01234567891234567', segment_id='12345678-abcd-abcd-efab-0123456789ab')
Sample ListNetworkMigrationMapperSegmentConstructs call with properties disabled (default)
>>> await client.list_network_migration_mapper_segment_constructs(network_migration_execution_id='01234567-abcd-abcd-abcd-0123456789ab', network_migration_definition_id='nmd-01234567891234567', segment_id='12345678-abcd-abcd-efab-0123456789ab')
Source code in docs_src/capo_mgn/_services/async_mgn.py
4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 | |