Skip to main content

application_status_check_associations

Creates, updates, deletes, gets or lists an application_status_check_associations resource.

Overview

Nameapplication_status_check_associations
TypeResource
Idaws.ec2.application_status_check_associations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
application_status_check_idstringThe ID of the application status check.
association_typestringThe type of target that the application status check is associated with. Possible values: tag – The check applies to current and future instances with a matching tag key-value pair. instance-id – The check applies to a specific instance.
keystringThe key for the association. This value is present only for tag-based associations, where it contains the tag key. For instance-based associations, this value is absent.
valuestringThe value for the association target. For tag-based associations, this is the tag value. For instance-based associations, this is the instance ID (for example, i-0123456789abcdef0).

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_application_status_check_associationsselectregionApplicationStatusCheckId, Filter, MaxResults, NextToken, DryRunDescribes the associations for one or more application status checks. For more information, see Application status checks. To avoid timeouts and retrieve complete results, use the pagination parameters. The order of the elements in the response, including those within nested structures, might vary.

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)
ApplicationStatusCheckIdarrayThe IDs of the application status checks for which to describe associations.
DryRunbooleanChecks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
FilterarrayThe filters to use to limit the results. association-type – The type of association. Valid values: tag and instance-id.
MaxResultsintegerThe maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination.
NextTokenstringThe token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.

SELECT examples

Describes the associations for one or more application status checks. For more information, see Application status checks. To avoid timeouts and retrieve complete results, use the pagination parameters. The order of the elements in the response, including those within nested structures, might vary.

SELECT
application_status_check_id,
association_type,
key,
value
FROM aws.ec2.application_status_check_associations
WHERE region = '{{ region }}' -- required
AND ApplicationStatusCheckId = '{{ ApplicationStatusCheckId }}'
AND Filter = '{{ Filter }}'
AND MaxResults = '{{ MaxResults }}'
AND NextToken = '{{ NextToken }}'
AND DryRun = '{{ DryRun }}'
;