@aws-sdk/client-lambda 3.654.0 → 3.655.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/dist-cjs/index.js +31 -24
- package/dist-es/models/models_0.js +14 -14
- package/dist-es/protocols/Aws_restJson1.js +10 -3
- package/dist-types/commands/AddPermissionCommand.d.ts +6 -1
- package/dist-types/commands/CreateCodeSigningConfigCommand.d.ts +3 -0
- package/dist-types/commands/CreateEventSourceMappingCommand.d.ts +4 -0
- package/dist-types/commands/DeleteEventSourceMappingCommand.d.ts +1 -0
- package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +5 -1
- package/dist-types/commands/GetEventSourceMappingCommand.d.ts +1 -0
- package/dist-types/commands/GetPublicAccessBlockConfigCommand.d.ts +5 -1
- package/dist-types/commands/GetResourcePolicyCommand.d.ts +5 -1
- package/dist-types/commands/ListEventSourceMappingsCommand.d.ts +1 -0
- package/dist-types/commands/ListTagsCommand.d.ts +2 -2
- package/dist-types/commands/PutPublicAccessBlockConfigCommand.d.ts +5 -1
- package/dist-types/commands/PutResourcePolicyCommand.d.ts +5 -1
- package/dist-types/commands/RemovePermissionCommand.d.ts +5 -0
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateEventSourceMappingCommand.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +42 -27
- package/dist-types/ts3.4/models/models_0.d.ts +12 -9
- package/package.json +1 -1
package/dist-cjs/index.js
CHANGED
|
@@ -527,6 +527,25 @@ var FunctionUrlAuthType = {
|
|
|
527
527
|
AWS_IAM: "AWS_IAM",
|
|
528
528
|
NONE: "NONE"
|
|
529
529
|
};
|
|
530
|
+
var _PublicPolicyException = class _PublicPolicyException extends LambdaServiceException {
|
|
531
|
+
/**
|
|
532
|
+
* @internal
|
|
533
|
+
*/
|
|
534
|
+
constructor(opts) {
|
|
535
|
+
super({
|
|
536
|
+
name: "PublicPolicyException",
|
|
537
|
+
$fault: "client",
|
|
538
|
+
...opts
|
|
539
|
+
});
|
|
540
|
+
this.name = "PublicPolicyException";
|
|
541
|
+
this.$fault = "client";
|
|
542
|
+
Object.setPrototypeOf(this, _PublicPolicyException.prototype);
|
|
543
|
+
this.Type = opts.Type;
|
|
544
|
+
this.Message = opts.Message;
|
|
545
|
+
}
|
|
546
|
+
};
|
|
547
|
+
__name(_PublicPolicyException, "PublicPolicyException");
|
|
548
|
+
var PublicPolicyException = _PublicPolicyException;
|
|
530
549
|
var ApplicationLogLevel = {
|
|
531
550
|
Debug: "DEBUG",
|
|
532
551
|
Error: "ERROR",
|
|
@@ -1321,25 +1340,6 @@ var InvokeWithResponseStreamResponseEvent;
|
|
|
1321
1340
|
var FunctionVersion = {
|
|
1322
1341
|
ALL: "ALL"
|
|
1323
1342
|
};
|
|
1324
|
-
var _PublicPolicyException = class _PublicPolicyException extends LambdaServiceException {
|
|
1325
|
-
/**
|
|
1326
|
-
* @internal
|
|
1327
|
-
*/
|
|
1328
|
-
constructor(opts) {
|
|
1329
|
-
super({
|
|
1330
|
-
name: "PublicPolicyException",
|
|
1331
|
-
$fault: "client",
|
|
1332
|
-
...opts
|
|
1333
|
-
});
|
|
1334
|
-
this.name = "PublicPolicyException";
|
|
1335
|
-
this.$fault = "client";
|
|
1336
|
-
Object.setPrototypeOf(this, _PublicPolicyException.prototype);
|
|
1337
|
-
this.Type = opts.Type;
|
|
1338
|
-
this.Message = opts.Message;
|
|
1339
|
-
}
|
|
1340
|
-
};
|
|
1341
|
-
__name(_PublicPolicyException, "PublicPolicyException");
|
|
1342
|
-
var PublicPolicyException = _PublicPolicyException;
|
|
1343
1343
|
var FunctionCodeFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1344
1344
|
...obj,
|
|
1345
1345
|
...obj.ZipFile && { ZipFile: import_smithy_client.SENSITIVE_STRING }
|
|
@@ -1529,7 +1529,8 @@ var se_CreateCodeSigningConfigCommand = /* @__PURE__ */ __name(async (input, con
|
|
|
1529
1529
|
(0, import_smithy_client.take)(input, {
|
|
1530
1530
|
AllowedPublishers: (_) => (0, import_smithy_client._json)(_),
|
|
1531
1531
|
CodeSigningPolicies: (_) => (0, import_smithy_client._json)(_),
|
|
1532
|
-
Description: []
|
|
1532
|
+
Description: [],
|
|
1533
|
+
Tags: (_) => (0, import_smithy_client._json)(_)
|
|
1533
1534
|
})
|
|
1534
1535
|
);
|
|
1535
1536
|
b.m("POST").h(headers).b(body);
|
|
@@ -1566,6 +1567,7 @@ var se_CreateEventSourceMappingCommand = /* @__PURE__ */ __name(async (input, co
|
|
|
1566
1567
|
SourceAccessConfigurations: (_) => (0, import_smithy_client._json)(_),
|
|
1567
1568
|
StartingPosition: [],
|
|
1568
1569
|
StartingPositionTimestamp: (_) => _.getTime() / 1e3,
|
|
1570
|
+
Tags: (_) => (0, import_smithy_client._json)(_),
|
|
1569
1571
|
Topics: (_) => (0, import_smithy_client._json)(_),
|
|
1570
1572
|
TumblingWindowInSeconds: []
|
|
1571
1573
|
})
|
|
@@ -2640,6 +2642,7 @@ var de_CreateEventSourceMappingCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2640
2642
|
DestinationConfig: import_smithy_client._json,
|
|
2641
2643
|
DocumentDBEventSourceConfig: import_smithy_client._json,
|
|
2642
2644
|
EventSourceArn: import_smithy_client.expectString,
|
|
2645
|
+
EventSourceMappingArn: import_smithy_client.expectString,
|
|
2643
2646
|
FilterCriteria: import_smithy_client._json,
|
|
2644
2647
|
FilterCriteriaError: import_smithy_client._json,
|
|
2645
2648
|
FunctionArn: import_smithy_client.expectString,
|
|
@@ -2770,6 +2773,7 @@ var de_DeleteEventSourceMappingCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2770
2773
|
DestinationConfig: import_smithy_client._json,
|
|
2771
2774
|
DocumentDBEventSourceConfig: import_smithy_client._json,
|
|
2772
2775
|
EventSourceArn: import_smithy_client.expectString,
|
|
2776
|
+
EventSourceMappingArn: import_smithy_client.expectString,
|
|
2773
2777
|
FilterCriteria: import_smithy_client._json,
|
|
2774
2778
|
FilterCriteriaError: import_smithy_client._json,
|
|
2775
2779
|
FunctionArn: import_smithy_client.expectString,
|
|
@@ -2940,6 +2944,7 @@ var de_GetEventSourceMappingCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2940
2944
|
DestinationConfig: import_smithy_client._json,
|
|
2941
2945
|
DocumentDBEventSourceConfig: import_smithy_client._json,
|
|
2942
2946
|
EventSourceArn: import_smithy_client.expectString,
|
|
2947
|
+
EventSourceMappingArn: import_smithy_client.expectString,
|
|
2943
2948
|
FilterCriteria: import_smithy_client._json,
|
|
2944
2949
|
FilterCriteriaError: import_smithy_client._json,
|
|
2945
2950
|
FunctionArn: import_smithy_client.expectString,
|
|
@@ -3761,6 +3766,7 @@ var de_UpdateEventSourceMappingCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
3761
3766
|
DestinationConfig: import_smithy_client._json,
|
|
3762
3767
|
DocumentDBEventSourceConfig: import_smithy_client._json,
|
|
3763
3768
|
EventSourceArn: import_smithy_client.expectString,
|
|
3769
|
+
EventSourceMappingArn: import_smithy_client.expectString,
|
|
3764
3770
|
FilterCriteria: import_smithy_client._json,
|
|
3765
3771
|
FilterCriteriaError: import_smithy_client._json,
|
|
3766
3772
|
FunctionArn: import_smithy_client.expectString,
|
|
@@ -3952,6 +3958,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3952
3958
|
case "TooManyRequestsException":
|
|
3953
3959
|
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
3954
3960
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3961
|
+
case "PublicPolicyException":
|
|
3962
|
+
case "com.amazonaws.lambda#PublicPolicyException":
|
|
3963
|
+
throw await de_PublicPolicyExceptionRes(parsedOutput, context);
|
|
3955
3964
|
case "CodeSigningConfigNotFoundException":
|
|
3956
3965
|
case "com.amazonaws.lambda#CodeSigningConfigNotFoundException":
|
|
3957
3966
|
throw await de_CodeSigningConfigNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -4045,9 +4054,6 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4045
4054
|
case "UnsupportedMediaTypeException":
|
|
4046
4055
|
case "com.amazonaws.lambda#UnsupportedMediaTypeException":
|
|
4047
4056
|
throw await de_UnsupportedMediaTypeExceptionRes(parsedOutput, context);
|
|
4048
|
-
case "PublicPolicyException":
|
|
4049
|
-
case "com.amazonaws.lambda#PublicPolicyException":
|
|
4050
|
-
throw await de_PublicPolicyExceptionRes(parsedOutput, context);
|
|
4051
4057
|
default:
|
|
4052
4058
|
const parsedBody = parsedOutput.body;
|
|
4053
4059
|
return throwDefaultError({
|
|
@@ -4703,6 +4709,7 @@ var de_EventSourceMappingConfiguration = /* @__PURE__ */ __name((output, context
|
|
|
4703
4709
|
DestinationConfig: import_smithy_client._json,
|
|
4704
4710
|
DocumentDBEventSourceConfig: import_smithy_client._json,
|
|
4705
4711
|
EventSourceArn: import_smithy_client.expectString,
|
|
4712
|
+
EventSourceMappingArn: import_smithy_client.expectString,
|
|
4706
4713
|
FilterCriteria: import_smithy_client._json,
|
|
4707
4714
|
FilterCriteriaError: import_smithy_client._json,
|
|
4708
4715
|
FunctionArn: import_smithy_client.expectString,
|
|
@@ -6323,6 +6330,7 @@ var waitUntilPublishedVersionActive = /* @__PURE__ */ __name(async (params, inpu
|
|
|
6323
6330
|
ThrottleReason,
|
|
6324
6331
|
TooManyRequestsException,
|
|
6325
6332
|
FunctionUrlAuthType,
|
|
6333
|
+
PublicPolicyException,
|
|
6326
6334
|
ApplicationLogLevel,
|
|
6327
6335
|
Architecture,
|
|
6328
6336
|
CodeSigningPolicy,
|
|
@@ -6382,7 +6390,6 @@ var waitUntilPublishedVersionActive = /* @__PURE__ */ __name(async (params, inpu
|
|
|
6382
6390
|
ResponseStreamingInvocationType,
|
|
6383
6391
|
InvokeWithResponseStreamResponseEvent,
|
|
6384
6392
|
FunctionVersion,
|
|
6385
|
-
PublicPolicyException,
|
|
6386
6393
|
FunctionCodeFilterSensitiveLog,
|
|
6387
6394
|
EnvironmentFilterSensitiveLog,
|
|
6388
6395
|
CreateFunctionRequestFilterSensitiveLog,
|
|
@@ -107,6 +107,20 @@ export const FunctionUrlAuthType = {
|
|
|
107
107
|
AWS_IAM: "AWS_IAM",
|
|
108
108
|
NONE: "NONE",
|
|
109
109
|
};
|
|
110
|
+
export class PublicPolicyException extends __BaseException {
|
|
111
|
+
constructor(opts) {
|
|
112
|
+
super({
|
|
113
|
+
name: "PublicPolicyException",
|
|
114
|
+
$fault: "client",
|
|
115
|
+
...opts,
|
|
116
|
+
});
|
|
117
|
+
this.name = "PublicPolicyException";
|
|
118
|
+
this.$fault = "client";
|
|
119
|
+
Object.setPrototypeOf(this, PublicPolicyException.prototype);
|
|
120
|
+
this.Type = opts.Type;
|
|
121
|
+
this.Message = opts.Message;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
110
124
|
export const ApplicationLogLevel = {
|
|
111
125
|
Debug: "DEBUG",
|
|
112
126
|
Error: "ERROR",
|
|
@@ -746,20 +760,6 @@ export var InvokeWithResponseStreamResponseEvent;
|
|
|
746
760
|
export const FunctionVersion = {
|
|
747
761
|
ALL: "ALL",
|
|
748
762
|
};
|
|
749
|
-
export class PublicPolicyException extends __BaseException {
|
|
750
|
-
constructor(opts) {
|
|
751
|
-
super({
|
|
752
|
-
name: "PublicPolicyException",
|
|
753
|
-
$fault: "client",
|
|
754
|
-
...opts,
|
|
755
|
-
});
|
|
756
|
-
this.name = "PublicPolicyException";
|
|
757
|
-
this.$fault = "client";
|
|
758
|
-
Object.setPrototypeOf(this, PublicPolicyException.prototype);
|
|
759
|
-
this.Type = opts.Type;
|
|
760
|
-
this.Message = opts.Message;
|
|
761
|
-
}
|
|
762
|
-
}
|
|
763
763
|
export const FunctionCodeFilterSensitiveLog = (obj) => ({
|
|
764
764
|
...obj,
|
|
765
765
|
...(obj.ZipFile && { ZipFile: SENSITIVE_STRING }),
|
|
@@ -77,6 +77,7 @@ export const se_CreateCodeSigningConfigCommand = async (input, context) => {
|
|
|
77
77
|
AllowedPublishers: (_) => _json(_),
|
|
78
78
|
CodeSigningPolicies: (_) => _json(_),
|
|
79
79
|
Description: [],
|
|
80
|
+
Tags: (_) => _json(_),
|
|
80
81
|
}));
|
|
81
82
|
b.m("POST").h(headers).b(body);
|
|
82
83
|
return b.build();
|
|
@@ -111,6 +112,7 @@ export const se_CreateEventSourceMappingCommand = async (input, context) => {
|
|
|
111
112
|
SourceAccessConfigurations: (_) => _json(_),
|
|
112
113
|
StartingPosition: [],
|
|
113
114
|
StartingPositionTimestamp: (_) => _.getTime() / 1000,
|
|
115
|
+
Tags: (_) => _json(_),
|
|
114
116
|
Topics: (_) => _json(_),
|
|
115
117
|
TumblingWindowInSeconds: [],
|
|
116
118
|
}));
|
|
@@ -1144,6 +1146,7 @@ export const de_CreateEventSourceMappingCommand = async (output, context) => {
|
|
|
1144
1146
|
DestinationConfig: _json,
|
|
1145
1147
|
DocumentDBEventSourceConfig: _json,
|
|
1146
1148
|
EventSourceArn: __expectString,
|
|
1149
|
+
EventSourceMappingArn: __expectString,
|
|
1147
1150
|
FilterCriteria: _json,
|
|
1148
1151
|
FilterCriteriaError: _json,
|
|
1149
1152
|
FunctionArn: __expectString,
|
|
@@ -1274,6 +1277,7 @@ export const de_DeleteEventSourceMappingCommand = async (output, context) => {
|
|
|
1274
1277
|
DestinationConfig: _json,
|
|
1275
1278
|
DocumentDBEventSourceConfig: _json,
|
|
1276
1279
|
EventSourceArn: __expectString,
|
|
1280
|
+
EventSourceMappingArn: __expectString,
|
|
1277
1281
|
FilterCriteria: _json,
|
|
1278
1282
|
FilterCriteriaError: _json,
|
|
1279
1283
|
FunctionArn: __expectString,
|
|
@@ -1444,6 +1448,7 @@ export const de_GetEventSourceMappingCommand = async (output, context) => {
|
|
|
1444
1448
|
DestinationConfig: _json,
|
|
1445
1449
|
DocumentDBEventSourceConfig: _json,
|
|
1446
1450
|
EventSourceArn: __expectString,
|
|
1451
|
+
EventSourceMappingArn: __expectString,
|
|
1447
1452
|
FilterCriteria: _json,
|
|
1448
1453
|
FilterCriteriaError: _json,
|
|
1449
1454
|
FunctionArn: __expectString,
|
|
@@ -2265,6 +2270,7 @@ export const de_UpdateEventSourceMappingCommand = async (output, context) => {
|
|
|
2265
2270
|
DestinationConfig: _json,
|
|
2266
2271
|
DocumentDBEventSourceConfig: _json,
|
|
2267
2272
|
EventSourceArn: __expectString,
|
|
2273
|
+
EventSourceMappingArn: __expectString,
|
|
2268
2274
|
FilterCriteria: _json,
|
|
2269
2275
|
FilterCriteriaError: _json,
|
|
2270
2276
|
FunctionArn: __expectString,
|
|
@@ -2456,6 +2462,9 @@ const de_CommandError = async (output, context) => {
|
|
|
2456
2462
|
case "TooManyRequestsException":
|
|
2457
2463
|
case "com.amazonaws.lambda#TooManyRequestsException":
|
|
2458
2464
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2465
|
+
case "PublicPolicyException":
|
|
2466
|
+
case "com.amazonaws.lambda#PublicPolicyException":
|
|
2467
|
+
throw await de_PublicPolicyExceptionRes(parsedOutput, context);
|
|
2459
2468
|
case "CodeSigningConfigNotFoundException":
|
|
2460
2469
|
case "com.amazonaws.lambda#CodeSigningConfigNotFoundException":
|
|
2461
2470
|
throw await de_CodeSigningConfigNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -2549,9 +2558,6 @@ const de_CommandError = async (output, context) => {
|
|
|
2549
2558
|
case "UnsupportedMediaTypeException":
|
|
2550
2559
|
case "com.amazonaws.lambda#UnsupportedMediaTypeException":
|
|
2551
2560
|
throw await de_UnsupportedMediaTypeExceptionRes(parsedOutput, context);
|
|
2552
|
-
case "PublicPolicyException":
|
|
2553
|
-
case "com.amazonaws.lambda#PublicPolicyException":
|
|
2554
|
-
throw await de_PublicPolicyExceptionRes(parsedOutput, context);
|
|
2555
2561
|
default:
|
|
2556
2562
|
const parsedBody = parsedOutput.body;
|
|
2557
2563
|
return throwDefaultError({
|
|
@@ -3209,6 +3215,7 @@ const de_EventSourceMappingConfiguration = (output, context) => {
|
|
|
3209
3215
|
DestinationConfig: _json,
|
|
3210
3216
|
DocumentDBEventSourceConfig: _json,
|
|
3211
3217
|
EventSourceArn: __expectString,
|
|
3218
|
+
EventSourceMappingArn: __expectString,
|
|
3212
3219
|
FilterCriteria: _json,
|
|
3213
3220
|
FilterCriteriaError: _json,
|
|
3214
3221
|
FunctionArn: __expectString,
|
|
@@ -27,7 +27,7 @@ declare const AddPermissionCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Grants
|
|
30
|
+
* <p>Grants a <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying">principal</a>
|
|
31
31
|
* permission to use a function. You can apply the policy at the function level, or specify a qualifier to restrict
|
|
32
32
|
* access to a single version or alias. If you use a qualifier, the invoker must use the full Amazon Resource Name
|
|
33
33
|
* (ARN) of that version or alias to invoke the function. Note: Lambda does not support adding policies
|
|
@@ -92,6 +92,11 @@ declare const AddPermissionCommand_base: {
|
|
|
92
92
|
* </li>
|
|
93
93
|
* </ul>
|
|
94
94
|
*
|
|
95
|
+
* @throws {@link PublicPolicyException} (client fault)
|
|
96
|
+
* <p>Lambda prevented your policy from being created because it would grant public access to your function. If you intended to
|
|
97
|
+
* create a public policy, use the <a>PutPublicAccessBlockConfig</a> API action to configure your function's public-access settings
|
|
98
|
+
* to allow public policies.</p>
|
|
99
|
+
*
|
|
95
100
|
* @throws {@link ResourceConflictException} (client fault)
|
|
96
101
|
* <p>The resource already exists, or another operation is in progress.</p>
|
|
97
102
|
*
|
|
@@ -46,6 +46,9 @@ declare const CreateCodeSigningConfigCommand_base: {
|
|
|
46
46
|
* CodeSigningPolicies: { // CodeSigningPolicies
|
|
47
47
|
* UntrustedArtifactOnDeployment: "Warn" || "Enforce",
|
|
48
48
|
* },
|
|
49
|
+
* Tags: { // Tags
|
|
50
|
+
* "<keys>": "STRING_VALUE",
|
|
51
|
+
* },
|
|
49
52
|
* };
|
|
50
53
|
* const command = new CreateCodeSigningConfigCommand(input);
|
|
51
54
|
* const response = await client.send(command);
|
|
@@ -174,6 +174,9 @@ declare const CreateEventSourceMappingCommand_base: {
|
|
|
174
174
|
* MaximumRecordAgeInSeconds: Number("int"),
|
|
175
175
|
* BisectBatchOnFunctionError: true || false,
|
|
176
176
|
* MaximumRetryAttempts: Number("int"),
|
|
177
|
+
* Tags: { // Tags
|
|
178
|
+
* "<keys>": "STRING_VALUE",
|
|
179
|
+
* },
|
|
177
180
|
* TumblingWindowInSeconds: Number("int"),
|
|
178
181
|
* Topics: [ // Topics
|
|
179
182
|
* "STRING_VALUE",
|
|
@@ -288,6 +291,7 @@ declare const CreateEventSourceMappingCommand_base: {
|
|
|
288
291
|
* // ErrorCode: "STRING_VALUE",
|
|
289
292
|
* // Message: "STRING_VALUE",
|
|
290
293
|
* // },
|
|
294
|
+
* // EventSourceMappingArn: "STRING_VALUE",
|
|
291
295
|
* // };
|
|
292
296
|
*
|
|
293
297
|
* ```
|
|
@@ -27,7 +27,11 @@ declare const DeleteResourcePolicyCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <
|
|
30
|
+
* <note>
|
|
31
|
+
* <p>The option to create and modify full JSON resource-based policies, and to use the PutResourcePolicy, GetResourcePolicy, and DeleteResourcePolicy APIs, won't be
|
|
32
|
+
* available in all Amazon Web Services Regions until September 30, 2024.</p>
|
|
33
|
+
* </note>
|
|
34
|
+
* <p>Deletes a <a href="https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html">resource-based policy</a> from a function.</p>
|
|
31
35
|
* @example
|
|
32
36
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
37
|
* ```javascript
|
|
@@ -27,7 +27,11 @@ declare const GetPublicAccessBlockConfigCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <
|
|
30
|
+
* <note>
|
|
31
|
+
* <p>The option to configure public-access settings, and to use the PutPublicAccessBlock and GetPublicAccessBlock APIs, won't be
|
|
32
|
+
* available in all Amazon Web Services Regions until September 30, 2024.</p>
|
|
33
|
+
* </note>
|
|
34
|
+
* <p>Retrieve the public-access settings for a function.</p>
|
|
31
35
|
* @example
|
|
32
36
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
37
|
* ```javascript
|
|
@@ -27,7 +27,11 @@ declare const GetResourcePolicyCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <
|
|
30
|
+
* <note>
|
|
31
|
+
* <p>The option to create and modify full JSON resource-based policies, and to use the PutResourcePolicy, GetResourcePolicy, and DeleteResourcePolicy APIs, won't be
|
|
32
|
+
* available in all Amazon Web Services Regions until September 30, 2024.</p>
|
|
33
|
+
* </note>
|
|
34
|
+
* <p>Retrieves the <a href="https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html">resource-based policy</a> attached to a function.</p>
|
|
31
35
|
* @example
|
|
32
36
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
37
|
* ```javascript
|
|
@@ -27,8 +27,8 @@ declare const ListTagsCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Returns a function's <a href="https://docs.aws.amazon.com/lambda/latest/dg/tagging.html">tags</a>. You can
|
|
31
|
-
* also view tags with <a>GetFunction</a>.</p>
|
|
30
|
+
* <p>Returns a function, event source mapping, or code signing configuration's <a href="https://docs.aws.amazon.com/lambda/latest/dg/tagging.html">tags</a>. You can
|
|
31
|
+
* also view funciton tags with <a>GetFunction</a>.</p>
|
|
32
32
|
* @example
|
|
33
33
|
* Use a bare-bones client and the command you need to make an API call.
|
|
34
34
|
* ```javascript
|
|
@@ -27,7 +27,11 @@ declare const PutPublicAccessBlockConfigCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <
|
|
30
|
+
* <note>
|
|
31
|
+
* <p>The option to configure public-access settings, and to use the PutPublicAccessBlock and GetPublicAccessBlock APIs, won't be
|
|
32
|
+
* available in all Amazon Web Services Regions until September 30, 2024.</p>
|
|
33
|
+
* </note>
|
|
34
|
+
* <p>Configure your function's public-access settings.</p>
|
|
31
35
|
* <p>To control public access to a Lambda function, you can choose whether to allow the creation of
|
|
32
36
|
* <a href="https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html">resource-based policies</a> that
|
|
33
37
|
* allow public access to that function. You can also block public access to a function, even if it has an existing resource-based
|
|
@@ -27,7 +27,11 @@ declare const PutResourcePolicyCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <
|
|
30
|
+
* <note>
|
|
31
|
+
* <p>The option to create and modify full JSON resource-based policies, and to use the PutResourcePolicy, GetResourcePolicy, and DeleteResourcePolicy APIs, won't be
|
|
32
|
+
* available in all Amazon Web Services Regions until September 30, 2024.</p>
|
|
33
|
+
* </note>
|
|
34
|
+
* <p>Adds a <a href="https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html">resource-based policy</a>
|
|
31
35
|
* to a function. You can use resource-based policies to grant access to other
|
|
32
36
|
* <a href="https://docs.aws.amazon.com/lambda/latest/dg/permissions-function-cross-account.html">Amazon Web Services accounts</a>,
|
|
33
37
|
* <a href="https://docs.aws.amazon.com/lambda/latest/dg/permissions-function-organization.html">organizations</a>, or
|
|
@@ -69,6 +69,11 @@ declare const RemovePermissionCommand_base: {
|
|
|
69
69
|
* </li>
|
|
70
70
|
* </ul>
|
|
71
71
|
*
|
|
72
|
+
* @throws {@link PublicPolicyException} (client fault)
|
|
73
|
+
* <p>Lambda prevented your policy from being created because it would grant public access to your function. If you intended to
|
|
74
|
+
* create a public policy, use the <a>PutPublicAccessBlockConfig</a> API action to configure your function's public-access settings
|
|
75
|
+
* to allow public policies.</p>
|
|
76
|
+
*
|
|
72
77
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
73
78
|
* <p>The resource specified in the request does not exist.</p>
|
|
74
79
|
*
|
|
@@ -27,7 +27,7 @@ declare const TagResourceCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Adds <a href="https://docs.aws.amazon.com/lambda/latest/dg/tagging.html">tags</a> to a function.</p>
|
|
30
|
+
* <p>Adds <a href="https://docs.aws.amazon.com/lambda/latest/dg/tagging.html">tags</a> to a function, event source mapping, or code signing configuration.</p>
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -27,7 +27,7 @@ declare const UntagResourceCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Removes <a href="https://docs.aws.amazon.com/lambda/latest/dg/tagging.html">tags</a> from a function.</p>
|
|
30
|
+
* <p>Removes <a href="https://docs.aws.amazon.com/lambda/latest/dg/tagging.html">tags</a> from a function, event source mapping, or code signing configuration.</p>
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -299,7 +299,7 @@ export interface AddPermissionRequest {
|
|
|
299
299
|
*/
|
|
300
300
|
Action: string | undefined;
|
|
301
301
|
/**
|
|
302
|
-
* <p>The Amazon Web Servicesservice
|
|
302
|
+
* <p>The Amazon Web Servicesservice, Amazon Web Services account, IAM user, or IAM role that invokes the function. If you specify a
|
|
303
303
|
* service, use <code>SourceArn</code> or <code>SourceAccount</code> to limit who can invoke the function through
|
|
304
304
|
* that service.</p>
|
|
305
305
|
* @public
|
|
@@ -359,6 +359,26 @@ export interface AddPermissionResponse {
|
|
|
359
359
|
*/
|
|
360
360
|
Statement?: string;
|
|
361
361
|
}
|
|
362
|
+
/**
|
|
363
|
+
* <p>Lambda prevented your policy from being created because it would grant public access to your function. If you intended to
|
|
364
|
+
* create a public policy, use the <a>PutPublicAccessBlockConfig</a> API action to configure your function's public-access settings
|
|
365
|
+
* to allow public policies.</p>
|
|
366
|
+
* @public
|
|
367
|
+
*/
|
|
368
|
+
export declare class PublicPolicyException extends __BaseException {
|
|
369
|
+
readonly name: "PublicPolicyException";
|
|
370
|
+
readonly $fault: "client";
|
|
371
|
+
/**
|
|
372
|
+
* <p>The exception type.</p>
|
|
373
|
+
* @public
|
|
374
|
+
*/
|
|
375
|
+
Type?: string;
|
|
376
|
+
Message?: string;
|
|
377
|
+
/**
|
|
378
|
+
* @internal
|
|
379
|
+
*/
|
|
380
|
+
constructor(opts: __ExceptionOptionType<PublicPolicyException, __BaseException>);
|
|
381
|
+
}
|
|
362
382
|
/**
|
|
363
383
|
* <p>The <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-traffic-shifting-using-aliases.html">traffic-shifting</a> configuration of a Lambda function alias.</p>
|
|
364
384
|
* @public
|
|
@@ -557,6 +577,11 @@ export interface CreateCodeSigningConfigRequest {
|
|
|
557
577
|
* @public
|
|
558
578
|
*/
|
|
559
579
|
CodeSigningPolicies?: CodeSigningPolicies;
|
|
580
|
+
/**
|
|
581
|
+
* <p>A list of tags to add to the code signing configuration.</p>
|
|
582
|
+
* @public
|
|
583
|
+
*/
|
|
584
|
+
Tags?: Record<string, string>;
|
|
560
585
|
}
|
|
561
586
|
/**
|
|
562
587
|
* <p>Details about a <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-codesigning.html">Code signing configuration</a>. </p>
|
|
@@ -1029,6 +1054,11 @@ export interface CreateEventSourceMappingRequest {
|
|
|
1029
1054
|
* @public
|
|
1030
1055
|
*/
|
|
1031
1056
|
MaximumRetryAttempts?: number;
|
|
1057
|
+
/**
|
|
1058
|
+
* <p>A list of tags to apply to the event source mapping.</p>
|
|
1059
|
+
* @public
|
|
1060
|
+
*/
|
|
1061
|
+
Tags?: Record<string, string>;
|
|
1032
1062
|
/**
|
|
1033
1063
|
* <p>(Kinesis and DynamoDB Streams only) The duration in seconds of a processing window for DynamoDB and Kinesis Streams event sources. A value of 0 seconds indicates no tumbling window.</p>
|
|
1034
1064
|
* @public
|
|
@@ -1280,6 +1310,11 @@ export interface EventSourceMappingConfiguration {
|
|
|
1280
1310
|
* @public
|
|
1281
1311
|
*/
|
|
1282
1312
|
FilterCriteriaError?: FilterCriteriaError;
|
|
1313
|
+
/**
|
|
1314
|
+
* <p>The Amazon Resource Name (ARN) of the event source mapping.</p>
|
|
1315
|
+
* @public
|
|
1316
|
+
*/
|
|
1317
|
+
EventSourceMappingArn?: string;
|
|
1283
1318
|
}
|
|
1284
1319
|
/**
|
|
1285
1320
|
* <p>The specified code signing configuration does not exist.</p>
|
|
@@ -5155,8 +5190,8 @@ export interface ListProvisionedConcurrencyConfigsResponse {
|
|
|
5155
5190
|
*/
|
|
5156
5191
|
export interface ListTagsRequest {
|
|
5157
5192
|
/**
|
|
5158
|
-
* <p>The
|
|
5159
|
-
* Note: Lambda does not support adding tags to aliases or versions.</p>
|
|
5193
|
+
* <p>The resource's Amazon Resource Name (ARN).
|
|
5194
|
+
* Note: Lambda does not support adding tags to function aliases or versions.</p>
|
|
5160
5195
|
* @public
|
|
5161
5196
|
*/
|
|
5162
5197
|
Resource: string | undefined;
|
|
@@ -5746,26 +5781,6 @@ export interface PutPublicAccessBlockConfigResponse {
|
|
|
5746
5781
|
*/
|
|
5747
5782
|
PublicAccessBlockConfig?: PublicAccessBlockConfig;
|
|
5748
5783
|
}
|
|
5749
|
-
/**
|
|
5750
|
-
* <p>Lambda prevented your policy from being created because it would grant public access to your function. If you intended to
|
|
5751
|
-
* create a public policy, use the <a>PutPublicAccessBlockConfig</a> API action to configure your function's public-access settings
|
|
5752
|
-
* to allow public policies.</p>
|
|
5753
|
-
* @public
|
|
5754
|
-
*/
|
|
5755
|
-
export declare class PublicPolicyException extends __BaseException {
|
|
5756
|
-
readonly name: "PublicPolicyException";
|
|
5757
|
-
readonly $fault: "client";
|
|
5758
|
-
/**
|
|
5759
|
-
* <p>The exception type.</p>
|
|
5760
|
-
* @public
|
|
5761
|
-
*/
|
|
5762
|
-
Type?: string;
|
|
5763
|
-
Message?: string;
|
|
5764
|
-
/**
|
|
5765
|
-
* @internal
|
|
5766
|
-
*/
|
|
5767
|
-
constructor(opts: __ExceptionOptionType<PublicPolicyException, __BaseException>);
|
|
5768
|
-
}
|
|
5769
5784
|
/**
|
|
5770
5785
|
* @public
|
|
5771
5786
|
*/
|
|
@@ -5970,12 +5985,12 @@ export interface RemovePermissionRequest {
|
|
|
5970
5985
|
*/
|
|
5971
5986
|
export interface TagResourceRequest {
|
|
5972
5987
|
/**
|
|
5973
|
-
* <p>The
|
|
5988
|
+
* <p>The resource's Amazon Resource Name (ARN).</p>
|
|
5974
5989
|
* @public
|
|
5975
5990
|
*/
|
|
5976
5991
|
Resource: string | undefined;
|
|
5977
5992
|
/**
|
|
5978
|
-
* <p>A list of tags to apply to the
|
|
5993
|
+
* <p>A list of tags to apply to the resource.</p>
|
|
5979
5994
|
* @public
|
|
5980
5995
|
*/
|
|
5981
5996
|
Tags: Record<string, string> | undefined;
|
|
@@ -5985,12 +6000,12 @@ export interface TagResourceRequest {
|
|
|
5985
6000
|
*/
|
|
5986
6001
|
export interface UntagResourceRequest {
|
|
5987
6002
|
/**
|
|
5988
|
-
* <p>The
|
|
6003
|
+
* <p>The resource's Amazon Resource Name (ARN).</p>
|
|
5989
6004
|
* @public
|
|
5990
6005
|
*/
|
|
5991
6006
|
Resource: string | undefined;
|
|
5992
6007
|
/**
|
|
5993
|
-
* <p>A list of tag keys to remove from the
|
|
6008
|
+
* <p>A list of tag keys to remove from the resource.</p>
|
|
5994
6009
|
* @public
|
|
5995
6010
|
*/
|
|
5996
6011
|
TagKeys: string[] | undefined;
|
|
@@ -115,6 +115,15 @@ export interface AddPermissionRequest {
|
|
|
115
115
|
export interface AddPermissionResponse {
|
|
116
116
|
Statement?: string;
|
|
117
117
|
}
|
|
118
|
+
export declare class PublicPolicyException extends __BaseException {
|
|
119
|
+
readonly name: "PublicPolicyException";
|
|
120
|
+
readonly $fault: "client";
|
|
121
|
+
Type?: string;
|
|
122
|
+
Message?: string;
|
|
123
|
+
constructor(
|
|
124
|
+
opts: __ExceptionOptionType<PublicPolicyException, __BaseException>
|
|
125
|
+
);
|
|
126
|
+
}
|
|
118
127
|
export interface AliasRoutingConfiguration {
|
|
119
128
|
AdditionalVersionWeights?: Record<string, number>;
|
|
120
129
|
}
|
|
@@ -167,6 +176,7 @@ export interface CreateCodeSigningConfigRequest {
|
|
|
167
176
|
Description?: string;
|
|
168
177
|
AllowedPublishers: AllowedPublishers | undefined;
|
|
169
178
|
CodeSigningPolicies?: CodeSigningPolicies;
|
|
179
|
+
Tags?: Record<string, string>;
|
|
170
180
|
}
|
|
171
181
|
export interface CodeSigningConfig {
|
|
172
182
|
CodeSigningConfigId: string | undefined;
|
|
@@ -260,6 +270,7 @@ export interface CreateEventSourceMappingRequest {
|
|
|
260
270
|
MaximumRecordAgeInSeconds?: number;
|
|
261
271
|
BisectBatchOnFunctionError?: boolean;
|
|
262
272
|
MaximumRetryAttempts?: number;
|
|
273
|
+
Tags?: Record<string, string>;
|
|
263
274
|
TumblingWindowInSeconds?: number;
|
|
264
275
|
Topics?: string[];
|
|
265
276
|
Queues?: string[];
|
|
@@ -306,6 +317,7 @@ export interface EventSourceMappingConfiguration {
|
|
|
306
317
|
DocumentDBEventSourceConfig?: DocumentDBEventSourceConfig;
|
|
307
318
|
KMSKeyArn?: string;
|
|
308
319
|
FilterCriteriaError?: FilterCriteriaError;
|
|
320
|
+
EventSourceMappingArn?: string;
|
|
309
321
|
}
|
|
310
322
|
export declare class CodeSigningConfigNotFoundException extends __BaseException {
|
|
311
323
|
readonly name: "CodeSigningConfigNotFoundException";
|
|
@@ -1450,15 +1462,6 @@ export interface PutPublicAccessBlockConfigRequest {
|
|
|
1450
1462
|
export interface PutPublicAccessBlockConfigResponse {
|
|
1451
1463
|
PublicAccessBlockConfig?: PublicAccessBlockConfig;
|
|
1452
1464
|
}
|
|
1453
|
-
export declare class PublicPolicyException extends __BaseException {
|
|
1454
|
-
readonly name: "PublicPolicyException";
|
|
1455
|
-
readonly $fault: "client";
|
|
1456
|
-
Type?: string;
|
|
1457
|
-
Message?: string;
|
|
1458
|
-
constructor(
|
|
1459
|
-
opts: __ExceptionOptionType<PublicPolicyException, __BaseException>
|
|
1460
|
-
);
|
|
1461
|
-
}
|
|
1462
1465
|
export interface PutResourcePolicyRequest {
|
|
1463
1466
|
ResourceArn: string | undefined;
|
|
1464
1467
|
Policy: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-lambda",
|
|
3
3
|
"description": "AWS SDK for JavaScript Lambda Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.655.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-lambda",
|