describeBundleAssociations method

Future<DescribeBundleAssociationsResult> describeBundleAssociations({
  1. required List<BundleAssociatedResourceType> associatedResourceTypes,
  2. required String bundleId,
})

Describes the associations between the applications and the specified bundle.

May throw AccessDeniedException. May throw InvalidParameterValuesException. May throw OperationNotSupportedException. May throw ResourceNotFoundException.

Parameter associatedResourceTypes : The resource types of the associated resource.

Parameter bundleId : The identifier of the bundle.

Implementation

Future<DescribeBundleAssociationsResult> describeBundleAssociations({
  required List<BundleAssociatedResourceType> associatedResourceTypes,
  required String bundleId,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'WorkspacesService.DescribeBundleAssociations'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'AssociatedResourceTypes':
          associatedResourceTypes.map((e) => e.value).toList(),
      'BundleId': bundleId,
    },
  );

  return DescribeBundleAssociationsResult.fromJson(jsonResponse.body);
}