Skip to main content

components

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

Overview​

Namecomponents
TypeResource
Idaws.application_insights.components

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
application_componentobjectDescribes a standalone resource or similarly grouped resources that the application is made up of.
resource_listarrayThe list of resource ARNs that belong to the component.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_componentselectregionDescribes a component and lists the resources that are grouped together in a component.
list_componentsselectregionLists the auto-grouped, standalone, and custom components of the application.
create_componentinsertregion, ResourceGroupName, ComponentName, ResourceListCreates a custom component by grouping similar standalone instances to monitor.
update_componentupdateregion, ResourceGroupName, ComponentNameUpdates the custom component name and/or the list of resources that make up the component.
delete_componentdeleteregionUngroups a custom component. When you ungroup custom components, all applicable monitors that are set up for the component are removed and the instances revert to their standalone status.

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​

Describes a component and lists the resources that are grouped together in a component.

SELECT
application_component,
resource_list
FROM aws.application_insights.components
WHERE region = '{{ region }}' -- required
;

INSERT examples​

Creates a custom component by grouping similar standalone instances to monitor.

INSERT INTO aws.application_insights.components (
ResourceGroupName,
ComponentName,
ResourceList,
region
)
SELECT
'{{ ResourceGroupName }}' /* required */,
'{{ ComponentName }}' /* required */,
'{{ ResourceList }}' /* required */,
'{{ region }}'
;

UPDATE examples​

Updates the custom component name and/or the list of resources that make up the component.

UPDATE aws.application_insights.components
SET
ResourceGroupName = '{{ ResourceGroupName }}',
ComponentName = '{{ ComponentName }}',
NewComponentName = '{{ NewComponentName }}',
ResourceList = '{{ ResourceList }}'
WHERE
region = '{{ region }}' --required
AND ResourceGroupName = '{{ ResourceGroupName }}' --required
AND ComponentName = '{{ ComponentName }}' --required;

DELETE examples​

Ungroups a custom component. When you ungroup custom components, all applicable monitors that are set up for the component are removed and the instances revert to their standalone status.

DELETE FROM aws.application_insights.components
WHERE region = '{{ region }}' --required
;