updateTestGridProject method

Future<UpdateTestGridProjectResult> updateTestGridProject({
  1. required String projectArn,
  2. String? description,
  3. String? name,
  4. TestGridVpcConfig? vpcConfig,
})

Change details of a project.

May throw ArgumentException. May throw InternalServiceException. May throw LimitExceededException. May throw NotFoundException.

Parameter projectArn : ARN of the project to update.

Parameter description : Human-readable description for the project.

Parameter name : Human-readable name for the project.

Parameter vpcConfig : The VPC security groups and subnets that are attached to a project.

Implementation

Future<UpdateTestGridProjectResult> updateTestGridProject({
  required String projectArn,
  String? description,
  String? name,
  TestGridVpcConfig? vpcConfig,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'DeviceFarm_20150623.UpdateTestGridProject'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'projectArn': projectArn,
      if (description != null) 'description': description,
      if (name != null) 'name': name,
      if (vpcConfig != null) 'vpcConfig': vpcConfig,
    },
  );

  return UpdateTestGridProjectResult.fromJson(jsonResponse.body);
}