createQev2IdcApplication method

Future<CreateQev2IdcApplicationResult> createQev2IdcApplication({
  1. required String idcDisplayName,
  2. required String idcInstanceArn,
  3. required String qev2IdcApplicationName,
  4. List<Tag>? tags,
})

Creates an Amazon Redshift Query Editor (QEV2) IAM Identity Center application.

May throw DependentServiceAccessDeniedFault. May throw DependentServiceUnavailableFault. May throw Qev2IdcApplicationAlreadyExistsFault. May throw UnsupportedOperationFault.

Parameter idcDisplayName : The display name for the Amazon Redshift Query Editor (QEV2) IAM Identity Center application. It appears in the console.

Parameter idcInstanceArn : The Amazon Resource Name (ARN) of the IAM Identity Center instance used to create the Amazon Redshift Query Editor (QEV2) managed application.

Parameter qev2IdcApplicationName : The name of the Amazon Redshift Query Editor (QEV2) application in IAM Identity Center.

Parameter tags : A list of tags to associate with the application. Tags are key-value pairs that you can use to organize and identify your resources.

Implementation

Future<CreateQev2IdcApplicationResult> createQev2IdcApplication({
  required String idcDisplayName,
  required String idcInstanceArn,
  required String qev2IdcApplicationName,
  List<Tag>? tags,
}) async {
  final $request = <String, String>{
    'IdcDisplayName': idcDisplayName,
    'IdcInstanceArn': idcInstanceArn,
    'Qev2IdcApplicationName': qev2IdcApplicationName,
    if (tags != null)
      if (tags.isEmpty)
        'Tags': ''
      else
        for (var i1 = 0; i1 < tags.length; i1++)
          for (var e3 in tags[i1].toQueryMap().entries)
            'Tags.Tag.${i1 + 1}.${e3.key}': e3.value,
  };
  final $result = await _protocol.send(
    $request,
    action: 'CreateQev2IdcApplication',
    version: '2012-12-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    resultWrapper: 'CreateQev2IdcApplicationResult',
  );
  return CreateQev2IdcApplicationResult.fromXml($result);
}