Skip to main content

configurations

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

Overview​

Nameconfigurations
TypeResource
Idaws.discovery.configurations

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
configurationobjectA key in the response map. The value is an array of data.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_configurationsselectregionRetrieves attributes for a list of configuration item IDs. All of the supplied IDs must be for the same asset type from one of the following: server application process connection Output fields are specific to the asset type specified. For example, the output for a server configuration item includes a list of attributes about the server, such as host name, operating system, number of network cards, etc. For a complete list of outputs for each asset type, see Using the DescribeConfigurations Action in the Amazon Web Services Application Discovery Service User Guide.
list_configurationsselectregionRetrieves a list of configuration items as specified by the value passed to the required parameter configurationType. Optional filtering may be applied to refine search results.
associate_configuration_items_to_applicationupdateregion, applicationConfigurationId, configurationIdsAssociates one or more configuration items with an application.
disassociate_configuration_items_from_applicationexecregion, applicationConfigurationId, configurationIdsDisassociates one or more configuration items from an application.
export_configurationsexecregionDeprecated. Use StartExportTask instead. Exports all discovered configuration data to an Amazon S3 bucket or an application that enables you to view and evaluate the data. Data includes tags and tag associations, processes, connections, servers, and system performance. This API returns an export ID that you can query using the DescribeExportConfigurations API. The system imposes a limit of two configuration exports in six hours.
start_batch_delete_configuration_taskexecregion, configurationType, configurationIdsTakes a list of configurationId as input and starts an asynchronous deletion task to remove the configurationItems. Returns a unique deletion task identifier.

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​

Retrieves attributes for a list of configuration item IDs. All of the supplied IDs must be for the same asset type from one of the following: server application process connection Output fields are specific to the asset type specified. For example, the output for a server configuration item includes a list of attributes about the server, such as host name, operating system, number of network cards, etc. For a complete list of outputs for each asset type, see Using the DescribeConfigurations Action in the Amazon Web Services Application Discovery Service User Guide.

SELECT
configuration
FROM aws.discovery.configurations
WHERE region = '{{ region }}' -- required
;

UPDATE examples​

Associates one or more configuration items with an application.

UPDATE aws.discovery.configurations
SET
applicationConfigurationId = '{{ applicationConfigurationId }}',
configurationIds = '{{ configurationIds }}'
WHERE
region = '{{ region }}' --required
AND applicationConfigurationId = '{{ applicationConfigurationId }}' --required
AND configurationIds = '{{ configurationIds }}' --required;

Lifecycle Methods​

Disassociates one or more configuration items from an application.

EXEC aws.discovery.configurations.disassociate_configuration_items_from_application
@region='{{ region }}' --required
@@json=
'{
"applicationConfigurationId": "{{ applicationConfigurationId }}",
"configurationIds": "{{ configurationIds }}"
}'
;