AWS Resource Explorer

2022/11/08 - AWS Resource Explorer - 19 new api methods

Changes  This is the initial SDK release for AWS Resource Explorer. AWS Resource Explorer lets your users search for and discover your AWS resources across the AWS Regions in your account.

UpdateIndexType (new) Link ¶

Changes the type of the index from one of the following types to the other. For more information about indexes and the role they perform in Amazon Web Services Resource Explorer, see Turning on cross-Region search by creating an aggregator index in the Amazon Web Services Resource Explorer User Guide .

  • ``AGGREGATOR`` index type The index contains information about resources from all Amazon Web Services Regions in the Amazon Web Services account in which you've created a Resource Explorer index. Resource information from all other Regions is replicated to this Region's index. When you change the index type to AGGREGATOR , Resource Explorer turns on replication of all discovered resource information from the other Amazon Web Services Regions in your account to this index. You can then, from this Region only, perform resource search queries that span all Amazon Web Services Regions in the Amazon Web Services account. Turning on replication from all other Regions is performed by asynchronous background tasks. You can check the status of the asynchronous tasks by using the GetIndex operation. When the asynchronous tasks complete, the Status response of that operation changes from UPDATING to ACTIVE . After that, you can start to see results from other Amazon Web Services Regions in query results. However, it can take several hours for replication from all other Regions to complete.

Warning

You can have only one aggregator index per Amazon Web Services account. Before you can promote a different index to be the aggregator index for the account, you must first demote the existing aggregator index to type LOCAL .

  • ``LOCAL`` index type The index contains information about resources in only the Amazon Web Services Region in which the index exists. If an aggregator index in another Region exists, then information in this local index is replicated to the aggregator index. When you change the index type to LOCAL , Resource Explorer turns off the replication of resource information from all other Amazon Web Services Regions in the Amazon Web Services account to this Region. The aggregator index remains in the UPDATING state until all replication with other Regions successfully stops. You can check the status of the asynchronous task by using the GetIndex operation. When Resource Explorer successfully stops all replication with other Regions, the Status response of that operation changes from UPDATING to ACTIVE . Separately, the resource information from other Regions that was previously stored in the index is deleted within 30 days by another background task. Until that asynchronous task completes, some results from other Regions can continue to appear in search results.

Warning

After you demote an aggregator index to a local index, you must wait 24 hours before you can promote another index to be the new aggregator index for the account.

See also: AWS API Documentation

Request Syntax

client.update_index_type(
    Arn='string',
    Type='LOCAL'|'AGGREGATOR'
)
type Arn

string

param Arn

[REQUIRED]

The Amazon resource name (ARN) of the index that you want to update.

type Type

string

param Type

[REQUIRED]

The type of the index. To understand the difference between LOCAL and AGGREGATOR , see Turning on cross-Region search in the Amazon Web Services Resource Explorer User Guide .

rtype

dict

returns

Response Syntax

{
    'Arn': 'string',
    'LastUpdatedAt': datetime(2015, 1, 1),
    'State': 'CREATING'|'ACTIVE'|'DELETING'|'DELETED'|'UPDATING',
    'Type': 'LOCAL'|'AGGREGATOR'
}

Response Structure

  • (dict) --

    • Arn (string) --

      The Amazon resource name (ARN) of the index that you updated.

    • LastUpdatedAt (datetime) --

      The date and timestamp when the index was last updated.

    • State (string) --

      Indicates the state of the request to update the index. This operation is asynchronous. Call the GetIndex operation to check for changes.

    • Type (string) --

      Specifies the type of the specified index after the operation completes.

GetView (new) Link ¶

Retrieves details of the specified view.

See also: AWS API Documentation

Request Syntax

client.get_view(
    ViewArn='string'
)
type ViewArn

string

param ViewArn

[REQUIRED]

The Amazon resource name (ARN) of the view that you want information about.

rtype

dict

returns

Response Syntax

