aws_sdk_vpclattice/client/
get_rule.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetRule`](crate::operation::get_rule::builders::GetRuleFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`service_identifier(impl Into<String>)`](crate::operation::get_rule::builders::GetRuleFluentBuilder::service_identifier) / [`set_service_identifier(Option<String>)`](crate::operation::get_rule::builders::GetRuleFluentBuilder::set_service_identifier):<br>required: **true**<br><p>The ID or Amazon Resource Name (ARN) of the service.</p><br>
    ///   - [`listener_identifier(impl Into<String>)`](crate::operation::get_rule::builders::GetRuleFluentBuilder::listener_identifier) / [`set_listener_identifier(Option<String>)`](crate::operation::get_rule::builders::GetRuleFluentBuilder::set_listener_identifier):<br>required: **true**<br><p>The ID or Amazon Resource Name (ARN) of the listener.</p><br>
    ///   - [`rule_identifier(impl Into<String>)`](crate::operation::get_rule::builders::GetRuleFluentBuilder::rule_identifier) / [`set_rule_identifier(Option<String>)`](crate::operation::get_rule::builders::GetRuleFluentBuilder::set_rule_identifier):<br>required: **true**<br><p>The ID or Amazon Resource Name (ARN) of the listener rule.</p><br>
    /// - On success, responds with [`GetRuleOutput`](crate::operation::get_rule::GetRuleOutput) with field(s):
    ///   - [`arn(Option<String>)`](crate::operation::get_rule::GetRuleOutput::arn): <p>The Amazon Resource Name (ARN) of the listener.</p>
    ///   - [`id(Option<String>)`](crate::operation::get_rule::GetRuleOutput::id): <p>The ID of the listener.</p>
    ///   - [`name(Option<String>)`](crate::operation::get_rule::GetRuleOutput::name): <p>The name of the listener.</p>
    ///   - [`is_default(Option<bool>)`](crate::operation::get_rule::GetRuleOutput::is_default): <p>Indicates whether this is the default rule.</p>
    ///   - [`r#match(Option<RuleMatch>)`](crate::operation::get_rule::GetRuleOutput::match): <p>The rule match.</p>
    ///   - [`priority(Option<i32>)`](crate::operation::get_rule::GetRuleOutput::priority): <p>The priority level for the specified rule.</p>
    ///   - [`action(Option<RuleAction>)`](crate::operation::get_rule::GetRuleOutput::action): <p>The action for the default rule.</p>
    ///   - [`created_at(Option<DateTime>)`](crate::operation::get_rule::GetRuleOutput::created_at): <p>The date and time that the listener rule was created, specified in ISO-8601 format.</p>
    ///   - [`last_updated_at(Option<DateTime>)`](crate::operation::get_rule::GetRuleOutput::last_updated_at): <p>The date and time that the listener rule was last updated, specified in ISO-8601 format.</p>
    /// - On failure, responds with [`SdkError<GetRuleError>`](crate::operation::get_rule::GetRuleError)
    pub fn get_rule(&self) -> crate::operation::get_rule::builders::GetRuleFluentBuilder {
        crate::operation::get_rule::builders::GetRuleFluentBuilder::new(self.handle.clone())
    }
}