-
Notifications
You must be signed in to change notification settings - Fork 113
Expand file tree
/
Copy pathTaskParameters.ts
More file actions
29 lines (26 loc) · 989 Bytes
/
TaskParameters.ts
File metadata and controls
29 lines (26 loc) · 989 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*!
* Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: MIT
*/
import { AWSConnectionParameters, buildConnectionParameters } from 'lib/awsConnectionParameters'
import { getInputOrEmpty, getInputRequired } from 'lib/vstsUtils'
export interface TaskParameters {
awsConnectionParameters: AWSConnectionParameters
functionName: string
payload: string
invocationType: string
logType: string
outputVariable: string
outputLogsVariable: string
}
export function buildTaskParameters(): TaskParameters {
return {
awsConnectionParameters: buildConnectionParameters(),
functionName: getInputRequired('functionName'),
payload: getInputOrEmpty('payload'),
invocationType: getInputOrEmpty('invocationType'),
logType: getInputOrEmpty('logType'),
outputVariable: getInputOrEmpty('outputVariable'),
outputLogsVariable: getInputOrEmpty('outputLogsVariable')
}
}