{
    'Tags': {
        'string': 'string'
    },
    'View': {
        'Filters': {
            'FilterString': 'string'
        },
        'IncludedProperties': [
            {
                'Name': 'string'
            },
        ],
        'LastUpdatedAt': datetime(2015, 1, 1),
        'Owner': 'string',
        'Scope': 'string',
        'ViewArn': 'string'
    }
}

Response Structure

  • (dict) --

    • Tags (dict) --

      Tag key and value pairs that are attached to the view.

      • (string) --

        • (string) --

    • View (dict) --

      A structure that contains the details for the requested view.

      • Filters (dict) --

        An array of SearchFilter objects that specify which resources can be included in the results of queries made using this view.

        • FilterString (string) --

          The string that contains the search keywords, prefixes, and operators to control the results that can be returned by a Search operation. For more details, see Search query syntax .

      • IncludedProperties (list) --

        A structure that contains additional information about the view.

        • (dict) --

          Information about an additional property that describes a resource, that you can optionally include in the view. This lets you view that property in search results, and filter your search results based on the value of the property.

          • Name (string) --

            The name of the property that is included in this view.

            You can specify the following property names for this field:

            • Tags

      • LastUpdatedAt (datetime) --

        The date and time when this view was last modified.

      • Owner (string) --

        The Amazon Web Services account that owns this view.

      • Scope (string) --

        An Amazon resource name (ARN) of an Amazon Web Services account, an organization, or an organizational unit (OU) that specifies whether this view includes resources from only the specified Amazon Web Services account, all accounts in the specified organization, or all accounts in the specified OU.

        If not specified, the value defaults to the Amazon Web Services account used to call this operation.

      • ViewArn (string) --

        The Amazon resource name (ARN) of the view.

DeleteView (new) Link ¶

Deletes the specified view.

If the specified view is the default view for its Amazon Web Services Region, then all Search operations in that Region must explicitly specify the view to use until you configure a new default by calling the AssociateDefaultView operation.

See also: AWS API Documentation

Request Syntax

client.delete_view(
    ViewArn='string'
)
type ViewArn

string

param ViewArn

[REQUIRED]

The Amazon resource name (ARN) of the view that you want to delete.

rtype

dict

returns

Response Syntax

{
    'ViewArn': 'string'
}

Response Structure

ListIndexes (new) Link ¶

Retrieves a list of all of the indexes in Amazon Web Services Regions that are currently collecting resource information for Amazon Web Services Resource Explorer.

See also: AWS API Documentation

Request Syntax

client.list_indexes(
    MaxResults=123,
    NextToken='string',
    Regions=[
        'string',
    ],
    Type='LOCAL'|'AGGREGATOR'
)
type MaxResults

integer

param MaxResults

The maximum number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value appropriate to the operation. If additional items exist beyond those included in the current response, the NextToken response element is present and has a value (is not null). Include that value as the NextToken request parameter in the next call to the operation to get the next part of the results.

Note

An API operation can return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.

type NextToken

string

param NextToken

The parameter for receiving additional results if you receive a NextToken response in a previous request. A NextToken response indicates that more output is available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from.

type Regions

list

param Regions

If specified, limits the response to only information about the index in the specified list of Amazon Web Services Regions.

  • (string) --

type Type

string

param Type

If specified, limits the output to only indexes of the specified Type, either LOCAL or AGGREGATOR .

Use this option to discover the aggregator index for your account.

rtype

dict

returns

Response Syntax

