associateApplicationToEntitlement method

Future<void> associateApplicationToEntitlement({
  1. required String applicationIdentifier,
  2. required String entitlementName,
  3. required String stackName,
})

Associates an application to entitle.

May throw EntitlementNotFoundException. May throw LimitExceededException. May throw OperationNotPermittedException. May throw ResourceNotFoundException.

Parameter applicationIdentifier : The identifier of the application.

Parameter entitlementName : The name of the entitlement.

Parameter stackName : The name of the stack.

Implementation

Future<void> associateApplicationToEntitlement({
  required String applicationIdentifier,
  required String entitlementName,
  required String stackName,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target':
        'PhotonAdminProxyService.AssociateApplicationToEntitlement'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'ApplicationIdentifier': applicationIdentifier,
      'EntitlementName': entitlementName,
      'StackName': stackName,
    },
  );
}