Skip to main content

aws_sdk_bedrockagentcorecontrol/client/
delete_gateway_rule.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 [`DeleteGatewayRule`](crate::operation::delete_gateway_rule::builders::DeleteGatewayRuleFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`gateway_identifier(impl Into<String>)`](crate::operation::delete_gateway_rule::builders::DeleteGatewayRuleFluentBuilder::gateway_identifier) / [`set_gateway_identifier(Option<String>)`](crate::operation::delete_gateway_rule::builders::DeleteGatewayRuleFluentBuilder::set_gateway_identifier):<br>required: **true**<br><p>The identifier of the gateway containing the rule.</p><br>
7    ///   - [`rule_id(impl Into<String>)`](crate::operation::delete_gateway_rule::builders::DeleteGatewayRuleFluentBuilder::rule_id) / [`set_rule_id(Option<String>)`](crate::operation::delete_gateway_rule::builders::DeleteGatewayRuleFluentBuilder::set_rule_id):<br>required: **true**<br><p>The unique identifier of the rule to delete.</p><br>
8    /// - On success, responds with [`DeleteGatewayRuleOutput`](crate::operation::delete_gateway_rule::DeleteGatewayRuleOutput) with field(s):
9    ///   - [`rule_id(String)`](crate::operation::delete_gateway_rule::DeleteGatewayRuleOutput::rule_id): <p>The unique identifier of the deleted rule.</p>
10    ///   - [`status(GatewayRuleStatus)`](crate::operation::delete_gateway_rule::DeleteGatewayRuleOutput::status): <p>The status of the rule deletion operation.</p>
11    /// - On failure, responds with [`SdkError<DeleteGatewayRuleError>`](crate::operation::delete_gateway_rule::DeleteGatewayRuleError)
12    pub fn delete_gateway_rule(&self) -> crate::operation::delete_gateway_rule::builders::DeleteGatewayRuleFluentBuilder {
13        crate::operation::delete_gateway_rule::builders::DeleteGatewayRuleFluentBuilder::new(self.handle.clone())
14    }
15}