associateApplicationFleet method

Future<AssociateApplicationFleetResult> associateApplicationFleet({
  1. required String applicationArn,
  2. required String fleetName,
})

Associates the specified application with the specified fleet. This is only supported for Elastic fleets.

May throw ConcurrentModificationException. May throw InvalidParameterCombinationException. May throw LimitExceededException. May throw OperationNotPermittedException. May throw ResourceNotFoundException.

Parameter applicationArn : The ARN of the application.

Parameter fleetName : The name of the fleet.

Implementation

Future<AssociateApplicationFleetResult> associateApplicationFleet({
  required String applicationArn,
  required String fleetName,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'PhotonAdminProxyService.AssociateApplicationFleet'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'ApplicationArn': applicationArn,
      'FleetName': fleetName,
    },
  );

  return AssociateApplicationFleetResult.fromJson(jsonResponse.body);
}