@aws-sdk/client-lambda-web 3.1149.0 → 3.1151.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 +1508 -7
- 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,189 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { CreateWebFunctionRequest, CreateWebFunctionResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link CreateWebFunctionCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface CreateWebFunctionCommandInput extends CreateWebFunctionRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link CreateWebFunctionCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface CreateWebFunctionCommandOutput extends CreateWebFunctionResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const CreateWebFunctionCommand_base: {
|
|
22
|
+
new (input: CreateWebFunctionCommandInput): import("@smithy/core/client").CommandImpl<CreateWebFunctionCommandInput, CreateWebFunctionCommandOutput, import("..").LambdaWebClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: CreateWebFunctionCommandInput): import("@smithy/core/client").CommandImpl<CreateWebFunctionCommandInput, CreateWebFunctionCommandOutput, import("..").LambdaWebClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Creates a web function with an initial revision and endpoint. To create a web function, you provide the function name, revision configuration (code and service settings), and endpoint configuration.</p> <p>To use this operation, you must have the <code>CreateWebFunction</code> permission on the web function. You don't need separate permissions for the initial revision or endpoint.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { LambdaWebClient, CreateWebFunctionCommand } from "@aws-sdk/client-lambda-web"; // ES Modules import
|
|
32
|
+
* // const { LambdaWebClient, CreateWebFunctionCommand } = 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 = { // CreateWebFunctionRequest
|
|
37
|
+
* functionName: "STRING_VALUE", // required
|
|
38
|
+
* revisionConfig: { // RevisionConfig
|
|
39
|
+
* description: "STRING_VALUE",
|
|
40
|
+
* kmsKeyArn: "STRING_VALUE",
|
|
41
|
+
* buildConfig: { // BuildConfig
|
|
42
|
+
* codeConfig: { // CodeConfig
|
|
43
|
+
* s3Object: { // S3Object
|
|
44
|
+
* bucket: "STRING_VALUE", // required
|
|
45
|
+
* key: "STRING_VALUE", // required
|
|
46
|
+
* versionId: "STRING_VALUE",
|
|
47
|
+
* },
|
|
48
|
+
* },
|
|
49
|
+
* runtimeConfig: { // RuntimeConfig
|
|
50
|
+
* runtime: "STRING_VALUE", // required
|
|
51
|
+
* },
|
|
52
|
+
* },
|
|
53
|
+
* serviceConfig: { // ServiceConfig
|
|
54
|
+
* executionRoleArn: "STRING_VALUE", // required
|
|
55
|
+
* timeoutSeconds: Number("int"),
|
|
56
|
+
* egressNetworkConnectorArn: "STRING_VALUE",
|
|
57
|
+
* maxConcurrencyPerEnvironment: Number("int"),
|
|
58
|
+
* environmentVariables: { // EnvironmentVariables
|
|
59
|
+
* "<keys>": "STRING_VALUE",
|
|
60
|
+
* },
|
|
61
|
+
* telemetryConfig: { // TelemetryConfig
|
|
62
|
+
* loggingConfig: { // LoggingConfig
|
|
63
|
+
* logGroup: "STRING_VALUE",
|
|
64
|
+
* applicationLogLevel: "TRACE" || "DEBUG" || "INFO" || "WARN" || "ERROR" || "FATAL",
|
|
65
|
+
* systemLogLevel: "DEBUG" || "INFO" || "WARN",
|
|
66
|
+
* },
|
|
67
|
+
* },
|
|
68
|
+
* },
|
|
69
|
+
* },
|
|
70
|
+
* endpointConfig: { // EndpointConfig
|
|
71
|
+
* endpointName: "STRING_VALUE", // required
|
|
72
|
+
* description: "STRING_VALUE",
|
|
73
|
+
* endpointType: "HomeRegion" || "MultiRegion" || "PerRegion", // required
|
|
74
|
+
* authType: "ApplicationManaged" || "IamAuth", // required
|
|
75
|
+
* autoDeploymentMode: "LatestRevision" || "Disabled",
|
|
76
|
+
* regions: [ // RegionList
|
|
77
|
+
* "STRING_VALUE",
|
|
78
|
+
* ],
|
|
79
|
+
* scalingConfig: { // ScalingConfig
|
|
80
|
+
* maxEnvironments: Number("int"),
|
|
81
|
+
* },
|
|
82
|
+
* throttleConfig: { // ThrottleConfig
|
|
83
|
+
* rateLimit: Number("int"),
|
|
84
|
+
* },
|
|
85
|
+
* },
|
|
86
|
+
* tags: { // Tags
|
|
87
|
+
* "<keys>": "STRING_VALUE",
|
|
88
|
+
* },
|
|
89
|
+
* };
|
|
90
|
+
* const command = new CreateWebFunctionCommand(input);
|
|
91
|
+
* const response = await client.send(command);
|
|
92
|
+
* // { // CreateWebFunctionResponse
|
|
93
|
+
* // functionName: "STRING_VALUE", // required
|
|
94
|
+
* // functionArn: "STRING_VALUE", // required
|
|
95
|
+
* // state: "Pending" || "Active" || "Failed" || "Deleting", // required
|
|
96
|
+
* // stateReason: "STRING_VALUE", // required
|
|
97
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
98
|
+
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
99
|
+
* // revision: { // FunctionRevisionSummary
|
|
100
|
+
* // revisionArn: "STRING_VALUE", // required
|
|
101
|
+
* // revisionId: "STRING_VALUE", // required
|
|
102
|
+
* // description: "STRING_VALUE",
|
|
103
|
+
* // state: "Pending" || "Active" || "Failed", // required
|
|
104
|
+
* // stateReason: "STRING_VALUE", // required
|
|
105
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
106
|
+
* // },
|
|
107
|
+
* // endpoint: { // FunctionEndpointSummary
|
|
108
|
+
* // endpointArn: "STRING_VALUE", // required
|
|
109
|
+
* // endpointName: "STRING_VALUE", // required
|
|
110
|
+
* // description: "STRING_VALUE",
|
|
111
|
+
* // endpointType: "HomeRegion" || "MultiRegion" || "PerRegion", // required
|
|
112
|
+
* // domainName: "STRING_VALUE", // required
|
|
113
|
+
* // authType: "ApplicationManaged" || "IamAuth", // required
|
|
114
|
+
* // autoDeploymentMode: "LatestRevision" || "Disabled", // required
|
|
115
|
+
* // revisionWeights: [ // RevisionWeightList // required
|
|
116
|
+
* // { // RevisionWeight
|
|
117
|
+
* // revisionId: "STRING_VALUE", // required
|
|
118
|
+
* // weight: Number("int"), // required
|
|
119
|
+
* // },
|
|
120
|
+
* // ],
|
|
121
|
+
* // regions: [ // RegionList // required
|
|
122
|
+
* // "STRING_VALUE",
|
|
123
|
+
* // ],
|
|
124
|
+
* // scalingConfig: { // ScalingConfig
|
|
125
|
+
* // maxEnvironments: Number("int"),
|
|
126
|
+
* // },
|
|
127
|
+
* // throttleConfig: { // ThrottleConfig
|
|
128
|
+
* // rateLimit: Number("int"),
|
|
129
|
+
* // },
|
|
130
|
+
* // state: "Pending" || "Active" || "Failed" || "Deleting", // required
|
|
131
|
+
* // stateReason: "STRING_VALUE", // required
|
|
132
|
+
* // updateStatus: "InProgress" || "Successful" || "Failed",
|
|
133
|
+
* // updateStatusReason: "STRING_VALUE",
|
|
134
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
135
|
+
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
136
|
+
* // },
|
|
137
|
+
* // tags: { // Tags
|
|
138
|
+
* // "<keys>": "STRING_VALUE",
|
|
139
|
+
* // },
|
|
140
|
+
* // };
|
|
141
|
+
*
|
|
142
|
+
* ```
|
|
143
|
+
*
|
|
144
|
+
* @param CreateWebFunctionCommandInput - {@link CreateWebFunctionCommandInput}
|
|
145
|
+
* @returns {@link CreateWebFunctionCommandOutput}
|
|
146
|
+
* @see {@link CreateWebFunctionCommandInput} for command's `input` shape.
|
|
147
|
+
* @see {@link CreateWebFunctionCommandOutput} for command's `response` shape.
|
|
148
|
+
* @see {@link LambdaWebClientResolvedConfig | config} for LambdaWebClient's `config` shape.
|
|
149
|
+
*
|
|
150
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
151
|
+
* <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>
|
|
152
|
+
*
|
|
153
|
+
* @throws {@link ConflictException} (client fault)
|
|
154
|
+
* <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>
|
|
155
|
+
*
|
|
156
|
+
* @throws {@link InternalServerException} (server fault)
|
|
157
|
+
* <p>The request failed because of an internal error in the service. Retry the request. If the error persists, open a support case.</p>
|
|
158
|
+
*
|
|
159
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
160
|
+
* <p>The specified web function, revision, endpoint, or resource-based policy doesn't exist. Verify the resource identifier and try again.</p>
|
|
161
|
+
*
|
|
162
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
163
|
+
* <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>
|
|
164
|
+
*
|
|
165
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
166
|
+
* <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>
|
|
167
|
+
*
|
|
168
|
+
* @throws {@link ValidationException} (client fault)
|
|
169
|
+
* <p>The request failed validation because a parameter was missing, malformed, or outside the allowed range. Check the request parameters and try again.</p>
|
|
170
|
+
*
|
|
171
|
+
* @throws {@link LambdaWebServiceException}
|
|
172
|
+
* <p>Base exception class for all service exceptions from LambdaWeb service.</p>
|
|
173
|
+
*
|
|
174
|
+
*
|
|
175
|
+
* @public
|
|
176
|
+
*/
|
|
177
|
+
export declare class CreateWebFunctionCommand extends CreateWebFunctionCommand_base {
|
|
178
|
+
/** @internal type navigation helper, not in runtime. */
|
|
179
|
+
protected static __types: {
|
|
180
|
+
api: {
|
|
181
|
+
input: CreateWebFunctionRequest;
|
|
182
|
+
output: CreateWebFunctionResponse;
|
|
183
|
+
};
|
|
184
|
+
sdk: {
|
|
185
|
+
input: CreateWebFunctionCommandInput;
|
|
186
|
+
output: CreateWebFunctionCommandOutput;
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
}
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { CreateWebFunctionEndpointRequest, CreateWebFunctionEndpointResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link CreateWebFunctionEndpointCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface CreateWebFunctionEndpointCommandInput extends CreateWebFunctionEndpointRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link CreateWebFunctionEndpointCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface CreateWebFunctionEndpointCommandOutput extends CreateWebFunctionEndpointResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const CreateWebFunctionEndpointCommand_base: {
|
|
22
|
+
new (input: CreateWebFunctionEndpointCommandInput): import("@smithy/core/client").CommandImpl<CreateWebFunctionEndpointCommandInput, CreateWebFunctionEndpointCommandOutput, import("..").LambdaWebClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: CreateWebFunctionEndpointCommandInput): import("@smithy/core/client").CommandImpl<CreateWebFunctionEndpointCommandInput, CreateWebFunctionEndpointCommandOutput, import("..").LambdaWebClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Creates an endpoint for a web function. An endpoint exposes the web function over HTTPS and routes traffic to one or more revisions.</p> <p>To use this operation, you must have the <code>CreateWebFunctionEndpoint</code> permission on the web function, not on the endpoint being created.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { LambdaWebClient, CreateWebFunctionEndpointCommand } from "@aws-sdk/client-lambda-web"; // ES Modules import
|
|
32
|
+
* // const { LambdaWebClient, CreateWebFunctionEndpointCommand } = 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 = { // CreateWebFunctionEndpointRequest
|
|
37
|
+
* functionName: "STRING_VALUE", // required
|
|
38
|
+
* endpointName: "STRING_VALUE", // required
|
|
39
|
+
* description: "STRING_VALUE",
|
|
40
|
+
* endpointType: "HomeRegion" || "MultiRegion" || "PerRegion", // required
|
|
41
|
+
* authType: "ApplicationManaged" || "IamAuth", // required
|
|
42
|
+
* autoDeploymentMode: "LatestRevision" || "Disabled",
|
|
43
|
+
* revisionWeights: [ // RevisionWeightList
|
|
44
|
+
* { // RevisionWeight
|
|
45
|
+
* revisionId: "STRING_VALUE", // required
|
|
46
|
+
* weight: Number("int"), // required
|
|
47
|
+
* },
|
|
48
|
+
* ],
|
|
49
|
+
* regions: [ // RegionList
|
|
50
|
+
* "STRING_VALUE",
|
|
51
|
+
* ],
|
|
52
|
+
* scalingConfig: { // ScalingConfig
|
|
53
|
+
* maxEnvironments: Number("int"),
|
|
54
|
+
* },
|
|
55
|
+
* throttleConfig: { // ThrottleConfig
|
|
56
|
+
* rateLimit: Number("int"),
|
|
57
|
+
* },
|
|
58
|
+
* };
|
|
59
|
+
* const command = new CreateWebFunctionEndpointCommand(input);
|
|
60
|
+
* const response = await client.send(command);
|
|
61
|
+
* // { // CreateWebFunctionEndpointResponse
|
|
62
|
+
* // functionArn: "STRING_VALUE", // required
|
|
63
|
+
* // endpointArn: "STRING_VALUE", // required
|
|
64
|
+
* // endpointName: "STRING_VALUE", // required
|
|
65
|
+
* // description: "STRING_VALUE",
|
|
66
|
+
* // endpointType: "HomeRegion" || "MultiRegion" || "PerRegion", // required
|
|
67
|
+
* // domainName: "STRING_VALUE", // required
|
|
68
|
+
* // authType: "ApplicationManaged" || "IamAuth", // required
|
|
69
|
+
* // autoDeploymentMode: "LatestRevision" || "Disabled", // required
|
|
70
|
+
* // revisionWeights: [ // RevisionWeightList // required
|
|
71
|
+
* // { // RevisionWeight
|
|
72
|
+
* // revisionId: "STRING_VALUE", // required
|
|
73
|
+
* // weight: Number("int"), // required
|
|
74
|
+
* // },
|
|
75
|
+
* // ],
|
|
76
|
+
* // regions: [ // RegionList // required
|
|
77
|
+
* // "STRING_VALUE",
|
|
78
|
+
* // ],
|
|
79
|
+
* // scalingConfig: { // ScalingConfig
|
|
80
|
+
* // maxEnvironments: Number("int"),
|
|
81
|
+
* // },
|
|
82
|
+
* // throttleConfig: { // ThrottleConfig
|
|
83
|
+
* // rateLimit: Number("int"),
|
|
84
|
+
* // },
|
|
85
|
+
* // state: "Pending" || "Active" || "Failed" || "Deleting", // required
|
|
86
|
+
* // stateReason: "STRING_VALUE", // required
|
|
87
|
+
* // updateStatus: "InProgress" || "Successful" || "Failed",
|
|
88
|
+
* // updateStatusReason: "STRING_VALUE",
|
|
89
|
+
* // regionalEndpoints: { // RegionalEndpoints // required
|
|
90
|
+
* // "<keys>": { // RegionalEndpoint
|
|
91
|
+
* // domainName: "STRING_VALUE",
|
|
92
|
+
* // authType: "ApplicationManaged" || "IamAuth", // required
|
|
93
|
+
* // revisionWeights: [ // required
|
|
94
|
+
* // {
|
|
95
|
+
* // revisionId: "STRING_VALUE", // required
|
|
96
|
+
* // weight: Number("int"), // required
|
|
97
|
+
* // },
|
|
98
|
+
* // ],
|
|
99
|
+
* // scalingConfig: {
|
|
100
|
+
* // maxEnvironments: Number("int"),
|
|
101
|
+
* // },
|
|
102
|
+
* // throttleConfig: {
|
|
103
|
+
* // rateLimit: Number("int"),
|
|
104
|
+
* // },
|
|
105
|
+
* // state: "Pending" || "Active" || "Failed" || "Deleting", // required
|
|
106
|
+
* // stateReason: "STRING_VALUE", // required
|
|
107
|
+
* // updateStatus: "InProgress" || "Successful" || "Failed",
|
|
108
|
+
* // updateStatusReason: "STRING_VALUE",
|
|
109
|
+
* // },
|
|
110
|
+
* // },
|
|
111
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
112
|
+
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
113
|
+
* // };
|
|
114
|
+
*
|
|
115
|
+
* ```
|
|
116
|
+
*
|
|
117
|
+
* @param CreateWebFunctionEndpointCommandInput - {@link CreateWebFunctionEndpointCommandInput}
|
|
118
|
+
* @returns {@link CreateWebFunctionEndpointCommandOutput}
|
|
119
|
+
* @see {@link CreateWebFunctionEndpointCommandInput} for command's `input` shape.
|
|
120
|
+
* @see {@link CreateWebFunctionEndpointCommandOutput} for command's `response` shape.
|
|
121
|
+
* @see {@link LambdaWebClientResolvedConfig | config} for LambdaWebClient's `config` shape.
|
|
122
|
+
*
|
|
123
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
124
|
+
* <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>
|
|
125
|
+
*
|
|
126
|
+
* @throws {@link ConflictException} (client fault)
|
|
127
|
+
* <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>
|
|
128
|
+
*
|
|
129
|
+
* @throws {@link InternalServerException} (server fault)
|
|
130
|
+
* <p>The request failed because of an internal error in the service. Retry the request. If the error persists, open a support case.</p>
|
|
131
|
+
*
|
|
132
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
133
|
+
* <p>The specified web function, revision, endpoint, or resource-based policy doesn't exist. Verify the resource identifier and try again.</p>
|
|
134
|
+
*
|
|
135
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
136
|
+
* <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>
|
|
137
|
+
*
|
|
138
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
139
|
+
* <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>
|
|
140
|
+
*
|
|
141
|
+
* @throws {@link ValidationException} (client fault)
|
|
142
|
+
* <p>The request failed validation because a parameter was missing, malformed, or outside the allowed range. Check the request parameters and try again.</p>
|
|
143
|
+
*
|
|
144
|
+
* @throws {@link LambdaWebServiceException}
|
|
145
|
+
* <p>Base exception class for all service exceptions from LambdaWeb service.</p>
|
|
146
|
+
*
|
|
147
|
+
*
|
|
148
|
+
* @public
|
|
149
|
+
*/
|
|
150
|
+
export declare class CreateWebFunctionEndpointCommand extends CreateWebFunctionEndpointCommand_base {
|
|
151
|
+
/** @internal type navigation helper, not in runtime. */
|
|
152
|
+
protected static __types: {
|
|
153
|
+
api: {
|
|
154
|
+
input: CreateWebFunctionEndpointRequest;
|
|
155
|
+
output: CreateWebFunctionEndpointResponse;
|
|
156
|
+
};
|
|
157
|
+
sdk: {
|
|
158
|
+
input: CreateWebFunctionEndpointCommandInput;
|
|
159
|
+
output: CreateWebFunctionEndpointCommandOutput;
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { CreateWebFunctionRevisionRequest, CreateWebFunctionRevisionResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link CreateWebFunctionRevisionCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface CreateWebFunctionRevisionCommandInput extends CreateWebFunctionRevisionRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link CreateWebFunctionRevisionCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface CreateWebFunctionRevisionCommandOutput extends CreateWebFunctionRevisionResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const CreateWebFunctionRevisionCommand_base: {
|
|
22
|
+
new (input: CreateWebFunctionRevisionCommandInput): import("@smithy/core/client").CommandImpl<CreateWebFunctionRevisionCommandInput, CreateWebFunctionRevisionCommandOutput, import("..").LambdaWebClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: CreateWebFunctionRevisionCommandInput): import("@smithy/core/client").CommandImpl<CreateWebFunctionRevisionCommandInput, CreateWebFunctionRevisionCommandOutput, import("..").LambdaWebClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Creates an immutable revision for a web function. A revision represents a specific version of the function code and configuration.</p> <p>To use this operation, you must have the <code>CreateWebFunctionRevision</code> permission on the web function, not on the revision being created.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { LambdaWebClient, CreateWebFunctionRevisionCommand } from "@aws-sdk/client-lambda-web"; // ES Modules import
|
|
32
|
+
* // const { LambdaWebClient, CreateWebFunctionRevisionCommand } = 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 = { // CreateWebFunctionRevisionRequest
|
|
37
|
+
* functionName: "STRING_VALUE", // required
|
|
38
|
+
* description: "STRING_VALUE",
|
|
39
|
+
* kmsKeyArn: "STRING_VALUE",
|
|
40
|
+
* buildConfig: { // BuildConfig
|
|
41
|
+
* codeConfig: { // CodeConfig
|
|
42
|
+
* s3Object: { // S3Object
|
|
43
|
+
* bucket: "STRING_VALUE", // required
|
|
44
|
+
* key: "STRING_VALUE", // required
|
|
45
|
+
* versionId: "STRING_VALUE",
|
|
46
|
+
* },
|
|
47
|
+
* },
|
|
48
|
+
* runtimeConfig: { // RuntimeConfig
|
|
49
|
+
* runtime: "STRING_VALUE", // required
|
|
50
|
+
* },
|
|
51
|
+
* },
|
|
52
|
+
* serviceConfig: { // ServiceConfig
|
|
53
|
+
* executionRoleArn: "STRING_VALUE", // required
|
|
54
|
+
* timeoutSeconds: Number("int"),
|
|
55
|
+
* egressNetworkConnectorArn: "STRING_VALUE",
|
|
56
|
+
* maxConcurrencyPerEnvironment: Number("int"),
|
|
57
|
+
* environmentVariables: { // EnvironmentVariables
|
|
58
|
+
* "<keys>": "STRING_VALUE",
|
|
59
|
+
* },
|
|
60
|
+
* telemetryConfig: { // TelemetryConfig
|
|
61
|
+
* loggingConfig: { // LoggingConfig
|
|
62
|
+
* logGroup: "STRING_VALUE",
|
|
63
|
+
* applicationLogLevel: "TRACE" || "DEBUG" || "INFO" || "WARN" || "ERROR" || "FATAL",
|
|
64
|
+
* systemLogLevel: "DEBUG" || "INFO" || "WARN",
|
|
65
|
+
* },
|
|
66
|
+
* },
|
|
67
|
+
* },
|
|
68
|
+
* };
|
|
69
|
+
* const command = new CreateWebFunctionRevisionCommand(input);
|
|
70
|
+
* const response = await client.send(command);
|
|
71
|
+
* // { // CreateWebFunctionRevisionResponse
|
|
72
|
+
* // functionArn: "STRING_VALUE", // required
|
|
73
|
+
* // revisionArn: "STRING_VALUE", // required
|
|
74
|
+
* // revisionId: "STRING_VALUE", // required
|
|
75
|
+
* // description: "STRING_VALUE",
|
|
76
|
+
* // kmsKeyArn: "STRING_VALUE",
|
|
77
|
+
* // buildConfig: { // BuildConfig
|
|
78
|
+
* // codeConfig: { // CodeConfig
|
|
79
|
+
* // s3Object: { // S3Object
|
|
80
|
+
* // bucket: "STRING_VALUE", // required
|
|
81
|
+
* // key: "STRING_VALUE", // required
|
|
82
|
+
* // versionId: "STRING_VALUE",
|
|
83
|
+
* // },
|
|
84
|
+
* // },
|
|
85
|
+
* // runtimeConfig: { // RuntimeConfig
|
|
86
|
+
* // runtime: "STRING_VALUE", // required
|
|
87
|
+
* // },
|
|
88
|
+
* // },
|
|
89
|
+
* // serviceConfig: { // ServiceConfig
|
|
90
|
+
* // executionRoleArn: "STRING_VALUE", // required
|
|
91
|
+
* // timeoutSeconds: Number("int"),
|
|
92
|
+
* // egressNetworkConnectorArn: "STRING_VALUE",
|
|
93
|
+
* // maxConcurrencyPerEnvironment: Number("int"),
|
|
94
|
+
* // environmentVariables: { // EnvironmentVariables
|
|
95
|
+
* // "<keys>": "STRING_VALUE",
|
|
96
|
+
* // },
|
|
97
|
+
* // telemetryConfig: { // TelemetryConfig
|
|
98
|
+
* // loggingConfig: { // LoggingConfig
|
|
99
|
+
* // logGroup: "STRING_VALUE",
|
|
100
|
+
* // applicationLogLevel: "TRACE" || "DEBUG" || "INFO" || "WARN" || "ERROR" || "FATAL",
|
|
101
|
+
* // systemLogLevel: "DEBUG" || "INFO" || "WARN",
|
|
102
|
+
* // },
|
|
103
|
+
* // },
|
|
104
|
+
* // },
|
|
105
|
+
* // state: "Pending" || "Active" || "Failed", // required
|
|
106
|
+
* // stateReason: "STRING_VALUE", // required
|
|
107
|
+
* // errors: [ // RevisionErrors
|
|
108
|
+
* // { // RevisionError
|
|
109
|
+
* // attribute: "STRING_VALUE", // required
|
|
110
|
+
* // errorCode: "STRING_VALUE", // required
|
|
111
|
+
* // errorMessage: "STRING_VALUE", // required
|
|
112
|
+
* // },
|
|
113
|
+
* // ],
|
|
114
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
115
|
+
* // };
|
|
116
|
+
*
|
|
117
|
+
* ```
|
|
118
|
+
*
|
|
119
|
+
* @param CreateWebFunctionRevisionCommandInput - {@link CreateWebFunctionRevisionCommandInput}
|
|
120
|
+
* @returns {@link CreateWebFunctionRevisionCommandOutput}
|
|
121
|
+
* @see {@link CreateWebFunctionRevisionCommandInput} for command's `input` shape.
|
|
122
|
+
* @see {@link CreateWebFunctionRevisionCommandOutput} for command's `response` shape.
|
|
123
|
+
* @see {@link LambdaWebClientResolvedConfig | config} for LambdaWebClient's `config` shape.
|
|
124
|
+
*
|
|
125
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
126
|
+
* <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>
|
|
127
|
+
*
|
|
128
|
+
* @throws {@link ConflictException} (client fault)
|
|
129
|
+
* <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>
|
|
130
|
+
*
|
|
131
|
+
* @throws {@link InternalServerException} (server fault)
|
|
132
|
+
* <p>The request failed because of an internal error in the service. Retry the request. If the error persists, open a support case.</p>
|
|
133
|
+
*
|
|
134
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
135
|
+
* <p>The specified web function, revision, endpoint, or resource-based policy doesn't exist. Verify the resource identifier and try again.</p>
|
|
136
|
+
*
|
|
137
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
138
|
+
* <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>
|
|
139
|
+
*
|
|
140
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
141
|
+
* <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>
|
|
142
|
+
*
|
|
143
|
+
* @throws {@link ValidationException} (client fault)
|
|
144
|
+
* <p>The request failed validation because a parameter was missing, malformed, or outside the allowed range. Check the request parameters and try again.</p>
|
|
145
|
+
*
|
|
146
|
+
* @throws {@link LambdaWebServiceException}
|
|
147
|
+
* <p>Base exception class for all service exceptions from LambdaWeb service.</p>
|
|
148
|
+
*
|
|
149
|
+
*
|
|
150
|
+
* @public
|
|
151
|
+
*/
|
|
152
|
+
export declare class CreateWebFunctionRevisionCommand extends CreateWebFunctionRevisionCommand_base {
|
|
153
|
+
/** @internal type navigation helper, not in runtime. */
|
|
154
|
+
protected static __types: {
|
|
155
|
+
api: {
|
|
156
|
+
input: CreateWebFunctionRevisionRequest;
|
|
157
|
+
output: CreateWebFunctionRevisionResponse;
|
|
158
|
+
};
|
|
159
|
+
sdk: {
|
|
160
|
+
input: CreateWebFunctionRevisionCommandInput;
|
|
161
|
+
output: CreateWebFunctionRevisionCommandOutput;
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { DeleteResourcePolicyRequest } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link DeleteResourcePolicyCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface DeleteResourcePolicyCommandInput extends DeleteResourcePolicyRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link DeleteResourcePolicyCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface DeleteResourcePolicyCommandOutput extends __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const DeleteResourcePolicyCommand_base: {
|
|
22
|
+
new (input: DeleteResourcePolicyCommandInput): import("@smithy/core/client").CommandImpl<DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput, import("..").LambdaWebClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: DeleteResourcePolicyCommandInput): import("@smithy/core/client").CommandImpl<DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput, import("..").LambdaWebClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Removes the resource-based policy from 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, DeleteResourcePolicyCommand } from "@aws-sdk/client-lambda-web"; // ES Modules import
|
|
32
|
+
* // const { LambdaWebClient, DeleteResourcePolicyCommand } = 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 = { // DeleteResourcePolicyRequest
|
|
37
|
+
* resourceArn: "STRING_VALUE", // required
|
|
38
|
+
* revisionId: "STRING_VALUE",
|
|
39
|
+
* };
|
|
40
|
+
* const command = new DeleteResourcePolicyCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // {};
|
|
43
|
+
*
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* @param DeleteResourcePolicyCommandInput - {@link DeleteResourcePolicyCommandInput}
|
|
47
|
+
* @returns {@link DeleteResourcePolicyCommandOutput}
|
|
48
|
+
* @see {@link DeleteResourcePolicyCommandInput} for command's `input` shape.
|
|
49
|
+
* @see {@link DeleteResourcePolicyCommandOutput} for command's `response` shape.
|
|
50
|
+
* @see {@link LambdaWebClientResolvedConfig | config} for LambdaWebClient's `config` shape.
|
|
51
|
+
*
|
|
52
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
53
|
+
* <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>
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link ConflictException} (client fault)
|
|
56
|
+
* <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>
|
|
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 DeleteResourcePolicyCommand extends DeleteResourcePolicyCommand_base {
|
|
77
|
+
/** @internal type navigation helper, not in runtime. */
|
|
78
|
+
protected static __types: {
|
|
79
|
+
api: {
|
|
80
|
+
input: DeleteResourcePolicyRequest;
|
|
81
|
+
output: {};
|
|
82
|
+
};
|
|
83
|
+
sdk: {
|
|
84
|
+
input: DeleteResourcePolicyCommandInput;
|
|
85
|
+
output: DeleteResourcePolicyCommandOutput;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
}
|