Skip to main content

service_settings

Creates, updates, deletes, gets or lists a service_settings resource.

Overview

Nameservice_settings
TypeResource
Idaws.license_manager.service_settings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
cross_region_discovery_home_regionstringCross region discovery home region.
cross_region_discovery_source_regionsarrayCross region discovery source regions.
enable_cross_accounts_discoverybooleanIndicates whether cross-account discovery is enabled.
license_manager_resource_share_arnstringAmazon Resource Name (ARN) of the resource share. The License Manager management account provides member accounts with access to this share.
organization_configurationobjectIndicates whether Organizations is integrated with License Manager for cross-account discovery.
s3_bucket_arnstringRegional S3 bucket path for storing reports, license trail event data, discovery data, and so on.
service_statusobjectService status.
sns_topic_arnstringSNS topic configured to receive notifications from License Manager.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_service_settingsselectregionGets the License Manager settings for the current Region.
update_service_settingsupdateregionUpdates License Manager settings for the current Region.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Gets the License Manager settings for the current Region.

SELECT
cross_region_discovery_home_region,
cross_region_discovery_source_regions,
enable_cross_accounts_discovery,
license_manager_resource_share_arn,
organization_configuration,
s3_bucket_arn,
service_status,
sns_topic_arn
FROM aws.license_manager.service_settings
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Updates License Manager settings for the current Region.

UPDATE aws.license_manager.service_settings
SET
S3BucketArn = '{{ S3BucketArn }}',
SnsTopicArn = '{{ SnsTopicArn }}',
OrganizationConfiguration = '{{ OrganizationConfiguration }}',
EnableCrossAccountsDiscovery = {{ EnableCrossAccountsDiscovery }},
EnabledDiscoverySourceRegions = '{{ EnabledDiscoverySourceRegions }}'
WHERE
region = '{{ region }}' --required;