describe_data_repository_associations
async
¶
describe_data_repository_associations(
*,
config_overrides: Optional[AsyncFSxClientConfig] = 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/async_f_sx.py
3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 | |