list_index
¶
list_index(
directory_arn: Arn,
index_reference: ObjectReference,
*,
config_overrides: Optional[CloudDirectoryClientConfig] = None,
ranges_on_indexed_values: Optional[ObjectAttributeRangeList] = None,
max_results: Optional[NumberResults] = None,
next_token: Optional[NextToken] = None,
consistency_level: Optional[ConsistencyLevel] = None,
) -> ListIndexResponse
Lists objects attached to the specified index.
Parameters:
-
directory_arn(Arn) –The ARN of the directory that the index exists in.
-
ranges_on_indexed_values(Optional[ObjectAttributeRangeList], default:None) –Specifies the ranges of indexed values that you want to query.
-
index_reference(ObjectReference) –The reference to the index to list.
-
max_results(Optional[NumberResults], default:None) –The maximum number of objects in a single page to retrieve from the index during a request. For more information, see Amazon Cloud Directory Limits.
-
next_token(Optional[NextToken], default:None) –The pagination token.
-
consistency_level(Optional[ConsistencyLevel], default:None) –The consistency level to execute the request at.
Raises:
-
AccessDeniedException–Access denied or directory not found. Either you don't have permissions for this directory or the directory does not exist. Try calling ListDirectories and check your permissions.
-
DirectoryNotEnabledException–Operations are only permitted on enabled directories.
-
FacetValidationException–The Facet that you provided was not well formed or could not be validated with the schema.
-
InternalServiceException–Indicates a problem that must be resolved by Amazon Web Services. This might be a transient error in which case you can retry your request until it succeeds. Otherwise, go to the AWS Service Health Dashboard site to see if there are any operational issues with the service.
-
InvalidArnException–Indicates that the provided ARN value is not valid.
-
InvalidNextTokenException–Indicates that the
NextTokenvalue is not valid. -
LimitExceededException–Indicates that limits are exceeded. See Limits for more information.
-
NotIndexException–Indicates that the requested operation can only operate on index objects.
-
ResourceNotFoundException–The specified resource could not be found.
-
RetryableConflictException–Occurs when a conflict with a previous successful write is detected. For example, if a write operation occurs on an object and then an attempt is made to read the object using “SERIALIZABLE” consistency, this exception may result. This generally occurs when the previous write did not have time to propagate to the host serving the current request. A retry (with appropriate backoff logic) is the recommended response to this exception.
-
ValidationException–Indicates that your request is malformed in some manner. See the exception message.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To list an index
>>> client.list_index(directory_arn='arn:aws:clouddirectory:us-west-2:45132example:directory/AYb8AOV81kHNgdj8mAO3dNY', index_reference={'Selector': '$AQGG_ADlfNZBzYHY_JgDt3TW45F26R1HTY2z-stwKBte_Q'})
Source code in docs_src/capo_clouddirectory/_services/cloud_directory.py
3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 | |