Skip to main content

aws_sdk_mgn/client/
create_network_migration_definition.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`CreateNetworkMigrationDefinition`](crate::operation::create_network_migration_definition::builders::CreateNetworkMigrationDefinitionFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`name(impl Into<String>)`](crate::operation::create_network_migration_definition::builders::CreateNetworkMigrationDefinitionFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_network_migration_definition::builders::CreateNetworkMigrationDefinitionFluentBuilder::set_name):<br>required: **true**<br><p>The name of the network migration definition.</p><br>
7    ///   - [`description(impl Into<String>)`](crate::operation::create_network_migration_definition::builders::CreateNetworkMigrationDefinitionFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_network_migration_definition::builders::CreateNetworkMigrationDefinitionFluentBuilder::set_description):<br>required: **false**<br><p>A description of the network migration definition.</p><br>
8    ///   - [`source_configurations(SourceConfiguration)`](crate::operation::create_network_migration_definition::builders::CreateNetworkMigrationDefinitionFluentBuilder::source_configurations) / [`set_source_configurations(Option<Vec::<SourceConfiguration>>)`](crate::operation::create_network_migration_definition::builders::CreateNetworkMigrationDefinitionFluentBuilder::set_source_configurations):<br>required: **false**<br><p>A list of source configurations for the network migration.</p><br>
9    ///   - [`target_s3_configuration(TargetS3Configuration)`](crate::operation::create_network_migration_definition::builders::CreateNetworkMigrationDefinitionFluentBuilder::target_s3_configuration) / [`set_target_s3_configuration(Option<TargetS3Configuration>)`](crate::operation::create_network_migration_definition::builders::CreateNetworkMigrationDefinitionFluentBuilder::set_target_s3_configuration):<br>required: **true**<br><p>The S3 configuration for storing the target network artifacts.</p><br>
10    ///   - [`target_network(TargetNetwork)`](crate::operation::create_network_migration_definition::builders::CreateNetworkMigrationDefinitionFluentBuilder::target_network) / [`set_target_network(Option<TargetNetwork>)`](crate::operation::create_network_migration_definition::builders::CreateNetworkMigrationDefinitionFluentBuilder::set_target_network):<br>required: **true**<br><p>The target network configuration including topology and CIDR ranges.</p><br>
11    ///   - [`target_deployment(TargetDeployment)`](crate::operation::create_network_migration_definition::builders::CreateNetworkMigrationDefinitionFluentBuilder::target_deployment) / [`set_target_deployment(Option<TargetDeployment>)`](crate::operation::create_network_migration_definition::builders::CreateNetworkMigrationDefinitionFluentBuilder::set_target_deployment):<br>required: **false**<br><p>The target deployment configuration for the migrated network.</p><br>
12    ///   - [`vpc_provisioning_strategy(VpcProvisioningStrategy)`](crate::operation::create_network_migration_definition::builders::CreateNetworkMigrationDefinitionFluentBuilder::vpc_provisioning_strategy) / [`set_vpc_provisioning_strategy(Option<VpcProvisioningStrategy>)`](crate::operation::create_network_migration_definition::builders::CreateNetworkMigrationDefinitionFluentBuilder::set_vpc_provisioning_strategy):<br>required: **false**<br><p>Specifies whether to create new target VPCs or use existing ones. Set to <code>CREATE_NEW</code> to provision new target VPCs as part of the migration, or <code>USE_EXISTING</code> to migrate into existing VPCs in the target account.</p><br>
13    ///   - [`cidr_mappings(CidrMapping)`](crate::operation::create_network_migration_definition::builders::CreateNetworkMigrationDefinitionFluentBuilder::cidr_mappings) / [`set_cidr_mappings(Option<Vec::<CidrMapping>>)`](crate::operation::create_network_migration_definition::builders::CreateNetworkMigrationDefinitionFluentBuilder::set_cidr_mappings):<br>required: **false**<br><p>A list of CIDR mappings that map original source CIDR ranges to updated target CIDR ranges. CIDR mappings can be provided only when <code>vpcProvisioningStrategy</code> is set to <code>USE_EXISTING</code>.</p><br>
14    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_network_migration_definition::builders::CreateNetworkMigrationDefinitionFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_network_migration_definition::builders::CreateNetworkMigrationDefinitionFluentBuilder::set_tags):<br>required: **false**<br><p>Tags to assign to the network migration definition.</p><br>
15    ///   - [`scope_tags(impl Into<String>, impl Into<String>)`](crate::operation::create_network_migration_definition::builders::CreateNetworkMigrationDefinitionFluentBuilder::scope_tags) / [`set_scope_tags(Option<HashMap::<String, String>>)`](crate::operation::create_network_migration_definition::builders::CreateNetworkMigrationDefinitionFluentBuilder::set_scope_tags):<br>required: **false**<br><p>Scope tags for the network migration definition to control access and organization.</p><br>
16    /// - On success, responds with [`CreateNetworkMigrationDefinitionOutput`](crate::operation::create_network_migration_definition::CreateNetworkMigrationDefinitionOutput) with field(s):
17    ///   - [`arn(Option<String>)`](crate::operation::create_network_migration_definition::CreateNetworkMigrationDefinitionOutput::arn): <p>The Amazon Resource Name (ARN) of the network migration definition.</p>
18    ///   - [`network_migration_definition_id(Option<String>)`](crate::operation::create_network_migration_definition::CreateNetworkMigrationDefinitionOutput::network_migration_definition_id): <p>The unique identifier of the network migration definition.</p>
19    ///   - [`name(Option<String>)`](crate::operation::create_network_migration_definition::CreateNetworkMigrationDefinitionOutput::name): <p>The name of the network migration definition.</p>
20    ///   - [`description(Option<String>)`](crate::operation::create_network_migration_definition::CreateNetworkMigrationDefinitionOutput::description): <p>A description of the network migration definition.</p>
21    ///   - [`source_configurations(Option<Vec::<SourceConfiguration>>)`](crate::operation::create_network_migration_definition::CreateNetworkMigrationDefinitionOutput::source_configurations): <p>A list of source configurations for the network migration.</p>
22    ///   - [`target_s3_configuration(Option<TargetS3Configuration>)`](crate::operation::create_network_migration_definition::CreateNetworkMigrationDefinitionOutput::target_s3_configuration): <p>The S3 configuration for storing the target network artifacts.</p>
23    ///   - [`target_network(Option<TargetNetwork>)`](crate::operation::create_network_migration_definition::CreateNetworkMigrationDefinitionOutput::target_network): <p>The target network configuration including topology and CIDR ranges.</p>
24    ///   - [`target_deployment(Option<TargetDeployment>)`](crate::operation::create_network_migration_definition::CreateNetworkMigrationDefinitionOutput::target_deployment): <p>The target deployment configuration for the migrated network.</p>
25    ///   - [`vpc_provisioning_strategy(Option<VpcProvisioningStrategy>)`](crate::operation::create_network_migration_definition::CreateNetworkMigrationDefinitionOutput::vpc_provisioning_strategy): <p>Indicates whether the migration creates new target VPCs or uses existing ones. <code>CREATE_NEW</code> provisions new target VPCs; <code>USE_EXISTING</code> migrates into existing VPCs in the target account.</p>
26    ///   - [`cidr_mappings(Option<Vec::<CidrMapping>>)`](crate::operation::create_network_migration_definition::CreateNetworkMigrationDefinitionOutput::cidr_mappings): <p>A list of CIDR mappings that map original source CIDR ranges to updated target CIDR ranges. CIDR mappings apply only when <code>vpcProvisioningStrategy</code> is set to <code>USE_EXISTING</code>.</p>
27    ///   - [`created_at(Option<DateTime>)`](crate::operation::create_network_migration_definition::CreateNetworkMigrationDefinitionOutput::created_at): <p>The timestamp when the network migration definition was created.</p>
28    ///   - [`updated_at(Option<DateTime>)`](crate::operation::create_network_migration_definition::CreateNetworkMigrationDefinitionOutput::updated_at): <p>The timestamp when the network migration definition was last updated.</p>
29    ///   - [`tags(Option<HashMap::<String, String>>)`](crate::operation::create_network_migration_definition::CreateNetworkMigrationDefinitionOutput::tags): <p>Tags assigned to the network migration definition.</p>
30    ///   - [`scope_tags(Option<HashMap::<String, String>>)`](crate::operation::create_network_migration_definition::CreateNetworkMigrationDefinitionOutput::scope_tags): <p>Scope tags for the network migration definition.</p>
31    /// - On failure, responds with [`SdkError<CreateNetworkMigrationDefinitionError>`](crate::operation::create_network_migration_definition::CreateNetworkMigrationDefinitionError)
32    pub fn create_network_migration_definition(
33        &self,
34    ) -> crate::operation::create_network_migration_definition::builders::CreateNetworkMigrationDefinitionFluentBuilder {
35        crate::operation::create_network_migration_definition::builders::CreateNetworkMigrationDefinitionFluentBuilder::new(self.handle.clone())
36    }
37}