Struct aws_sdk_licensemanager::client::Client
source · [−]pub struct Client<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }Expand description
Client for AWS License Manager
Client for invoking operations on AWS License Manager. Each operation on AWS License Manager is a method on this
this struct. .send() MUST be invoked on the generated operations to dispatch the request to the service.
Examples
Constructing a client and invoking an operation
// create a shared configuration. This can be used & shared between multiple service clients.
let shared_config = aws_config::load_from_env().await;
let client = aws_sdk_licensemanager::Client::new(&shared_config);
// invoke an operation
/* let rsp = client
.<operation_name>().
.<param>("some value")
.send().await; */Constructing a client with custom configuration
use aws_config::RetryConfig;
let shared_config = aws_config::load_from_env().await;
let config = aws_sdk_licensemanager::config::Builder::from(&shared_config)
.retry_config(RetryConfig::disabled())
.build();
let client = aws_sdk_licensemanager::Client::from_conf(config);Implementations
impl<C, M, R> Client<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> Client<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
Constructs a fluent builder for the AcceptGrant operation.
- The fluent builder is configurable:
grant_arn(impl Into<String>)/set_grant_arn(Option<String>):Amazon Resource Name (ARN) of the grant.
- On success, responds with
AcceptGrantOutputwith field(s):grant_arn(Option<String>):Grant ARN.
status(Option<GrantStatus>):Grant status.
version(Option<String>):Grant version.
- On failure, responds with
SdkError<AcceptGrantError>
Constructs a fluent builder for the CheckInLicense operation.
- The fluent builder is configurable:
license_consumption_token(impl Into<String>)/set_license_consumption_token(Option<String>):License consumption token.
beneficiary(impl Into<String>)/set_beneficiary(Option<String>):License beneficiary.
- On success, responds with
CheckInLicenseOutput - On failure, responds with
SdkError<CheckInLicenseError>
Constructs a fluent builder for the CheckoutBorrowLicense operation.
- The fluent builder is configurable:
license_arn(impl Into<String>)/set_license_arn(Option<String>):Amazon Resource Name (ARN) of the license. The license must use the borrow consumption configuration.
entitlements(Vec<EntitlementData>)/set_entitlements(Option<Vec<EntitlementData>>):License entitlements. Partial checkouts are not supported.
digital_signature_method(DigitalSignatureMethod)/set_digital_signature_method(Option<DigitalSignatureMethod>):Digital signature method. The possible value is JSON Web Signature (JWS) algorithm PS384. For more information, see RFC 7518 Digital Signature with RSASSA-PSS.
node_id(impl Into<String>)/set_node_id(Option<String>):Node ID.
checkout_metadata(Vec<Metadata>)/set_checkout_metadata(Option<Vec<Metadata>>):Information about constraints.
client_token(impl Into<String>)/set_client_token(Option<String>):Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
- On success, responds with
CheckoutBorrowLicenseOutputwith field(s):license_arn(Option<String>):Amazon Resource Name (ARN) of the license.
license_consumption_token(Option<String>):License consumption token.
entitlements_allowed(Option<Vec<EntitlementData>>):Allowed license entitlements.
node_id(Option<String>):Node ID.
signed_token(Option<String>):Signed token.
issued_at(Option<String>):Date and time at which the license checkout is issued.
expiration(Option<String>):Date and time at which the license checkout expires.
checkout_metadata(Option<Vec<Metadata>>):Information about constraints.
- On failure, responds with
SdkError<CheckoutBorrowLicenseError>
Constructs a fluent builder for the CheckoutLicense operation.
- The fluent builder is configurable:
product_sku(impl Into<String>)/set_product_sku(Option<String>):Product SKU.
checkout_type(CheckoutType)/set_checkout_type(Option<CheckoutType>):Checkout type.
key_fingerprint(impl Into<String>)/set_key_fingerprint(Option<String>):Key fingerprint identifying the license.
entitlements(Vec<EntitlementData>)/set_entitlements(Option<Vec<EntitlementData>>):License entitlements.
client_token(impl Into<String>)/set_client_token(Option<String>):Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
beneficiary(impl Into<String>)/set_beneficiary(Option<String>):License beneficiary.
node_id(impl Into<String>)/set_node_id(Option<String>):Node ID.
- On success, responds with
CheckoutLicenseOutputwith field(s):checkout_type(Option<CheckoutType>):Checkout type.
license_consumption_token(Option<String>):License consumption token.
entitlements_allowed(Option<Vec<EntitlementData>>):Allowed license entitlements.
signed_token(Option<String>):Signed token.
node_id(Option<String>):Node ID.
issued_at(Option<String>):Date and time at which the license checkout is issued.
expiration(Option<String>):Date and time at which the license checkout expires.
license_arn(Option<String>):Amazon Resource Name (ARN) of the checkout license.
- On failure, responds with
SdkError<CheckoutLicenseError>
Constructs a fluent builder for the CreateGrant operation.
- The fluent builder is configurable:
client_token(impl Into<String>)/set_client_token(Option<String>):Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
grant_name(impl Into<String>)/set_grant_name(Option<String>):Grant name.
license_arn(impl Into<String>)/set_license_arn(Option<String>):Amazon Resource Name (ARN) of the license.
principals(Vec<String>)/set_principals(Option<Vec<String>>):The grant principals.
home_region(impl Into<String>)/set_home_region(Option<String>):Home Region of the grant.
allowed_operations(Vec<AllowedOperation>)/set_allowed_operations(Option<Vec<AllowedOperation>>):Allowed operations for the grant.
- On success, responds with
CreateGrantOutputwith field(s):grant_arn(Option<String>):Grant ARN.
status(Option<GrantStatus>):Grant status.
version(Option<String>):Grant version.
- On failure, responds with
SdkError<CreateGrantError>
Constructs a fluent builder for the CreateGrantVersion operation.
- The fluent builder is configurable:
client_token(impl Into<String>)/set_client_token(Option<String>):Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
grant_arn(impl Into<String>)/set_grant_arn(Option<String>):Amazon Resource Name (ARN) of the grant.
grant_name(impl Into<String>)/set_grant_name(Option<String>):Grant name.
allowed_operations(Vec<AllowedOperation>)/set_allowed_operations(Option<Vec<AllowedOperation>>):Allowed operations for the grant.
status(GrantStatus)/set_status(Option<GrantStatus>):Grant status.
status_reason(impl Into<String>)/set_status_reason(Option<String>):Grant status reason.
source_version(impl Into<String>)/set_source_version(Option<String>):Current version of the grant.
- On success, responds with
CreateGrantVersionOutputwith field(s):grant_arn(Option<String>):Grant ARN.
status(Option<GrantStatus>):Grant status.
version(Option<String>):New version of the grant.
- On failure, responds with
SdkError<CreateGrantVersionError>
Constructs a fluent builder for the CreateLicense operation.
- The fluent builder is configurable:
license_name(impl Into<String>)/set_license_name(Option<String>):License name.
product_name(impl Into<String>)/set_product_name(Option<String>):Product name.
product_sku(impl Into<String>)/set_product_sku(Option<String>):Product SKU.
issuer(Issuer)/set_issuer(Option<Issuer>):License issuer.
home_region(impl Into<String>)/set_home_region(Option<String>):Home Region for the license.
validity(DatetimeRange)/set_validity(Option<DatetimeRange>):Date and time range during which the license is valid, in ISO8601-UTC format.
entitlements(Vec<Entitlement>)/set_entitlements(Option<Vec<Entitlement>>):License entitlements.
beneficiary(impl Into<String>)/set_beneficiary(Option<String>):License beneficiary.
consumption_configuration(ConsumptionConfiguration)/set_consumption_configuration(Option<ConsumptionConfiguration>):Configuration for consumption of the license. Choose a provisional configuration for workloads running with continuous connectivity. Choose a borrow configuration for workloads with offline usage.
license_metadata(Vec<Metadata>)/set_license_metadata(Option<Vec<Metadata>>):Information about the license.
client_token(impl Into<String>)/set_client_token(Option<String>):Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
- On success, responds with
CreateLicenseOutputwith field(s):license_arn(Option<String>):Amazon Resource Name (ARN) of the license.
status(Option<LicenseStatus>):License status.
version(Option<String>):License version.
- On failure, responds with
SdkError<CreateLicenseError>
Constructs a fluent builder for the CreateLicenseConfiguration operation.
- The fluent builder is configurable:
name(impl Into<String>)/set_name(Option<String>):Name of the license configuration.
description(impl Into<String>)/set_description(Option<String>):Description of the license configuration.
license_counting_type(LicenseCountingType)/set_license_counting_type(Option<LicenseCountingType>):Dimension used to track the license inventory.
license_count(i64)/set_license_count(Option<i64>):Number of licenses managed by the license configuration.
license_count_hard_limit(bool)/set_license_count_hard_limit(Option<bool>):Indicates whether hard or soft license enforcement is used. Exceeding a hard limit blocks the launch of new instances.
license_rules(Vec<String>)/set_license_rules(Option<Vec<String>>):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
licenseAffinityToHostis days and the range is 1 to 180. The possible values forallowedTenancyareEC2-Default,EC2-DedicatedHost, andEC2-DedicatedInstance. The possible values forhonorVcpuOptimizationareTrueandFalse.-
tags(Vec<Tag>)/set_tags(Option<Vec<Tag>>):Tags to add to the license configuration.
disassociate_when_not_found(bool)/set_disassociate_when_not_found(Option<bool>):When true, disassociates a resource when software is uninstalled.
product_information_list(Vec<ProductInformation>)/set_product_information_list(Option<Vec<ProductInformation>>):Product information.
- On success, responds with
CreateLicenseConfigurationOutputwith field(s):license_configuration_arn(Option<String>):Amazon Resource Name (ARN) of the license configuration.
- On failure, responds with
SdkError<CreateLicenseConfigurationError>
pub fn create_license_conversion_task_for_resource(
&self
) -> CreateLicenseConversionTaskForResource<C, M, R>
pub fn create_license_conversion_task_for_resource(
&self
) -> CreateLicenseConversionTaskForResource<C, M, R>
Constructs a fluent builder for the CreateLicenseConversionTaskForResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):Amazon Resource Name (ARN) of the resource you are converting the license type for.
source_license_context(LicenseConversionContext)/set_source_license_context(Option<LicenseConversionContext>):Information that identifies the license type you are converting from. For the structure of the source license, see Convert a license type using the AWS CLI in the License Manager User Guide.
destination_license_context(LicenseConversionContext)/set_destination_license_context(Option<LicenseConversionContext>):Information that identifies the license type you are converting to. For the structure of the destination license, see Convert a license type using the AWS CLI in the License Manager User Guide.
- On success, responds with
CreateLicenseConversionTaskForResourceOutputwith field(s):license_conversion_task_id(Option<String>):The ID of the created license type conversion task.
- On failure, responds with
SdkError<CreateLicenseConversionTaskForResourceError>
pub fn create_license_manager_report_generator(
&self
) -> CreateLicenseManagerReportGenerator<C, M, R>
pub fn create_license_manager_report_generator(
&self
) -> CreateLicenseManagerReportGenerator<C, M, R>
Constructs a fluent builder for the CreateLicenseManagerReportGenerator operation.
- The fluent builder is configurable:
report_generator_name(impl Into<String>)/set_report_generator_name(Option<String>):Name of the report generator.
r#type(Vec<ReportType>)/set_type(Option<Vec<ReportType>>):Type of reports to generate. The following report types an be generated:
-
License configuration report - Reports the number and details of consumed licenses for a license configuration.
-
Resource report - Reports the tracked licenses and resource consumption for a license configuration.
-
report_context(ReportContext)/set_report_context(Option<ReportContext>):Defines the type of license configuration the report generator tracks.
report_frequency(ReportFrequency)/set_report_frequency(Option<ReportFrequency>):Frequency by which reports are generated. Reports can be generated daily, monthly, or weekly.
client_token(impl Into<String>)/set_client_token(Option<String>):Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
description(impl Into<String>)/set_description(Option<String>):Description of the report generator.
tags(Vec<Tag>)/set_tags(Option<Vec<Tag>>):Tags to add to the report generator.
- On success, responds with
CreateLicenseManagerReportGeneratorOutputwith field(s):license_manager_report_generator_arn(Option<String>):The Amazon Resource Name (ARN) of the new report generator.
- On failure, responds with
SdkError<CreateLicenseManagerReportGeneratorError>
Constructs a fluent builder for the CreateLicenseVersion operation.
- The fluent builder is configurable:
license_arn(impl Into<String>)/set_license_arn(Option<String>):Amazon Resource Name (ARN) of the license.
license_name(impl Into<String>)/set_license_name(Option<String>):License name.
product_name(impl Into<String>)/set_product_name(Option<String>):Product name.
issuer(Issuer)/set_issuer(Option<Issuer>):License issuer.
home_region(impl Into<String>)/set_home_region(Option<String>):Home Region of the license.
validity(DatetimeRange)/set_validity(Option<DatetimeRange>):Date and time range during which the license is valid, in ISO8601-UTC format.
license_metadata(Vec<Metadata>)/set_license_metadata(Option<Vec<Metadata>>):Information about the license.
entitlements(Vec<Entitlement>)/set_entitlements(Option<Vec<Entitlement>>):License entitlements.
consumption_configuration(ConsumptionConfiguration)/set_consumption_configuration(Option<ConsumptionConfiguration>):Configuration for consumption of the license. Choose a provisional configuration for workloads running with continuous connectivity. Choose a borrow configuration for workloads with offline usage.
status(LicenseStatus)/set_status(Option<LicenseStatus>):License status.
client_token(impl Into<String>)/set_client_token(Option<String>):Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
source_version(impl Into<String>)/set_source_version(Option<String>):Current version of the license.
- On success, responds with
CreateLicenseVersionOutputwith field(s):license_arn(Option<String>):License ARN.
version(Option<String>):New version of the license.
status(Option<LicenseStatus>):License status.
- On failure, responds with
SdkError<CreateLicenseVersionError>
Constructs a fluent builder for the CreateToken operation.
- The fluent builder is configurable:
license_arn(impl Into<String>)/set_license_arn(Option<String>):Amazon Resource Name (ARN) of the license. The ARN is mapped to the aud claim of the JWT token.
role_arns(Vec<String>)/set_role_arns(Option<Vec<String>>):Amazon Resource Name (ARN) of the IAM roles to embed in the token. License Manager does not check whether the roles are in use.
expiration_in_days(i32)/set_expiration_in_days(Option<i32>):Token expiration, in days, counted from token creation. The default is 365 days.
token_properties(Vec<String>)/set_token_properties(Option<Vec<String>>):Data specified by the caller to be included in the JWT token. The data is mapped to the amr claim of the JWT token.
client_token(impl Into<String>)/set_client_token(Option<String>):Idempotency token, valid for 10 minutes.
- On success, responds with
CreateTokenOutputwith field(s):token_id(Option<String>):Token ID.
token_type(Option<TokenType>):Token type.
token(Option<String>):Refresh token, encoded as a JWT token.
- On failure, responds with
SdkError<CreateTokenError>
Constructs a fluent builder for the DeleteGrant operation.
- The fluent builder is configurable:
grant_arn(impl Into<String>)/set_grant_arn(Option<String>):Amazon Resource Name (ARN) of the grant.
status_reason(impl Into<String>)/set_status_reason(Option<String>):The Status reason for the delete request.
version(impl Into<String>)/set_version(Option<String>):Current version of the grant.
- On success, responds with
DeleteGrantOutputwith field(s):grant_arn(Option<String>):Grant ARN.
status(Option<GrantStatus>):Grant status.
version(Option<String>):Grant version.
- On failure, responds with
SdkError<DeleteGrantError>
Constructs a fluent builder for the DeleteLicense operation.
- The fluent builder is configurable:
license_arn(impl Into<String>)/set_license_arn(Option<String>):Amazon Resource Name (ARN) of the license.
source_version(impl Into<String>)/set_source_version(Option<String>):Current version of the license.
- On success, responds with
DeleteLicenseOutputwith field(s):status(Option<LicenseDeletionStatus>):License status.
deletion_date(Option<String>):Date when the license is deleted.
- On failure, responds with
SdkError<DeleteLicenseError>
Constructs a fluent builder for the DeleteLicenseConfiguration operation.
- The fluent builder is configurable:
license_configuration_arn(impl Into<String>)/set_license_configuration_arn(Option<String>):ID of the license configuration.
- On success, responds with
DeleteLicenseConfigurationOutput - On failure, responds with
SdkError<DeleteLicenseConfigurationError>
pub fn delete_license_manager_report_generator(
&self
) -> DeleteLicenseManagerReportGenerator<C, M, R>
pub fn delete_license_manager_report_generator(
&self
) -> DeleteLicenseManagerReportGenerator<C, M, R>
Constructs a fluent builder for the DeleteLicenseManagerReportGenerator operation.
- The fluent builder is configurable:
license_manager_report_generator_arn(impl Into<String>)/set_license_manager_report_generator_arn(Option<String>):Amazon Resource Name (ARN) of the report generator to be deleted.
- On success, responds with
DeleteLicenseManagerReportGeneratorOutput - On failure, responds with
SdkError<DeleteLicenseManagerReportGeneratorError>
Constructs a fluent builder for the DeleteToken operation.
- The fluent builder is configurable:
token_id(impl Into<String>)/set_token_id(Option<String>):Token ID.
- On success, responds with
DeleteTokenOutput - On failure, responds with
SdkError<DeleteTokenError>
Constructs a fluent builder for the ExtendLicenseConsumption operation.
- The fluent builder is configurable:
license_consumption_token(impl Into<String>)/set_license_consumption_token(Option<String>):License consumption token.
dry_run(bool)/set_dry_run(bool):Checks whether you have the required permissions for the action, without actually making the request. Provides an error response if you do not have the required permissions.
- On success, responds with
ExtendLicenseConsumptionOutputwith field(s):license_consumption_token(Option<String>):License consumption token.
expiration(Option<String>):Date and time at which the license consumption expires.
- On failure, responds with
SdkError<ExtendLicenseConsumptionError>
Constructs a fluent builder for the GetAccessToken operation.
- The fluent builder is configurable:
token(impl Into<String>)/set_token(Option<String>):Refresh token, encoded as a JWT token.
token_properties(Vec<String>)/set_token_properties(Option<Vec<String>>):Token properties to validate against those present in the JWT token.
- On success, responds with
GetAccessTokenOutputwith field(s):access_token(Option<String>):Temporary access token.
- On failure, responds with
SdkError<GetAccessTokenError>
Constructs a fluent builder for the GetGrant operation.
- The fluent builder is configurable:
grant_arn(impl Into<String>)/set_grant_arn(Option<String>):Amazon Resource Name (ARN) of the grant.
version(impl Into<String>)/set_version(Option<String>):Grant version.
- On success, responds with
GetGrantOutputwith field(s):grant(Option<Grant>):Grant details.
- On failure, responds with
SdkError<GetGrantError>
Constructs a fluent builder for the GetLicense operation.
- The fluent builder is configurable:
license_arn(impl Into<String>)/set_license_arn(Option<String>):Amazon Resource Name (ARN) of the license.
version(impl Into<String>)/set_version(Option<String>):License version.
- On success, responds with
GetLicenseOutputwith field(s):license(Option<License>):License details.
- On failure, responds with
SdkError<GetLicenseError>
Constructs a fluent builder for the GetLicenseConfiguration operation.
- The fluent builder is configurable:
license_configuration_arn(impl Into<String>)/set_license_configuration_arn(Option<String>):Amazon Resource Name (ARN) of the license configuration.
- On success, responds with
GetLicenseConfigurationOutputwith field(s):license_configuration_id(Option<String>):Unique ID for 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 for which the licenses are counted.
license_rules(Option<Vec<String>>):License rules.
license_count(Option<i64>):Number of available licenses.
license_count_hard_limit(Option<bool>):Sets the number of available licenses as a hard limit.
consumed_licenses(Option<i64>):Number of licenses assigned to resources.
status(Option<String>):License configuration status.
owner_account_id(Option<String>):Account ID of the owner of the license configuration.
consumed_license_summary_list(Option<Vec<ConsumedLicenseSummary>>):Summaries of the licenses consumed by resources.
managed_resource_summary_list(Option<Vec<ManagedResourceSummary>>):Summaries of the managed resources.
tags(Option<Vec<Tag>>):Tags for the license configuration.
product_information_list(Option<Vec<ProductInformation>>):Product information.
automated_discovery_information(Option<AutomatedDiscoveryInformation>):Automated discovery information.
disassociate_when_not_found(Option<bool>):When true, disassociates a resource when software is uninstalled.
- On failure, responds with
SdkError<GetLicenseConfigurationError>
Constructs a fluent builder for the GetLicenseConversionTask operation.
- The fluent builder is configurable:
license_conversion_task_id(impl Into<String>)/set_license_conversion_task_id(Option<String>):ID of the license type conversion task to retrieve information on.
- On success, responds with
GetLicenseConversionTaskOutputwith field(s):license_conversion_task_id(Option<String>):ID of the license type conversion task.
resource_arn(Option<String>):Amazon Resource Names (ARN) of the resources the license conversion task is associated with.
source_license_context(Option<LicenseConversionContext>):Information about the license type converted from.
destination_license_context(Option<LicenseConversionContext>):Information about the license type converted to.
status_message(Option<String>):The status message for the conversion task.
status(Option<LicenseConversionTaskStatus>):Status of the license type conversion task.
start_time(Option<DateTime>):Time at which the license type conversion task was started .
license_conversion_time(Option<DateTime>):Amount of time to complete the license type conversion.
end_time(Option<DateTime>):Time at which the license type conversion task was completed.
- On failure, responds with
SdkError<GetLicenseConversionTaskError>
pub fn get_license_manager_report_generator(
&self
) -> GetLicenseManagerReportGenerator<C, M, R>
pub fn get_license_manager_report_generator(
&self
) -> GetLicenseManagerReportGenerator<C, M, R>
Constructs a fluent builder for the GetLicenseManagerReportGenerator operation.
- The fluent builder is configurable:
license_manager_report_generator_arn(impl Into<String>)/set_license_manager_report_generator_arn(Option<String>):Amazon Resource Name (ARN) of the report generator.
- On success, responds with
GetLicenseManagerReportGeneratorOutputwith field(s):report_generator(Option<ReportGenerator>):A report generator that creates periodic reports about your license configurations.
- On failure, responds with
SdkError<GetLicenseManagerReportGeneratorError>
Constructs a fluent builder for the GetLicenseUsage operation.
- The fluent builder is configurable:
license_arn(impl Into<String>)/set_license_arn(Option<String>):Amazon Resource Name (ARN) of the license.
- On success, responds with
GetLicenseUsageOutputwith field(s):license_usage(Option<LicenseUsage>):License usage details.
- On failure, responds with
SdkError<GetLicenseUsageError>
Constructs a fluent builder for the GetServiceSettings operation.
- The fluent builder takes no input, just
sendit. - On success, responds with
GetServiceSettingsOutputwith field(s):s3_bucket_arn(Option<String>):Regional S3 bucket path for storing reports, license trail event data, discovery data, and so on.
sns_topic_arn(Option<String>):SNS topic configured to receive notifications from License Manager.
organization_configuration(Option<OrganizationConfiguration>):Indicates whether Organizations is integrated with License Manager for cross-account discovery.
enable_cross_accounts_discovery(Option<bool>):Indicates whether cross-account discovery is enabled.
license_manager_resource_share_arn(Option<String>):Amazon Resource Name (ARN) of the resource share. The License Manager management account provides member accounts with access to this share.
- On failure, responds with
SdkError<GetServiceSettingsError>
pub fn list_associations_for_license_configuration(
&self
) -> ListAssociationsForLicenseConfiguration<C, M, R>
pub fn list_associations_for_license_configuration(
&self
) -> ListAssociationsForLicenseConfiguration<C, M, R>
Constructs a fluent builder for the ListAssociationsForLicenseConfiguration operation.
- The fluent builder is configurable:
license_configuration_arn(impl Into<String>)/set_license_configuration_arn(Option<String>):Amazon Resource Name (ARN) of a license configuration.
max_results(i32)/set_max_results(Option<i32>):Maximum number of results to return in a single call.
next_token(impl Into<String>)/set_next_token(Option<String>):Token for the next set of results.
- On success, responds with
ListAssociationsForLicenseConfigurationOutputwith field(s):license_configuration_associations(Option<Vec<LicenseConfigurationAssociation>>):Information about the associations for the license configuration.
next_token(Option<String>):Token for the next set of results.
- On failure, responds with
SdkError<ListAssociationsForLicenseConfigurationError>
Constructs a fluent builder for the ListDistributedGrants operation.
- The fluent builder is configurable:
grant_arns(Vec<String>)/set_grant_arns(Option<Vec<String>>):Amazon Resource Names (ARNs) of the grants.
filters(Vec<Filter>)/set_filters(Option<Vec<Filter>>):Filters to scope the results. The following filters are supported:
-
LicenseArn -
GrantStatus -
GranteePrincipalARN -
ProductSKU -
LicenseIssuerName
-
next_token(impl Into<String>)/set_next_token(Option<String>):Token for the next set of results.
max_results(i32)/set_max_results(Option<i32>):Maximum number of results to return in a single call.
- On success, responds with
ListDistributedGrantsOutputwith field(s):grants(Option<Vec<Grant>>):Distributed grant details.
next_token(Option<String>):Token for the next set of results.
- On failure, responds with
SdkError<ListDistributedGrantsError>
pub fn list_failures_for_license_configuration_operations(
&self
) -> ListFailuresForLicenseConfigurationOperations<C, M, R>
pub fn list_failures_for_license_configuration_operations(
&self
) -> ListFailuresForLicenseConfigurationOperations<C, M, R>
Constructs a fluent builder for the ListFailuresForLicenseConfigurationOperations operation.
- The fluent builder is configurable:
license_configuration_arn(impl Into<String>)/set_license_configuration_arn(Option<String>):Amazon Resource Name of the license configuration.
max_results(i32)/set_max_results(Option<i32>):Maximum number of results to return in a single call.
next_token(impl Into<String>)/set_next_token(Option<String>):Token for the next set of results.
- On success, responds with
ListFailuresForLicenseConfigurationOperationsOutputwith field(s):license_operation_failure_list(Option<Vec<LicenseOperationFailure>>):License configuration operations that failed.
next_token(Option<String>):Token for the next set of results.
- On failure, responds with
SdkError<ListFailuresForLicenseConfigurationOperationsError>
Constructs a fluent builder for the ListLicenseConfigurations operation.
- The fluent builder is configurable:
license_configuration_arns(Vec<String>)/set_license_configuration_arns(Option<Vec<String>>):Amazon Resource Names (ARN) of the license configurations.
max_results(i32)/set_max_results(Option<i32>):Maximum number of results to return in a single call.
next_token(impl Into<String>)/set_next_token(Option<String>):Token for the next set of results.
filters(Vec<Filter>)/set_filters(Option<Vec<Filter>>):Filters to scope the results. The following filters and logical operators are supported:
-
licenseCountingType- The dimension for which licenses are counted. Possible values arevCPU|Instance|Core|Socket. Logical operators areEQUALS|NOT_EQUALS. -
enforceLicenseCount- A Boolean value that indicates whether hard license enforcement is used. Logical operators areEQUALS|NOT_EQUALS. -
usagelimitExceeded- A Boolean value that indicates whether the available licenses have been exceeded. Logical operators areEQUALS|NOT_EQUALS.
-
- On success, responds with
ListLicenseConfigurationsOutputwith field(s):license_configurations(Option<Vec<LicenseConfiguration>>):Information about the license configurations.
next_token(Option<String>):Token for the next set of results.
- On failure, responds with
SdkError<ListLicenseConfigurationsError>
Constructs a fluent builder for the ListLicenseConversionTasks operation.
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):Token for the next set of results.
max_results(i32)/set_max_results(Option<i32>):Maximum number of results to return in a single call.
filters(Vec<Filter>)/set_filters(Option<Vec<Filter>>):Filters to scope the results. Valid filters are
ResourceArnsandStatus.
- On success, responds with
ListLicenseConversionTasksOutputwith field(s):license_conversion_tasks(Option<Vec<LicenseConversionTask>>):Information about the license configuration tasks for your account.
next_token(Option<String>):Token for the next set of results.
- On failure, responds with
SdkError<ListLicenseConversionTasksError>
pub fn list_license_manager_report_generators(
&self
) -> ListLicenseManagerReportGenerators<C, M, R>
pub fn list_license_manager_report_generators(
&self
) -> ListLicenseManagerReportGenerators<C, M, R>
Constructs a fluent builder for the ListLicenseManagerReportGenerators operation.
- The fluent builder is configurable:
filters(Vec<Filter>)/set_filters(Option<Vec<Filter>>):Filters to scope the results. The following filters are supported:
-
LicenseConfigurationArn
-
next_token(impl Into<String>)/set_next_token(Option<String>):Token for the next set of results.
max_results(i32)/set_max_results(Option<i32>):Maximum number of results to return in a single call.
- On success, responds with
ListLicenseManagerReportGeneratorsOutputwith field(s):report_generators(Option<Vec<ReportGenerator>>):A report generator that creates periodic reports about your license configurations.
next_token(Option<String>):Token for the next set of results.
- On failure, responds with
SdkError<ListLicenseManagerReportGeneratorsError>
Constructs a fluent builder for the ListLicenses operation.
- The fluent builder is configurable:
license_arns(Vec<String>)/set_license_arns(Option<Vec<String>>):Amazon Resource Names (ARNs) of the licenses.
filters(Vec<Filter>)/set_filters(Option<Vec<Filter>>):Filters to scope the results. The following filters are supported:
-
Beneficiary -
ProductSKU -
Fingerprint -
Status
-
next_token(impl Into<String>)/set_next_token(Option<String>):Token for the next set of results.
max_results(i32)/set_max_results(Option<i32>):Maximum number of results to return in a single call.
- On success, responds with
ListLicensesOutputwith field(s):licenses(Option<Vec<License>>):License details.
next_token(Option<String>):Token for the next set of results.
- On failure, responds with
SdkError<ListLicensesError>
pub fn list_license_specifications_for_resource(
&self
) -> ListLicenseSpecificationsForResource<C, M, R>
pub fn list_license_specifications_for_resource(
&self
) -> ListLicenseSpecificationsForResource<C, M, R>
Constructs a fluent builder for the ListLicenseSpecificationsForResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):Amazon Resource Name (ARN) of a resource that has an associated license configuration.
max_results(i32)/set_max_results(Option<i32>):Maximum number of results to return in a single call.
next_token(impl Into<String>)/set_next_token(Option<String>):Token for the next set of results.
- On success, responds with
ListLicenseSpecificationsForResourceOutputwith field(s):license_specifications(Option<Vec<LicenseSpecification>>):License configurations associated with a resource.
next_token(Option<String>):Token for the next set of results.
- On failure, responds with
SdkError<ListLicenseSpecificationsForResourceError>
Constructs a fluent builder for the ListLicenseVersions operation.
- The fluent builder is configurable:
license_arn(impl Into<String>)/set_license_arn(Option<String>):Amazon Resource Name (ARN) of the license.
next_token(impl Into<String>)/set_next_token(Option<String>):Token for the next set of results.
max_results(i32)/set_max_results(Option<i32>):Maximum number of results to return in a single call.
- On success, responds with
ListLicenseVersionsOutputwith field(s):licenses(Option<Vec<License>>):License details.
next_token(Option<String>):Token for the next set of results.
- On failure, responds with
SdkError<ListLicenseVersionsError>
Constructs a fluent builder for the ListReceivedGrants operation.
- The fluent builder is configurable:
grant_arns(Vec<String>)/set_grant_arns(Option<Vec<String>>):Amazon Resource Names (ARNs) of the grants.
filters(Vec<Filter>)/set_filters(Option<Vec<Filter>>):Filters to scope the results. The following filters are supported:
-
ProductSKU -
LicenseIssuerName -
LicenseArn -
GrantStatus -
GranterAccountId
-
next_token(impl Into<String>)/set_next_token(Option<String>):Token for the next set of results.
max_results(i32)/set_max_results(Option<i32>):Maximum number of results to return in a single call.
- On success, responds with
ListReceivedGrantsOutputwith field(s):grants(Option<Vec<Grant>>):Received grant details.
next_token(Option<String>):Token for the next set of results.
- On failure, responds with
SdkError<ListReceivedGrantsError>
Constructs a fluent builder for the ListReceivedLicenses operation.
- The fluent builder is configurable:
license_arns(Vec<String>)/set_license_arns(Option<Vec<String>>):Amazon Resource Names (ARNs) of the licenses.
filters(Vec<Filter>)/set_filters(Option<Vec<Filter>>):Filters to scope the results. The following filters are supported:
-
ProductSKU -
Status -
Fingerprint -
IssuerName -
Beneficiary
-
next_token(impl Into<String>)/set_next_token(Option<String>):Token for the next set of results.
max_results(i32)/set_max_results(Option<i32>):Maximum number of results to return in a single call.
- On success, responds with
ListReceivedLicensesOutputwith field(s):licenses(Option<Vec<GrantedLicense>>):Received license details.
next_token(Option<String>):Token for the next set of results.
- On failure, responds with
SdkError<ListReceivedLicensesError>
Constructs a fluent builder for the ListResourceInventory operation.
- The fluent builder is configurable:
max_results(i32)/set_max_results(Option<i32>):Maximum number of results to return in a single call.
next_token(impl Into<String>)/set_next_token(Option<String>):Token for the next set of results.
filters(Vec<InventoryFilter>)/set_filters(Option<Vec<InventoryFilter>>):Filters to scope the results. The following filters and logical operators are supported:
-
account_id- The ID of the Amazon Web Services account that owns the resource. Logical operators areEQUALS|NOT_EQUALS. -
application_name- The name of the application. Logical operators areEQUALS|BEGINS_WITH. -
license_included- The type of license included. Logical operators areEQUALS|NOT_EQUALS. Possible values aresql-server-enterprise|sql-server-standard|sql-server-web|windows-server-datacenter. -
platform- The platform of the resource. Logical operators areEQUALS|BEGINS_WITH. -
resource_id- The ID of the resource. Logical operators areEQUALS|NOT_EQUALS. -
tag:- The key/value combination of a tag assigned to the resource. Logical operators areEQUALS(single account) orEQUALS|NOT_EQUALS(cross account).
-
- On success, responds with
ListResourceInventoryOutputwith field(s):resource_inventory_list(Option<Vec<ResourceInventory>>):Information about the resources.
next_token(Option<String>):Token for the next set of results.
- On failure, responds with
SdkError<ListResourceInventoryError>
Constructs a fluent builder for the ListTagsForResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):Amazon Resource Name (ARN) of the license configuration.
- On success, responds with
ListTagsForResourceOutputwith field(s):tags(Option<Vec<Tag>>):Information about the tags.
- On failure, responds with
SdkError<ListTagsForResourceError>
Constructs a fluent builder for the ListTokens operation.
- The fluent builder is configurable:
token_ids(Vec<String>)/set_token_ids(Option<Vec<String>>):Token IDs.
filters(Vec<Filter>)/set_filters(Option<Vec<Filter>>):Filters to scope the results. The following filter is supported:
-
LicenseArns
-
next_token(impl Into<String>)/set_next_token(Option<String>):Token for the next set of results.
max_results(i32)/set_max_results(Option<i32>):Maximum number of results to return in a single call.
- On success, responds with
ListTokensOutputwith field(s):tokens(Option<Vec<TokenData>>):Received token details.
next_token(Option<String>):Token for the next set of results.
- On failure, responds with
SdkError<ListTokensError>
pub fn list_usage_for_license_configuration(
&self
) -> ListUsageForLicenseConfiguration<C, M, R>
pub fn list_usage_for_license_configuration(
&self
) -> ListUsageForLicenseConfiguration<C, M, R>
Constructs a fluent builder for the ListUsageForLicenseConfiguration operation.
- The fluent builder is configurable:
license_configuration_arn(impl Into<String>)/set_license_configuration_arn(Option<String>):Amazon Resource Name (ARN) of the license configuration.
max_results(i32)/set_max_results(Option<i32>):Maximum number of results to return in a single call.
next_token(impl Into<String>)/set_next_token(Option<String>):Token for the next set of results.
filters(Vec<Filter>)/set_filters(Option<Vec<Filter>>):Filters to scope the results. The following filters and logical operators are supported:
-
resourceArn- The ARN of the license configuration resource. Logical operators areEQUALS|NOT_EQUALS. -
resourceType- The resource type (EC2_INSTANCE|EC2_HOST|EC2_AMI|SYSTEMS_MANAGER_MANAGED_INSTANCE). Logical operators areEQUALS|NOT_EQUALS. -
resourceAccount- The ID of the account that owns the resource. Logical operators areEQUALS|NOT_EQUALS.
-
- On success, responds with
ListUsageForLicenseConfigurationOutputwith field(s):license_configuration_usage_list(Option<Vec<LicenseConfigurationUsage>>):Information about the license configurations.
next_token(Option<String>):Token for the next set of results.
- On failure, responds with
SdkError<ListUsageForLicenseConfigurationError>
Constructs a fluent builder for the RejectGrant operation.
- The fluent builder is configurable:
grant_arn(impl Into<String>)/set_grant_arn(Option<String>):Amazon Resource Name (ARN) of the grant.
- On success, responds with
RejectGrantOutputwith field(s):grant_arn(Option<String>):Grant ARN.
status(Option<GrantStatus>):Grant status.
version(Option<String>):Grant version.
- On failure, responds with
SdkError<RejectGrantError>
Constructs a fluent builder for the TagResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):Amazon Resource Name (ARN) of the license configuration.
tags(Vec<Tag>)/set_tags(Option<Vec<Tag>>):One or more tags.
- On success, responds with
TagResourceOutput - On failure, responds with
SdkError<TagResourceError>
Constructs a fluent builder for the UntagResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):Amazon Resource Name (ARN) of the license configuration.
tag_keys(Vec<String>)/set_tag_keys(Option<Vec<String>>):Keys identifying the tags to remove.
- On success, responds with
UntagResourceOutput - On failure, responds with
SdkError<UntagResourceError>
Constructs a fluent builder for the UpdateLicenseConfiguration operation.
- The fluent builder is configurable:
license_configuration_arn(impl Into<String>)/set_license_configuration_arn(Option<String>):Amazon Resource Name (ARN) of the license configuration.
license_configuration_status(LicenseConfigurationStatus)/set_license_configuration_status(Option<LicenseConfigurationStatus>):New status of the license configuration.
license_rules(Vec<String>)/set_license_rules(Option<Vec<String>>):New license rule. The only rule that you can add after you create a license configuration is licenseAffinityToHost.
license_count(i64)/set_license_count(Option<i64>):New number of licenses managed by the license configuration.
license_count_hard_limit(bool)/set_license_count_hard_limit(Option<bool>):New hard limit of the number of available licenses.
name(impl Into<String>)/set_name(Option<String>):New name of the license configuration.
description(impl Into<String>)/set_description(Option<String>):New description of the license configuration.
product_information_list(Vec<ProductInformation>)/set_product_information_list(Option<Vec<ProductInformation>>):New product information.
disassociate_when_not_found(bool)/set_disassociate_when_not_found(Option<bool>):When true, disassociates a resource when software is uninstalled.
- On success, responds with
UpdateLicenseConfigurationOutput - On failure, responds with
SdkError<UpdateLicenseConfigurationError>
pub fn update_license_manager_report_generator(
&self
) -> UpdateLicenseManagerReportGenerator<C, M, R>
pub fn update_license_manager_report_generator(
&self
) -> UpdateLicenseManagerReportGenerator<C, M, R>
Constructs a fluent builder for the UpdateLicenseManagerReportGenerator operation.
- The fluent builder is configurable:
license_manager_report_generator_arn(impl Into<String>)/set_license_manager_report_generator_arn(Option<String>):Amazon Resource Name (ARN) of the report generator to update.
report_generator_name(impl Into<String>)/set_report_generator_name(Option<String>):Name of the report generator.
r#type(Vec<ReportType>)/set_type(Option<Vec<ReportType>>):Type of reports to generate. The following report types are supported:
-
License configuration report - Reports the number and details of consumed licenses for a license configuration.
-
Resource report - Reports the tracked licenses and resource consumption for a license configuration.
-
report_context(ReportContext)/set_report_context(Option<ReportContext>):The report context.
report_frequency(ReportFrequency)/set_report_frequency(Option<ReportFrequency>):Frequency by which reports are generated.
client_token(impl Into<String>)/set_client_token(Option<String>):Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
description(impl Into<String>)/set_description(Option<String>):Description of the report generator.
- On success, responds with
UpdateLicenseManagerReportGeneratorOutput - On failure, responds with
SdkError<UpdateLicenseManagerReportGeneratorError>
pub fn update_license_specifications_for_resource(
&self
) -> UpdateLicenseSpecificationsForResource<C, M, R>
pub fn update_license_specifications_for_resource(
&self
) -> UpdateLicenseSpecificationsForResource<C, M, R>
Constructs a fluent builder for the UpdateLicenseSpecificationsForResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):Amazon Resource Name (ARN) of the Amazon Web Services resource.
add_license_specifications(Vec<LicenseSpecification>)/set_add_license_specifications(Option<Vec<LicenseSpecification>>):ARNs of the license configurations to add.
remove_license_specifications(Vec<LicenseSpecification>)/set_remove_license_specifications(Option<Vec<LicenseSpecification>>):ARNs of the license configurations to remove.
- On success, responds with
UpdateLicenseSpecificationsForResourceOutput - On failure, responds with
SdkError<UpdateLicenseSpecificationsForResourceError>
Constructs a fluent builder for the UpdateServiceSettings operation.
- The fluent builder is configurable:
s3_bucket_arn(impl Into<String>)/set_s3_bucket_arn(Option<String>):Amazon Resource Name (ARN) of the Amazon S3 bucket where the License Manager information is stored.
sns_topic_arn(impl Into<String>)/set_sns_topic_arn(Option<String>):Amazon Resource Name (ARN) of the Amazon SNS topic used for License Manager alerts.
organization_configuration(OrganizationConfiguration)/set_organization_configuration(Option<OrganizationConfiguration>):Enables integration with Organizations for cross-account discovery.
enable_cross_accounts_discovery(bool)/set_enable_cross_accounts_discovery(Option<bool>):Activates cross-account discovery.
- On success, responds with
UpdateServiceSettingsOutput - On failure, responds with
SdkError<UpdateServiceSettingsError>
Creates a client with the given service config and connector override.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for Client<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for Client<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