list_resources_for_tag_option

ServiceCatalog.Client.list_resources_for_tag_option(**kwargs)

Lists the resources associated with the specified TagOption.

See also: AWS API Documentation

Request Syntax

response = client.list_resources_for_tag_option(
    TagOptionId='string',
    ResourceType='string',
    PageSize=123,
    PageToken='string'
)
Parameters
  • TagOptionId (string) --

    [REQUIRED]

    The TagOption identifier.

  • ResourceType (string) --

    The resource type.

    • Portfolio
    • Product
  • PageSize (integer) -- The maximum number of items to return with this call.
  • PageToken (string) -- The page token for the next set of results. To retrieve the first set of results, use null.
Return type

dict

Returns

Response Syntax

{
    'ResourceDetails': [
        {
            'Id': 'string',
            'ARN': 'string',
            'Name': 'string',
            'Description': 'string',
            'CreatedTime': datetime(2015, 1, 1)
        },
    ],
    'PageToken': 'string'
}

Response Structure

  • (dict) --

    • ResourceDetails (list) --

      Information about the resources.

      • (dict) --

        Information about a resource.

        • Id (string) --

          The identifier of the resource.

        • ARN (string) --

          The ARN of the resource.

        • Name (string) --

          The name of the resource.

        • Description (string) --

          The description of the resource.

        • CreatedTime (datetime) --

          The creation time of the resource.

    • PageToken (string) --

      The page token for the next set of results. To retrieve the first set of results, use null.

Exceptions

  • ServiceCatalog.Client.exceptions.TagOptionNotMigratedException
  • ServiceCatalog.Client.exceptions.ResourceNotFoundException
  • ServiceCatalog.Client.exceptions.InvalidParametersException