Skip to main content

aws_sdk_evs/client/
delete_entitlement.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 [`DeleteEntitlement`](crate::operation::delete_entitlement::builders::DeleteEntitlementFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`client_token(impl Into<String>)`](crate::operation::delete_entitlement::builders::DeleteEntitlementFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::delete_entitlement::builders::DeleteEntitlementFluentBuilder::set_client_token):<br>required: **false**<br><note>  <p>This parameter is not used in Amazon EVS currently. If you supply input for this parameter, it will have no effect.</p> </note> <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the entitlement deletion request. If you do not specify a client token, a randomly generated token is used for the request to ensure idempotency.</p><br>
7    ///   - [`environment_id(impl Into<String>)`](crate::operation::delete_entitlement::builders::DeleteEntitlementFluentBuilder::environment_id) / [`set_environment_id(Option<String>)`](crate::operation::delete_entitlement::builders::DeleteEntitlementFluentBuilder::set_environment_id):<br>required: **true**<br><p>A unique ID for the environment that the entitlement belongs to.</p><br>
8    ///   - [`connector_id(impl Into<String>)`](crate::operation::delete_entitlement::builders::DeleteEntitlementFluentBuilder::connector_id) / [`set_connector_id(Option<String>)`](crate::operation::delete_entitlement::builders::DeleteEntitlementFluentBuilder::set_connector_id):<br>required: **true**<br><p>A unique ID for the connector associated with the entitlement.</p><br>
9    ///   - [`entitlement_type(EntitlementType)`](crate::operation::delete_entitlement::builders::DeleteEntitlementFluentBuilder::entitlement_type) / [`set_entitlement_type(Option<EntitlementType>)`](crate::operation::delete_entitlement::builders::DeleteEntitlementFluentBuilder::set_entitlement_type):<br>required: **true**<br><p>The type of entitlement to delete.</p><br>
10    ///   - [`vm_ids(impl Into<String>)`](crate::operation::delete_entitlement::builders::DeleteEntitlementFluentBuilder::vm_ids) / [`set_vm_ids(Option<Vec::<String>>)`](crate::operation::delete_entitlement::builders::DeleteEntitlementFluentBuilder::set_vm_ids):<br>required: **true**<br><p>The list of VMware vSphere virtual machine managed object IDs to delete entitlements for.</p><br>
11    /// - On success, responds with [`DeleteEntitlementOutput`](crate::operation::delete_entitlement::DeleteEntitlementOutput) with field(s):
12    ///   - [`entitlements(Option<Vec::<VmEntitlement>>)`](crate::operation::delete_entitlement::DeleteEntitlementOutput::entitlements): <p>A list of the deleted entitlements.</p>
13    /// - On failure, responds with [`SdkError<DeleteEntitlementError>`](crate::operation::delete_entitlement::DeleteEntitlementError)
14    pub fn delete_entitlement(&self) -> crate::operation::delete_entitlement::builders::DeleteEntitlementFluentBuilder {
15        crate::operation::delete_entitlement::builders::DeleteEntitlementFluentBuilder::new(self.handle.clone())
16    }
17}