Skip to main content

license_manager_report_generators

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

Overview

Namelicense_manager_report_generators
TypeResource
Idaws.license_manager.license_manager_report_generators

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
create_timestringTime the report was created.
descriptionstringDescription of the report generator.
last_report_generation_timestringTime the last report was generated at.
last_run_failure_reasonstringFailure message for the last report generation attempt.
last_run_statusstringStatus of the last report generation attempt.
license_manager_report_generator_arnstringAmazon Resource Name (ARN) of the report generator.
report_contextobjectLicense configuration type for this generator.
report_creator_accountstringThe Amazon Web Services account ID used to create the report generator.
report_frequencyobjectDetails about how frequently reports are generated.
report_generator_namestringName of the report generator.
report_typearrayType of reports that are generated.
s3_locationobjectDetails of the S3 bucket that report generator reports are published to.
tagsarrayTags associated with the report generator.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_license_manager_report_generatorselectregionGets information about the specified report generator.
list_license_manager_report_generatorsselectregionLists the report generators for your account.
create_license_manager_report_generatorinsertregion, ReportGeneratorName, Type, ReportContext, ReportFrequency, ClientTokenCreates a report generator.
update_license_manager_report_generatorupdateregion, LicenseManagerReportGeneratorArn, ReportGeneratorName, Type, ReportContext, ReportFrequency, ClientTokenUpdates a report generator. After you make changes to a report generator, it starts generating new reports within 60 minutes of being updated.
delete_license_manager_report_generatordeleteregionDeletes the specified report generator. This action deletes the report generator, which stops it from generating future reports. The action cannot be reversed. It has no effect on the previous reports from this generator.

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 information about the specified report generator.

SELECT
create_time,
description,
last_report_generation_time,
last_run_failure_reason,
last_run_status,
license_manager_report_generator_arn,
report_context,
report_creator_account,
report_frequency,
report_generator_name,
report_type,
s3_location,
tags
FROM aws.license_manager.license_manager_report_generators
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a report generator.

INSERT INTO aws.license_manager.license_manager_report_generators (
ReportGeneratorName,
Type,
ReportContext,
ReportFrequency,
ClientToken,
Description,
Tags,
region
)
SELECT
'{{ ReportGeneratorName }}' /* required */,
'{{ Type }}' /* required */,
'{{ ReportContext }}' /* required */,
'{{ ReportFrequency }}' /* required */,
'{{ ClientToken }}' /* required */,
'{{ Description }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
license_manager_report_generator_arn
;

UPDATE examples

Updates a report generator. After you make changes to a report generator, it starts generating new reports within 60 minutes of being updated.

UPDATE aws.license_manager.license_manager_report_generators
SET
LicenseManagerReportGeneratorArn = '{{ LicenseManagerReportGeneratorArn }}',
ReportGeneratorName = '{{ ReportGeneratorName }}',
Type = '{{ Type }}',
ReportContext = '{{ ReportContext }}',
ReportFrequency = '{{ ReportFrequency }}',
ClientToken = '{{ ClientToken }}',
Description = '{{ Description }}'
WHERE
region = '{{ region }}' --required
AND LicenseManagerReportGeneratorArn = '{{ LicenseManagerReportGeneratorArn }}' --required
AND ReportGeneratorName = '{{ ReportGeneratorName }}' --required
AND Type = '{{ Type }}' --required
AND ReportContext = '{{ ReportContext }}' --required
AND ReportFrequency = '{{ ReportFrequency }}' --required
AND ClientToken = '{{ ClientToken }}' --required;

DELETE examples

Deletes the specified report generator. This action deletes the report generator, which stops it from generating future reports. The action cannot be reversed. It has no effect on the previous reports from this generator.

DELETE FROM aws.license_manager.license_manager_report_generators
WHERE region = '{{ region }}' --required
;