getOnClusterAppUIPresignedURL method

Future<GetOnClusterAppUIPresignedURLOutput> getOnClusterAppUIPresignedURL({
  1. required String clusterId,
  2. String? applicationId,
  3. bool? dryRun,
  4. String? executionRoleArn,
  5. OnClusterAppUIType? onClusterAppUIType,
})

The presigned URL properties for the cluster's application user interface.

May throw InternalServerError. May throw InvalidRequestException.

Parameter clusterId : The cluster ID associated with the cluster's application user interface presigned URL.

Parameter applicationId : The application ID associated with the cluster's application user interface presigned URL.

Parameter dryRun : Determines if the user interface presigned URL is for a dry run.

Parameter executionRoleArn : The execution role ARN associated with the cluster's application user interface presigned URL.

Parameter onClusterAppUIType : The application UI type associated with the cluster's application user interface presigned URL.

Implementation

Future<GetOnClusterAppUIPresignedURLOutput> getOnClusterAppUIPresignedURL({
  required String clusterId,
  String? applicationId,
  bool? dryRun,
  String? executionRoleArn,
  OnClusterAppUIType? onClusterAppUIType,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'ElasticMapReduce.GetOnClusterAppUIPresignedURL'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'ClusterId': clusterId,
      if (applicationId != null) 'ApplicationId': applicationId,
      if (dryRun != null) 'DryRun': dryRun,
      if (executionRoleArn != null) 'ExecutionRoleArn': executionRoleArn,
      if (onClusterAppUIType != null)
        'OnClusterAppUIType': onClusterAppUIType.value,
    },
  );

  return GetOnClusterAppUIPresignedURLOutput.fromJson(jsonResponse.body);
}