updateReportGroup method
Future<UpdateReportGroupOutput>
updateReportGroup({
- required String arn,
- ReportExportConfig? exportConfig,
- List<
Tag> ? tags,
Updates a report group.
May throw InvalidInputException. May throw ResourceNotFoundException.
Parameter arn
:
The ARN of the report group to update.
Parameter exportConfig
:
Used to specify an updated export type. Valid values are:
-
S3
: The report results are exported to an S3 bucket. -
NO_EXPORT
: The report results are not exported.
Parameter tags
:
An updated list of tag key and value pairs associated with this report
group.
These tags are available for use by AWS services that support AWS CodeBuild report group tags.
Implementation
Future<UpdateReportGroupOutput> updateReportGroup({
required String arn,
ReportExportConfig? exportConfig,
List<Tag>? tags,
}) async {
ArgumentError.checkNotNull(arn, 'arn');
_s.validateStringLength(
'arn',
arn,
1,
1152921504606846976,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'CodeBuild_20161006.UpdateReportGroup'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'arn': arn,
if (exportConfig != null) 'exportConfig': exportConfig,
if (tags != null) 'tags': tags,
},
);
return UpdateReportGroupOutput.fromJson(jsonResponse.body);
}