describe_data_repository_associations
¶
describe_data_repository_associations(
*,
config_overrides: Optional[FSxClientConfig] = None,
association_ids: Optional[DataRepositoryAssociationIds] = None,
filters: Optional[Filters] = None,
max_results: Optional[LimitedMaxResults] = None,
next_token: Optional[NextToken] = None,
) -> DescribeDataRepositoryAssociationsResponse
Returns the description of specific Amazon FSx for Lustre or Amazon File Cache data repository associations, if one or more AssociationIds values are provided in the request, or if filters are used in the request. Data repository associations are supported on Amazon File Cache resources and all FSx for Lustre 2.12 and 2,15 file systems, excluding scratch_1 deployment type.
You can use filters to narrow the response to include just data repository associations for specific file systems (use the file-system-id filter with the ID of the file system) or caches (use the file-cache-id filter with the ID of the cache), or data repository associations for a specific repository type (use the data-repository-type filter with a value of S3 or NFS). If you don't use filters, the response returns all data repository associations owned by your Amazon Web Services account in the Amazon Web Services Region of the endpoint that you're calling.
When retrieving all data repository associations, you can paginate the response by using the optional MaxResults parameter to limit the number of data repository associations returned in a response. If more data repository associations remain, a NextToken value is returned in the response. In this case, send a later request with the NextToken request parameter set to the value of NextToken from the last response.
Parameters:
-
association_ids(Optional[DataRepositoryAssociationIds], default:None) –IDs of the data repository associations whose descriptions you want to retrieve (String).
-
max_results(Optional[LimitedMaxResults], default:None) –The maximum number of resources to return in the response. This value must be an integer greater than zero.
Raises:
-
BadRequest–A generic error indicating a failure with a client request.
-
DataRepositoryAssociationNotFound–No data repository associations were found based upon the supplied parameters.
-
FileSystemNotFound–No Amazon FSx file systems were found based upon supplied parameters.
-
InternalServerError–A generic error indicating a server-side failure.
-
InvalidDataRepositoryType–You have filtered the response to a data repository type that is not supported.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_fsx/_services/f_sx.py
2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 | |