@aws-sdk/client-lambda 3.651.1 → 3.653.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/README.md +40 -0
- package/dist-cjs/index.js +254 -0
- package/dist-es/Lambda.js +10 -0
- package/dist-es/commands/DeleteResourcePolicyCommand.js +22 -0
- package/dist-es/commands/GetPublicAccessBlockConfigCommand.js +22 -0
- package/dist-es/commands/GetResourcePolicyCommand.js +22 -0
- package/dist-es/commands/PutPublicAccessBlockConfigCommand.js +22 -0
- package/dist-es/commands/PutResourcePolicyCommand.js +22 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +14 -0
- package/dist-es/protocols/Aws_restJson1.js +145 -1
- package/dist-types/Lambda.d.ts +35 -0
- package/dist-types/LambdaClient.d.ts +7 -2
- package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +87 -0
- package/dist-types/commands/GetPublicAccessBlockConfigCommand.d.ts +75 -0
- package/dist-types/commands/GetResourcePolicyCommand.d.ts +73 -0
- package/dist-types/commands/PutPublicAccessBlockConfigCommand.d.ts +86 -0
- package/dist-types/commands/PutResourcePolicyCommand.d.ts +109 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +174 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
- package/dist-types/ts3.4/Lambda.d.ts +85 -0
- package/dist-types/ts3.4/LambdaClient.d.ts +30 -0
- package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetPublicAccessBlockConfigCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/PutPublicAccessBlockConfigCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +46 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
- package/package.json +1 -1
|
@@ -746,6 +746,20 @@ export var InvokeWithResponseStreamResponseEvent;
|
|
|
746
746
|
export const FunctionVersion = {
|
|
747
747
|
ALL: "ALL",
|
|
748
748
|
};
|
|
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
|
+
}
|
|
749
763
|
export const FunctionCodeFilterSensitiveLog = (obj) => ({
|
|
750
764
|
...obj,
|
|
751
765
|
...(obj.ZipFile && { ZipFile: SENSITIVE_STRING }),
|
|
@@ -2,7 +2,7 @@ import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody a
|
|
|
2
2
|
import { requestBuilder as rb } from "@smithy/core";
|
|
3
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { LambdaServiceException as __BaseException } from "../models/LambdaServiceException";
|
|
5
|
-
import { CodeSigningConfigNotFoundException, CodeStorageExceededException, CodeVerificationFailedException, EC2AccessDeniedException, EC2ThrottledException, EC2UnexpectedException, EFSIOException, EFSMountConnectivityException, EFSMountFailureException, EFSMountTimeoutException, ENILimitReachedException, InvalidCodeSignatureException, InvalidParameterValueException, InvalidRequestContentException, InvalidRuntimeException, InvalidSecurityGroupIDException, InvalidSubnetIDException, InvalidZipFileException, KMSAccessDeniedException, KMSDisabledException, KMSInvalidStateException, KMSNotFoundException, PolicyLengthExceededException, PreconditionFailedException, ProvisionedConcurrencyConfigNotFoundException, RecursiveInvocationException, RequestTooLargeException, ResourceConflictException, ResourceInUseException, ResourceNotFoundException, ResourceNotReadyException, ServiceException, SnapStartException, SnapStartNotReadyException, SnapStartTimeoutException, SubnetIPAddressLimitReachedException, TooManyRequestsException, UnsupportedMediaTypeException, } from "../models/models_0";
|
|
5
|
+
import { CodeSigningConfigNotFoundException, CodeStorageExceededException, CodeVerificationFailedException, EC2AccessDeniedException, EC2ThrottledException, EC2UnexpectedException, EFSIOException, EFSMountConnectivityException, EFSMountFailureException, EFSMountTimeoutException, ENILimitReachedException, InvalidCodeSignatureException, InvalidParameterValueException, InvalidRequestContentException, InvalidRuntimeException, InvalidSecurityGroupIDException, InvalidSubnetIDException, InvalidZipFileException, KMSAccessDeniedException, KMSDisabledException, KMSInvalidStateException, KMSNotFoundException, PolicyLengthExceededException, PreconditionFailedException, ProvisionedConcurrencyConfigNotFoundException, PublicPolicyException, RecursiveInvocationException, RequestTooLargeException, ResourceConflictException, ResourceInUseException, ResourceNotFoundException, ResourceNotReadyException, ServiceException, SnapStartException, SnapStartNotReadyException, SnapStartTimeoutException, SubnetIPAddressLimitReachedException, TooManyRequestsException, UnsupportedMediaTypeException, } from "../models/models_0";
|
|
6
6
|
export const se_AddLayerVersionPermissionCommand = async (input, context) => {
|
|
7
7
|
const b = rb(input, context);
|
|
8
8
|
const headers = {
|
|
@@ -276,6 +276,18 @@ export const se_DeleteProvisionedConcurrencyConfigCommand = async (input, contex
|
|
|
276
276
|
b.m("DELETE").h(headers).q(query).b(body);
|
|
277
277
|
return b.build();
|
|
278
278
|
};
|
|
279
|
+
export const se_DeleteResourcePolicyCommand = async (input, context) => {
|
|
280
|
+
const b = rb(input, context);
|
|
281
|
+
const headers = {};
|
|
282
|
+
b.bp("/2024-09-16/resource-policy/{ResourceArn}");
|
|
283
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
284
|
+
const query = map({
|
|
285
|
+
[_RI]: [, input[_RI]],
|
|
286
|
+
});
|
|
287
|
+
let body;
|
|
288
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
289
|
+
return b.build();
|
|
290
|
+
};
|
|
279
291
|
export const se_GetAccountSettingsCommand = async (input, context) => {
|
|
280
292
|
const b = rb(input, context);
|
|
281
293
|
const headers = {};
|
|
@@ -443,6 +455,24 @@ export const se_GetProvisionedConcurrencyConfigCommand = async (input, context)
|
|
|
443
455
|
b.m("GET").h(headers).q(query).b(body);
|
|
444
456
|
return b.build();
|
|
445
457
|
};
|
|
458
|
+
export const se_GetPublicAccessBlockConfigCommand = async (input, context) => {
|
|
459
|
+
const b = rb(input, context);
|
|
460
|
+
const headers = {};
|
|
461
|
+
b.bp("/2024-09-16/public-access-block/{ResourceArn}");
|
|
462
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
463
|
+
let body;
|
|
464
|
+
b.m("GET").h(headers).b(body);
|
|
465
|
+
return b.build();
|
|
466
|
+
};
|
|
467
|
+
export const se_GetResourcePolicyCommand = async (input, context) => {
|
|
468
|
+
const b = rb(input, context);
|
|
469
|
+
const headers = {};
|
|
470
|
+
b.bp("/2024-09-16/resource-policy/{ResourceArn}");
|
|
471
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
472
|
+
let body;
|
|
473
|
+
b.m("GET").h(headers).b(body);
|
|
474
|
+
return b.build();
|
|
475
|
+
};
|
|
446
476
|
export const se_GetRuntimeManagementConfigCommand = async (input, context) => {
|
|
447
477
|
const b = rb(input, context);
|
|
448
478
|
const headers = {};
|
|
@@ -779,6 +809,35 @@ export const se_PutProvisionedConcurrencyConfigCommand = async (input, context)
|
|
|
779
809
|
b.m("PUT").h(headers).q(query).b(body);
|
|
780
810
|
return b.build();
|
|
781
811
|
};
|
|
812
|
+
export const se_PutPublicAccessBlockConfigCommand = async (input, context) => {
|
|
813
|
+
const b = rb(input, context);
|
|
814
|
+
const headers = {
|
|
815
|
+
"content-type": "application/json",
|
|
816
|
+
};
|
|
817
|
+
b.bp("/2024-09-16/public-access-block/{ResourceArn}");
|
|
818
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
819
|
+
let body;
|
|
820
|
+
body = JSON.stringify(take(input, {
|
|
821
|
+
PublicAccessBlockConfig: (_) => _json(_),
|
|
822
|
+
}));
|
|
823
|
+
b.m("PUT").h(headers).b(body);
|
|
824
|
+
return b.build();
|
|
825
|
+
};
|
|
826
|
+
export const se_PutResourcePolicyCommand = async (input, context) => {
|
|
827
|
+
const b = rb(input, context);
|
|
828
|
+
const headers = {
|
|
829
|
+
"content-type": "application/json",
|
|
830
|
+
};
|
|
831
|
+
b.bp("/2024-09-16/resource-policy/{ResourceArn}");
|
|
832
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
833
|
+
let body;
|
|
834
|
+
body = JSON.stringify(take(input, {
|
|
835
|
+
Policy: [],
|
|
836
|
+
RevisionId: [],
|
|
837
|
+
}));
|
|
838
|
+
b.m("PUT").h(headers).b(body);
|
|
839
|
+
return b.build();
|
|
840
|
+
};
|
|
782
841
|
export const se_PutRuntimeManagementConfigCommand = async (input, context) => {
|
|
783
842
|
const b = rb(input, context);
|
|
784
843
|
const headers = {
|
|
@@ -1312,6 +1371,16 @@ export const de_DeleteProvisionedConcurrencyConfigCommand = async (output, conte
|
|
|
1312
1371
|
await collectBody(output.body, context);
|
|
1313
1372
|
return contents;
|
|
1314
1373
|
};
|
|
1374
|
+
export const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
1375
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1376
|
+
return de_CommandError(output, context);
|
|
1377
|
+
}
|
|
1378
|
+
const contents = map({
|
|
1379
|
+
$metadata: deserializeMetadata(output),
|
|
1380
|
+
});
|
|
1381
|
+
await collectBody(output.body, context);
|
|
1382
|
+
return contents;
|
|
1383
|
+
};
|
|
1315
1384
|
export const de_GetAccountSettingsCommand = async (output, context) => {
|
|
1316
1385
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1317
1386
|
return de_CommandError(output, context);
|
|
@@ -1642,6 +1711,35 @@ export const de_GetProvisionedConcurrencyConfigCommand = async (output, context)
|
|
|
1642
1711
|
Object.assign(contents, doc);
|
|
1643
1712
|
return contents;
|
|
1644
1713
|
};
|
|
1714
|
+
export const de_GetPublicAccessBlockConfigCommand = async (output, context) => {
|
|
1715
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1716
|
+
return de_CommandError(output, context);
|
|
1717
|
+
}
|
|
1718
|
+
const contents = map({
|
|
1719
|
+
$metadata: deserializeMetadata(output),
|
|
1720
|
+
});
|
|
1721
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1722
|
+
const doc = take(data, {
|
|
1723
|
+
PublicAccessBlockConfig: _json,
|
|
1724
|
+
});
|
|
1725
|
+
Object.assign(contents, doc);
|
|
1726
|
+
return contents;
|
|
1727
|
+
};
|
|
1728
|
+
export const de_GetResourcePolicyCommand = async (output, context) => {
|
|
1729
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1730
|
+
return de_CommandError(output, context);
|
|
1731
|
+
}
|
|
1732
|
+
const contents = map({
|
|
1733
|
+
$metadata: deserializeMetadata(output),
|
|
1734
|
+
});
|
|
1735
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1736
|
+
const doc = take(data, {
|
|
1737
|
+
Policy: __expectString,
|
|
1738
|
+
RevisionId: __expectString,
|
|
1739
|
+
});
|
|
1740
|
+
Object.assign(contents, doc);
|
|
1741
|
+
return contents;
|
|
1742
|
+
};
|
|
1645
1743
|
export const de_GetRuntimeManagementConfigCommand = async (output, context) => {
|
|
1646
1744
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1647
1745
|
return de_CommandError(output, context);
|
|
@@ -2034,6 +2132,35 @@ export const de_PutProvisionedConcurrencyConfigCommand = async (output, context)
|
|
|
2034
2132
|
Object.assign(contents, doc);
|
|
2035
2133
|
return contents;
|
|
2036
2134
|
};
|
|
2135
|
+
export const de_PutPublicAccessBlockConfigCommand = async (output, context) => {
|
|
2136
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2137
|
+
return de_CommandError(output, context);
|
|
2138
|
+
}
|
|
2139
|
+
const contents = map({
|
|
2140
|
+
$metadata: deserializeMetadata(output),
|
|
2141
|
+
});
|
|
2142
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2143
|
+
const doc = take(data, {
|
|
2144
|
+
PublicAccessBlockConfig: _json,
|
|
2145
|
+
});
|
|
2146
|
+
Object.assign(contents, doc);
|
|
2147
|
+
return contents;
|
|
2148
|
+
};
|
|
2149
|
+
export const de_PutResourcePolicyCommand = async (output, context) => {
|
|
2150
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2151
|
+
return de_CommandError(output, context);
|
|
2152
|
+
}
|
|
2153
|
+
const contents = map({
|
|
2154
|
+
$metadata: deserializeMetadata(output),
|
|
2155
|
+
});
|
|
2156
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2157
|
+
const doc = take(data, {
|
|
2158
|
+
Policy: __expectString,
|
|
2159
|
+
RevisionId: __expectString,
|
|
2160
|
+
});
|
|
2161
|
+
Object.assign(contents, doc);
|
|
2162
|
+
return contents;
|
|
2163
|
+
};
|
|
2037
2164
|
export const de_PutRuntimeManagementConfigCommand = async (output, context) => {
|
|
2038
2165
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2039
2166
|
return de_CommandError(output, context);
|
|
@@ -2422,6 +2549,9 @@ const de_CommandError = async (output, context) => {
|
|
|
2422
2549
|
case "UnsupportedMediaTypeException":
|
|
2423
2550
|
case "com.amazonaws.lambda#UnsupportedMediaTypeException":
|
|
2424
2551
|
throw await de_UnsupportedMediaTypeExceptionRes(parsedOutput, context);
|
|
2552
|
+
case "PublicPolicyException":
|
|
2553
|
+
case "com.amazonaws.lambda#PublicPolicyException":
|
|
2554
|
+
throw await de_PublicPolicyExceptionRes(parsedOutput, context);
|
|
2425
2555
|
default:
|
|
2426
2556
|
const parsedBody = parsedOutput.body;
|
|
2427
2557
|
return throwDefaultError({
|
|
@@ -2783,6 +2913,20 @@ const de_ProvisionedConcurrencyConfigNotFoundExceptionRes = async (parsedOutput,
|
|
|
2783
2913
|
});
|
|
2784
2914
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2785
2915
|
};
|
|
2916
|
+
const de_PublicPolicyExceptionRes = async (parsedOutput, context) => {
|
|
2917
|
+
const contents = map({});
|
|
2918
|
+
const data = parsedOutput.body;
|
|
2919
|
+
const doc = take(data, {
|
|
2920
|
+
Message: __expectString,
|
|
2921
|
+
Type: __expectString,
|
|
2922
|
+
});
|
|
2923
|
+
Object.assign(contents, doc);
|
|
2924
|
+
const exception = new PublicPolicyException({
|
|
2925
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2926
|
+
...contents,
|
|
2927
|
+
});
|
|
2928
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
2929
|
+
};
|
|
2786
2930
|
const de_RecursiveInvocationExceptionRes = async (parsedOutput, context) => {
|
|
2787
2931
|
const contents = map({});
|
|
2788
2932
|
const data = parsedOutput.body;
|
package/dist-types/Lambda.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ import { DeleteFunctionEventInvokeConfigCommandInput, DeleteFunctionEventInvokeC
|
|
|
16
16
|
import { DeleteFunctionUrlConfigCommandInput, DeleteFunctionUrlConfigCommandOutput } from "./commands/DeleteFunctionUrlConfigCommand";
|
|
17
17
|
import { DeleteLayerVersionCommandInput, DeleteLayerVersionCommandOutput } from "./commands/DeleteLayerVersionCommand";
|
|
18
18
|
import { DeleteProvisionedConcurrencyConfigCommandInput, DeleteProvisionedConcurrencyConfigCommandOutput } from "./commands/DeleteProvisionedConcurrencyConfigCommand";
|
|
19
|
+
import { DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput } from "./commands/DeleteResourcePolicyCommand";
|
|
19
20
|
import { GetAccountSettingsCommandInput, GetAccountSettingsCommandOutput } from "./commands/GetAccountSettingsCommand";
|
|
20
21
|
import { GetAliasCommandInput, GetAliasCommandOutput } from "./commands/GetAliasCommand";
|
|
21
22
|
import { GetCodeSigningConfigCommandInput, GetCodeSigningConfigCommandOutput } from "./commands/GetCodeSigningConfigCommand";
|
|
@@ -32,6 +33,8 @@ import { GetLayerVersionCommandInput, GetLayerVersionCommandOutput } from "./com
|
|
|
32
33
|
import { GetLayerVersionPolicyCommandInput, GetLayerVersionPolicyCommandOutput } from "./commands/GetLayerVersionPolicyCommand";
|
|
33
34
|
import { GetPolicyCommandInput, GetPolicyCommandOutput } from "./commands/GetPolicyCommand";
|
|
34
35
|
import { GetProvisionedConcurrencyConfigCommandInput, GetProvisionedConcurrencyConfigCommandOutput } from "./commands/GetProvisionedConcurrencyConfigCommand";
|
|
36
|
+
import { GetPublicAccessBlockConfigCommandInput, GetPublicAccessBlockConfigCommandOutput } from "./commands/GetPublicAccessBlockConfigCommand";
|
|
37
|
+
import { GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
|
|
35
38
|
import { GetRuntimeManagementConfigCommandInput, GetRuntimeManagementConfigCommandOutput } from "./commands/GetRuntimeManagementConfigCommand";
|
|
36
39
|
import { InvokeAsyncCommandInput, InvokeAsyncCommandOutput } from "./commands/InvokeAsyncCommand";
|
|
37
40
|
import { InvokeCommandInput, InvokeCommandOutput } from "./commands/InvokeCommand";
|
|
@@ -55,6 +58,8 @@ import { PutFunctionConcurrencyCommandInput, PutFunctionConcurrencyCommandOutput
|
|
|
55
58
|
import { PutFunctionEventInvokeConfigCommandInput, PutFunctionEventInvokeConfigCommandOutput } from "./commands/PutFunctionEventInvokeConfigCommand";
|
|
56
59
|
import { PutFunctionRecursionConfigCommandInput, PutFunctionRecursionConfigCommandOutput } from "./commands/PutFunctionRecursionConfigCommand";
|
|
57
60
|
import { PutProvisionedConcurrencyConfigCommandInput, PutProvisionedConcurrencyConfigCommandOutput } from "./commands/PutProvisionedConcurrencyConfigCommand";
|
|
61
|
+
import { PutPublicAccessBlockConfigCommandInput, PutPublicAccessBlockConfigCommandOutput } from "./commands/PutPublicAccessBlockConfigCommand";
|
|
62
|
+
import { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "./commands/PutResourcePolicyCommand";
|
|
58
63
|
import { PutRuntimeManagementConfigCommandInput, PutRuntimeManagementConfigCommandOutput } from "./commands/PutRuntimeManagementConfigCommand";
|
|
59
64
|
import { RemoveLayerVersionPermissionCommandInput, RemoveLayerVersionPermissionCommandOutput } from "./commands/RemoveLayerVersionPermissionCommand";
|
|
60
65
|
import { RemovePermissionCommandInput, RemovePermissionCommandOutput } from "./commands/RemovePermissionCommand";
|
|
@@ -171,6 +176,12 @@ export interface Lambda {
|
|
|
171
176
|
deleteProvisionedConcurrencyConfig(args: DeleteProvisionedConcurrencyConfigCommandInput, options?: __HttpHandlerOptions): Promise<DeleteProvisionedConcurrencyConfigCommandOutput>;
|
|
172
177
|
deleteProvisionedConcurrencyConfig(args: DeleteProvisionedConcurrencyConfigCommandInput, cb: (err: any, data?: DeleteProvisionedConcurrencyConfigCommandOutput) => void): void;
|
|
173
178
|
deleteProvisionedConcurrencyConfig(args: DeleteProvisionedConcurrencyConfigCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteProvisionedConcurrencyConfigCommandOutput) => void): void;
|
|
179
|
+
/**
|
|
180
|
+
* @see {@link DeleteResourcePolicyCommand}
|
|
181
|
+
*/
|
|
182
|
+
deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<DeleteResourcePolicyCommandOutput>;
|
|
183
|
+
deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void): void;
|
|
184
|
+
deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void): void;
|
|
174
185
|
/**
|
|
175
186
|
* @see {@link GetAccountSettingsCommand}
|
|
176
187
|
*/
|
|
@@ -268,6 +279,18 @@ export interface Lambda {
|
|
|
268
279
|
getProvisionedConcurrencyConfig(args: GetProvisionedConcurrencyConfigCommandInput, options?: __HttpHandlerOptions): Promise<GetProvisionedConcurrencyConfigCommandOutput>;
|
|
269
280
|
getProvisionedConcurrencyConfig(args: GetProvisionedConcurrencyConfigCommandInput, cb: (err: any, data?: GetProvisionedConcurrencyConfigCommandOutput) => void): void;
|
|
270
281
|
getProvisionedConcurrencyConfig(args: GetProvisionedConcurrencyConfigCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetProvisionedConcurrencyConfigCommandOutput) => void): void;
|
|
282
|
+
/**
|
|
283
|
+
* @see {@link GetPublicAccessBlockConfigCommand}
|
|
284
|
+
*/
|
|
285
|
+
getPublicAccessBlockConfig(args: GetPublicAccessBlockConfigCommandInput, options?: __HttpHandlerOptions): Promise<GetPublicAccessBlockConfigCommandOutput>;
|
|
286
|
+
getPublicAccessBlockConfig(args: GetPublicAccessBlockConfigCommandInput, cb: (err: any, data?: GetPublicAccessBlockConfigCommandOutput) => void): void;
|
|
287
|
+
getPublicAccessBlockConfig(args: GetPublicAccessBlockConfigCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPublicAccessBlockConfigCommandOutput) => void): void;
|
|
288
|
+
/**
|
|
289
|
+
* @see {@link GetResourcePolicyCommand}
|
|
290
|
+
*/
|
|
291
|
+
getResourcePolicy(args: GetResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<GetResourcePolicyCommandOutput>;
|
|
292
|
+
getResourcePolicy(args: GetResourcePolicyCommandInput, cb: (err: any, data?: GetResourcePolicyCommandOutput) => void): void;
|
|
293
|
+
getResourcePolicy(args: GetResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetResourcePolicyCommandOutput) => void): void;
|
|
271
294
|
/**
|
|
272
295
|
* @see {@link GetRuntimeManagementConfigCommand}
|
|
273
296
|
*/
|
|
@@ -410,6 +433,18 @@ export interface Lambda {
|
|
|
410
433
|
putProvisionedConcurrencyConfig(args: PutProvisionedConcurrencyConfigCommandInput, options?: __HttpHandlerOptions): Promise<PutProvisionedConcurrencyConfigCommandOutput>;
|
|
411
434
|
putProvisionedConcurrencyConfig(args: PutProvisionedConcurrencyConfigCommandInput, cb: (err: any, data?: PutProvisionedConcurrencyConfigCommandOutput) => void): void;
|
|
412
435
|
putProvisionedConcurrencyConfig(args: PutProvisionedConcurrencyConfigCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutProvisionedConcurrencyConfigCommandOutput) => void): void;
|
|
436
|
+
/**
|
|
437
|
+
* @see {@link PutPublicAccessBlockConfigCommand}
|
|
438
|
+
*/
|
|
439
|
+
putPublicAccessBlockConfig(args: PutPublicAccessBlockConfigCommandInput, options?: __HttpHandlerOptions): Promise<PutPublicAccessBlockConfigCommandOutput>;
|
|
440
|
+
putPublicAccessBlockConfig(args: PutPublicAccessBlockConfigCommandInput, cb: (err: any, data?: PutPublicAccessBlockConfigCommandOutput) => void): void;
|
|
441
|
+
putPublicAccessBlockConfig(args: PutPublicAccessBlockConfigCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutPublicAccessBlockConfigCommandOutput) => void): void;
|
|
442
|
+
/**
|
|
443
|
+
* @see {@link PutResourcePolicyCommand}
|
|
444
|
+
*/
|
|
445
|
+
putResourcePolicy(args: PutResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<PutResourcePolicyCommandOutput>;
|
|
446
|
+
putResourcePolicy(args: PutResourcePolicyCommandInput, cb: (err: any, data?: PutResourcePolicyCommandOutput) => void): void;
|
|
447
|
+
putResourcePolicy(args: PutResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutResourcePolicyCommandOutput) => void): void;
|
|
413
448
|
/**
|
|
414
449
|
* @see {@link PutRuntimeManagementConfigCommand}
|
|
415
450
|
*/
|
|
@@ -25,6 +25,7 @@ import { DeleteFunctionEventInvokeConfigCommandInput, DeleteFunctionEventInvokeC
|
|
|
25
25
|
import { DeleteFunctionUrlConfigCommandInput, DeleteFunctionUrlConfigCommandOutput } from "./commands/DeleteFunctionUrlConfigCommand";
|
|
26
26
|
import { DeleteLayerVersionCommandInput, DeleteLayerVersionCommandOutput } from "./commands/DeleteLayerVersionCommand";
|
|
27
27
|
import { DeleteProvisionedConcurrencyConfigCommandInput, DeleteProvisionedConcurrencyConfigCommandOutput } from "./commands/DeleteProvisionedConcurrencyConfigCommand";
|
|
28
|
+
import { DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput } from "./commands/DeleteResourcePolicyCommand";
|
|
28
29
|
import { GetAccountSettingsCommandInput, GetAccountSettingsCommandOutput } from "./commands/GetAccountSettingsCommand";
|
|
29
30
|
import { GetAliasCommandInput, GetAliasCommandOutput } from "./commands/GetAliasCommand";
|
|
30
31
|
import { GetCodeSigningConfigCommandInput, GetCodeSigningConfigCommandOutput } from "./commands/GetCodeSigningConfigCommand";
|
|
@@ -41,6 +42,8 @@ import { GetLayerVersionCommandInput, GetLayerVersionCommandOutput } from "./com
|
|
|
41
42
|
import { GetLayerVersionPolicyCommandInput, GetLayerVersionPolicyCommandOutput } from "./commands/GetLayerVersionPolicyCommand";
|
|
42
43
|
import { GetPolicyCommandInput, GetPolicyCommandOutput } from "./commands/GetPolicyCommand";
|
|
43
44
|
import { GetProvisionedConcurrencyConfigCommandInput, GetProvisionedConcurrencyConfigCommandOutput } from "./commands/GetProvisionedConcurrencyConfigCommand";
|
|
45
|
+
import { GetPublicAccessBlockConfigCommandInput, GetPublicAccessBlockConfigCommandOutput } from "./commands/GetPublicAccessBlockConfigCommand";
|
|
46
|
+
import { GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
|
|
44
47
|
import { GetRuntimeManagementConfigCommandInput, GetRuntimeManagementConfigCommandOutput } from "./commands/GetRuntimeManagementConfigCommand";
|
|
45
48
|
import { InvokeAsyncCommandInput, InvokeAsyncCommandOutput } from "./commands/InvokeAsyncCommand";
|
|
46
49
|
import { InvokeCommandInput, InvokeCommandOutput } from "./commands/InvokeCommand";
|
|
@@ -64,6 +67,8 @@ import { PutFunctionConcurrencyCommandInput, PutFunctionConcurrencyCommandOutput
|
|
|
64
67
|
import { PutFunctionEventInvokeConfigCommandInput, PutFunctionEventInvokeConfigCommandOutput } from "./commands/PutFunctionEventInvokeConfigCommand";
|
|
65
68
|
import { PutFunctionRecursionConfigCommandInput, PutFunctionRecursionConfigCommandOutput } from "./commands/PutFunctionRecursionConfigCommand";
|
|
66
69
|
import { PutProvisionedConcurrencyConfigCommandInput, PutProvisionedConcurrencyConfigCommandOutput } from "./commands/PutProvisionedConcurrencyConfigCommand";
|
|
70
|
+
import { PutPublicAccessBlockConfigCommandInput, PutPublicAccessBlockConfigCommandOutput } from "./commands/PutPublicAccessBlockConfigCommand";
|
|
71
|
+
import { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "./commands/PutResourcePolicyCommand";
|
|
67
72
|
import { PutRuntimeManagementConfigCommandInput, PutRuntimeManagementConfigCommandOutput } from "./commands/PutRuntimeManagementConfigCommand";
|
|
68
73
|
import { RemoveLayerVersionPermissionCommandInput, RemoveLayerVersionPermissionCommandOutput } from "./commands/RemoveLayerVersionPermissionCommand";
|
|
69
74
|
import { RemovePermissionCommandInput, RemovePermissionCommandOutput } from "./commands/RemovePermissionCommand";
|
|
@@ -82,11 +87,11 @@ export { __Client };
|
|
|
82
87
|
/**
|
|
83
88
|
* @public
|
|
84
89
|
*/
|
|
85
|
-
export type ServiceInputTypes = AddLayerVersionPermissionCommandInput | AddPermissionCommandInput | CreateAliasCommandInput | CreateCodeSigningConfigCommandInput | CreateEventSourceMappingCommandInput | CreateFunctionCommandInput | CreateFunctionUrlConfigCommandInput | DeleteAliasCommandInput | DeleteCodeSigningConfigCommandInput | DeleteEventSourceMappingCommandInput | DeleteFunctionCodeSigningConfigCommandInput | DeleteFunctionCommandInput | DeleteFunctionConcurrencyCommandInput | DeleteFunctionEventInvokeConfigCommandInput | DeleteFunctionUrlConfigCommandInput | DeleteLayerVersionCommandInput | DeleteProvisionedConcurrencyConfigCommandInput | GetAccountSettingsCommandInput | GetAliasCommandInput | GetCodeSigningConfigCommandInput | GetEventSourceMappingCommandInput | GetFunctionCodeSigningConfigCommandInput | GetFunctionCommandInput | GetFunctionConcurrencyCommandInput | GetFunctionConfigurationCommandInput | GetFunctionEventInvokeConfigCommandInput | GetFunctionRecursionConfigCommandInput | GetFunctionUrlConfigCommandInput | GetLayerVersionByArnCommandInput | GetLayerVersionCommandInput | GetLayerVersionPolicyCommandInput | GetPolicyCommandInput | GetProvisionedConcurrencyConfigCommandInput | GetRuntimeManagementConfigCommandInput | InvokeAsyncCommandInput | InvokeCommandInput | InvokeWithResponseStreamCommandInput | ListAliasesCommandInput | ListCodeSigningConfigsCommandInput | ListEventSourceMappingsCommandInput | ListFunctionEventInvokeConfigsCommandInput | ListFunctionUrlConfigsCommandInput | ListFunctionsByCodeSigningConfigCommandInput | ListFunctionsCommandInput | ListLayerVersionsCommandInput | ListLayersCommandInput | ListProvisionedConcurrencyConfigsCommandInput | ListTagsCommandInput | ListVersionsByFunctionCommandInput | PublishLayerVersionCommandInput | PublishVersionCommandInput | PutFunctionCodeSigningConfigCommandInput | PutFunctionConcurrencyCommandInput | PutFunctionEventInvokeConfigCommandInput | PutFunctionRecursionConfigCommandInput | PutProvisionedConcurrencyConfigCommandInput | PutRuntimeManagementConfigCommandInput | RemoveLayerVersionPermissionCommandInput | RemovePermissionCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAliasCommandInput | UpdateCodeSigningConfigCommandInput | UpdateEventSourceMappingCommandInput | UpdateFunctionCodeCommandInput | UpdateFunctionConfigurationCommandInput | UpdateFunctionEventInvokeConfigCommandInput | UpdateFunctionUrlConfigCommandInput;
|
|
90
|
+
export type ServiceInputTypes = AddLayerVersionPermissionCommandInput | AddPermissionCommandInput | CreateAliasCommandInput | CreateCodeSigningConfigCommandInput | CreateEventSourceMappingCommandInput | CreateFunctionCommandInput | CreateFunctionUrlConfigCommandInput | DeleteAliasCommandInput | DeleteCodeSigningConfigCommandInput | DeleteEventSourceMappingCommandInput | DeleteFunctionCodeSigningConfigCommandInput | DeleteFunctionCommandInput | DeleteFunctionConcurrencyCommandInput | DeleteFunctionEventInvokeConfigCommandInput | DeleteFunctionUrlConfigCommandInput | DeleteLayerVersionCommandInput | DeleteProvisionedConcurrencyConfigCommandInput | DeleteResourcePolicyCommandInput | GetAccountSettingsCommandInput | GetAliasCommandInput | GetCodeSigningConfigCommandInput | GetEventSourceMappingCommandInput | GetFunctionCodeSigningConfigCommandInput | GetFunctionCommandInput | GetFunctionConcurrencyCommandInput | GetFunctionConfigurationCommandInput | GetFunctionEventInvokeConfigCommandInput | GetFunctionRecursionConfigCommandInput | GetFunctionUrlConfigCommandInput | GetLayerVersionByArnCommandInput | GetLayerVersionCommandInput | GetLayerVersionPolicyCommandInput | GetPolicyCommandInput | GetProvisionedConcurrencyConfigCommandInput | GetPublicAccessBlockConfigCommandInput | GetResourcePolicyCommandInput | GetRuntimeManagementConfigCommandInput | InvokeAsyncCommandInput | InvokeCommandInput | InvokeWithResponseStreamCommandInput | ListAliasesCommandInput | ListCodeSigningConfigsCommandInput | ListEventSourceMappingsCommandInput | ListFunctionEventInvokeConfigsCommandInput | ListFunctionUrlConfigsCommandInput | ListFunctionsByCodeSigningConfigCommandInput | ListFunctionsCommandInput | ListLayerVersionsCommandInput | ListLayersCommandInput | ListProvisionedConcurrencyConfigsCommandInput | ListTagsCommandInput | ListVersionsByFunctionCommandInput | PublishLayerVersionCommandInput | PublishVersionCommandInput | PutFunctionCodeSigningConfigCommandInput | PutFunctionConcurrencyCommandInput | PutFunctionEventInvokeConfigCommandInput | PutFunctionRecursionConfigCommandInput | PutProvisionedConcurrencyConfigCommandInput | PutPublicAccessBlockConfigCommandInput | PutResourcePolicyCommandInput | PutRuntimeManagementConfigCommandInput | RemoveLayerVersionPermissionCommandInput | RemovePermissionCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAliasCommandInput | UpdateCodeSigningConfigCommandInput | UpdateEventSourceMappingCommandInput | UpdateFunctionCodeCommandInput | UpdateFunctionConfigurationCommandInput | UpdateFunctionEventInvokeConfigCommandInput | UpdateFunctionUrlConfigCommandInput;
|
|
86
91
|
/**
|
|
87
92
|
* @public
|
|
88
93
|
*/
|
|
89
|
-
export type ServiceOutputTypes = AddLayerVersionPermissionCommandOutput | AddPermissionCommandOutput | CreateAliasCommandOutput | CreateCodeSigningConfigCommandOutput | CreateEventSourceMappingCommandOutput | CreateFunctionCommandOutput | CreateFunctionUrlConfigCommandOutput | DeleteAliasCommandOutput | DeleteCodeSigningConfigCommandOutput | DeleteEventSourceMappingCommandOutput | DeleteFunctionCodeSigningConfigCommandOutput | DeleteFunctionCommandOutput | DeleteFunctionConcurrencyCommandOutput | DeleteFunctionEventInvokeConfigCommandOutput | DeleteFunctionUrlConfigCommandOutput | DeleteLayerVersionCommandOutput | DeleteProvisionedConcurrencyConfigCommandOutput | GetAccountSettingsCommandOutput | GetAliasCommandOutput | GetCodeSigningConfigCommandOutput | GetEventSourceMappingCommandOutput | GetFunctionCodeSigningConfigCommandOutput | GetFunctionCommandOutput | GetFunctionConcurrencyCommandOutput | GetFunctionConfigurationCommandOutput | GetFunctionEventInvokeConfigCommandOutput | GetFunctionRecursionConfigCommandOutput | GetFunctionUrlConfigCommandOutput | GetLayerVersionByArnCommandOutput | GetLayerVersionCommandOutput | GetLayerVersionPolicyCommandOutput | GetPolicyCommandOutput | GetProvisionedConcurrencyConfigCommandOutput | GetRuntimeManagementConfigCommandOutput | InvokeAsyncCommandOutput | InvokeCommandOutput | InvokeWithResponseStreamCommandOutput | ListAliasesCommandOutput | ListCodeSigningConfigsCommandOutput | ListEventSourceMappingsCommandOutput | ListFunctionEventInvokeConfigsCommandOutput | ListFunctionUrlConfigsCommandOutput | ListFunctionsByCodeSigningConfigCommandOutput | ListFunctionsCommandOutput | ListLayerVersionsCommandOutput | ListLayersCommandOutput | ListProvisionedConcurrencyConfigsCommandOutput | ListTagsCommandOutput | ListVersionsByFunctionCommandOutput | PublishLayerVersionCommandOutput | PublishVersionCommandOutput | PutFunctionCodeSigningConfigCommandOutput | PutFunctionConcurrencyCommandOutput | PutFunctionEventInvokeConfigCommandOutput | PutFunctionRecursionConfigCommandOutput | PutProvisionedConcurrencyConfigCommandOutput | PutRuntimeManagementConfigCommandOutput | RemoveLayerVersionPermissionCommandOutput | RemovePermissionCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAliasCommandOutput | UpdateCodeSigningConfigCommandOutput | UpdateEventSourceMappingCommandOutput | UpdateFunctionCodeCommandOutput | UpdateFunctionConfigurationCommandOutput | UpdateFunctionEventInvokeConfigCommandOutput | UpdateFunctionUrlConfigCommandOutput;
|
|
94
|
+
export type ServiceOutputTypes = AddLayerVersionPermissionCommandOutput | AddPermissionCommandOutput | CreateAliasCommandOutput | CreateCodeSigningConfigCommandOutput | CreateEventSourceMappingCommandOutput | CreateFunctionCommandOutput | CreateFunctionUrlConfigCommandOutput | DeleteAliasCommandOutput | DeleteCodeSigningConfigCommandOutput | DeleteEventSourceMappingCommandOutput | DeleteFunctionCodeSigningConfigCommandOutput | DeleteFunctionCommandOutput | DeleteFunctionConcurrencyCommandOutput | DeleteFunctionEventInvokeConfigCommandOutput | DeleteFunctionUrlConfigCommandOutput | DeleteLayerVersionCommandOutput | DeleteProvisionedConcurrencyConfigCommandOutput | DeleteResourcePolicyCommandOutput | GetAccountSettingsCommandOutput | GetAliasCommandOutput | GetCodeSigningConfigCommandOutput | GetEventSourceMappingCommandOutput | GetFunctionCodeSigningConfigCommandOutput | GetFunctionCommandOutput | GetFunctionConcurrencyCommandOutput | GetFunctionConfigurationCommandOutput | GetFunctionEventInvokeConfigCommandOutput | GetFunctionRecursionConfigCommandOutput | GetFunctionUrlConfigCommandOutput | GetLayerVersionByArnCommandOutput | GetLayerVersionCommandOutput | GetLayerVersionPolicyCommandOutput | GetPolicyCommandOutput | GetProvisionedConcurrencyConfigCommandOutput | GetPublicAccessBlockConfigCommandOutput | GetResourcePolicyCommandOutput | GetRuntimeManagementConfigCommandOutput | InvokeAsyncCommandOutput | InvokeCommandOutput | InvokeWithResponseStreamCommandOutput | ListAliasesCommandOutput | ListCodeSigningConfigsCommandOutput | ListEventSourceMappingsCommandOutput | ListFunctionEventInvokeConfigsCommandOutput | ListFunctionUrlConfigsCommandOutput | ListFunctionsByCodeSigningConfigCommandOutput | ListFunctionsCommandOutput | ListLayerVersionsCommandOutput | ListLayersCommandOutput | ListProvisionedConcurrencyConfigsCommandOutput | ListTagsCommandOutput | ListVersionsByFunctionCommandOutput | PublishLayerVersionCommandOutput | PublishVersionCommandOutput | PutFunctionCodeSigningConfigCommandOutput | PutFunctionConcurrencyCommandOutput | PutFunctionEventInvokeConfigCommandOutput | PutFunctionRecursionConfigCommandOutput | PutProvisionedConcurrencyConfigCommandOutput | PutPublicAccessBlockConfigCommandOutput | PutResourcePolicyCommandOutput | PutRuntimeManagementConfigCommandOutput | RemoveLayerVersionPermissionCommandOutput | RemovePermissionCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAliasCommandOutput | UpdateCodeSigningConfigCommandOutput | UpdateEventSourceMappingCommandOutput | UpdateFunctionCodeCommandOutput | UpdateFunctionConfigurationCommandOutput | UpdateFunctionEventInvokeConfigCommandOutput | UpdateFunctionUrlConfigCommandOutput;
|
|
90
95
|
/**
|
|
91
96
|
* @public
|
|
92
97
|
*/
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LambdaClient";
|
|
4
|
+
import { DeleteResourcePolicyRequest } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DeleteResourcePolicyCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DeleteResourcePolicyCommandInput extends DeleteResourcePolicyRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DeleteResourcePolicyCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DeleteResourcePolicyCommandOutput extends __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const DeleteResourcePolicyCommand_base: {
|
|
25
|
+
new (input: DeleteResourcePolicyCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: DeleteResourcePolicyCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <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
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { LambdaClient, DeleteResourcePolicyCommand } from "@aws-sdk/client-lambda"; // ES Modules import
|
|
35
|
+
* // const { LambdaClient, DeleteResourcePolicyCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
|
|
36
|
+
* const client = new LambdaClient(config);
|
|
37
|
+
* const input = { // DeleteResourcePolicyRequest
|
|
38
|
+
* ResourceArn: "STRING_VALUE", // required
|
|
39
|
+
* RevisionId: "STRING_VALUE",
|
|
40
|
+
* };
|
|
41
|
+
* const command = new DeleteResourcePolicyCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // {};
|
|
44
|
+
*
|
|
45
|
+
* ```
|
|
46
|
+
*
|
|
47
|
+
* @param DeleteResourcePolicyCommandInput - {@link DeleteResourcePolicyCommandInput}
|
|
48
|
+
* @returns {@link DeleteResourcePolicyCommandOutput}
|
|
49
|
+
* @see {@link DeleteResourcePolicyCommandInput} for command's `input` shape.
|
|
50
|
+
* @see {@link DeleteResourcePolicyCommandOutput} for command's `response` shape.
|
|
51
|
+
* @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape.
|
|
52
|
+
*
|
|
53
|
+
* @throws {@link InvalidParameterValueException} (client fault)
|
|
54
|
+
* <p>One of the parameters in the request is not valid.</p>
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link PreconditionFailedException} (client fault)
|
|
57
|
+
* <p>The RevisionId provided does not match the latest RevisionId for the Lambda function or alias.</p>
|
|
58
|
+
* <ul>
|
|
59
|
+
* <li>
|
|
60
|
+
* <p>
|
|
61
|
+
* <b>For AddPermission and RemovePermission API operations:</b> Call <code>GetPolicy</code> to retrieve the latest RevisionId for your resource.</p>
|
|
62
|
+
* </li>
|
|
63
|
+
* <li>
|
|
64
|
+
* <p>
|
|
65
|
+
* <b>For all other API operations:</b> Call <code>GetFunction</code> or <code>GetAlias</code> to retrieve the latest RevisionId for your resource.</p>
|
|
66
|
+
* </li>
|
|
67
|
+
* </ul>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link ResourceConflictException} (client fault)
|
|
70
|
+
* <p>The resource already exists, or another operation is in progress.</p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
73
|
+
* <p>The resource specified in the request does not exist.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link ServiceException} (server fault)
|
|
76
|
+
* <p>The Lambda service encountered an internal error.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link TooManyRequestsException} (client fault)
|
|
79
|
+
* <p>The request throughput limit was exceeded. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests">Lambda quotas</a>.</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link LambdaServiceException}
|
|
82
|
+
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
83
|
+
*
|
|
84
|
+
* @public
|
|
85
|
+
*/
|
|
86
|
+
export declare class DeleteResourcePolicyCommand extends DeleteResourcePolicyCommand_base {
|
|
87
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LambdaClient";
|
|
4
|
+
import { GetPublicAccessBlockConfigRequest, GetPublicAccessBlockConfigResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetPublicAccessBlockConfigCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetPublicAccessBlockConfigCommandInput extends GetPublicAccessBlockConfigRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetPublicAccessBlockConfigCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetPublicAccessBlockConfigCommandOutput extends GetPublicAccessBlockConfigResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetPublicAccessBlockConfigCommand_base: {
|
|
25
|
+
new (input: GetPublicAccessBlockConfigCommandInput): import("@smithy/smithy-client").CommandImpl<GetPublicAccessBlockConfigCommandInput, GetPublicAccessBlockConfigCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: GetPublicAccessBlockConfigCommandInput): import("@smithy/smithy-client").CommandImpl<GetPublicAccessBlockConfigCommandInput, GetPublicAccessBlockConfigCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Retrieve the public-access settings for a function.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { LambdaClient, GetPublicAccessBlockConfigCommand } from "@aws-sdk/client-lambda"; // ES Modules import
|
|
35
|
+
* // const { LambdaClient, GetPublicAccessBlockConfigCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
|
|
36
|
+
* const client = new LambdaClient(config);
|
|
37
|
+
* const input = { // GetPublicAccessBlockConfigRequest
|
|
38
|
+
* ResourceArn: "STRING_VALUE", // required
|
|
39
|
+
* };
|
|
40
|
+
* const command = new GetPublicAccessBlockConfigCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // GetPublicAccessBlockConfigResponse
|
|
43
|
+
* // PublicAccessBlockConfig: { // PublicAccessBlockConfig
|
|
44
|
+
* // BlockPublicPolicy: true || false,
|
|
45
|
+
* // RestrictPublicResource: true || false,
|
|
46
|
+
* // },
|
|
47
|
+
* // };
|
|
48
|
+
*
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* @param GetPublicAccessBlockConfigCommandInput - {@link GetPublicAccessBlockConfigCommandInput}
|
|
52
|
+
* @returns {@link GetPublicAccessBlockConfigCommandOutput}
|
|
53
|
+
* @see {@link GetPublicAccessBlockConfigCommandInput} for command's `input` shape.
|
|
54
|
+
* @see {@link GetPublicAccessBlockConfigCommandOutput} for command's `response` shape.
|
|
55
|
+
* @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape.
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link InvalidParameterValueException} (client fault)
|
|
58
|
+
* <p>One of the parameters in the request is not valid.</p>
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
61
|
+
* <p>The resource specified in the request does not exist.</p>
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link ServiceException} (server fault)
|
|
64
|
+
* <p>The Lambda service encountered an internal error.</p>
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link TooManyRequestsException} (client fault)
|
|
67
|
+
* <p>The request throughput limit was exceeded. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests">Lambda quotas</a>.</p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link LambdaServiceException}
|
|
70
|
+
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
71
|
+
*
|
|
72
|
+
* @public
|
|
73
|
+
*/
|
|
74
|
+
export declare class GetPublicAccessBlockConfigCommand extends GetPublicAccessBlockConfigCommand_base {
|
|
75
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LambdaClient";
|
|
4
|
+
import { GetResourcePolicyRequest, GetResourcePolicyResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetResourcePolicyCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetResourcePolicyCommandInput extends GetResourcePolicyRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetResourcePolicyCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetResourcePolicyCommandOutput extends GetResourcePolicyResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetResourcePolicyCommand_base: {
|
|
25
|
+
new (input: GetResourcePolicyCommandInput): import("@smithy/smithy-client").CommandImpl<GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: GetResourcePolicyCommandInput): import("@smithy/smithy-client").CommandImpl<GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <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
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { LambdaClient, GetResourcePolicyCommand } from "@aws-sdk/client-lambda"; // ES Modules import
|
|
35
|
+
* // const { LambdaClient, GetResourcePolicyCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
|
|
36
|
+
* const client = new LambdaClient(config);
|
|
37
|
+
* const input = { // GetResourcePolicyRequest
|
|
38
|
+
* ResourceArn: "STRING_VALUE", // required
|
|
39
|
+
* };
|
|
40
|
+
* const command = new GetResourcePolicyCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // GetResourcePolicyResponse
|
|
43
|
+
* // Policy: "STRING_VALUE",
|
|
44
|
+
* // RevisionId: "STRING_VALUE",
|
|
45
|
+
* // };
|
|
46
|
+
*
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* @param GetResourcePolicyCommandInput - {@link GetResourcePolicyCommandInput}
|
|
50
|
+
* @returns {@link GetResourcePolicyCommandOutput}
|
|
51
|
+
* @see {@link GetResourcePolicyCommandInput} for command's `input` shape.
|
|
52
|
+
* @see {@link GetResourcePolicyCommandOutput} for command's `response` shape.
|
|
53
|
+
* @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape.
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link InvalidParameterValueException} (client fault)
|
|
56
|
+
* <p>One of the parameters in the request is not valid.</p>
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
59
|
+
* <p>The resource specified in the request does not exist.</p>
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link ServiceException} (server fault)
|
|
62
|
+
* <p>The Lambda service encountered an internal error.</p>
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link TooManyRequestsException} (client fault)
|
|
65
|
+
* <p>The request throughput limit was exceeded. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests">Lambda quotas</a>.</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link LambdaServiceException}
|
|
68
|
+
* <p>Base exception class for all service exceptions from Lambda service.</p>
|
|
69
|
+
*
|
|
70
|
+
* @public
|
|
71
|
+
*/
|
|
72
|
+
export declare class GetResourcePolicyCommand extends GetResourcePolicyCommand_base {
|
|
73
|
+
}
|