Skip to main content

associated_resources

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

Overview

Nameassociated_resources
TypeResource
Idaws.servicecatalog_appregistry.associated_resources

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
application_tag_resultobjectThe result of the application that's tag applied to a resource.
optionsarrayDetermines whether an application tag is applied or skipped.
resourceobjectThe resource associated with the application.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_associated_resourceselectapplication, resource_type, resource, regionnextToken, resourceTagStatus, maxResultsGets the resource associated with the application.
list_associated_resourcesselectapplication, regionnextToken, maxResultsLists all of the resources that are associated with the specified application. Results are paginated. If you share an application, and a consumer account associates a tag query to the application, all of the users who can access the application can also view the tag values in all accounts that are associated with it using this API.

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
applicationstringThe name, ID, or ARN of the application.
regionstringAWS region (default: us-east-1)
resourcestringThe name or ID of the resource associated with the application.
resource_typestringThe type of resource associated with the application.
maxResultsintegerThe upper bound of the number of results to return (cannot exceed 25). If this parameter is omitted, it defaults to 25. This value is optional.
nextTokenstringThe token to use to get the next page of results after a previous API call.
resourceTagStatusarrayStates whether an application tag is applied, not applied, in the process of being applied, or skipped.

SELECT examples

Gets the resource associated with the application.

SELECT
application_tag_result,
options,
resource
FROM aws.servicecatalog_appregistry.associated_resources
WHERE application = '{{ application }}' -- required
AND resource_type = '{{ resource_type }}' -- required
AND resource = '{{ resource }}' -- required
AND region = '{{ region }}' -- required
AND nextToken = '{{ nextToken }}'
AND resourceTagStatus = '{{ resourceTagStatus }}'
AND maxResults = '{{ maxResults }}'
;