#[non_exhaustive]pub struct LicenseConfiguration {Show 16 fields
pub license_configuration_id: Option<String>,
pub license_configuration_arn: Option<String>,
pub name: Option<String>,
pub description: Option<String>,
pub license_counting_type: Option<LicenseCountingType>,
pub license_rules: Option<Vec<String>>,
pub license_count: Option<i64>,
pub license_count_hard_limit: Option<bool>,
pub disassociate_when_not_found: Option<bool>,
pub consumed_licenses: Option<i64>,
pub status: Option<String>,
pub owner_account_id: Option<String>,
pub consumed_license_summary_list: Option<Vec<ConsumedLicenseSummary>>,
pub managed_resource_summary_list: Option<Vec<ManagedResourceSummary>>,
pub product_information_list: Option<Vec<ProductInformation>>,
pub automated_discovery_information: Option<AutomatedDiscoveryInformation>,
}
Expand description
A license configuration is an abstraction of a customer license agreement that can be consumed and enforced by License Manager. Components include specifications for the license type (licensing by instance, socket, CPU, or vCPU), allowed tenancy (shared tenancy, Dedicated Instance, Dedicated Host, or all of these), host affinity (how long a VM must be associated with a host), and the number of licenses purchased and used.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.license_configuration_id: Option<String>
Unique ID of the license configuration.
license_configuration_arn: Option<String>
Amazon Resource Name (ARN) of the license configuration.
name: Option<String>
Name of the license configuration.
description: Option<String>
Description of the license configuration.
license_counting_type: Option<LicenseCountingType>
Dimension to use to track the license inventory.
license_rules: Option<Vec<String>>
License rules.
license_count: Option<i64>
Number of licenses managed by the license configuration.
license_count_hard_limit: Option<bool>
Number of available licenses as a hard limit.
disassociate_when_not_found: Option<bool>
When true, disassociates a resource when software is uninstalled.
consumed_licenses: Option<i64>
Number of licenses consumed.
status: Option<String>
Status of the license configuration.
owner_account_id: Option<String>
Account ID of the license configuration's owner.
consumed_license_summary_list: Option<Vec<ConsumedLicenseSummary>>
Summaries for licenses consumed by various resources.
managed_resource_summary_list: Option<Vec<ManagedResourceSummary>>
Summaries for managed resources.
product_information_list: Option<Vec<ProductInformation>>
Product information.
automated_discovery_information: Option<AutomatedDiscoveryInformation>
Automated discovery information.
Implementations§
source§impl LicenseConfiguration
impl LicenseConfiguration
sourcepub fn license_configuration_id(&self) -> Option<&str>
pub fn license_configuration_id(&self) -> Option<&str>
Unique ID of the license configuration.
sourcepub fn license_configuration_arn(&self) -> Option<&str>
pub fn license_configuration_arn(&self) -> Option<&str>
Amazon Resource Name (ARN) of the license configuration.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
Description of the license configuration.
sourcepub fn license_counting_type(&self) -> Option<&LicenseCountingType>
pub fn license_counting_type(&self) -> Option<&LicenseCountingType>
Dimension to use to track the license inventory.
sourcepub fn license_rules(&self) -> &[String]
pub fn license_rules(&self) -> &[String]
License rules.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .license_rules.is_none()
.
sourcepub fn license_count(&self) -> Option<i64>
pub fn license_count(&self) -> Option<i64>
Number of licenses managed by the license configuration.
sourcepub fn license_count_hard_limit(&self) -> Option<bool>
pub fn license_count_hard_limit(&self) -> Option<bool>
Number of available licenses as a hard limit.
sourcepub fn disassociate_when_not_found(&self) -> Option<bool>
pub fn disassociate_when_not_found(&self) -> Option<bool>
When true, disassociates a resource when software is uninstalled.
sourcepub fn consumed_licenses(&self) -> Option<i64>
pub fn consumed_licenses(&self) -> Option<i64>
Number of licenses consumed.
sourcepub fn owner_account_id(&self) -> Option<&str>
pub fn owner_account_id(&self) -> Option<&str>
Account ID of the license configuration's owner.
sourcepub fn consumed_license_summary_list(&self) -> &[ConsumedLicenseSummary]
pub fn consumed_license_summary_list(&self) -> &[ConsumedLicenseSummary]
Summaries for licenses consumed by various resources.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .consumed_license_summary_list.is_none()
.
sourcepub fn managed_resource_summary_list(&self) -> &[ManagedResourceSummary]
pub fn managed_resource_summary_list(&self) -> &[ManagedResourceSummary]
Summaries for managed resources.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .managed_resource_summary_list.is_none()
.
sourcepub fn product_information_list(&self) -> &[ProductInformation]
pub fn product_information_list(&self) -> &[ProductInformation]
Product information.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .product_information_list.is_none()
.
sourcepub fn automated_discovery_information(
&self,
) -> Option<&AutomatedDiscoveryInformation>
pub fn automated_discovery_information( &self, ) -> Option<&AutomatedDiscoveryInformation>
Automated discovery information.
source§impl LicenseConfiguration
impl LicenseConfiguration
sourcepub fn builder() -> LicenseConfigurationBuilder
pub fn builder() -> LicenseConfigurationBuilder
Creates a new builder-style object to manufacture LicenseConfiguration
.
Trait Implementations§
source§impl Clone for LicenseConfiguration
impl Clone for LicenseConfiguration
source§fn clone(&self) -> LicenseConfiguration
fn clone(&self) -> LicenseConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LicenseConfiguration
impl Debug for LicenseConfiguration
source§impl PartialEq for LicenseConfiguration
impl PartialEq for LicenseConfiguration
source§fn eq(&self, other: &LicenseConfiguration) -> bool
fn eq(&self, other: &LicenseConfiguration) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LicenseConfiguration
Auto Trait Implementations§
impl Freeze for LicenseConfiguration
impl RefUnwindSafe for LicenseConfiguration
impl Send for LicenseConfiguration
impl Sync for LicenseConfiguration
impl Unpin for LicenseConfiguration
impl UnwindSafe for LicenseConfiguration
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more