pub struct CreateLicenseConfiguration<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }Expand description
Fluent builder constructing a request to CreateLicenseConfiguration.
Creates a license configuration.
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), license affinity to host (how long a license must be associated with a host), and the number of licenses purchased and used.
Implementations
impl<C, M, R> CreateLicenseConfiguration<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateLicenseConfiguration<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreateLicenseConfigurationOutput, SdkError<CreateLicenseConfigurationError>> where
R::Policy: SmithyRetryPolicy<CreateLicenseConfigurationInputOperationOutputAlias, CreateLicenseConfigurationOutput, CreateLicenseConfigurationError, CreateLicenseConfigurationInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreateLicenseConfigurationOutput, SdkError<CreateLicenseConfigurationError>> where
R::Policy: SmithyRetryPolicy<CreateLicenseConfigurationInputOperationOutputAlias, CreateLicenseConfigurationOutput, CreateLicenseConfigurationError, CreateLicenseConfigurationInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
Description of the license configuration.
Description of the license configuration.
Dimension used to track the license inventory.
Dimension used to track the license inventory.
Number of licenses managed by the license configuration.
Number of licenses managed by the license configuration.
Indicates whether hard or soft license enforcement is used. Exceeding a hard limit blocks the launch of new instances.
Indicates whether hard or soft license enforcement is used. Exceeding a hard limit blocks the launch of new instances.
Appends an item to LicenseRules.
To override the contents of this collection use set_license_rules.
License rules. The syntax is #name=value (for example, #allowedTenancy=EC2-DedicatedHost). The available rules vary by dimension, as follows.
-
Coresdimension:allowedTenancy|licenseAffinityToHost|maximumCores|minimumCores -
Instancesdimension:allowedTenancy|maximumCores|minimumCores|maximumSockets|minimumSockets|maximumVcpus|minimumVcpus -
Socketsdimension:allowedTenancy|licenseAffinityToHost|maximumSockets|minimumSockets -
vCPUsdimension:allowedTenancy|honorVcpuOptimization|maximumVcpus|minimumVcpus
The unit for licenseAffinityToHost is days and the range is 1 to 180. The possible values for allowedTenancy are EC2-Default, EC2-DedicatedHost, and EC2-DedicatedInstance. The possible values for honorVcpuOptimization are True and False.
License rules. The syntax is #name=value (for example, #allowedTenancy=EC2-DedicatedHost). The available rules vary by dimension, as follows.
-
Coresdimension:allowedTenancy|licenseAffinityToHost|maximumCores|minimumCores -
Instancesdimension:allowedTenancy|maximumCores|minimumCores|maximumSockets|minimumSockets|maximumVcpus|minimumVcpus -
Socketsdimension:allowedTenancy|licenseAffinityToHost|maximumSockets|minimumSockets -
vCPUsdimension:allowedTenancy|honorVcpuOptimization|maximumVcpus|minimumVcpus
The unit for licenseAffinityToHost is days and the range is 1 to 180. The possible values for allowedTenancy are EC2-Default, EC2-DedicatedHost, and EC2-DedicatedInstance. The possible values for honorVcpuOptimization are True and False.
Appends an item to Tags.
To override the contents of this collection use set_tags.
Tags to add to the license configuration.
Tags to add to the license configuration.
When true, disassociates a resource when software is uninstalled.
When true, disassociates a resource when software is uninstalled.
Appends an item to ProductInformationList.
To override the contents of this collection use set_product_information_list.
Product information.
Product information.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for CreateLicenseConfiguration<C, M, R>
impl<C, M, R> Send for CreateLicenseConfiguration<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for CreateLicenseConfiguration<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for CreateLicenseConfiguration<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for CreateLicenseConfiguration<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more