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
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 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 | |