1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`DeleteLaunchTemplateVersions`](crate::operation::delete_launch_template_versions::builders::DeleteLaunchTemplateVersionsFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`dry_run(bool)`](crate::operation::delete_launch_template_versions::builders::DeleteLaunchTemplateVersionsFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::delete_launch_template_versions::builders::DeleteLaunchTemplateVersionsFluentBuilder::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>
    ///   - [`launch_template_id(impl Into<String>)`](crate::operation::delete_launch_template_versions::builders::DeleteLaunchTemplateVersionsFluentBuilder::launch_template_id) / [`set_launch_template_id(Option<String>)`](crate::operation::delete_launch_template_versions::builders::DeleteLaunchTemplateVersionsFluentBuilder::set_launch_template_id):<br>required: **false**<br><p>The ID of the launch template.</p>  <p>You must specify either the <code>LaunchTemplateId</code> or the <code>LaunchTemplateName</code>, but not both.</p><br>
    ///   - [`launch_template_name(impl Into<String>)`](crate::operation::delete_launch_template_versions::builders::DeleteLaunchTemplateVersionsFluentBuilder::launch_template_name) / [`set_launch_template_name(Option<String>)`](crate::operation::delete_launch_template_versions::builders::DeleteLaunchTemplateVersionsFluentBuilder::set_launch_template_name):<br>required: **false**<br><p>The name of the launch template.</p>  <p>You must specify either the <code>LaunchTemplateName</code> or the <code>LaunchTemplateId</code>, but not both.</p><br>
    ///   - [`versions(impl Into<String>)`](crate::operation::delete_launch_template_versions::builders::DeleteLaunchTemplateVersionsFluentBuilder::versions) / [`set_versions(Option<Vec::<String>>)`](crate::operation::delete_launch_template_versions::builders::DeleteLaunchTemplateVersionsFluentBuilder::set_versions):<br>required: **true**<br><p>The version numbers of one or more launch template versions to delete. You can specify up to 200 launch template version numbers.</p><br>
    /// - On success, responds with [`DeleteLaunchTemplateVersionsOutput`](crate::operation::delete_launch_template_versions::DeleteLaunchTemplateVersionsOutput) with field(s):
    ///   - [`successfully_deleted_launch_template_versions(Option<Vec::<DeleteLaunchTemplateVersionsResponseSuccessItem>>)`](crate::operation::delete_launch_template_versions::DeleteLaunchTemplateVersionsOutput::successfully_deleted_launch_template_versions): <p>Information about the launch template versions that were successfully deleted.</p>
    ///   - [`unsuccessfully_deleted_launch_template_versions(Option<Vec::<DeleteLaunchTemplateVersionsResponseErrorItem>>)`](crate::operation::delete_launch_template_versions::DeleteLaunchTemplateVersionsOutput::unsuccessfully_deleted_launch_template_versions): <p>Information about the launch template versions that could not be deleted.</p>
    /// - On failure, responds with [`SdkError<DeleteLaunchTemplateVersionsError>`](crate::operation::delete_launch_template_versions::DeleteLaunchTemplateVersionsError)
    pub fn delete_launch_template_versions(
        &self,
    ) -> crate::operation::delete_launch_template_versions::builders::DeleteLaunchTemplateVersionsFluentBuilder {
        crate::operation::delete_launch_template_versions::builders::DeleteLaunchTemplateVersionsFluentBuilder::new(self.handle.clone())
    }
}