updateServiceSettings method
Future<void>
updateServiceSettings({
- bool? enableCrossAccountsDiscovery,
- OrganizationConfiguration? organizationConfiguration,
- String? s3BucketArn,
- String? snsTopicArn,
Updates License Manager settings for the current Region.
May throw InvalidParameterValueException. May throw ServerInternalException. May throw AuthorizationException. May throw AccessDeniedException. May throw RateLimitExceededException.
Parameter enableCrossAccountsDiscovery
:
Activates cross-account discovery.
Parameter organizationConfiguration
:
Enables integration with AWS Organizations for cross-account discovery.
Parameter s3BucketArn
:
Amazon Resource Name (ARN) of the Amazon S3 bucket where the License
Manager information is stored.
Parameter snsTopicArn
:
Amazon Resource Name (ARN) of the Amazon SNS topic used for License
Manager alerts.
Implementation
Future<void> updateServiceSettings({
bool? enableCrossAccountsDiscovery,
OrganizationConfiguration? organizationConfiguration,
String? s3BucketArn,
String? snsTopicArn,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSLicenseManager.UpdateServiceSettings'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (enableCrossAccountsDiscovery != null)
'EnableCrossAccountsDiscovery': enableCrossAccountsDiscovery,
if (organizationConfiguration != null)
'OrganizationConfiguration': organizationConfiguration,
if (s3BucketArn != null) 'S3BucketArn': s3BucketArn,
if (snsTopicArn != null) 'SnsTopicArn': snsTopicArn,
},
);
}