@aws-sdk/client-lambda-web 3.1149.0 → 3.1150.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 +141 -8
- package/dist-cjs/index.js +1122 -4
- package/dist-es/LambdaWeb.js +61 -1
- package/dist-es/commands/CreateWebFunctionCommand.js +4 -0
- package/dist-es/commands/CreateWebFunctionEndpointCommand.js +4 -0
- package/dist-es/commands/CreateWebFunctionRevisionCommand.js +4 -0
- package/dist-es/commands/DeleteResourcePolicyCommand.js +4 -0
- package/dist-es/commands/DeleteWebFunctionCommand.js +4 -0
- package/dist-es/commands/DeleteWebFunctionEndpointCommand.js +4 -0
- package/dist-es/commands/DeleteWebFunctionRevisionCommand.js +4 -0
- package/dist-es/commands/GetResourcePolicyCommand.js +4 -0
- package/dist-es/commands/GetWebFunctionCommand.js +4 -0
- package/dist-es/commands/GetWebFunctionEndpointCommand.js +4 -0
- package/dist-es/commands/GetWebFunctionRevisionCommand.js +4 -0
- package/dist-es/commands/ListTagsCommand.js +4 -0
- package/dist-es/commands/ListWebFunctionEndpointsCommand.js +4 -0
- package/dist-es/commands/ListWebFunctionRevisionsCommand.js +4 -0
- package/dist-es/commands/ListWebFunctionsCommand.js +4 -0
- package/dist-es/commands/PutResourcePolicyCommand.js +4 -0
- package/dist-es/commands/TagResourceCommand.js +4 -0
- package/dist-es/commands/UntagResourceCommand.js +4 -0
- package/dist-es/commands/UpdateWebFunctionEndpointCommand.js +4 -0
- package/dist-es/commands/index.js +19 -0
- package/dist-es/index.js +3 -0
- package/dist-es/models/enums.js +48 -0
- package/dist-es/models/errors.js +68 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListWebFunctionEndpointsPaginator.js +4 -0
- package/dist-es/pagination/ListWebFunctionRevisionsPaginator.js +4 -0
- package/dist-es/pagination/ListWebFunctionsPaginator.js +4 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/schemas/schemas_0.js +515 -1
- package/dist-es/waiters/index.js +6 -0
- package/dist-es/waiters/waitForWebFunctionActive.js +58 -0
- package/dist-es/waiters/waitForWebFunctionDeleted.js +34 -0
- package/dist-es/waiters/waitForWebFunctionEndpointActive.js +58 -0
- package/dist-es/waiters/waitForWebFunctionEndpointDeleted.js +34 -0
- package/dist-es/waiters/waitForWebFunctionEndpointUpdated.js +49 -0
- package/dist-es/waiters/waitForWebFunctionRevisionActive.js +49 -0
- package/dist-types/LambdaWeb.d.ts +195 -2
- package/dist-types/LambdaWebClient.d.ts +22 -3
- package/dist-types/commandBuilder.d.ts +4 -4
- package/dist-types/commands/CreateWebFunctionCommand.d.ts +189 -0
- package/dist-types/commands/CreateWebFunctionEndpointCommand.d.ts +162 -0
- package/dist-types/commands/CreateWebFunctionRevisionCommand.d.ts +164 -0
- package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +88 -0
- package/dist-types/commands/DeleteWebFunctionCommand.d.ts +87 -0
- package/dist-types/commands/DeleteWebFunctionEndpointCommand.d.ts +88 -0
- package/dist-types/commands/DeleteWebFunctionRevisionCommand.d.ts +88 -0
- package/dist-types/commands/GetResourcePolicyCommand.d.ts +87 -0
- package/dist-types/commands/GetWebAccountSettingsCommand.d.ts +6 -6
- package/dist-types/commands/GetWebFunctionCommand.d.ts +91 -0
- package/dist-types/commands/GetWebFunctionEndpointCommand.d.ts +137 -0
- package/dist-types/commands/GetWebFunctionRevisionCommand.d.ts +129 -0
- package/dist-types/commands/ListTagsCommand.d.ts +88 -0
- package/dist-types/commands/ListWebFunctionEndpointsCommand.d.ts +128 -0
- package/dist-types/commands/ListWebFunctionRevisionsCommand.d.ts +106 -0
- package/dist-types/commands/ListWebFunctionsCommand.d.ts +102 -0
- package/dist-types/commands/PutResourcePolicyCommand.d.ts +95 -0
- package/dist-types/commands/TagResourceCommand.d.ts +93 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +90 -0
- package/dist-types/commands/UpdateWebFunctionEndpointCommand.d.ts +158 -0
- package/dist-types/commands/index.d.ts +19 -0
- package/dist-types/index.d.ts +4 -1
- package/dist-types/models/enums.d.ts +120 -0
- package/dist-types/models/errors.d.ts +95 -3
- package/dist-types/models/models_0.d.ts +1507 -6
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListWebFunctionEndpointsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListWebFunctionRevisionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListWebFunctionsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/schemas/schemas_0.d.ts +73 -0
- package/dist-types/ts3.4/LambdaWeb.d.ts +395 -0
- package/dist-types/ts3.4/LambdaWebClient.d.ts +112 -2
- package/dist-types/ts3.4/commandBuilder.d.ts +10 -9
- package/dist-types/ts3.4/commands/CreateWebFunctionCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/CreateWebFunctionEndpointCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/CreateWebFunctionRevisionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteWebFunctionCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteWebFunctionEndpointCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteWebFunctionRevisionCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetWebAccountSettingsCommand.d.ts +4 -4
- package/dist-types/ts3.4/commands/GetWebFunctionCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetWebFunctionEndpointCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetWebFunctionRevisionCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListTagsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListWebFunctionEndpointsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListWebFunctionRevisionsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListWebFunctionsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateWebFunctionEndpointCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +19 -0
- package/dist-types/ts3.4/index.d.ts +3 -0
- package/dist-types/ts3.4/models/enums.d.ts +57 -0
- package/dist-types/ts3.4/models/errors.d.ts +32 -0
- package/dist-types/ts3.4/models/models_0.d.ts +351 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
- package/dist-types/ts3.4/pagination/ListWebFunctionEndpointsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListWebFunctionRevisionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListWebFunctionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +73 -0
- package/dist-types/ts3.4/waiters/index.d.ts +6 -0
- package/dist-types/ts3.4/waiters/waitForWebFunctionActive.d.ts +15 -0
- package/dist-types/ts3.4/waiters/waitForWebFunctionDeleted.d.ts +16 -0
- package/dist-types/ts3.4/waiters/waitForWebFunctionEndpointActive.d.ts +15 -0
- package/dist-types/ts3.4/waiters/waitForWebFunctionEndpointDeleted.d.ts +16 -0
- package/dist-types/ts3.4/waiters/waitForWebFunctionEndpointUpdated.d.ts +15 -0
- package/dist-types/ts3.4/waiters/waitForWebFunctionRevisionActive.d.ts +15 -0
- package/dist-types/waiters/index.d.ts +6 -0
- package/dist-types/waiters/waitForWebFunctionActive.d.ts +15 -0
- package/dist-types/waiters/waitForWebFunctionDeleted.d.ts +16 -0
- package/dist-types/waiters/waitForWebFunctionEndpointActive.d.ts +15 -0
- package/dist-types/waiters/waitForWebFunctionEndpointDeleted.d.ts +16 -0
- package/dist-types/waiters/waitForWebFunctionEndpointUpdated.d.ts +15 -0
- package/dist-types/waiters/waitForWebFunctionRevisionActive.d.ts +15 -0
- package/package.json +3 -3
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { GetWebFunctionRevisionRequest, GetWebFunctionRevisionResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link GetWebFunctionRevisionCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface GetWebFunctionRevisionCommandInput extends GetWebFunctionRevisionRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link GetWebFunctionRevisionCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetWebFunctionRevisionCommandOutput extends GetWebFunctionRevisionResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const GetWebFunctionRevisionCommand_base: {
|
|
22
|
+
new (input: GetWebFunctionRevisionCommandInput): import("@smithy/core/client").CommandImpl<GetWebFunctionRevisionCommandInput, GetWebFunctionRevisionCommandOutput, import("..").LambdaWebClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: GetWebFunctionRevisionCommandInput): import("@smithy/core/client").CommandImpl<GetWebFunctionRevisionCommandInput, GetWebFunctionRevisionCommandOutput, import("..").LambdaWebClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Retrieves details about a web function revision, including its state and configuration.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { LambdaWebClient, GetWebFunctionRevisionCommand } from "@aws-sdk/client-lambda-web"; // ES Modules import
|
|
32
|
+
* // const { LambdaWebClient, GetWebFunctionRevisionCommand } = require("@aws-sdk/client-lambda-web"); // CommonJS import
|
|
33
|
+
* // import type { LambdaWebClientConfig } from "@aws-sdk/client-lambda-web";
|
|
34
|
+
* const config = {}; // type is LambdaWebClientConfig
|
|
35
|
+
* const client = new LambdaWebClient(config);
|
|
36
|
+
* const input = { // GetWebFunctionRevisionRequest
|
|
37
|
+
* functionName: "STRING_VALUE", // required
|
|
38
|
+
* revisionId: "STRING_VALUE", // required
|
|
39
|
+
* };
|
|
40
|
+
* const command = new GetWebFunctionRevisionCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // GetWebFunctionRevisionResponse
|
|
43
|
+
* // functionArn: "STRING_VALUE", // required
|
|
44
|
+
* // revisionArn: "STRING_VALUE", // required
|
|
45
|
+
* // revisionId: "STRING_VALUE", // required
|
|
46
|
+
* // description: "STRING_VALUE",
|
|
47
|
+
* // kmsKeyArn: "STRING_VALUE",
|
|
48
|
+
* // buildConfig: { // BuildConfig
|
|
49
|
+
* // codeConfig: { // CodeConfig
|
|
50
|
+
* // s3Object: { // S3Object
|
|
51
|
+
* // bucket: "STRING_VALUE", // required
|
|
52
|
+
* // key: "STRING_VALUE", // required
|
|
53
|
+
* // versionId: "STRING_VALUE",
|
|
54
|
+
* // },
|
|
55
|
+
* // },
|
|
56
|
+
* // runtimeConfig: { // RuntimeConfig
|
|
57
|
+
* // runtime: "STRING_VALUE", // required
|
|
58
|
+
* // },
|
|
59
|
+
* // },
|
|
60
|
+
* // serviceConfig: { // ServiceConfig
|
|
61
|
+
* // executionRoleArn: "STRING_VALUE", // required
|
|
62
|
+
* // timeoutSeconds: Number("int"),
|
|
63
|
+
* // egressNetworkConnectorArn: "STRING_VALUE",
|
|
64
|
+
* // maxConcurrencyPerEnvironment: Number("int"),
|
|
65
|
+
* // environmentVariables: { // EnvironmentVariables
|
|
66
|
+
* // "<keys>": "STRING_VALUE",
|
|
67
|
+
* // },
|
|
68
|
+
* // telemetryConfig: { // TelemetryConfig
|
|
69
|
+
* // loggingConfig: { // LoggingConfig
|
|
70
|
+
* // logGroup: "STRING_VALUE",
|
|
71
|
+
* // applicationLogLevel: "TRACE" || "DEBUG" || "INFO" || "WARN" || "ERROR" || "FATAL",
|
|
72
|
+
* // systemLogLevel: "DEBUG" || "INFO" || "WARN",
|
|
73
|
+
* // },
|
|
74
|
+
* // },
|
|
75
|
+
* // },
|
|
76
|
+
* // state: "Pending" || "Active" || "Failed", // required
|
|
77
|
+
* // stateReason: "STRING_VALUE", // required
|
|
78
|
+
* // errors: [ // RevisionErrors
|
|
79
|
+
* // { // RevisionError
|
|
80
|
+
* // attribute: "STRING_VALUE", // required
|
|
81
|
+
* // errorCode: "STRING_VALUE", // required
|
|
82
|
+
* // errorMessage: "STRING_VALUE", // required
|
|
83
|
+
* // },
|
|
84
|
+
* // ],
|
|
85
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
86
|
+
* // };
|
|
87
|
+
*
|
|
88
|
+
* ```
|
|
89
|
+
*
|
|
90
|
+
* @param GetWebFunctionRevisionCommandInput - {@link GetWebFunctionRevisionCommandInput}
|
|
91
|
+
* @returns {@link GetWebFunctionRevisionCommandOutput}
|
|
92
|
+
* @see {@link GetWebFunctionRevisionCommandInput} for command's `input` shape.
|
|
93
|
+
* @see {@link GetWebFunctionRevisionCommandOutput} for command's `response` shape.
|
|
94
|
+
* @see {@link LambdaWebClientResolvedConfig | config} for LambdaWebClient's `config` shape.
|
|
95
|
+
*
|
|
96
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
97
|
+
* <p>You don't have permission to perform this operation. Check the IAM policies for your identity and any resource-based policy on the web function.</p>
|
|
98
|
+
*
|
|
99
|
+
* @throws {@link InternalServerException} (server fault)
|
|
100
|
+
* <p>The request failed because of an internal error in the service. Retry the request. If the error persists, open a support case.</p>
|
|
101
|
+
*
|
|
102
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
103
|
+
* <p>The specified web function, revision, endpoint, or resource-based policy doesn't exist. Verify the resource identifier and try again.</p>
|
|
104
|
+
*
|
|
105
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
106
|
+
* <p>The request was denied because it exceeded the request rate that Lambda allows for your account. Reduce the frequency of requests and retry with exponential backoff.</p>
|
|
107
|
+
*
|
|
108
|
+
* @throws {@link ValidationException} (client fault)
|
|
109
|
+
* <p>The request failed validation because a parameter was missing, malformed, or outside the allowed range. Check the request parameters and try again.</p>
|
|
110
|
+
*
|
|
111
|
+
* @throws {@link LambdaWebServiceException}
|
|
112
|
+
* <p>Base exception class for all service exceptions from LambdaWeb service.</p>
|
|
113
|
+
*
|
|
114
|
+
*
|
|
115
|
+
* @public
|
|
116
|
+
*/
|
|
117
|
+
export declare class GetWebFunctionRevisionCommand extends GetWebFunctionRevisionCommand_base {
|
|
118
|
+
/** @internal type navigation helper, not in runtime. */
|
|
119
|
+
protected static __types: {
|
|
120
|
+
api: {
|
|
121
|
+
input: GetWebFunctionRevisionRequest;
|
|
122
|
+
output: GetWebFunctionRevisionResponse;
|
|
123
|
+
};
|
|
124
|
+
sdk: {
|
|
125
|
+
input: GetWebFunctionRevisionCommandInput;
|
|
126
|
+
output: GetWebFunctionRevisionCommandOutput;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { ListTagsRequest, ListTagsResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link ListTagsCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface ListTagsCommandInput extends ListTagsRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link ListTagsCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface ListTagsCommandOutput extends ListTagsResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const ListTagsCommand_base: {
|
|
22
|
+
new (input: ListTagsCommandInput): import("@smithy/core/client").CommandImpl<ListTagsCommandInput, ListTagsCommandOutput, import("..").LambdaWebClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: ListTagsCommandInput): import("@smithy/core/client").CommandImpl<ListTagsCommandInput, ListTagsCommandOutput, import("..").LambdaWebClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Returns a list of tags applied to a web function.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { LambdaWebClient, ListTagsCommand } from "@aws-sdk/client-lambda-web"; // ES Modules import
|
|
32
|
+
* // const { LambdaWebClient, ListTagsCommand } = require("@aws-sdk/client-lambda-web"); // CommonJS import
|
|
33
|
+
* // import type { LambdaWebClientConfig } from "@aws-sdk/client-lambda-web";
|
|
34
|
+
* const config = {}; // type is LambdaWebClientConfig
|
|
35
|
+
* const client = new LambdaWebClient(config);
|
|
36
|
+
* const input = { // ListTagsRequest
|
|
37
|
+
* resource: "STRING_VALUE", // required
|
|
38
|
+
* };
|
|
39
|
+
* const command = new ListTagsCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* // { // ListTagsResponse
|
|
42
|
+
* // tags: { // Tags
|
|
43
|
+
* // "<keys>": "STRING_VALUE",
|
|
44
|
+
* // },
|
|
45
|
+
* // };
|
|
46
|
+
*
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* @param ListTagsCommandInput - {@link ListTagsCommandInput}
|
|
50
|
+
* @returns {@link ListTagsCommandOutput}
|
|
51
|
+
* @see {@link ListTagsCommandInput} for command's `input` shape.
|
|
52
|
+
* @see {@link ListTagsCommandOutput} for command's `response` shape.
|
|
53
|
+
* @see {@link LambdaWebClientResolvedConfig | config} for LambdaWebClient's `config` shape.
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
56
|
+
* <p>You don't have permission to perform this operation. Check the IAM policies for your identity and any resource-based policy on the web function.</p>
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link InternalServerException} (server fault)
|
|
59
|
+
* <p>The request failed because of an internal error in the service. Retry the request. If the error persists, open a support case.</p>
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
62
|
+
* <p>The specified web function, revision, endpoint, or resource-based policy doesn't exist. Verify the resource identifier and try again.</p>
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
65
|
+
* <p>The request was denied because it exceeded the request rate that Lambda allows for your account. Reduce the frequency of requests and retry with exponential backoff.</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link ValidationException} (client fault)
|
|
68
|
+
* <p>The request failed validation because a parameter was missing, malformed, or outside the allowed range. Check the request parameters and try again.</p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link LambdaWebServiceException}
|
|
71
|
+
* <p>Base exception class for all service exceptions from LambdaWeb service.</p>
|
|
72
|
+
*
|
|
73
|
+
*
|
|
74
|
+
* @public
|
|
75
|
+
*/
|
|
76
|
+
export declare class ListTagsCommand extends ListTagsCommand_base {
|
|
77
|
+
/** @internal type navigation helper, not in runtime. */
|
|
78
|
+
protected static __types: {
|
|
79
|
+
api: {
|
|
80
|
+
input: ListTagsRequest;
|
|
81
|
+
output: ListTagsResponse;
|
|
82
|
+
};
|
|
83
|
+
sdk: {
|
|
84
|
+
input: ListTagsCommandInput;
|
|
85
|
+
output: ListTagsCommandOutput;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { ListWebFunctionEndpointsRequest, ListWebFunctionEndpointsResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link ListWebFunctionEndpointsCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface ListWebFunctionEndpointsCommandInput extends ListWebFunctionEndpointsRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link ListWebFunctionEndpointsCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface ListWebFunctionEndpointsCommandOutput extends ListWebFunctionEndpointsResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const ListWebFunctionEndpointsCommand_base: {
|
|
22
|
+
new (input: ListWebFunctionEndpointsCommandInput): import("@smithy/core/client").CommandImpl<ListWebFunctionEndpointsCommandInput, ListWebFunctionEndpointsCommandOutput, import("..").LambdaWebClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: ListWebFunctionEndpointsCommandInput): import("@smithy/core/client").CommandImpl<ListWebFunctionEndpointsCommandInput, ListWebFunctionEndpointsCommandOutput, import("..").LambdaWebClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Lists endpoints for a web function. Use pagination to ensure that the operation returns quickly and successfully.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { LambdaWebClient, ListWebFunctionEndpointsCommand } from "@aws-sdk/client-lambda-web"; // ES Modules import
|
|
32
|
+
* // const { LambdaWebClient, ListWebFunctionEndpointsCommand } = require("@aws-sdk/client-lambda-web"); // CommonJS import
|
|
33
|
+
* // import type { LambdaWebClientConfig } from "@aws-sdk/client-lambda-web";
|
|
34
|
+
* const config = {}; // type is LambdaWebClientConfig
|
|
35
|
+
* const client = new LambdaWebClient(config);
|
|
36
|
+
* const input = { // ListWebFunctionEndpointsRequest
|
|
37
|
+
* functionName: "STRING_VALUE", // required
|
|
38
|
+
* filters: [ // FilterList
|
|
39
|
+
* { // Filter
|
|
40
|
+
* name: "STRING_VALUE", // required
|
|
41
|
+
* values: [ // FilterValueList // required
|
|
42
|
+
* "STRING_VALUE",
|
|
43
|
+
* ],
|
|
44
|
+
* },
|
|
45
|
+
* ],
|
|
46
|
+
* maxResults: Number("int"),
|
|
47
|
+
* nextToken: "STRING_VALUE",
|
|
48
|
+
* };
|
|
49
|
+
* const command = new ListWebFunctionEndpointsCommand(input);
|
|
50
|
+
* const response = await client.send(command);
|
|
51
|
+
* // { // ListWebFunctionEndpointsResponse
|
|
52
|
+
* // endpoints: [ // FunctionEndpointSummaryList // required
|
|
53
|
+
* // { // FunctionEndpointSummary
|
|
54
|
+
* // endpointArn: "STRING_VALUE", // required
|
|
55
|
+
* // endpointName: "STRING_VALUE", // required
|
|
56
|
+
* // description: "STRING_VALUE",
|
|
57
|
+
* // endpointType: "HomeRegion" || "MultiRegion" || "PerRegion", // required
|
|
58
|
+
* // domainName: "STRING_VALUE", // required
|
|
59
|
+
* // authType: "ApplicationManaged" || "IamAuth", // required
|
|
60
|
+
* // autoDeploymentMode: "LatestRevision" || "Disabled", // required
|
|
61
|
+
* // revisionWeights: [ // RevisionWeightList // required
|
|
62
|
+
* // { // RevisionWeight
|
|
63
|
+
* // revisionId: "STRING_VALUE", // required
|
|
64
|
+
* // weight: Number("int"), // required
|
|
65
|
+
* // },
|
|
66
|
+
* // ],
|
|
67
|
+
* // regions: [ // RegionList // required
|
|
68
|
+
* // "STRING_VALUE",
|
|
69
|
+
* // ],
|
|
70
|
+
* // scalingConfig: { // ScalingConfig
|
|
71
|
+
* // maxEnvironments: Number("int"),
|
|
72
|
+
* // },
|
|
73
|
+
* // throttleConfig: { // ThrottleConfig
|
|
74
|
+
* // rateLimit: Number("int"),
|
|
75
|
+
* // },
|
|
76
|
+
* // state: "Pending" || "Active" || "Failed" || "Deleting", // required
|
|
77
|
+
* // stateReason: "STRING_VALUE", // required
|
|
78
|
+
* // updateStatus: "InProgress" || "Successful" || "Failed",
|
|
79
|
+
* // updateStatusReason: "STRING_VALUE",
|
|
80
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
81
|
+
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
82
|
+
* // },
|
|
83
|
+
* // ],
|
|
84
|
+
* // nextToken: "STRING_VALUE",
|
|
85
|
+
* // };
|
|
86
|
+
*
|
|
87
|
+
* ```
|
|
88
|
+
*
|
|
89
|
+
* @param ListWebFunctionEndpointsCommandInput - {@link ListWebFunctionEndpointsCommandInput}
|
|
90
|
+
* @returns {@link ListWebFunctionEndpointsCommandOutput}
|
|
91
|
+
* @see {@link ListWebFunctionEndpointsCommandInput} for command's `input` shape.
|
|
92
|
+
* @see {@link ListWebFunctionEndpointsCommandOutput} for command's `response` shape.
|
|
93
|
+
* @see {@link LambdaWebClientResolvedConfig | config} for LambdaWebClient's `config` shape.
|
|
94
|
+
*
|
|
95
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
96
|
+
* <p>You don't have permission to perform this operation. Check the IAM policies for your identity and any resource-based policy on the web function.</p>
|
|
97
|
+
*
|
|
98
|
+
* @throws {@link InternalServerException} (server fault)
|
|
99
|
+
* <p>The request failed because of an internal error in the service. Retry the request. If the error persists, open a support case.</p>
|
|
100
|
+
*
|
|
101
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
102
|
+
* <p>The specified web function, revision, endpoint, or resource-based policy doesn't exist. Verify the resource identifier and try again.</p>
|
|
103
|
+
*
|
|
104
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
105
|
+
* <p>The request was denied because it exceeded the request rate that Lambda allows for your account. Reduce the frequency of requests and retry with exponential backoff.</p>
|
|
106
|
+
*
|
|
107
|
+
* @throws {@link ValidationException} (client fault)
|
|
108
|
+
* <p>The request failed validation because a parameter was missing, malformed, or outside the allowed range. Check the request parameters and try again.</p>
|
|
109
|
+
*
|
|
110
|
+
* @throws {@link LambdaWebServiceException}
|
|
111
|
+
* <p>Base exception class for all service exceptions from LambdaWeb service.</p>
|
|
112
|
+
*
|
|
113
|
+
*
|
|
114
|
+
* @public
|
|
115
|
+
*/
|
|
116
|
+
export declare class ListWebFunctionEndpointsCommand extends ListWebFunctionEndpointsCommand_base {
|
|
117
|
+
/** @internal type navigation helper, not in runtime. */
|
|
118
|
+
protected static __types: {
|
|
119
|
+
api: {
|
|
120
|
+
input: ListWebFunctionEndpointsRequest;
|
|
121
|
+
output: ListWebFunctionEndpointsResponse;
|
|
122
|
+
};
|
|
123
|
+
sdk: {
|
|
124
|
+
input: ListWebFunctionEndpointsCommandInput;
|
|
125
|
+
output: ListWebFunctionEndpointsCommandOutput;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { ListWebFunctionRevisionsRequest, ListWebFunctionRevisionsResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link ListWebFunctionRevisionsCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface ListWebFunctionRevisionsCommandInput extends ListWebFunctionRevisionsRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link ListWebFunctionRevisionsCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface ListWebFunctionRevisionsCommandOutput extends ListWebFunctionRevisionsResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const ListWebFunctionRevisionsCommand_base: {
|
|
22
|
+
new (input: ListWebFunctionRevisionsCommandInput): import("@smithy/core/client").CommandImpl<ListWebFunctionRevisionsCommandInput, ListWebFunctionRevisionsCommandOutput, import("..").LambdaWebClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: ListWebFunctionRevisionsCommandInput): import("@smithy/core/client").CommandImpl<ListWebFunctionRevisionsCommandInput, ListWebFunctionRevisionsCommandOutput, import("..").LambdaWebClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Lists revisions for a web function. Use pagination to ensure that the operation returns quickly and successfully.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { LambdaWebClient, ListWebFunctionRevisionsCommand } from "@aws-sdk/client-lambda-web"; // ES Modules import
|
|
32
|
+
* // const { LambdaWebClient, ListWebFunctionRevisionsCommand } = require("@aws-sdk/client-lambda-web"); // CommonJS import
|
|
33
|
+
* // import type { LambdaWebClientConfig } from "@aws-sdk/client-lambda-web";
|
|
34
|
+
* const config = {}; // type is LambdaWebClientConfig
|
|
35
|
+
* const client = new LambdaWebClient(config);
|
|
36
|
+
* const input = { // ListWebFunctionRevisionsRequest
|
|
37
|
+
* functionName: "STRING_VALUE", // required
|
|
38
|
+
* filters: [ // FilterList
|
|
39
|
+
* { // Filter
|
|
40
|
+
* name: "STRING_VALUE", // required
|
|
41
|
+
* values: [ // FilterValueList // required
|
|
42
|
+
* "STRING_VALUE",
|
|
43
|
+
* ],
|
|
44
|
+
* },
|
|
45
|
+
* ],
|
|
46
|
+
* maxResults: Number("int"),
|
|
47
|
+
* nextToken: "STRING_VALUE",
|
|
48
|
+
* };
|
|
49
|
+
* const command = new ListWebFunctionRevisionsCommand(input);
|
|
50
|
+
* const response = await client.send(command);
|
|
51
|
+
* // { // ListWebFunctionRevisionsResponse
|
|
52
|
+
* // revisions: [ // FunctionRevisionSummaryList // required
|
|
53
|
+
* // { // FunctionRevisionSummary
|
|
54
|
+
* // revisionArn: "STRING_VALUE", // required
|
|
55
|
+
* // revisionId: "STRING_VALUE", // required
|
|
56
|
+
* // description: "STRING_VALUE",
|
|
57
|
+
* // state: "Pending" || "Active" || "Failed", // required
|
|
58
|
+
* // stateReason: "STRING_VALUE", // required
|
|
59
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
60
|
+
* // },
|
|
61
|
+
* // ],
|
|
62
|
+
* // nextToken: "STRING_VALUE",
|
|
63
|
+
* // };
|
|
64
|
+
*
|
|
65
|
+
* ```
|
|
66
|
+
*
|
|
67
|
+
* @param ListWebFunctionRevisionsCommandInput - {@link ListWebFunctionRevisionsCommandInput}
|
|
68
|
+
* @returns {@link ListWebFunctionRevisionsCommandOutput}
|
|
69
|
+
* @see {@link ListWebFunctionRevisionsCommandInput} for command's `input` shape.
|
|
70
|
+
* @see {@link ListWebFunctionRevisionsCommandOutput} for command's `response` shape.
|
|
71
|
+
* @see {@link LambdaWebClientResolvedConfig | config} for LambdaWebClient's `config` shape.
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
74
|
+
* <p>You don't have permission to perform this operation. Check the IAM policies for your identity and any resource-based policy on the web function.</p>
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link InternalServerException} (server fault)
|
|
77
|
+
* <p>The request failed because of an internal error in the service. Retry the request. If the error persists, open a support case.</p>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
80
|
+
* <p>The specified web function, revision, endpoint, or resource-based policy doesn't exist. Verify the resource identifier and try again.</p>
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
83
|
+
* <p>The request was denied because it exceeded the request rate that Lambda allows for your account. Reduce the frequency of requests and retry with exponential backoff.</p>
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link ValidationException} (client fault)
|
|
86
|
+
* <p>The request failed validation because a parameter was missing, malformed, or outside the allowed range. Check the request parameters and try again.</p>
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link LambdaWebServiceException}
|
|
89
|
+
* <p>Base exception class for all service exceptions from LambdaWeb service.</p>
|
|
90
|
+
*
|
|
91
|
+
*
|
|
92
|
+
* @public
|
|
93
|
+
*/
|
|
94
|
+
export declare class ListWebFunctionRevisionsCommand extends ListWebFunctionRevisionsCommand_base {
|
|
95
|
+
/** @internal type navigation helper, not in runtime. */
|
|
96
|
+
protected static __types: {
|
|
97
|
+
api: {
|
|
98
|
+
input: ListWebFunctionRevisionsRequest;
|
|
99
|
+
output: ListWebFunctionRevisionsResponse;
|
|
100
|
+
};
|
|
101
|
+
sdk: {
|
|
102
|
+
input: ListWebFunctionRevisionsCommandInput;
|
|
103
|
+
output: ListWebFunctionRevisionsCommandOutput;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { ListWebFunctionsRequest, ListWebFunctionsResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link ListWebFunctionsCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface ListWebFunctionsCommandInput extends ListWebFunctionsRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link ListWebFunctionsCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface ListWebFunctionsCommandOutput extends ListWebFunctionsResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const ListWebFunctionsCommand_base: {
|
|
22
|
+
new (input: ListWebFunctionsCommandInput): import("@smithy/core/client").CommandImpl<ListWebFunctionsCommandInput, ListWebFunctionsCommandOutput, import("..").LambdaWebClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (...[input]: [] | [ListWebFunctionsCommandInput]): import("@smithy/core/client").CommandImpl<ListWebFunctionsCommandInput, ListWebFunctionsCommandOutput, import("..").LambdaWebClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Lists web functions in your account. Use pagination to ensure that the operation returns quickly and successfully.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { LambdaWebClient, ListWebFunctionsCommand } from "@aws-sdk/client-lambda-web"; // ES Modules import
|
|
32
|
+
* // const { LambdaWebClient, ListWebFunctionsCommand } = require("@aws-sdk/client-lambda-web"); // CommonJS import
|
|
33
|
+
* // import type { LambdaWebClientConfig } from "@aws-sdk/client-lambda-web";
|
|
34
|
+
* const config = {}; // type is LambdaWebClientConfig
|
|
35
|
+
* const client = new LambdaWebClient(config);
|
|
36
|
+
* const input = { // ListWebFunctionsRequest
|
|
37
|
+
* filters: [ // FilterList
|
|
38
|
+
* { // Filter
|
|
39
|
+
* name: "STRING_VALUE", // required
|
|
40
|
+
* values: [ // FilterValueList // required
|
|
41
|
+
* "STRING_VALUE",
|
|
42
|
+
* ],
|
|
43
|
+
* },
|
|
44
|
+
* ],
|
|
45
|
+
* maxResults: Number("int"),
|
|
46
|
+
* nextToken: "STRING_VALUE",
|
|
47
|
+
* };
|
|
48
|
+
* const command = new ListWebFunctionsCommand(input);
|
|
49
|
+
* const response = await client.send(command);
|
|
50
|
+
* // { // ListWebFunctionsResponse
|
|
51
|
+
* // functions: [ // FunctionSummaryList // required
|
|
52
|
+
* // { // FunctionSummary
|
|
53
|
+
* // functionName: "STRING_VALUE", // required
|
|
54
|
+
* // functionArn: "STRING_VALUE", // required
|
|
55
|
+
* // state: "Pending" || "Active" || "Failed" || "Deleting", // required
|
|
56
|
+
* // stateReason: "STRING_VALUE", // required
|
|
57
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
58
|
+
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
59
|
+
* // },
|
|
60
|
+
* // ],
|
|
61
|
+
* // nextToken: "STRING_VALUE",
|
|
62
|
+
* // };
|
|
63
|
+
*
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* @param ListWebFunctionsCommandInput - {@link ListWebFunctionsCommandInput}
|
|
67
|
+
* @returns {@link ListWebFunctionsCommandOutput}
|
|
68
|
+
* @see {@link ListWebFunctionsCommandInput} for command's `input` shape.
|
|
69
|
+
* @see {@link ListWebFunctionsCommandOutput} for command's `response` shape.
|
|
70
|
+
* @see {@link LambdaWebClientResolvedConfig | config} for LambdaWebClient's `config` shape.
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
73
|
+
* <p>You don't have permission to perform this operation. Check the IAM policies for your identity and any resource-based policy on the web function.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link InternalServerException} (server fault)
|
|
76
|
+
* <p>The request failed because of an internal error in the service. Retry the request. If the error persists, open a support case.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
79
|
+
* <p>The request was denied because it exceeded the request rate that Lambda allows for your account. Reduce the frequency of requests and retry with exponential backoff.</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link ValidationException} (client fault)
|
|
82
|
+
* <p>The request failed validation because a parameter was missing, malformed, or outside the allowed range. Check the request parameters and try again.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link LambdaWebServiceException}
|
|
85
|
+
* <p>Base exception class for all service exceptions from LambdaWeb service.</p>
|
|
86
|
+
*
|
|
87
|
+
*
|
|
88
|
+
* @public
|
|
89
|
+
*/
|
|
90
|
+
export declare class ListWebFunctionsCommand extends ListWebFunctionsCommand_base {
|
|
91
|
+
/** @internal type navigation helper, not in runtime. */
|
|
92
|
+
protected static __types: {
|
|
93
|
+
api: {
|
|
94
|
+
input: ListWebFunctionsRequest;
|
|
95
|
+
output: ListWebFunctionsResponse;
|
|
96
|
+
};
|
|
97
|
+
sdk: {
|
|
98
|
+
input: ListWebFunctionsCommandInput;
|
|
99
|
+
output: ListWebFunctionsCommandOutput;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { PutResourcePolicyRequest, PutResourcePolicyResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link PutResourcePolicyCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface PutResourcePolicyCommandInput extends PutResourcePolicyRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link PutResourcePolicyCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface PutResourcePolicyCommandOutput extends PutResourcePolicyResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const PutResourcePolicyCommand_base: {
|
|
22
|
+
new (input: PutResourcePolicyCommandInput): import("@smithy/core/client").CommandImpl<PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput, import("..").LambdaWebClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: PutResourcePolicyCommandInput): import("@smithy/core/client").CommandImpl<PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput, import("..").LambdaWebClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Adds or updates a resource-based policy on a web function. A resource-based policy grants permissions to other AWS accounts or services to perform actions on the web function.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { LambdaWebClient, PutResourcePolicyCommand } from "@aws-sdk/client-lambda-web"; // ES Modules import
|
|
32
|
+
* // const { LambdaWebClient, PutResourcePolicyCommand } = require("@aws-sdk/client-lambda-web"); // CommonJS import
|
|
33
|
+
* // import type { LambdaWebClientConfig } from "@aws-sdk/client-lambda-web";
|
|
34
|
+
* const config = {}; // type is LambdaWebClientConfig
|
|
35
|
+
* const client = new LambdaWebClient(config);
|
|
36
|
+
* const input = { // PutResourcePolicyRequest
|
|
37
|
+
* resourceArn: "STRING_VALUE", // required
|
|
38
|
+
* policy: "STRING_VALUE", // required
|
|
39
|
+
* revisionId: "STRING_VALUE",
|
|
40
|
+
* };
|
|
41
|
+
* const command = new PutResourcePolicyCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // PutResourcePolicyResponse
|
|
44
|
+
* // policy: "STRING_VALUE", // required
|
|
45
|
+
* // revisionId: "STRING_VALUE", // required
|
|
46
|
+
* // };
|
|
47
|
+
*
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* @param PutResourcePolicyCommandInput - {@link PutResourcePolicyCommandInput}
|
|
51
|
+
* @returns {@link PutResourcePolicyCommandOutput}
|
|
52
|
+
* @see {@link PutResourcePolicyCommandInput} for command's `input` shape.
|
|
53
|
+
* @see {@link PutResourcePolicyCommandOutput} for command's `response` shape.
|
|
54
|
+
* @see {@link LambdaWebClientResolvedConfig | config} for LambdaWebClient's `config` shape.
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
57
|
+
* <p>You don't have permission to perform this operation. Check the IAM policies for your identity and any resource-based policy on the web function.</p>
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link ConflictException} (client fault)
|
|
60
|
+
* <p>The request conflicts with the current state of the resource. For example, the resource is being modified by another request, you tried to delete a revision that is serving traffic on an endpoint, or the policy revision ID that you specified doesn't match the current policy. Resolve the conflict and try again.</p>
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link InternalServerException} (server fault)
|
|
63
|
+
* <p>The request failed because of an internal error in the service. Retry the request. If the error persists, open a support case.</p>
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
66
|
+
* <p>The specified web function, revision, endpoint, or resource-based policy doesn't exist. Verify the resource identifier and try again.</p>
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
69
|
+
* <p>The request would exceed a service quota, such as the maximum number of web functions in your account or the maximum number of revisions or endpoints per web function. Request a quota increase or reduce usage and try again.</p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
72
|
+
* <p>The request was denied because it exceeded the request rate that Lambda allows for your account. Reduce the frequency of requests and retry with exponential backoff.</p>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link ValidationException} (client fault)
|
|
75
|
+
* <p>The request failed validation because a parameter was missing, malformed, or outside the allowed range. Check the request parameters and try again.</p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link LambdaWebServiceException}
|
|
78
|
+
* <p>Base exception class for all service exceptions from LambdaWeb service.</p>
|
|
79
|
+
*
|
|
80
|
+
*
|
|
81
|
+
* @public
|
|
82
|
+
*/
|
|
83
|
+
export declare class PutResourcePolicyCommand extends PutResourcePolicyCommand_base {
|
|
84
|
+
/** @internal type navigation helper, not in runtime. */
|
|
85
|
+
protected static __types: {
|
|
86
|
+
api: {
|
|
87
|
+
input: PutResourcePolicyRequest;
|
|
88
|
+
output: PutResourcePolicyResponse;
|
|
89
|
+
};
|
|
90
|
+
sdk: {
|
|
91
|
+
input: PutResourcePolicyCommandInput;
|
|
92
|
+
output: PutResourcePolicyCommandOutput;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
}
|