listResourceEndpointAssociations method

Future<ListResourceEndpointAssociationsResponse> listResourceEndpointAssociations({
  1. required String resourceConfigurationIdentifier,
  2. int? maxResults,
  3. String? nextToken,
  4. String? resourceEndpointAssociationIdentifier,
  5. String? vpcEndpointId,
  6. String? vpcEndpointOwner,
})

Lists the associations for the specified VPC endpoint.

May throw AccessDeniedException. May throw InternalServerException. May throw ThrottlingException. May throw ValidationException.

Parameter resourceConfigurationIdentifier : The ID for the resource configuration associated with the VPC endpoint.

Parameter maxResults : The maximum page size.

Parameter nextToken : A pagination token for the next page of results.

Parameter resourceEndpointAssociationIdentifier : The ID of the association.

Parameter vpcEndpointId : The ID of the VPC endpoint in the association.

Parameter vpcEndpointOwner : The owner of the VPC endpoint in the association.

Implementation

Future<ListResourceEndpointAssociationsResponse>
    listResourceEndpointAssociations({
  required String resourceConfigurationIdentifier,
  int? maxResults,
  String? nextToken,
  String? resourceEndpointAssociationIdentifier,
  String? vpcEndpointId,
  String? vpcEndpointOwner,
}) async {
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    100,
  );
  final $query = <String, List<String>>{
    'resourceConfigurationIdentifier': [resourceConfigurationIdentifier],
    if (maxResults != null) 'maxResults': [maxResults.toString()],
    if (nextToken != null) 'nextToken': [nextToken],
    if (resourceEndpointAssociationIdentifier != null)
      'resourceEndpointAssociationIdentifier': [
        resourceEndpointAssociationIdentifier
      ],
    if (vpcEndpointId != null) 'vpcEndpointId': [vpcEndpointId],
    if (vpcEndpointOwner != null) 'vpcEndpointOwner': [vpcEndpointOwner],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/resourceendpointassociations',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return ListResourceEndpointAssociationsResponse.fromJson(response);
}