aws_sdk_xray/client/delete_sampling_rule.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`DeleteSamplingRule`](crate::operation::delete_sampling_rule::builders::DeleteSamplingRuleFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`rule_name(impl Into<String>)`](crate::operation::delete_sampling_rule::builders::DeleteSamplingRuleFluentBuilder::rule_name) / [`set_rule_name(Option<String>)`](crate::operation::delete_sampling_rule::builders::DeleteSamplingRuleFluentBuilder::set_rule_name):<br>required: **false**<br><p>The name of the sampling rule. Specify a rule by either name or ARN, but not both.</p><br>
/// - [`rule_arn(impl Into<String>)`](crate::operation::delete_sampling_rule::builders::DeleteSamplingRuleFluentBuilder::rule_arn) / [`set_rule_arn(Option<String>)`](crate::operation::delete_sampling_rule::builders::DeleteSamplingRuleFluentBuilder::set_rule_arn):<br>required: **false**<br><p>The ARN of the sampling rule. Specify a rule by either name or ARN, but not both.</p><br>
/// - On success, responds with [`DeleteSamplingRuleOutput`](crate::operation::delete_sampling_rule::DeleteSamplingRuleOutput) with field(s):
/// - [`sampling_rule_record(Option<SamplingRuleRecord>)`](crate::operation::delete_sampling_rule::DeleteSamplingRuleOutput::sampling_rule_record): <p>The deleted rule definition and metadata.</p>
/// - On failure, responds with [`SdkError<DeleteSamplingRuleError>`](crate::operation::delete_sampling_rule::DeleteSamplingRuleError)
pub fn delete_sampling_rule(&self) -> crate::operation::delete_sampling_rule::builders::DeleteSamplingRuleFluentBuilder {
crate::operation::delete_sampling_rule::builders::DeleteSamplingRuleFluentBuilder::new(self.handle.clone())
}
}