get_resource_share_invitations
async
¶
get_resource_share_invitations(
*,
config_overrides: Optional[AsyncRAMClientConfig] = None,
resource_share_invitation_arns: Optional[ResourceShareInvitationArnList] = None,
resource_share_arns: Optional[ResourceShareArnList] = None,
next_token: Optional[String] = None,
max_results: Optional[MaxResults] = None,
) -> GetResourceShareInvitationsResponse
Retrieves details about invitations that you have received for resource shares.
Always check the NextToken response parameter for a null value when calling a paginated operation. These operations can occasionally return an empty set of results even when there are more results available. The NextToken response parameter value is null only when there are no more results to display.
Parameters:
-
resource_share_invitation_arns(Optional[ResourceShareInvitationArnList], default:None) –Specifies the Amazon Resource Names (ARNs) of the resource share invitations you want information about.
-
resource_share_arns(Optional[ResourceShareArnList], default:None) –Specifies that you want details about invitations only for the resource shares described by this list of Amazon Resource Names (ARNs)
-
next_token(Optional[String], default:None) –Specifies that you want to receive the next page of results. Valid only if you received a
NextTokenresponse in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call'sNextTokenresponse to request the next page of results. -
max_results(Optional[MaxResults], default:None) –Specifies the total 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 that is specific to the operation. If additional items exist beyond the number you specify, the
NextTokenresponse element is returned with a value (not null). Include the specified value as theNextTokenrequest parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should checkNextTokenafter every operation to ensure that you receive all of the results.
Raises:
-
InvalidMaxResultsException–The operation failed because the specified value for
MaxResultsisn't valid. -
InvalidNextTokenException–The operation failed because the specified value for
NextTokenisn't valid. You must specify a value you received in theNextTokenresponse of a previous call to this operation. -
InvalidParameterException–The operation failed because a parameter you specified isn't valid.
-
MalformedArnException–The operation failed because the specified Amazon Resource Name (ARN) has a format that isn't valid.
-
ResourceShareInvitationArnNotFoundException–The operation failed because the specified Amazon Resource Name (ARN) for an invitation was not found.
-
ServerInternalException–The operation failed because the service could not respond to the request due to an internal problem. Try again later.
-
ServiceUnavailableException–The operation failed because the service isn't available. Try again later.
-
UnknownResourceException–The operation failed because a specified resource couldn't be found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ram/_services/async_ram.py
1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 | |