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.
Retrieves details of the specified view.
See also: AWS API Documentation
Request Syntax
client.get_view( ViewArn='string' )
string
[REQUIRED]
The Amazon resource name (ARN) of the view that you want information about.
dict
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.
Retrieves details about a list of views.
See also: AWS API Documentation
Request Syntax
client.batch_get_view( ViewArns=[ 'string', ] )
list
A list of Amazon resource names (ARNs) that identify the views you want details for.
(string) --
dict
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.
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' )
string
[REQUIRED]
The Amazon resource name (ARN) of the view that you want to delete.
dict
Response Syntax
{ 'ViewArn': 'string' }
Response Structure
(dict) --
ViewArn (string) --
The Amazon resource name (ARN) of the view that you successfully deleted.
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.
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.
See also: AWS API Documentation
Request Syntax
client.update_index_type( Arn='string', Type='LOCAL'|'AGGREGATOR' )
string
[REQUIRED]
The Amazon resource name (ARN) of the index that you want to update.
string
[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.
dict
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.
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' )
string
[REQUIRED]
The Amazon resource name (ARN) of the index that you want to delete.
dict
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.
LastUpdatedAt (datetime) --
The date and time when you last updated this index.
State (string) --
Indicates the current state of the index.
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()
dict
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.
Lists the Amazon resource names (ARNs) of the views available in the Amazon Web Services Region in which you call this operation.
See also: AWS API Documentation
Request Syntax
client.list_views( MaxResults=123, NextToken='string' )
integer
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.
string
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.
dict
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) --
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' )
string
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.
dict
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.
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.
list
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
dict
Tag key and value pairs that are attached to the view.
(string) --
(string) --
string
[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.
dict
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.
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' )
string
[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.
dict
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.
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()
None
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' )
integer
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.
string
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.
list
If specified, limits the response to only information about the index in the specified list of Amazon Web Services Regions.
(string) --
string
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.
dict
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.
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' )
integer
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.
string
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.
dict
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.
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' )
dict
A list of tag key and value pairs that you want to attach to the specified view or index.
(string) --
(string) --
string
[REQUIRED]
The Amazon Resource Name (ARN) of the view or index that you want to attach tags to.
dict
Response Syntax
{}
Response Structure
(dict) --
Searches for resources and displays details about all resources that match the specified criteria. You must specify a query string.
All search queries must use a view. If you don't explicitly specify a view, then Amazon Web Services Resource Explorer uses the default view for the Amazon Web Services Region in which you call this operation. The results are the logical intersection of the results that match both the QueryString parameter supplied to this operation and the SearchFilter parameter attached to the view.
For the complete syntax supported by the QueryString parameter, see Search query syntax reference for Resource Explorer.
If your search results are empty, or are missing results that you think should be there, see Troubleshooting Resource Explorer search.
See also: AWS API Documentation
Request Syntax
client.search( MaxResults=123, NextToken='string', QueryString='string', ViewArn='string' )
integer
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.
string
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.
string
[REQUIRED]
A string that includes keywords and filters that specify the resources that you want to include in the results.
For the complete syntax supported by the QueryString parameter, see Search query syntax reference for Resource Explorer.
The search is completely case insensitive. You can specify an empty string to return all results up to the limit of 1,000 total results.
string
Specifies the Amazon resource name (ARN) of the view to use for the query. If you don't specify a value for this parameter, then the operation automatically uses the default view for the Amazon Web Services Region in which you called this operation. If the Region either doesn't have a default view or if you don't have permission to use the default view, then the operation fails with a 401 Unauthorized exception.
dict
Response Syntax
{ 'Count': { 'Complete': True|False, 'TotalResources': 123 }, 'NextToken': 'string', 'Resources': [ { 'Arn': 'string', 'LastReportedAt': datetime(2015, 1, 1), 'OwningAccountId': 'string', 'Properties': [ { 'Data': {...}|[...]|123|123.4|'string'|True|None, 'LastReportedAt': datetime(2015, 1, 1), 'Name': 'string' }, ], 'Region': 'string', 'ResourceType': 'string', 'Service': 'string' }, ], 'ViewArn': 'string' }
Response Structure
(dict) --
Count (dict) --
The number of resources that match the query.
Complete (boolean) --
Indicates whether the TotalResources value represents an exhaustive count of search results.
If True, it indicates that the search was exhaustive. Every resource that matches the query was counted.
If False, then the search reached the limit of 1,000 matching results, and stopped counting.
TotalResources (integer) --
The number of resources that match the search query. This value can't exceed 1,000. If there are more than 1,000 resources that match the query, then only 1,000 are counted and the Complete field is set to false. We recommend that you refine your query to return a smaller number of results.
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.
Resources (list) --
The list of structures that describe the resources that match the query.
(dict) --
A resource in Amazon Web Services that Amazon Web Services Resource Explorer has discovered, and for which it has stored information in the index of the Amazon Web Services Region that contains the resource.
Arn (string) --
The Amazon resource name (ARN) of the resource.
LastReportedAt (datetime) --
The date and time that Resource Explorer last queried this resource and updated the index with the latest information about the resource.
OwningAccountId (string) --
The Amazon Web Services account that owns the resource.
Properties (list) --
A structure with additional type-specific details about the resource. These properties can be added by turning on integration between Resource Explorer and other Amazon Web Services services.
(dict) --
A structure that describes a property of a resource.
Data (:ref:`document<document>`) --
Details about this property. The content of this field is a JSON object that varies based on the resource type.
LastReportedAt (datetime) --
The date and time that the information about this resource property was last updated.
Name (string) --
The name of this property of the resource.
Region (string) --
The Amazon Web Services Region in which the resource was created and exists.
ResourceType (string) --
The type of the resource.
Service (string) --
The Amazon Web Service that owns the resource and is responsible for creating and updating it.
ViewArn (string) --
The Amazon resource name (ARN) of the view that this operation used to perform the search.
Lists the tags that are attached to the specified resource.
See also: AWS API Documentation
Request Syntax
client.list_tags_for_resource( resourceArn='string' )
string
[REQUIRED]
The Amazon resource name (ARN) of the view or index that you want to attach tags to.
dict
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) --
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()
dict
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.
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' )
dict
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.
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.
list
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
string
[REQUIRED]
The Amazon resource name (ARN) of the view that you want to modify.
dict
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.
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.
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><account-id></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' } )
string
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.
dict
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) --
dict
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.
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', ] )
string
[REQUIRED]
The Amazon Resource Name (ARN) of the view or index that you want to remove tags from.
list
[REQUIRED]
A list of the keys for the tags that you want to remove from the specified view or index.
(string) --
dict
Response Syntax
{}
Response Structure
(dict) --