updateLicenseAssetGroup method
- required List<
String> associatedLicenseAssetRulesetARNs, - required String clientToken,
- required String licenseAssetGroupArn,
- String? description,
- List<
LicenseAssetGroupConfiguration> ? licenseAssetGroupConfigurations, - String? name,
- List<
LicenseAssetGroupProperty> ? properties, - LicenseAssetGroupStatus? status,
Updates a license asset group.
May throw AccessDeniedException.
May throw AuthorizationException.
May throw InvalidParameterValueException.
May throw RateLimitExceededException.
May throw ServerInternalException.
May throw ValidationException.
Parameter associatedLicenseAssetRulesetARNs :
ARNs of associated license asset rulesets.
Parameter clientToken :
Unique, case-sensitive identifier that you provide to ensure the
idempotency of the request.
Parameter licenseAssetGroupArn :
Amazon Resource Name (ARN) of the license asset group.
Parameter description :
License asset group description.
Parameter licenseAssetGroupConfigurations :
License asset group configurations.
Parameter name :
License asset group name.
Parameter properties :
License asset group properties.
Parameter status :
License asset group status. The possible values are ACTIVE |
DISABLED.
Implementation
Future<UpdateLicenseAssetGroupResponse> updateLicenseAssetGroup({
required List<String> associatedLicenseAssetRulesetARNs,
required String clientToken,
required String licenseAssetGroupArn,
String? description,
List<LicenseAssetGroupConfiguration>? licenseAssetGroupConfigurations,
String? name,
List<LicenseAssetGroupProperty>? properties,
LicenseAssetGroupStatus? status,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSLicenseManager.UpdateLicenseAssetGroup'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'AssociatedLicenseAssetRulesetARNs': associatedLicenseAssetRulesetARNs,
'ClientToken': clientToken,
'LicenseAssetGroupArn': licenseAssetGroupArn,
if (description != null) 'Description': description,
if (licenseAssetGroupConfigurations != null)
'LicenseAssetGroupConfigurations': licenseAssetGroupConfigurations,
if (name != null) 'Name': name,
if (properties != null) 'Properties': properties,
if (status != null) 'Status': status.value,
},
);
return UpdateLicenseAssetGroupResponse.fromJson(jsonResponse.body);
}