@pulumi/aws 4.28.0-alpha.1637005539 → 4.29.0
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/alb/targetGroupAttachment.d.ts +3 -3
- package/applicationloadbalancing/targetGroupAttachment.d.ts +3 -3
- package/appstream/directoryConfig.d.ts +108 -0
- package/appstream/directoryConfig.js +93 -0
- package/appstream/directoryConfig.js.map +1 -0
- package/appstream/index.d.ts +1 -0
- package/appstream/index.js +5 -0
- package/appstream/index.js.map +1 -1
- package/autoscaling/group.d.ts +3 -3
- package/cloudfront/responseHeadersPolicy.d.ts +28 -4
- package/cloudfront/responseHeadersPolicy.js +25 -1
- package/cloudfront/responseHeadersPolicy.js.map +1 -1
- package/ec2/getInstanceType.d.ts +4 -0
- package/ec2/getInstanceType.js.map +1 -1
- package/elasticloadbalancingv2/targetGroupAttachment.d.ts +3 -3
- package/emr/cluster.d.ts +12 -0
- package/emr/cluster.js +2 -0
- package/emr/cluster.js.map +1 -1
- package/emr/getReleaseLabels.d.ts +53 -0
- package/emr/getReleaseLabels.js +42 -0
- package/emr/getReleaseLabels.js.map +1 -0
- package/emr/index.d.ts +1 -0
- package/emr/index.js +1 -0
- package/emr/index.js.map +1 -1
- package/iot/index.d.ts +2 -0
- package/iot/index.js +10 -0
- package/iot/index.js.map +1 -1
- package/iot/thingGroup.d.ts +153 -0
- package/iot/thingGroup.js +100 -0
- package/iot/thingGroup.js.map +1 -0
- package/iot/thingGroupMembership.d.ts +96 -0
- package/iot/thingGroupMembership.js +85 -0
- package/iot/thingGroupMembership.js.map +1 -0
- package/iot/thingType.d.ts +36 -0
- package/iot/thingType.js +4 -0
- package/iot/thingType.js.map +1 -1
- package/lambda/index.d.ts +1 -0
- package/lambda/index.js +5 -0
- package/lambda/index.js.map +1 -1
- package/lambda/layerVersion.d.ts +41 -83
- package/lambda/layerVersion.js +2 -45
- package/lambda/layerVersion.js.map +1 -1
- package/lambda/layerVersionPermission.d.ts +154 -0
- package/lambda/layerVersionPermission.js +110 -0
- package/lambda/layerVersionPermission.js.map +1 -0
- package/lb/targetGroupAttachment.d.ts +3 -3
- package/package.json +2 -2
- package/package.json.dev +1 -1
- package/quicksight/user.d.ts +1 -1
- package/quicksight/user.js +1 -1
- package/s3/accessPoint.d.ts +20 -28
- package/s3/accessPoint.js +4 -28
- package/s3/accessPoint.js.map +1 -1
- package/s3/bucket.d.ts +2 -0
- package/s3/bucket.js +2 -0
- package/s3/bucket.js.map +1 -1
- package/s3/bucketReplicationConfig.d.ts +190 -0
- package/s3/bucketReplicationConfig.js +181 -0
- package/s3/bucketReplicationConfig.js.map +1 -0
- package/s3/index.d.ts +1 -0
- package/s3/index.js +5 -0
- package/s3/index.js.map +1 -1
- package/s3control/accessPointPolicy.d.ts +77 -0
- package/s3control/accessPointPolicy.js +70 -0
- package/s3control/accessPointPolicy.js.map +1 -0
- package/s3control/index.d.ts +5 -0
- package/s3control/index.js +25 -0
- package/s3control/index.js.map +1 -1
- package/s3control/multiRegionAccessPoint.d.ts +123 -0
- package/s3control/multiRegionAccessPoint.js +103 -0
- package/s3control/multiRegionAccessPoint.js.map +1 -0
- package/s3control/multiRegionAccessPointPolicy.d.ts +115 -0
- package/s3control/multiRegionAccessPointPolicy.js +107 -0
- package/s3control/multiRegionAccessPointPolicy.js.map +1 -0
- package/s3control/objectLambdaAccessPoint.d.ts +105 -0
- package/s3control/objectLambdaAccessPoint.js +93 -0
- package/s3control/objectLambdaAccessPoint.js.map +1 -0
- package/s3control/objectLambdaAccessPointPolicy.d.ts +114 -0
- package/s3control/objectLambdaAccessPointPolicy.js +103 -0
- package/s3control/objectLambdaAccessPointPolicy.js.map +1 -0
- package/sagemaker/endpoint.d.ts +19 -6
- package/sagemaker/endpoint.js +2 -0
- package/sagemaker/endpoint.js.map +1 -1
- package/securityhub/findingAggregator.d.ts +124 -0
- package/securityhub/findingAggregator.js +120 -0
- package/securityhub/findingAggregator.js.map +1 -0
- package/securityhub/index.d.ts +1 -0
- package/securityhub/index.js +5 -0
- package/securityhub/index.js.map +1 -1
- package/types/enums/iam/index.d.ts +1 -0
- package/types/enums/iam/index.js +1 -0
- package/types/enums/iam/index.js.map +1 -1
- package/types/input.d.ts +463 -29
- package/types/output.d.ts +455 -28
package/iot/thingType.d.ts
CHANGED
|
@@ -52,6 +52,18 @@ export declare class ThingType extends pulumi.CustomResource {
|
|
|
52
52
|
* , Configuration block that can contain the following properties of the thing type:
|
|
53
53
|
*/
|
|
54
54
|
readonly properties: pulumi.Output<outputs.iot.ThingTypeProperties | undefined>;
|
|
55
|
+
/**
|
|
56
|
+
* Key-value mapping of resource tags. If configured with a provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block) present, tags with matching keys will overwrite those defined at the provider-level.
|
|
57
|
+
*/
|
|
58
|
+
readonly tags: pulumi.Output<{
|
|
59
|
+
[key: string]: string;
|
|
60
|
+
} | undefined>;
|
|
61
|
+
/**
|
|
62
|
+
* Map of tags assigned to the resource, including those inherited from the provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block).
|
|
63
|
+
*/
|
|
64
|
+
readonly tagsAll: pulumi.Output<{
|
|
65
|
+
[key: string]: string;
|
|
66
|
+
}>;
|
|
55
67
|
/**
|
|
56
68
|
* Create a ThingType resource with the given unique name, arguments, and options.
|
|
57
69
|
*
|
|
@@ -81,6 +93,18 @@ export interface ThingTypeState {
|
|
|
81
93
|
* , Configuration block that can contain the following properties of the thing type:
|
|
82
94
|
*/
|
|
83
95
|
properties?: pulumi.Input<inputs.iot.ThingTypeProperties>;
|
|
96
|
+
/**
|
|
97
|
+
* Key-value mapping of resource tags. If configured with a provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block) present, tags with matching keys will overwrite those defined at the provider-level.
|
|
98
|
+
*/
|
|
99
|
+
tags?: pulumi.Input<{
|
|
100
|
+
[key: string]: pulumi.Input<string>;
|
|
101
|
+
}>;
|
|
102
|
+
/**
|
|
103
|
+
* Map of tags assigned to the resource, including those inherited from the provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block).
|
|
104
|
+
*/
|
|
105
|
+
tagsAll?: pulumi.Input<{
|
|
106
|
+
[key: string]: pulumi.Input<string>;
|
|
107
|
+
}>;
|
|
84
108
|
}
|
|
85
109
|
/**
|
|
86
110
|
* The set of arguments for constructing a ThingType resource.
|
|
@@ -98,4 +122,16 @@ export interface ThingTypeArgs {
|
|
|
98
122
|
* , Configuration block that can contain the following properties of the thing type:
|
|
99
123
|
*/
|
|
100
124
|
properties?: pulumi.Input<inputs.iot.ThingTypeProperties>;
|
|
125
|
+
/**
|
|
126
|
+
* Key-value mapping of resource tags. If configured with a provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block) present, tags with matching keys will overwrite those defined at the provider-level.
|
|
127
|
+
*/
|
|
128
|
+
tags?: pulumi.Input<{
|
|
129
|
+
[key: string]: pulumi.Input<string>;
|
|
130
|
+
}>;
|
|
131
|
+
/**
|
|
132
|
+
* Map of tags assigned to the resource, including those inherited from the provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block).
|
|
133
|
+
*/
|
|
134
|
+
tagsAll?: pulumi.Input<{
|
|
135
|
+
[key: string]: pulumi.Input<string>;
|
|
136
|
+
}>;
|
|
101
137
|
}
|
package/iot/thingType.js
CHANGED
|
@@ -35,12 +35,16 @@ class ThingType extends pulumi.CustomResource {
|
|
|
35
35
|
inputs["deprecated"] = state ? state.deprecated : undefined;
|
|
36
36
|
inputs["name"] = state ? state.name : undefined;
|
|
37
37
|
inputs["properties"] = state ? state.properties : undefined;
|
|
38
|
+
inputs["tags"] = state ? state.tags : undefined;
|
|
39
|
+
inputs["tagsAll"] = state ? state.tagsAll : undefined;
|
|
38
40
|
}
|
|
39
41
|
else {
|
|
40
42
|
const args = argsOrState;
|
|
41
43
|
inputs["deprecated"] = args ? args.deprecated : undefined;
|
|
42
44
|
inputs["name"] = args ? args.name : undefined;
|
|
43
45
|
inputs["properties"] = args ? args.properties : undefined;
|
|
46
|
+
inputs["tags"] = args ? args.tags : undefined;
|
|
47
|
+
inputs["tagsAll"] = args ? args.tagsAll : undefined;
|
|
44
48
|
inputs["arn"] = undefined /*out*/;
|
|
45
49
|
}
|
|
46
50
|
if (!opts.version) {
|
package/iot/thingType.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thingType.js","sourceRoot":"","sources":["../../iot/thingType.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"thingType.js","sourceRoot":"","sources":["../../iot/thingType.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;IA6DhD,YAAY,IAAY,EAAE,WAA4C,EAAE,IAAmC;QACvG,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAyC,CAAC;YACxD,MAAM,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9C,MAAM,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,MAAM,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAA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EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IACtD,CAAC;IApFD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsB,EAAE,IAAmC;QACpH,OAAO,IAAI,SAAS,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAChE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,SAAS,CAAC,YAAY,CAAC;IAC1D,CAAC;;AA1BL,8BAsFC;AAxEG,gBAAgB;AACO,sBAAY,GAAG,6BAA6B,CAAC"}
|
package/lambda/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export * from "./getInvocation";
|
|
|
10
10
|
export * from "./getLayerVersion";
|
|
11
11
|
export * from "./lambdaMixins";
|
|
12
12
|
export * from "./layerVersion";
|
|
13
|
+
export * from "./layerVersionPermission";
|
|
13
14
|
export * from "./permission";
|
|
14
15
|
export * from "./provisionedConcurrencyConfig";
|
|
15
16
|
export * from "./runtimes";
|
package/lambda/index.js
CHANGED
|
@@ -27,6 +27,7 @@ __exportStar(require("./getInvocation"), exports);
|
|
|
27
27
|
__exportStar(require("./getLayerVersion"), exports);
|
|
28
28
|
__exportStar(require("./lambdaMixins"), exports);
|
|
29
29
|
__exportStar(require("./layerVersion"), exports);
|
|
30
|
+
__exportStar(require("./layerVersionPermission"), exports);
|
|
30
31
|
__exportStar(require("./permission"), exports);
|
|
31
32
|
__exportStar(require("./provisionedConcurrencyConfig"), exports);
|
|
32
33
|
__exportStar(require("./runtimes"), exports);
|
|
@@ -39,6 +40,7 @@ const eventSourceMapping_1 = require("./eventSourceMapping");
|
|
|
39
40
|
const function_1 = require("./function");
|
|
40
41
|
const functionEventInvokeConfig_1 = require("./functionEventInvokeConfig");
|
|
41
42
|
const layerVersion_1 = require("./layerVersion");
|
|
43
|
+
const layerVersionPermission_1 = require("./layerVersionPermission");
|
|
42
44
|
const permission_1 = require("./permission");
|
|
43
45
|
const provisionedConcurrencyConfig_1 = require("./provisionedConcurrencyConfig");
|
|
44
46
|
const _module = {
|
|
@@ -57,6 +59,8 @@ const _module = {
|
|
|
57
59
|
return new functionEventInvokeConfig_1.FunctionEventInvokeConfig(name, undefined, { urn });
|
|
58
60
|
case "aws:lambda/layerVersion:LayerVersion":
|
|
59
61
|
return new layerVersion_1.LayerVersion(name, undefined, { urn });
|
|
62
|
+
case "aws:lambda/layerVersionPermission:LayerVersionPermission":
|
|
63
|
+
return new layerVersionPermission_1.LayerVersionPermission(name, undefined, { urn });
|
|
60
64
|
case "aws:lambda/permission:Permission":
|
|
61
65
|
return new permission_1.Permission(name, undefined, { urn });
|
|
62
66
|
case "aws:lambda/provisionedConcurrencyConfig:ProvisionedConcurrencyConfig":
|
|
@@ -72,6 +76,7 @@ pulumi.runtime.registerResourceModule("aws", "lambda/eventSourceMapping", _modul
|
|
|
72
76
|
pulumi.runtime.registerResourceModule("aws", "lambda/function", _module);
|
|
73
77
|
pulumi.runtime.registerResourceModule("aws", "lambda/functionEventInvokeConfig", _module);
|
|
74
78
|
pulumi.runtime.registerResourceModule("aws", "lambda/layerVersion", _module);
|
|
79
|
+
pulumi.runtime.registerResourceModule("aws", "lambda/layerVersionPermission", _module);
|
|
75
80
|
pulumi.runtime.registerResourceModule("aws", "lambda/permission", _module);
|
|
76
81
|
pulumi.runtime.registerResourceModule("aws", "lambda/provisionedConcurrencyConfig", _module);
|
|
77
82
|
//# sourceMappingURL=index.js.map
|
package/lambda/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../lambda/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;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-1,50 +1,5 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
* Provides a Lambda Layer Version resource. Lambda Layers allow you to reuse shared bits of code across multiple lambda functions.
|
|
4
|
-
*
|
|
5
|
-
* For information about Lambda Layers and how to use them, see [AWS Lambda Layers](https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html)
|
|
6
|
-
*
|
|
7
|
-
* ## Example Usage
|
|
8
|
-
* ### Basic Example
|
|
9
|
-
*
|
|
10
|
-
* ```typescript
|
|
11
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
12
|
-
* import * as aws from "@pulumi/aws";
|
|
13
|
-
*
|
|
14
|
-
* const lambdaLayer = new aws.lambda.LayerVersion("lambda_layer", {
|
|
15
|
-
* compatibleRuntimes: ["nodejs12.x"],
|
|
16
|
-
* code: new pulumi.asset.FileArchive("lambda_layer_payload.zip"),
|
|
17
|
-
* layerName: "lambda_layer_name",
|
|
18
|
-
* });
|
|
19
|
-
* ```
|
|
20
|
-
* ### Lambda Layer with Compatible Architectures
|
|
21
|
-
*
|
|
22
|
-
* ```typescript
|
|
23
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
24
|
-
* import * as aws from "@pulumi/aws";
|
|
25
|
-
*
|
|
26
|
-
* const lambdaLayer = new aws.lambda.LayerVersion("lambda_layer", {
|
|
27
|
-
* compatibleArchitectures: [
|
|
28
|
-
* "arm64",
|
|
29
|
-
* "x86_64",
|
|
30
|
-
* ],
|
|
31
|
-
* compatibleRuntimes: ["nodejs12.x"],
|
|
32
|
-
* code: new pulumi.asset.FileArchive("lambda_layer_payload.zip"),
|
|
33
|
-
* layerName: "lambda_layer_name",
|
|
34
|
-
* });
|
|
35
|
-
* ```
|
|
36
|
-
* ## Specifying the Deployment Package
|
|
37
|
-
*
|
|
38
|
-
* AWS Lambda Layers expect source code to be provided as a deployment package whose structure varies depending on which `compatibleRuntimes` this layer specifies.
|
|
39
|
-
* See [Runtimes](https://docs.aws.amazon.com/lambda/latest/dg/API_PublishLayerVersion.html#SSS-PublishLayerVersion-request-CompatibleRuntimes) for the valid values of `compatibleRuntimes`.
|
|
40
|
-
*
|
|
41
|
-
* Once you have created your deployment package you can specify it either directly as a local file (using the `filename` argument) or
|
|
42
|
-
* indirectly via Amazon S3 (using the `s3Bucket`, `s3Key` and `s3ObjectVersion` arguments). When providing the deployment
|
|
43
|
-
* package via S3 it may be useful to use the `aws.s3.BucketObject` resource to upload it.
|
|
44
|
-
*
|
|
45
|
-
* For larger deployment packages it is recommended by Amazon to upload via S3, since the S3 API has better support for uploading
|
|
46
|
-
* large files efficiently.
|
|
47
|
-
*
|
|
48
3
|
* ## Import
|
|
49
4
|
*
|
|
50
5
|
* Lambda Layers can be imported using `arn`.
|
|
@@ -74,23 +29,23 @@ export declare class LayerVersion extends pulumi.CustomResource {
|
|
|
74
29
|
*/
|
|
75
30
|
static isInstance(obj: any): obj is LayerVersion;
|
|
76
31
|
/**
|
|
77
|
-
*
|
|
32
|
+
* ARN of the Lambda Layer with version.
|
|
78
33
|
*/
|
|
79
34
|
readonly arn: pulumi.Output<string>;
|
|
80
35
|
/**
|
|
81
|
-
*
|
|
36
|
+
* Path to the function's deployment package within the local filesystem. If defined, The `s3_`-prefixed options cannot be used.
|
|
82
37
|
*/
|
|
83
38
|
readonly code: pulumi.Output<pulumi.asset.Archive | undefined>;
|
|
84
39
|
/**
|
|
85
|
-
*
|
|
40
|
+
* List of [Architectures](https://docs.aws.amazon.com/lambda/latest/dg/API_PublishLayerVersion.html#SSS-PublishLayerVersion-request-CompatibleArchitectures) this layer is compatible with. Currently `x8664` and `arm64` can be specified.
|
|
86
41
|
*/
|
|
87
42
|
readonly compatibleArchitectures: pulumi.Output<string[] | undefined>;
|
|
88
43
|
/**
|
|
89
|
-
*
|
|
44
|
+
* List of [Runtimes](https://docs.aws.amazon.com/lambda/latest/dg/API_PublishLayerVersion.html#SSS-PublishLayerVersion-request-CompatibleRuntimes) this layer is compatible with. Up to 5 runtimes can be specified.
|
|
90
45
|
*/
|
|
91
46
|
readonly compatibleRuntimes: pulumi.Output<string[] | undefined>;
|
|
92
47
|
/**
|
|
93
|
-
*
|
|
48
|
+
* Date this resource was created.
|
|
94
49
|
*/
|
|
95
50
|
readonly createdDate: pulumi.Output<string>;
|
|
96
51
|
/**
|
|
@@ -98,11 +53,11 @@ export declare class LayerVersion extends pulumi.CustomResource {
|
|
|
98
53
|
*/
|
|
99
54
|
readonly description: pulumi.Output<string | undefined>;
|
|
100
55
|
/**
|
|
101
|
-
*
|
|
56
|
+
* ARN of the Lambda Layer without version.
|
|
102
57
|
*/
|
|
103
58
|
readonly layerArn: pulumi.Output<string>;
|
|
104
59
|
/**
|
|
105
|
-
*
|
|
60
|
+
* Unique name for your Lambda Layer
|
|
106
61
|
*/
|
|
107
62
|
readonly layerName: pulumi.Output<string>;
|
|
108
63
|
/**
|
|
@@ -110,35 +65,36 @@ export declare class LayerVersion extends pulumi.CustomResource {
|
|
|
110
65
|
*/
|
|
111
66
|
readonly licenseInfo: pulumi.Output<string | undefined>;
|
|
112
67
|
/**
|
|
113
|
-
*
|
|
68
|
+
* S3 bucket location containing the function's deployment package. Conflicts with `filename`. This bucket must reside in the same AWS region where you are creating the Lambda function.
|
|
114
69
|
*/
|
|
115
70
|
readonly s3Bucket: pulumi.Output<string | undefined>;
|
|
116
71
|
/**
|
|
117
|
-
*
|
|
72
|
+
* S3 key of an object containing the function's deployment package. Conflicts with `filename`.
|
|
118
73
|
*/
|
|
119
74
|
readonly s3Key: pulumi.Output<string | undefined>;
|
|
120
75
|
/**
|
|
121
|
-
*
|
|
76
|
+
* Object version containing the function's deployment package. Conflicts with `filename`.
|
|
122
77
|
*/
|
|
123
78
|
readonly s3ObjectVersion: pulumi.Output<string | undefined>;
|
|
124
79
|
/**
|
|
125
|
-
*
|
|
80
|
+
* ARN of a signing job.
|
|
126
81
|
*/
|
|
127
82
|
readonly signingJobArn: pulumi.Output<string>;
|
|
128
83
|
/**
|
|
129
|
-
*
|
|
84
|
+
* ARN for a signing profile version.
|
|
130
85
|
*/
|
|
131
86
|
readonly signingProfileVersionArn: pulumi.Output<string>;
|
|
132
87
|
/**
|
|
133
|
-
*
|
|
88
|
+
* Whether to retain the old version of a previously deployed Lambda Layer. Default is `false`. When this is not set to `true`, changing any of `compatibleArchitectures`, `compatibleRuntimes`, `description`, `filename`, `layerName`, `licenseInfo`, `s3Bucket`, `s3Key`, `s3ObjectVersion`, or `sourceCodeHash` forces deletion of the existing layer version and creation of a new layer version.
|
|
134
89
|
*/
|
|
90
|
+
readonly skipDestroy: pulumi.Output<boolean | undefined>;
|
|
135
91
|
readonly sourceCodeHash: pulumi.Output<string>;
|
|
136
92
|
/**
|
|
137
|
-
*
|
|
93
|
+
* Size in bytes of the function .zip file.
|
|
138
94
|
*/
|
|
139
95
|
readonly sourceCodeSize: pulumi.Output<number>;
|
|
140
96
|
/**
|
|
141
|
-
*
|
|
97
|
+
* Lambda Layer version.
|
|
142
98
|
*/
|
|
143
99
|
readonly version: pulumi.Output<string>;
|
|
144
100
|
/**
|
|
@@ -155,23 +111,23 @@ export declare class LayerVersion extends pulumi.CustomResource {
|
|
|
155
111
|
*/
|
|
156
112
|
export interface LayerVersionState {
|
|
157
113
|
/**
|
|
158
|
-
*
|
|
114
|
+
* ARN of the Lambda Layer with version.
|
|
159
115
|
*/
|
|
160
116
|
arn?: pulumi.Input<string>;
|
|
161
117
|
/**
|
|
162
|
-
*
|
|
118
|
+
* Path to the function's deployment package within the local filesystem. If defined, The `s3_`-prefixed options cannot be used.
|
|
163
119
|
*/
|
|
164
120
|
code?: pulumi.Input<pulumi.asset.Archive>;
|
|
165
121
|
/**
|
|
166
|
-
*
|
|
122
|
+
* List of [Architectures](https://docs.aws.amazon.com/lambda/latest/dg/API_PublishLayerVersion.html#SSS-PublishLayerVersion-request-CompatibleArchitectures) this layer is compatible with. Currently `x8664` and `arm64` can be specified.
|
|
167
123
|
*/
|
|
168
124
|
compatibleArchitectures?: pulumi.Input<pulumi.Input<string>[]>;
|
|
169
125
|
/**
|
|
170
|
-
*
|
|
126
|
+
* List of [Runtimes](https://docs.aws.amazon.com/lambda/latest/dg/API_PublishLayerVersion.html#SSS-PublishLayerVersion-request-CompatibleRuntimes) this layer is compatible with. Up to 5 runtimes can be specified.
|
|
171
127
|
*/
|
|
172
128
|
compatibleRuntimes?: pulumi.Input<pulumi.Input<string>[]>;
|
|
173
129
|
/**
|
|
174
|
-
*
|
|
130
|
+
* Date this resource was created.
|
|
175
131
|
*/
|
|
176
132
|
createdDate?: pulumi.Input<string>;
|
|
177
133
|
/**
|
|
@@ -179,11 +135,11 @@ export interface LayerVersionState {
|
|
|
179
135
|
*/
|
|
180
136
|
description?: pulumi.Input<string>;
|
|
181
137
|
/**
|
|
182
|
-
*
|
|
138
|
+
* ARN of the Lambda Layer without version.
|
|
183
139
|
*/
|
|
184
140
|
layerArn?: pulumi.Input<string>;
|
|
185
141
|
/**
|
|
186
|
-
*
|
|
142
|
+
* Unique name for your Lambda Layer
|
|
187
143
|
*/
|
|
188
144
|
layerName?: pulumi.Input<string>;
|
|
189
145
|
/**
|
|
@@ -191,35 +147,36 @@ export interface LayerVersionState {
|
|
|
191
147
|
*/
|
|
192
148
|
licenseInfo?: pulumi.Input<string>;
|
|
193
149
|
/**
|
|
194
|
-
*
|
|
150
|
+
* S3 bucket location containing the function's deployment package. Conflicts with `filename`. This bucket must reside in the same AWS region where you are creating the Lambda function.
|
|
195
151
|
*/
|
|
196
152
|
s3Bucket?: pulumi.Input<string>;
|
|
197
153
|
/**
|
|
198
|
-
*
|
|
154
|
+
* S3 key of an object containing the function's deployment package. Conflicts with `filename`.
|
|
199
155
|
*/
|
|
200
156
|
s3Key?: pulumi.Input<string>;
|
|
201
157
|
/**
|
|
202
|
-
*
|
|
158
|
+
* Object version containing the function's deployment package. Conflicts with `filename`.
|
|
203
159
|
*/
|
|
204
160
|
s3ObjectVersion?: pulumi.Input<string>;
|
|
205
161
|
/**
|
|
206
|
-
*
|
|
162
|
+
* ARN of a signing job.
|
|
207
163
|
*/
|
|
208
164
|
signingJobArn?: pulumi.Input<string>;
|
|
209
165
|
/**
|
|
210
|
-
*
|
|
166
|
+
* ARN for a signing profile version.
|
|
211
167
|
*/
|
|
212
168
|
signingProfileVersionArn?: pulumi.Input<string>;
|
|
213
169
|
/**
|
|
214
|
-
*
|
|
170
|
+
* Whether to retain the old version of a previously deployed Lambda Layer. Default is `false`. When this is not set to `true`, changing any of `compatibleArchitectures`, `compatibleRuntimes`, `description`, `filename`, `layerName`, `licenseInfo`, `s3Bucket`, `s3Key`, `s3ObjectVersion`, or `sourceCodeHash` forces deletion of the existing layer version and creation of a new layer version.
|
|
215
171
|
*/
|
|
172
|
+
skipDestroy?: pulumi.Input<boolean>;
|
|
216
173
|
sourceCodeHash?: pulumi.Input<string>;
|
|
217
174
|
/**
|
|
218
|
-
*
|
|
175
|
+
* Size in bytes of the function .zip file.
|
|
219
176
|
*/
|
|
220
177
|
sourceCodeSize?: pulumi.Input<number>;
|
|
221
178
|
/**
|
|
222
|
-
*
|
|
179
|
+
* Lambda Layer version.
|
|
223
180
|
*/
|
|
224
181
|
version?: pulumi.Input<string>;
|
|
225
182
|
}
|
|
@@ -228,15 +185,15 @@ export interface LayerVersionState {
|
|
|
228
185
|
*/
|
|
229
186
|
export interface LayerVersionArgs {
|
|
230
187
|
/**
|
|
231
|
-
*
|
|
188
|
+
* Path to the function's deployment package within the local filesystem. If defined, The `s3_`-prefixed options cannot be used.
|
|
232
189
|
*/
|
|
233
190
|
code?: pulumi.Input<pulumi.asset.Archive>;
|
|
234
191
|
/**
|
|
235
|
-
*
|
|
192
|
+
* List of [Architectures](https://docs.aws.amazon.com/lambda/latest/dg/API_PublishLayerVersion.html#SSS-PublishLayerVersion-request-CompatibleArchitectures) this layer is compatible with. Currently `x8664` and `arm64` can be specified.
|
|
236
193
|
*/
|
|
237
194
|
compatibleArchitectures?: pulumi.Input<pulumi.Input<string>[]>;
|
|
238
195
|
/**
|
|
239
|
-
*
|
|
196
|
+
* List of [Runtimes](https://docs.aws.amazon.com/lambda/latest/dg/API_PublishLayerVersion.html#SSS-PublishLayerVersion-request-CompatibleRuntimes) this layer is compatible with. Up to 5 runtimes can be specified.
|
|
240
197
|
*/
|
|
241
198
|
compatibleRuntimes?: pulumi.Input<pulumi.Input<string>[]>;
|
|
242
199
|
/**
|
|
@@ -244,7 +201,7 @@ export interface LayerVersionArgs {
|
|
|
244
201
|
*/
|
|
245
202
|
description?: pulumi.Input<string>;
|
|
246
203
|
/**
|
|
247
|
-
*
|
|
204
|
+
* Unique name for your Lambda Layer
|
|
248
205
|
*/
|
|
249
206
|
layerName: pulumi.Input<string>;
|
|
250
207
|
/**
|
|
@@ -252,19 +209,20 @@ export interface LayerVersionArgs {
|
|
|
252
209
|
*/
|
|
253
210
|
licenseInfo?: pulumi.Input<string>;
|
|
254
211
|
/**
|
|
255
|
-
*
|
|
212
|
+
* S3 bucket location containing the function's deployment package. Conflicts with `filename`. This bucket must reside in the same AWS region where you are creating the Lambda function.
|
|
256
213
|
*/
|
|
257
214
|
s3Bucket?: pulumi.Input<string>;
|
|
258
215
|
/**
|
|
259
|
-
*
|
|
216
|
+
* S3 key of an object containing the function's deployment package. Conflicts with `filename`.
|
|
260
217
|
*/
|
|
261
218
|
s3Key?: pulumi.Input<string>;
|
|
262
219
|
/**
|
|
263
|
-
*
|
|
220
|
+
* Object version containing the function's deployment package. Conflicts with `filename`.
|
|
264
221
|
*/
|
|
265
222
|
s3ObjectVersion?: pulumi.Input<string>;
|
|
266
223
|
/**
|
|
267
|
-
*
|
|
224
|
+
* Whether to retain the old version of a previously deployed Lambda Layer. Default is `false`. When this is not set to `true`, changing any of `compatibleArchitectures`, `compatibleRuntimes`, `description`, `filename`, `layerName`, `licenseInfo`, `s3Bucket`, `s3Key`, `s3ObjectVersion`, or `sourceCodeHash` forces deletion of the existing layer version and creation of a new layer version.
|
|
268
225
|
*/
|
|
226
|
+
skipDestroy?: pulumi.Input<boolean>;
|
|
269
227
|
sourceCodeHash?: pulumi.Input<string>;
|
|
270
228
|
}
|
package/lambda/layerVersion.js
CHANGED
|
@@ -6,51 +6,6 @@ exports.LayerVersion = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
|
-
* Provides a Lambda Layer Version resource. Lambda Layers allow you to reuse shared bits of code across multiple lambda functions.
|
|
10
|
-
*
|
|
11
|
-
* For information about Lambda Layers and how to use them, see [AWS Lambda Layers](https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html)
|
|
12
|
-
*
|
|
13
|
-
* ## Example Usage
|
|
14
|
-
* ### Basic Example
|
|
15
|
-
*
|
|
16
|
-
* ```typescript
|
|
17
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
18
|
-
* import * as aws from "@pulumi/aws";
|
|
19
|
-
*
|
|
20
|
-
* const lambdaLayer = new aws.lambda.LayerVersion("lambda_layer", {
|
|
21
|
-
* compatibleRuntimes: ["nodejs12.x"],
|
|
22
|
-
* code: new pulumi.asset.FileArchive("lambda_layer_payload.zip"),
|
|
23
|
-
* layerName: "lambda_layer_name",
|
|
24
|
-
* });
|
|
25
|
-
* ```
|
|
26
|
-
* ### Lambda Layer with Compatible Architectures
|
|
27
|
-
*
|
|
28
|
-
* ```typescript
|
|
29
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
30
|
-
* import * as aws from "@pulumi/aws";
|
|
31
|
-
*
|
|
32
|
-
* const lambdaLayer = new aws.lambda.LayerVersion("lambda_layer", {
|
|
33
|
-
* compatibleArchitectures: [
|
|
34
|
-
* "arm64",
|
|
35
|
-
* "x86_64",
|
|
36
|
-
* ],
|
|
37
|
-
* compatibleRuntimes: ["nodejs12.x"],
|
|
38
|
-
* code: new pulumi.asset.FileArchive("lambda_layer_payload.zip"),
|
|
39
|
-
* layerName: "lambda_layer_name",
|
|
40
|
-
* });
|
|
41
|
-
* ```
|
|
42
|
-
* ## Specifying the Deployment Package
|
|
43
|
-
*
|
|
44
|
-
* AWS Lambda Layers expect source code to be provided as a deployment package whose structure varies depending on which `compatibleRuntimes` this layer specifies.
|
|
45
|
-
* See [Runtimes](https://docs.aws.amazon.com/lambda/latest/dg/API_PublishLayerVersion.html#SSS-PublishLayerVersion-request-CompatibleRuntimes) for the valid values of `compatibleRuntimes`.
|
|
46
|
-
*
|
|
47
|
-
* Once you have created your deployment package you can specify it either directly as a local file (using the `filename` argument) or
|
|
48
|
-
* indirectly via Amazon S3 (using the `s3Bucket`, `s3Key` and `s3ObjectVersion` arguments). When providing the deployment
|
|
49
|
-
* package via S3 it may be useful to use the `aws.s3.BucketObject` resource to upload it.
|
|
50
|
-
*
|
|
51
|
-
* For larger deployment packages it is recommended by Amazon to upload via S3, since the S3 API has better support for uploading
|
|
52
|
-
* large files efficiently.
|
|
53
|
-
*
|
|
54
9
|
* ## Import
|
|
55
10
|
*
|
|
56
11
|
* Lambda Layers can be imported using `arn`.
|
|
@@ -83,6 +38,7 @@ class LayerVersion extends pulumi.CustomResource {
|
|
|
83
38
|
inputs["s3ObjectVersion"] = state ? state.s3ObjectVersion : undefined;
|
|
84
39
|
inputs["signingJobArn"] = state ? state.signingJobArn : undefined;
|
|
85
40
|
inputs["signingProfileVersionArn"] = state ? state.signingProfileVersionArn : undefined;
|
|
41
|
+
inputs["skipDestroy"] = state ? state.skipDestroy : undefined;
|
|
86
42
|
inputs["sourceCodeHash"] = state ? state.sourceCodeHash : undefined;
|
|
87
43
|
inputs["sourceCodeSize"] = state ? state.sourceCodeSize : undefined;
|
|
88
44
|
inputs["version"] = state ? state.version : undefined;
|
|
@@ -101,6 +57,7 @@ class LayerVersion extends pulumi.CustomResource {
|
|
|
101
57
|
inputs["s3Bucket"] = args ? args.s3Bucket : undefined;
|
|
102
58
|
inputs["s3Key"] = args ? args.s3Key : undefined;
|
|
103
59
|
inputs["s3ObjectVersion"] = args ? args.s3ObjectVersion : undefined;
|
|
60
|
+
inputs["skipDestroy"] = args ? args.skipDestroy : undefined;
|
|
104
61
|
inputs["sourceCodeHash"] = args ? args.sourceCodeHash : undefined;
|
|
105
62
|
inputs["arn"] = undefined /*out*/;
|
|
106
63
|
inputs["createdDate"] = undefined /*out*/;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layerVersion.js","sourceRoot":"","sources":["../../lambda/layerVersion.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"layerVersion.js","sourceRoot":"","sources":["../../lambda/layerVersion.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;GAYG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IA0GnD,YAAY,IAAY,EAAE,WAAkD,EAAE,IAAmC;QAC7G,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA4C,CAAC;YAC3D,MAAM,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9C,MAAM,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YAChD,MAAM,CAAC,yBAAyB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC,CAAC,SAAS,CAAC;YACtF,MAAM,CAAC,oBAAoB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5E,MAAM,CAAC,aAAa,CA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