aws_sdk_ec2/client/
create_network_insights_path.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 [`CreateNetworkInsightsPath`](crate::operation::create_network_insights_path::builders::CreateNetworkInsightsPathFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`source_ip(impl Into<String>)`](crate::operation::create_network_insights_path::builders::CreateNetworkInsightsPathFluentBuilder::source_ip) / [`set_source_ip(Option<String>)`](crate::operation::create_network_insights_path::builders::CreateNetworkInsightsPathFluentBuilder::set_source_ip):<br>required: **false**<br><p>The IP address of the source.</p><br>
7    ///   - [`destination_ip(impl Into<String>)`](crate::operation::create_network_insights_path::builders::CreateNetworkInsightsPathFluentBuilder::destination_ip) / [`set_destination_ip(Option<String>)`](crate::operation::create_network_insights_path::builders::CreateNetworkInsightsPathFluentBuilder::set_destination_ip):<br>required: **false**<br><p>The IP address of the destination.</p><br>
8    ///   - [`source(impl Into<String>)`](crate::operation::create_network_insights_path::builders::CreateNetworkInsightsPathFluentBuilder::source) / [`set_source(Option<String>)`](crate::operation::create_network_insights_path::builders::CreateNetworkInsightsPathFluentBuilder::set_source):<br>required: **true**<br><p>The ID or ARN of the source. If the resource is in another account, you must specify an ARN.</p><br>
9    ///   - [`destination(impl Into<String>)`](crate::operation::create_network_insights_path::builders::CreateNetworkInsightsPathFluentBuilder::destination) / [`set_destination(Option<String>)`](crate::operation::create_network_insights_path::builders::CreateNetworkInsightsPathFluentBuilder::set_destination):<br>required: **false**<br><p>The ID or ARN of the destination. If the resource is in another account, you must specify an ARN.</p><br>
10    ///   - [`protocol(Protocol)`](crate::operation::create_network_insights_path::builders::CreateNetworkInsightsPathFluentBuilder::protocol) / [`set_protocol(Option<Protocol>)`](crate::operation::create_network_insights_path::builders::CreateNetworkInsightsPathFluentBuilder::set_protocol):<br>required: **true**<br><p>The protocol.</p><br>
11    ///   - [`destination_port(i32)`](crate::operation::create_network_insights_path::builders::CreateNetworkInsightsPathFluentBuilder::destination_port) / [`set_destination_port(Option<i32>)`](crate::operation::create_network_insights_path::builders::CreateNetworkInsightsPathFluentBuilder::set_destination_port):<br>required: **false**<br><p>The destination port.</p><br>
12    ///   - [`tag_specifications(TagSpecification)`](crate::operation::create_network_insights_path::builders::CreateNetworkInsightsPathFluentBuilder::tag_specifications) / [`set_tag_specifications(Option<Vec::<TagSpecification>>)`](crate::operation::create_network_insights_path::builders::CreateNetworkInsightsPathFluentBuilder::set_tag_specifications):<br>required: **false**<br><p>The tags to add to the path.</p><br>
13    ///   - [`dry_run(bool)`](crate::operation::create_network_insights_path::builders::CreateNetworkInsightsPathFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::create_network_insights_path::builders::CreateNetworkInsightsPathFluentBuilder::set_dry_run):<br>required: **false**<br><p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p><br>
14    ///   - [`client_token(impl Into<String>)`](crate::operation::create_network_insights_path::builders::CreateNetworkInsightsPathFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_network_insights_path::builders::CreateNetworkInsightsPathFluentBuilder::set_client_token):<br>required: **true**<br><p>Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see <a href="https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html">How to ensure idempotency</a>.</p><br>
15    ///   - [`filter_at_source(PathRequestFilter)`](crate::operation::create_network_insights_path::builders::CreateNetworkInsightsPathFluentBuilder::filter_at_source) / [`set_filter_at_source(Option<PathRequestFilter>)`](crate::operation::create_network_insights_path::builders::CreateNetworkInsightsPathFluentBuilder::set_filter_at_source):<br>required: **false**<br><p>Scopes the analysis to network paths that match specific filters at the source. If you specify this parameter, you can't specify the parameters for the source IP address or the destination port.</p><br>
16    ///   - [`filter_at_destination(PathRequestFilter)`](crate::operation::create_network_insights_path::builders::CreateNetworkInsightsPathFluentBuilder::filter_at_destination) / [`set_filter_at_destination(Option<PathRequestFilter>)`](crate::operation::create_network_insights_path::builders::CreateNetworkInsightsPathFluentBuilder::set_filter_at_destination):<br>required: **false**<br><p>Scopes the analysis to network paths that match specific filters at the destination. If you specify this parameter, you can't specify the parameter for the destination IP address.</p><br>
17    /// - On success, responds with [`CreateNetworkInsightsPathOutput`](crate::operation::create_network_insights_path::CreateNetworkInsightsPathOutput) with field(s):
18    ///   - [`network_insights_path(Option<NetworkInsightsPath>)`](crate::operation::create_network_insights_path::CreateNetworkInsightsPathOutput::network_insights_path): <p>Information about the path.</p>
19    /// - On failure, responds with [`SdkError<CreateNetworkInsightsPathError>`](crate::operation::create_network_insights_path::CreateNetworkInsightsPathError)
20    pub fn create_network_insights_path(&self) -> crate::operation::create_network_insights_path::builders::CreateNetworkInsightsPathFluentBuilder {
21        crate::operation::create_network_insights_path::builders::CreateNetworkInsightsPathFluentBuilder::new(self.handle.clone())
22    }
23}