aws_sdk_vpclattice/client/
delete_target_group.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`DeleteTargetGroup`](crate::operation::delete_target_group::builders::DeleteTargetGroupFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`target_group_identifier(impl Into<String>)`](crate::operation::delete_target_group::builders::DeleteTargetGroupFluentBuilder::target_group_identifier) / [`set_target_group_identifier(Option<String>)`](crate::operation::delete_target_group::builders::DeleteTargetGroupFluentBuilder::set_target_group_identifier):<br>required: **true**<br><p>The ID or Amazon Resource Name (ARN) of the target group.</p><br>
    /// - On success, responds with [`DeleteTargetGroupOutput`](crate::operation::delete_target_group::DeleteTargetGroupOutput) with field(s):
    ///   - [`id(Option<String>)`](crate::operation::delete_target_group::DeleteTargetGroupOutput::id): <p>The ID of the target group.</p>
    ///   - [`arn(Option<String>)`](crate::operation::delete_target_group::DeleteTargetGroupOutput::arn): <p>The Amazon Resource Name (ARN) of the target group.</p>
    ///   - [`status(Option<TargetGroupStatus>)`](crate::operation::delete_target_group::DeleteTargetGroupOutput::status): <p>The status. You can retry the operation if the status is <code>DELETE_FAILED</code>. However, if you retry it while the status is <code>DELETE_IN_PROGRESS</code>, the status doesn't change.</p>
    /// - On failure, responds with [`SdkError<DeleteTargetGroupError>`](crate::operation::delete_target_group::DeleteTargetGroupError)
    pub fn delete_target_group(&self) -> crate::operation::delete_target_group::builders::DeleteTargetGroupFluentBuilder {
        crate::operation::delete_target_group::builders::DeleteTargetGroupFluentBuilder::new(self.handle.clone())
    }
}