{
    'Indexes': [
        {
            'Arn': 'string',
            'Region': 'string',
            'Type': 'LOCAL'|'AGGREGATOR'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • Indexes (list) --

      A structure that contains the details and status of each index.

      • (dict) --

        An index is the data store used by Amazon Web Services Resource Explorer to hold information about your Amazon Web Services resources that the service discovers. Creating an index in an Amazon Web Services Region turns on Resource Explorer and lets it discover your resources.

        By default, an index is local , meaning that it contains information about resources in only the same Region as the index. However, you can promote the index of one Region in the account by calling UpdateIndexType to convert it into an aggregator index. The aggregator index receives a replicated copy of the index information from all other Regions where Resource Explorer is turned on. This allows search operations in that Region to return results from all Regions in the account.

        • Arn (string) --

          The Amazon resource name (ARN) of the index.

        • Region (string) --

          The Amazon Web Services Region in which the index exists.

        • Type (string) --

          The type of index. It can be one of the following values:

          • LOCAL – The index contains information about resources from only the same Amazon Web Services Region.

          • AGGREGATOR – Resource Explorer replicates copies of the indexed information about resources in all other Amazon Web Services Regions to the aggregator index. This lets search results in the Region with the aggregator index to include resources from all Regions in the account where Resource Explorer is turned on.

    • NextToken (string) --

      If present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null .

GetDefaultView (new) Link ¶

Retrieves the Amazon Resource Name (ARN) of the view that is the default for the Amazon Web Services Region in which you call this operation. You can then call GetView to retrieve the details of that view.

See also: AWS API Documentation

Request Syntax

client.get_default_view()
rtype

dict

returns

Response Syntax

{
    'ViewArn': 'string'
}

Response Structure

  • (dict) --

    • ViewArn (string) --

      The Amazon resource name (ARN) of the view that is the current default for the Amazon Web Services Region in which you called this operation.

ListViews (new) Link ¶

Lists the Amazon resource names (ARNs) of the views available in the Amazon Web Services Region in which you call this operation.

Note

Always check the NextToken response parameter for a null value when calling a paginated operation. These operations can occasionally return an empty set of results even when there are more results available. The NextToken response parameter value is null only when there are no more results to display.

See also: AWS API Documentation

Request Syntax

client.list_views(
    MaxResults=123,
    NextToken='string'
)
type MaxResults

integer

param MaxResults

The maximum number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value appropriate to the operation. If additional items exist beyond those included in the current response, the NextToken response element is present and has a value (is not null). Include that value as the NextToken request parameter in the next call to the operation to get the next part of the results.

Note

An API operation can return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.

type NextToken

string

param NextToken

The parameter for receiving additional results if you receive a NextToken response in a previous request. A NextToken response indicates that more output is available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from.

rtype

dict

returns

Response Syntax

{
    'NextToken': 'string',
    'Views': [
        'string',
    ]
}

Response Structure

  • (dict) --

    • NextToken (string) --

      If present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null .

    • Views (list) --

      The list of views available in the Amazon Web Services Region in which you called this operation.

      • (string) --

DeleteIndex (new) Link ¶

Deletes the specified index and turns off Amazon Web Services Resource Explorer in the specified Amazon Web Services Region. When you delete an index, Resource Explorer stops discovering and indexing resources in that Region. Resource Explorer also deletes all views in that Region. These actions occur as asynchronous background tasks. You can check to see when the actions are complete by using the GetIndex operation and checking the Status response value.

See also: AWS API Documentation

Request Syntax

client.delete_index(
    Arn='string'
)
type Arn

string

param Arn

[REQUIRED]

The Amazon resource name (ARN) of the index that you want to delete.

rtype

dict

returns

Response Syntax

{
    'Arn': 'string',
    'LastUpdatedAt': datetime(2015, 1, 1),
    'State': 'CREATING'|'ACTIVE'|'DELETING'|'DELETED'|'UPDATING'
}

Response Structure

  • (dict) --

    • Arn (string) --

      The Amazon resource name (ARN) of the index that you successfully started the deletion process.

      Note

      This operation is asynchronous. To check its status, call the GetIndex operation.

    • LastUpdatedAt (datetime) --

      The date and time when you last updated this index.

    • State (string) --

      Indicates the current state of the index.

CreateIndex (new) Link ¶

Turns on Amazon Web Services Resource Explorer in the Amazon Web Services Region in which you called this operation by creating an index. Resource Explorer begins discovering the resources in this Region and stores the details about the resources in the index so that they can be queried by using the Search operation. You can create only one index in a Region.

Note

This operation creates only a local index. To promote the local index in one Amazon Web Services Region into the aggregator index for the Amazon Web Services account, use the UpdateIndexType operation. For more information, see Turning on cross-Region search by creating an aggregator index in the Amazon Web Services Resource Explorer User Guide .

For more details about what happens when you turn on Resource Explorer in an Amazon Web Services Region, see Turn on Resource Explorer to index your resources in an Amazon Web Services Region in the Amazon Web Services Resource Explorer User Guide .

If this is the first Amazon Web Services Region in which you've created an index for Resource Explorer, then this operation also creates a service-linked role in your Amazon Web Services account that allows Resource Explorer to enumerate your resources to populate the index.

<ul> <li> <p> <b>Action</b>: <code>resource-explorer-2:CreateIndex</code> </p> <p> <b>Resource</b>: The ARN of the index (as it will exist after the operation completes) in the Amazon Web Services Region and account in which you're trying to create the index. Use the wildcard character (<code>*</code>) at the end of the string to match the eventual UUID. For example, the following <code>Resource</code> element restricts the role or user to creating an index in only the <code>us-east-2</code> Region of the specified account.</p> <p> <code>"Resource": "arn:aws:resource-explorer-2:us-east-2:<i>&lt;account-id&gt;</i>:index/*"</code> </p> <p>Alternatively, you can use <code>"Resource": "*"</code> to allow the role or user to create an index in any Region.</p> </li> <li> <p> <b>Action</b>: <code>iam:CreateServiceLinkedRole</code> </p> <p> <b>Resource</b>: No specific resource (*). </p> <p>This permission is required only the first time you create an index to turn on Resource Explorer in the account. Resource Explorer uses this to create the <a href="https://docs.aws.amazon.com/resource-explorer/latest/userguide/security_iam_service-linked-roles.html">service-linked role needed to index the resources in your account</a>. Resource Explorer uses the same service-linked role for all additional indexes you create afterwards.</p> </li> </ul>

See also: AWS API Documentation

Request Syntax

client.create_index(
    ClientToken='string',
    Tags={
        'string': 'string'
    }
)
type ClientToken

string

param ClientToken

This value helps ensure idempotency. Resource Explorer uses this value to prevent the accidental creation of duplicate versions. We recommend that you generate a UUID-type value to ensure the uniqueness of your views.

This field is autopopulated if not provided.

type Tags

dict

param Tags

The specified tags are attached only to the index created in this Amazon Web Services Region. The tags aren't attached to any of the resources listed in the index.

  • (string) --

    • (string) --

rtype

dict

returns

Response Syntax

{
    'Arn': 'string',
    'CreatedAt': datetime(2015, 1, 1),
    'State': 'CREATING'|'ACTIVE'|'DELETING'|'DELETED'|'UPDATING'
}

Response Structure

  • (dict) --

    • Arn (string) --

      The ARN of the new local index for the Region. You can reference this ARN in IAM permission policies to authorize the following operations: DeleteIndex | GetIndex | UpdateIndexType | CreateView

    • CreatedAt (datetime) --

      The date and timestamp when the index was created.

    • State (string) --

      Indicates the current state of the index. You can check for changes to the state for asynchronous operations by calling the GetIndex operation.

      Note

      The state can remain in the CREATING or UPDATING state for several hours as Resource Explorer discovers the information about your resources and populates the index.

BatchGetView (new) Link ¶

Retrieves details about a list of views.

See also: AWS API Documentation

Request Syntax

client.batch_get_view(
    ViewArns=[
        'string',
    ]
)
type ViewArns

list

param ViewArns

A list of Amazon resource names (ARNs) that identify the views you want details for.

  • (string) --

rtype

dict

returns

Response Syntax

{
    'Errors': [
        {
            'ErrorMessage': 'string',
            'ViewArn': 'string'
        },
    ],
    'Views': [
        {
            'Filters': {
                'FilterString': 'string'
            },
            'IncludedProperties': [
                {
                    'Name': 'string'
                },
            ],
            'LastUpdatedAt': datetime(2015, 1, 1),
            'Owner': 'string',
            'Scope': 'string',
            'ViewArn': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    • Errors (list) --

      If any of the specified ARNs result in an error, then this structure describes the error.

      • (dict) --

        A collection of error messages for any views that Amazon Web Services Resource Explorer couldn't retrieve details.

        • ErrorMessage (string) --

          The description of the error for the specified view.

        • ViewArn (string) --

          The Amazon resource name (ARN) of the view for which Resource Explorer failed to retrieve details.

    • Views (list) --

      A structure with a list of objects with details for each of the specified views.

      • (dict) --

        A view is a structure that defines a set of filters that provide a view into the information in the Amazon Web Services Resource Explorer index. The filters specify which information from the index is visible to the users of the view. For example, you can specify filters that include only resources that are tagged with the key "ENV" and the value "DEVELOPMENT" in the results returned by this view. You could also create a second view that includes only resources that are tagged with "ENV" and "PRODUCTION".

        • Filters (dict) --

          An array of SearchFilter objects that specify which resources can be included in the results of queries made using this view.

          • FilterString (string) --

            The string that contains the search keywords, prefixes, and operators to control the results that can be returned by a Search operation. For more details, see Search query syntax .

        • IncludedProperties (list) --

          A structure that contains additional information about the view.

          • (dict) --

            Information about an additional property that describes a resource, that you can optionally include in the view. This lets you view that property in search results, and filter your search results based on the value of the property.

            • Name (string) --

              The name of the property that is included in this view.

              You can specify the following property names for this field:

              • Tags

        • LastUpdatedAt (datetime) --

          The date and time when this view was last modified.

        • Owner (string) --

          The Amazon Web Services account that owns this view.

        • Scope (string) --

          An Amazon resource name (ARN) of an Amazon Web Services account, an organization, or an organizational unit (OU) that specifies whether this view includes resources from only the specified Amazon Web Services account, all accounts in the specified organization, or all accounts in the specified OU.

          If not specified, the value defaults to the Amazon Web Services account used to call this operation.

        • ViewArn (string) --

          The Amazon resource name (ARN) of the view.

CreateView (new) Link ¶

Creates a view that users can query by using the Search operation. Results from queries that you make using this view include only resources that match the view's Filters . For more information about Amazon Web Services Resource Explorer views, see Managing views in the Amazon Web Services Resource Explorer User Guide .

Only the principals with an IAM identity-based policy that grants Allow to the Search action on a Resource with the Amazon resource name (ARN) of this view can Search using views you create with this operation.

See also: AWS API Documentation

Request Syntax

client.create_view(
    ClientToken='string',
    Filters={
        'FilterString': 'string'
    },
    IncludedProperties=[
        {
            'Name': 'string'
        },
    ],
    Tags={
        'string': 'string'
    },
    ViewName='string'
)
type ClientToken

string

param ClientToken

This value helps ensure idempotency. Resource Explorer uses this value to prevent the accidental creation of duplicate versions. We recommend that you generate a UUID-type value to ensure the uniqueness of your views.

This field is autopopulated if not provided.

type Filters

dict

param Filters

An array of strings that specify which resources are included in the results of queries made using this view. When you use this view in a Search operation, the filter string is combined with the search's QueryString parameter using a logical AND operator.

For information about the supported syntax, see Search query reference for Resource Explorer in the Amazon Web Services Resource Explorer User Guide .

Warning

This query string in the context of this operation supports only filter prefixes with optional operators . It doesn't support free-form text. For example, the string region:us* service:ec2 -tag:stage=prod includes all Amazon EC2 resources in any Amazon Web Services Region that begins with the letters us and is not tagged with a key Stage that has the value prod .

  • FilterString (string) -- [REQUIRED]

    The string that contains the search keywords, prefixes, and operators to control the results that can be returned by a Search operation. For more details, see Search query syntax .

type IncludedProperties

list

param IncludedProperties

Specifies optional fields that you want included in search results from this view. It is a list of objects that each describe a field to include.

The default is an empty list, with no optional fields included in the results.

  • (dict) --

    Information about an additional property that describes a resource, that you can optionally include in the view. This lets you view that property in search results, and filter your search results based on the value of the property.

    • Name (string) -- [REQUIRED]

      The name of the property that is included in this view.

      You can specify the following property names for this field:

      • Tags

type Tags

dict

param Tags

Tag key and value pairs that are attached to the view.

  • (string) --

    • (string) --

type ViewName

string

param ViewName

[REQUIRED]

The name of the new view. This name appears in the list of views in Resource Explorer.

The name must be no more than 64 characters long, and can include letters, digits, and the dash (-) character. The name must be unique within its Amazon Web Services Region.

rtype

dict

returns

Response Syntax

{
    'View': {
        'Filters': {
            'FilterString': 'string'
        },
        'IncludedProperties': [
            {
                'Name': 'string'
            },
        ],
        'LastUpdatedAt': datetime(2015, 1, 1),
        'Owner': 'string',
        'Scope': 'string',
        'ViewArn': 'string'
    }
}

Response Structure

  • (dict) --

    • View (dict) --

      A structure that contains the details about the new view.

      • Filters (dict) --

        An array of SearchFilter objects that specify which resources can be included in the results of queries made using this view.

        • FilterString (string) --

          The string that contains the search keywords, prefixes, and operators to control the results that can be returned by a Search operation. For more details, see Search query syntax .

      • IncludedProperties (list) --

        A structure that contains additional information about the view.

        • (dict) --

          Information about an additional property that describes a resource, that you can optionally include in the view. This lets you view that property in search results, and filter your search results based on the value of the property.

          • Name (string) --

            The name of the property that is included in this view.

            You can specify the following property names for this field:

            • Tags

      • LastUpdatedAt (datetime) --

        The date and time when this view was last modified.

      • Owner (string) --

        The Amazon Web Services account that owns this view.

      • Scope (string) --

        An Amazon resource name (ARN) of an Amazon Web Services account, an organization, or an organizational unit (OU) that specifies whether this view includes resources from only the specified Amazon Web Services account, all accounts in the specified organization, or all accounts in the specified OU.

        If not specified, the value defaults to the Amazon Web Services account used to call this operation.

      • ViewArn (string) --

        The Amazon resource name (ARN) of the view.

AssociateDefaultView (new) Link ¶

Sets the specified view as the default for the Amazon Web Services Region in which you call this operation. When a user performs a Search that doesn't explicitly specify which view to use, then Amazon Web Services Resource Explorer automatically chooses this default view for searches performed in this Amazon Web Services Region.

If an Amazon Web Services Region doesn't have a default view configured, then users must explicitly specify a view with every Search operation performed in that Region.

See also: AWS API Documentation

Request Syntax

client.associate_default_view(
    ViewArn='string'
)
type ViewArn

string

param ViewArn

[REQUIRED]

The Amazon resource name (ARN) of the view to set as the default for the Amazon Web Services Region and Amazon Web Services account in which you call this operation. The specified view must already exist in the called Region.

rtype

dict

returns

Response Syntax

{
    'ViewArn': 'string'
}

Response Structure

  • (dict) --

    • ViewArn (string) --

      The Amazon resource name (ARN) of the view that the operation set as the default for queries made in the Amazon Web Services Region and Amazon Web Services account in which you called this operation.

UpdateView (new) Link ¶

Modifies some of the details of a view. You can change the filter string and the list of included properties. You can't change the name of the view.

See also: AWS API Documentation

Request Syntax

client.update_view(
    Filters={
        'FilterString': 'string'
    },
    IncludedProperties=[
        {
            'Name': 'string'
        },
    ],
    ViewArn='string'
)
type Filters

dict

param Filters

An array of strings that specify which resources are included in the results of queries made using this view. When you use this view in a Search operation, the filter string is combined with the search's QueryString parameter using a logical AND operator.

For information about the supported syntax, see Search query reference for Resource Explorer in the Amazon Web Services Resource Explorer User Guide .

Warning

This query string in the context of this operation supports only filter prefixes with optional operators . It doesn't support free-form text. For example, the string region:us* service:ec2 -tag:stage=prod includes all Amazon EC2 resources in any Amazon Web Services Region that begins with the letters us and is not tagged with a key Stage that has the value prod .

  • FilterString (string) -- [REQUIRED]

    The string that contains the search keywords, prefixes, and operators to control the results that can be returned by a Search operation. For more details, see Search query syntax .

type IncludedProperties

list

param IncludedProperties

Specifies optional fields that you want included in search results from this view. It is a list of objects that each describe a field to include.

The default is an empty list, with no optional fields included in the results.

  • (dict) --

    Information about an additional property that describes a resource, that you can optionally include in the view. This lets you view that property in search results, and filter your search results based on the value of the property.

    • Name (string) -- [REQUIRED]

      The name of the property that is included in this view.

      You can specify the following property names for this field:

      • Tags

type ViewArn

string

param ViewArn

[REQUIRED]

The Amazon resource name (ARN) of the view that you want to modify.

rtype

dict

returns

Response Syntax

{
    'View': {
        'Filters': {
            'FilterString': 'string'
        },
        'IncludedProperties': [
            {
                'Name': 'string'
            },
        ],
        'LastUpdatedAt': datetime(2015, 1, 1),
        'Owner': 'string',
        'Scope': 'string',
        'ViewArn': 'string'
    }
}

Response Structure

  • (dict) --

    • View (dict) --

      Details about the view that you changed with this operation.

      • Filters (dict) --

        An array of SearchFilter objects that specify which resources can be included in the results of queries made using this view.

        • FilterString (string) --

          The string that contains the search keywords, prefixes, and operators to control the results that can be returned by a Search operation. For more details, see Search query syntax .

      • IncludedProperties (list) --

        A structure that contains additional information about the view.

        • (dict) --

          Information about an additional property that describes a resource, that you can optionally include in the view. This lets you view that property in search results, and filter your search results based on the value of the property.

          • Name (string) --

            The name of the property that is included in this view.

            You can specify the following property names for this field:

            • Tags

      • LastUpdatedAt (datetime) --

        The date and time when this view was last modified.

      • Owner (string) --

        The Amazon Web Services account that owns this view.

      • Scope (string) --

        An Amazon resource name (ARN) of an Amazon Web Services account, an organization, or an organizational unit (OU) that specifies whether this view includes resources from only the specified Amazon Web Services account, all accounts in the specified organization, or all accounts in the specified OU.

        If not specified, the value defaults to the Amazon Web Services account used to call this operation.

      • ViewArn (string) --

        The Amazon resource name (ARN) of the view.

UntagResource (new) Link ¶

Removes one or more tag key and value pairs from an Amazon Web Services Resource Explorer view or index.

See also: AWS API Documentation

Request Syntax

client.untag_resource(
    resourceArn='string',
    tagKeys=[
        'string',
    ]
)
type resourceArn

string

param resourceArn

[REQUIRED]

The Amazon Resource Name (ARN) of the view or index that you want to remove tags from.

type tagKeys

list

param tagKeys

[REQUIRED]

A list of the keys for the tags that you want to remove from the specified view or index.

  • (string) --

rtype

dict

returns

Response Syntax

{}

Response Structure

  • (dict) --

ListTagsForResource (new) Link ¶

Lists the tags that are attached to the specified resource.

See also: AWS API Documentation

Request Syntax

client.list_tags_for_resource(
    resourceArn='string'
)
type resourceArn

string

param resourceArn

[REQUIRED]

The Amazon resource name (ARN) of the view or index that you want to attach tags to.

rtype

dict

returns

Response Syntax

{
    'Tags': {
        'string': 'string'
    }
}

Response Structure

  • (dict) --

    • Tags (dict) --

      The tag key and value pairs that you want to attach to the specified view or index.

      • (string) --

        • (string) --

ListSupportedResourceTypes (new) Link ¶

Retrieves a list of all resource types currently supported by Amazon Web Services Resource Explorer.

See also: AWS API Documentation

Request Syntax

client.list_supported_resource_types(
    MaxResults=123,
    NextToken='string'
)
type MaxResults

integer

param MaxResults

The maximum number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value appropriate to the operation. If additional items exist beyond those included in the current response, the NextToken response element is present and has a value (is not null). Include that value as the NextToken request parameter in the next call to the operation to get the next part of the results.

Note

An API operation can return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.

type NextToken

string

param NextToken

The parameter for receiving additional results if you receive a NextToken response in a previous request. A NextToken response indicates that more output is available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from.

rtype

dict

returns

Response Syntax

{
    'NextToken': 'string',
    'ResourceTypes': [
        {
            'ResourceType': 'string',
            'Service': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    • NextToken (string) --

      If present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null .

    • ResourceTypes (list) --

      The list of resource types supported by Resource Explorer.

      • (dict) --

        A structure that describes a resource type supported by Amazon Web Services Resource Explorer.

        • ResourceType (string) --

          The unique identifier of the resource type.

        • Service (string) --

          The Amazon Web Service that is associated with the resource type. This is the primary service that lets you create and interact with resources of this type.

TagResource (new) Link ¶

Adds one or more tag key and value pairs to an Amazon Web Services Resource Explorer view or index.

See also: AWS API Documentation

Request Syntax

client.tag_resource(
    Tags={
        'string': 'string'
    },
    resourceArn='string'
)
type Tags

dict

param Tags

A list of tag key and value pairs that you want to attach to the specified view or index.

  • (string) --

    • (string) --

type resourceArn

string

param resourceArn

[REQUIRED]

The Amazon Resource Name (ARN) of the view or index that you want to attach tags to.

rtype

dict

returns

Response Syntax

{}

Response Structure

  • (dict) --

GetIndex (new) Link ¶

Retrieves details about the Amazon Web Services Resource Explorer index in the Amazon Web Services Region in which you invoked the operation.

See also: AWS API Documentation

Request Syntax

client.get_index()
rtype

dict

returns

Response Syntax

{
    'Arn': 'string',
    'CreatedAt': datetime(2015, 1, 1),
    'LastUpdatedAt': datetime(2015, 1, 1),
    'ReplicatingFrom': [
        'string',
    ],
    'ReplicatingTo': [
        'string',
    ],
    'State': 'CREATING'|'ACTIVE'|'DELETING'|'DELETED'|'UPDATING',
    'Tags': {
        'string': 'string'
    },
    'Type': 'LOCAL'|'AGGREGATOR'
}

Response Structure

  • (dict) --

    • Arn (string) --

      The Amazon resource name (ARN) of the index.

    • CreatedAt (datetime) --

      The date and time when the index was originally created.

    • LastUpdatedAt (datetime) --

      The date and time when the index was last updated.

    • ReplicatingFrom (list) --

      If this index is Type=AGGREGATOR , then this response value contains a list of the Amazon Web Services Regions that replicate their content to the index in this Region. Not present for a local index.

      • (string) --

    • ReplicatingTo (list) --

      Identifies the Amazon Web Services Region that has an index set to Type=AGGREGATOR , if one exists. If it does, then the Region you called this operation in replicates its index information to the Region specified in this response value. Not present if there isn't an aggregator index in the account.

      • (string) --

    • State (string) --

      Indicates the current state of the index in this Amazon Web Services Region.

    • Tags (dict) --

      Tag key and value pairs that are attached to the index.

      • (string) --

        • (string) --

    • Type (string) --

      Specifies the type of the index in this Region. For information about the aggregator index and how it differs from a local index, see Turning on cross-Region search by creating an aggregator index .

DisassociateDefaultView (new) Link ¶

After you call this operation, the affected Amazon Web Services Region no longer has a default view. All Search operations in that Region must explicitly specify a view or the operation fails. You can configure a new default by calling the AssociateDefaultView operation.

If an Amazon Web Services Region doesn't have a default view configured, then users must explicitly specify a view with every Search operation performed in that Region.

See also: AWS API Documentation

Request Syntax

client.disassociate_default_view()
returns

None