@pulumi/aws 7.21.0 → 7.22.0-alpha.1772801059
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lambda/getFunction.d.ts +4 -4
- package/lambda/getFunction.js +4 -4
- package/package.json +2 -2
package/lambda/getFunction.d.ts
CHANGED
|
@@ -46,8 +46,8 @@ import * as outputs from "../types/output";
|
|
|
46
46
|
* import * as pulumi from "@pulumi/pulumi";
|
|
47
47
|
* import * as aws from "@pulumi/aws";
|
|
48
48
|
*
|
|
49
|
-
* function singleOrNone<T>(elements: pulumi.Input<T>[]): pulumi.Input<T> {
|
|
50
|
-
* if (elements.length
|
|
49
|
+
* function singleOrNone<T>(elements: pulumi.Input<T>[]): pulumi.Input<T> | undefined {
|
|
50
|
+
* if (elements.length > 1) {
|
|
51
51
|
* throw new Error("singleOrNone expected input list to have a single element");
|
|
52
52
|
* }
|
|
53
53
|
* return elements[0];
|
|
@@ -352,8 +352,8 @@ export interface GetFunctionResult {
|
|
|
352
352
|
* import * as pulumi from "@pulumi/pulumi";
|
|
353
353
|
* import * as aws from "@pulumi/aws";
|
|
354
354
|
*
|
|
355
|
-
* function singleOrNone<T>(elements: pulumi.Input<T>[]): pulumi.Input<T> {
|
|
356
|
-
* if (elements.length
|
|
355
|
+
* function singleOrNone<T>(elements: pulumi.Input<T>[]): pulumi.Input<T> | undefined {
|
|
356
|
+
* if (elements.length > 1) {
|
|
357
357
|
* throw new Error("singleOrNone expected input list to have a single element");
|
|
358
358
|
* }
|
|
359
359
|
* return elements[0];
|
package/lambda/getFunction.js
CHANGED
|
@@ -51,8 +51,8 @@ const utilities = require("../utilities");
|
|
|
51
51
|
* import * as pulumi from "@pulumi/pulumi";
|
|
52
52
|
* import * as aws from "@pulumi/aws";
|
|
53
53
|
*
|
|
54
|
-
* function singleOrNone<T>(elements: pulumi.Input<T>[]): pulumi.Input<T> {
|
|
55
|
-
* if (elements.length
|
|
54
|
+
* function singleOrNone<T>(elements: pulumi.Input<T>[]): pulumi.Input<T> | undefined {
|
|
55
|
+
* if (elements.length > 1) {
|
|
56
56
|
* throw new Error("singleOrNone expected input list to have a single element");
|
|
57
57
|
* }
|
|
58
58
|
* return elements[0];
|
|
@@ -181,8 +181,8 @@ exports.getFunction = getFunction;
|
|
|
181
181
|
* import * as pulumi from "@pulumi/pulumi";
|
|
182
182
|
* import * as aws from "@pulumi/aws";
|
|
183
183
|
*
|
|
184
|
-
* function singleOrNone<T>(elements: pulumi.Input<T>[]): pulumi.Input<T> {
|
|
185
|
-
* if (elements.length
|
|
184
|
+
* function singleOrNone<T>(elements: pulumi.Input<T>[]): pulumi.Input<T> | undefined {
|
|
185
|
+
* if (elements.length > 1) {
|
|
186
186
|
* throw new Error("singleOrNone expected input list to have a single element");
|
|
187
187
|
* }
|
|
188
188
|
* return elements[0];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/aws",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.22.0-alpha.1772801059",
|
|
4
4
|
"description": "A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -24,6 +24,6 @@
|
|
|
24
24
|
"pulumi": {
|
|
25
25
|
"resource": true,
|
|
26
26
|
"name": "aws",
|
|
27
|
-
"version": "7.
|
|
27
|
+
"version": "7.22.0-alpha.1772801059"
|
|
28
28
|
}
|
|
29
29
|
}
|