@aws-sdk/client-serverlessapplicationrepository 3.35.0 → 3.38.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.
Files changed (182) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist-cjs/ServerlessApplicationRepository.js +0 -23
  3. package/dist-cjs/ServerlessApplicationRepositoryClient.js +0 -28
  4. package/dist-cjs/commands/CreateApplicationCommand.js +0 -25
  5. package/dist-cjs/commands/CreateApplicationVersionCommand.js +0 -25
  6. package/dist-cjs/commands/CreateCloudFormationChangeSetCommand.js +0 -25
  7. package/dist-cjs/commands/CreateCloudFormationTemplateCommand.js +0 -25
  8. package/dist-cjs/commands/DeleteApplicationCommand.js +0 -25
  9. package/dist-cjs/commands/GetApplicationCommand.js +0 -25
  10. package/dist-cjs/commands/GetApplicationPolicyCommand.js +0 -25
  11. package/dist-cjs/commands/GetCloudFormationTemplateCommand.js +0 -25
  12. package/dist-cjs/commands/ListApplicationDependenciesCommand.js +0 -25
  13. package/dist-cjs/commands/ListApplicationVersionsCommand.js +0 -25
  14. package/dist-cjs/commands/ListApplicationsCommand.js +0 -25
  15. package/dist-cjs/commands/PutApplicationPolicyCommand.js +0 -28
  16. package/dist-cjs/commands/UnshareApplicationCommand.js +0 -25
  17. package/dist-cjs/commands/UpdateApplicationCommand.js +0 -25
  18. package/dist-cjs/commands/index.js +17 -0
  19. package/dist-cjs/endpoints.js +1 -2
  20. package/dist-cjs/index.js +4 -21
  21. package/dist-cjs/models/index.js +0 -1
  22. package/dist-cjs/models/models_0.js +0 -127
  23. package/dist-cjs/pagination/Interfaces.js +0 -1
  24. package/dist-cjs/pagination/ListApplicationDependenciesPaginator.js +0 -11
  25. package/dist-cjs/pagination/ListApplicationVersionsPaginator.js +0 -11
  26. package/dist-cjs/pagination/ListApplicationsPaginator.js +0 -11
  27. package/dist-cjs/pagination/index.js +7 -0
  28. package/dist-cjs/protocols/Aws_restJson1.js +0 -6
  29. package/dist-cjs/runtimeConfig.browser.js +1 -6
  30. package/dist-cjs/runtimeConfig.js +2 -7
  31. package/dist-cjs/runtimeConfig.native.js +0 -4
  32. package/dist-cjs/runtimeConfig.shared.js +0 -4
  33. package/dist-es/ServerlessApplicationRepository.js +0 -1
  34. package/dist-es/ServerlessApplicationRepositoryClient.js +0 -1
  35. package/dist-es/commands/CreateApplicationCommand.js +0 -1
  36. package/dist-es/commands/CreateApplicationVersionCommand.js +0 -1
  37. package/dist-es/commands/CreateCloudFormationChangeSetCommand.js +0 -1
  38. package/dist-es/commands/CreateCloudFormationTemplateCommand.js +0 -1
  39. package/dist-es/commands/DeleteApplicationCommand.js +0 -1
  40. package/dist-es/commands/GetApplicationCommand.js +0 -1
  41. package/dist-es/commands/GetApplicationPolicyCommand.js +0 -1
  42. package/dist-es/commands/GetCloudFormationTemplateCommand.js +0 -1
  43. package/dist-es/commands/ListApplicationDependenciesCommand.js +0 -1
  44. package/dist-es/commands/ListApplicationVersionsCommand.js +0 -1
  45. package/dist-es/commands/ListApplicationsCommand.js +0 -1
  46. package/dist-es/commands/PutApplicationPolicyCommand.js +0 -1
  47. package/dist-es/commands/UnshareApplicationCommand.js +0 -1
  48. package/dist-es/commands/UpdateApplicationCommand.js +0 -1
  49. package/dist-es/commands/index.js +14 -0
  50. package/dist-es/endpoints.js +1 -2
  51. package/dist-es/index.js +4 -21
  52. package/dist-es/models/index.js +0 -1
  53. package/dist-es/models/models_0.js +0 -1
  54. package/dist-es/pagination/Interfaces.js +0 -1
  55. package/dist-es/pagination/ListApplicationDependenciesPaginator.js +0 -1
  56. package/dist-es/pagination/ListApplicationVersionsPaginator.js +0 -1
  57. package/dist-es/pagination/ListApplicationsPaginator.js +0 -1
  58. package/dist-es/pagination/index.js +4 -0
  59. package/dist-es/protocols/Aws_restJson1.js +0 -1
  60. package/dist-es/runtimeConfig.browser.js +1 -2
  61. package/dist-es/runtimeConfig.js +2 -3
  62. package/dist-es/runtimeConfig.native.js +0 -1
  63. package/dist-es/runtimeConfig.shared.js +0 -1
  64. package/dist-types/commands/index.d.ts +14 -0
  65. package/dist-types/index.d.ts +4 -20
  66. package/dist-types/pagination/index.d.ts +4 -0
  67. package/dist-types/ts3.4/ServerlessApplicationRepository.d.ts +15 -67
  68. package/dist-types/ts3.4/ServerlessApplicationRepositoryClient.d.ts +24 -108
  69. package/dist-types/ts3.4/commands/CreateApplicationCommand.d.ts +2 -20
  70. package/dist-types/ts3.4/commands/CreateApplicationVersionCommand.d.ts +2 -20
  71. package/dist-types/ts3.4/commands/CreateCloudFormationChangeSetCommand.d.ts +2 -20
  72. package/dist-types/ts3.4/commands/CreateCloudFormationTemplateCommand.d.ts +2 -20
  73. package/dist-types/ts3.4/commands/DeleteApplicationCommand.d.ts +2 -20
  74. package/dist-types/ts3.4/commands/GetApplicationCommand.d.ts +2 -20
  75. package/dist-types/ts3.4/commands/GetApplicationPolicyCommand.d.ts +2 -20
  76. package/dist-types/ts3.4/commands/GetCloudFormationTemplateCommand.d.ts +2 -20
  77. package/dist-types/ts3.4/commands/ListApplicationDependenciesCommand.d.ts +2 -20
  78. package/dist-types/ts3.4/commands/ListApplicationVersionsCommand.d.ts +2 -20
  79. package/dist-types/ts3.4/commands/ListApplicationsCommand.d.ts +2 -20
  80. package/dist-types/ts3.4/commands/PutApplicationPolicyCommand.d.ts +2 -23
  81. package/dist-types/ts3.4/commands/UnshareApplicationCommand.d.ts +2 -20
  82. package/dist-types/ts3.4/commands/UpdateApplicationCommand.d.ts +2 -20
  83. package/dist-types/ts3.4/commands/index.d.ts +14 -0
  84. package/dist-types/ts3.4/index.d.ts +4 -20
  85. package/dist-types/ts3.4/models/models_0.d.ts +254 -895
  86. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  87. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  88. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  89. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  90. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  91. package/package.json +33 -30
  92. package/dist-cjs/ServerlessApplicationRepository.js.map +0 -1
  93. package/dist-cjs/ServerlessApplicationRepositoryClient.js.map +0 -1
  94. package/dist-cjs/commands/CreateApplicationCommand.js.map +0 -1
  95. package/dist-cjs/commands/CreateApplicationVersionCommand.js.map +0 -1
  96. package/dist-cjs/commands/CreateCloudFormationChangeSetCommand.js.map +0 -1
  97. package/dist-cjs/commands/CreateCloudFormationTemplateCommand.js.map +0 -1
  98. package/dist-cjs/commands/DeleteApplicationCommand.js.map +0 -1
  99. package/dist-cjs/commands/GetApplicationCommand.js.map +0 -1
  100. package/dist-cjs/commands/GetApplicationPolicyCommand.js.map +0 -1
  101. package/dist-cjs/commands/GetCloudFormationTemplateCommand.js.map +0 -1
  102. package/dist-cjs/commands/ListApplicationDependenciesCommand.js.map +0 -1
  103. package/dist-cjs/commands/ListApplicationVersionsCommand.js.map +0 -1
  104. package/dist-cjs/commands/ListApplicationsCommand.js.map +0 -1
  105. package/dist-cjs/commands/PutApplicationPolicyCommand.js.map +0 -1
  106. package/dist-cjs/commands/UnshareApplicationCommand.js.map +0 -1
  107. package/dist-cjs/commands/UpdateApplicationCommand.js.map +0 -1
  108. package/dist-cjs/endpoints.js.map +0 -1
  109. package/dist-cjs/index.js.map +0 -1
  110. package/dist-cjs/models/index.js.map +0 -1
  111. package/dist-cjs/models/models_0.js.map +0 -1
  112. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  113. package/dist-cjs/pagination/ListApplicationDependenciesPaginator.js.map +0 -1
  114. package/dist-cjs/pagination/ListApplicationVersionsPaginator.js.map +0 -1
  115. package/dist-cjs/pagination/ListApplicationsPaginator.js.map +0 -1
  116. package/dist-cjs/protocols/Aws_restJson1.js.map +0 -1
  117. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  118. package/dist-cjs/runtimeConfig.js.map +0 -1
  119. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  120. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  121. package/dist-es/ServerlessApplicationRepository.js.map +0 -1
  122. package/dist-es/ServerlessApplicationRepositoryClient.js.map +0 -1
  123. package/dist-es/commands/CreateApplicationCommand.js.map +0 -1
  124. package/dist-es/commands/CreateApplicationVersionCommand.js.map +0 -1
  125. package/dist-es/commands/CreateCloudFormationChangeSetCommand.js.map +0 -1
  126. package/dist-es/commands/CreateCloudFormationTemplateCommand.js.map +0 -1
  127. package/dist-es/commands/DeleteApplicationCommand.js.map +0 -1
  128. package/dist-es/commands/GetApplicationCommand.js.map +0 -1
  129. package/dist-es/commands/GetApplicationPolicyCommand.js.map +0 -1
  130. package/dist-es/commands/GetCloudFormationTemplateCommand.js.map +0 -1
  131. package/dist-es/commands/ListApplicationDependenciesCommand.js.map +0 -1
  132. package/dist-es/commands/ListApplicationVersionsCommand.js.map +0 -1
  133. package/dist-es/commands/ListApplicationsCommand.js.map +0 -1
  134. package/dist-es/commands/PutApplicationPolicyCommand.js.map +0 -1
  135. package/dist-es/commands/UnshareApplicationCommand.js.map +0 -1
  136. package/dist-es/commands/UpdateApplicationCommand.js.map +0 -1
  137. package/dist-es/endpoints.js.map +0 -1
  138. package/dist-es/index.js.map +0 -1
  139. package/dist-es/models/index.js.map +0 -1
  140. package/dist-es/models/models_0.js.map +0 -1
  141. package/dist-es/pagination/Interfaces.js.map +0 -1
  142. package/dist-es/pagination/ListApplicationDependenciesPaginator.js.map +0 -1
  143. package/dist-es/pagination/ListApplicationVersionsPaginator.js.map +0 -1
  144. package/dist-es/pagination/ListApplicationsPaginator.js.map +0 -1
  145. package/dist-es/protocols/Aws_restJson1.js.map +0 -1
  146. package/dist-es/runtimeConfig.browser.js.map +0 -1
  147. package/dist-es/runtimeConfig.js.map +0 -1
  148. package/dist-es/runtimeConfig.native.js.map +0 -1
  149. package/dist-es/runtimeConfig.shared.js.map +0 -1
  150. package/jest.config.js +0 -4
  151. package/src/ServerlessApplicationRepository.ts +0 -548
  152. package/src/ServerlessApplicationRepositoryClient.ts +0 -322
  153. package/src/commands/CreateApplicationCommand.ts +0 -99
  154. package/src/commands/CreateApplicationVersionCommand.ts +0 -99
  155. package/src/commands/CreateCloudFormationChangeSetCommand.ts +0 -104
  156. package/src/commands/CreateCloudFormationTemplateCommand.ts +0 -104
  157. package/src/commands/DeleteApplicationCommand.ts +0 -99
  158. package/src/commands/GetApplicationCommand.ts +0 -99
  159. package/src/commands/GetApplicationPolicyCommand.ts +0 -99
  160. package/src/commands/GetCloudFormationTemplateCommand.ts +0 -102
  161. package/src/commands/ListApplicationDependenciesCommand.ts +0 -104
  162. package/src/commands/ListApplicationVersionsCommand.ts +0 -99
  163. package/src/commands/ListApplicationsCommand.ts +0 -99
  164. package/src/commands/PutApplicationPolicyCommand.ts +0 -102
  165. package/src/commands/UnshareApplicationCommand.ts +0 -99
  166. package/src/commands/UpdateApplicationCommand.ts +0 -99
  167. package/src/endpoints.ts +0 -66
  168. package/src/index.ts +0 -21
  169. package/src/models/index.ts +0 -1
  170. package/src/models/models_0.ts +0 -1649
  171. package/src/pagination/Interfaces.ts +0 -8
  172. package/src/pagination/ListApplicationDependenciesPaginator.ts +0 -61
  173. package/src/pagination/ListApplicationVersionsPaginator.ts +0 -61
  174. package/src/pagination/ListApplicationsPaginator.ts +0 -61
  175. package/src/protocols/Aws_restJson1.ts +0 -2546
  176. package/src/runtimeConfig.browser.ts +0 -41
  177. package/src/runtimeConfig.native.ts +0 -17
  178. package/src/runtimeConfig.shared.ts +0 -17
  179. package/src/runtimeConfig.ts +0 -46
  180. package/tsconfig.es.json +0 -10
  181. package/tsconfig.json +0 -33
  182. package/tsconfig.types.json +0 -9
@@ -1,99 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { ListApplicationVersionsRequest, ListApplicationVersionsResponse } from "../models/models_0";
15
- import {
16
- deserializeAws_restJson1ListApplicationVersionsCommand,
17
- serializeAws_restJson1ListApplicationVersionsCommand,
18
- } from "../protocols/Aws_restJson1";
19
- import {
20
- ServerlessApplicationRepositoryClientResolvedConfig,
21
- ServiceInputTypes,
22
- ServiceOutputTypes,
23
- } from "../ServerlessApplicationRepositoryClient";
24
-
25
- export interface ListApplicationVersionsCommandInput extends ListApplicationVersionsRequest {}
26
- export interface ListApplicationVersionsCommandOutput extends ListApplicationVersionsResponse, __MetadataBearer {}
27
-
28
- /**
29
- * <p>Lists versions for the specified application.</p>
30
- * @example
31
- * Use a bare-bones client and the command you need to make an API call.
32
- * ```javascript
33
- * import { ServerlessApplicationRepositoryClient, ListApplicationVersionsCommand } from "@aws-sdk/client-serverlessapplicationrepository"; // ES Modules import
34
- * // const { ServerlessApplicationRepositoryClient, ListApplicationVersionsCommand } = require("@aws-sdk/client-serverlessapplicationrepository"); // CommonJS import
35
- * const client = new ServerlessApplicationRepositoryClient(config);
36
- * const command = new ListApplicationVersionsCommand(input);
37
- * const response = await client.send(command);
38
- * ```
39
- *
40
- * @see {@link ListApplicationVersionsCommandInput} for command's `input` shape.
41
- * @see {@link ListApplicationVersionsCommandOutput} for command's `response` shape.
42
- * @see {@link ServerlessApplicationRepositoryClientResolvedConfig | config} for command's `input` shape.
43
- *
44
- */
45
- export class ListApplicationVersionsCommand extends $Command<
46
- ListApplicationVersionsCommandInput,
47
- ListApplicationVersionsCommandOutput,
48
- ServerlessApplicationRepositoryClientResolvedConfig
49
- > {
50
- // Start section: command_properties
51
- // End section: command_properties
52
-
53
- constructor(readonly input: ListApplicationVersionsCommandInput) {
54
- // Start section: command_constructor
55
- super();
56
- // End section: command_constructor
57
- }
58
-
59
- /**
60
- * @internal
61
- */
62
- resolveMiddleware(
63
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
64
- configuration: ServerlessApplicationRepositoryClientResolvedConfig,
65
- options?: __HttpHandlerOptions
66
- ): Handler<ListApplicationVersionsCommandInput, ListApplicationVersionsCommandOutput> {
67
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
68
-
69
- const stack = clientStack.concat(this.middlewareStack);
70
-
71
- const { logger } = configuration;
72
- const clientName = "ServerlessApplicationRepositoryClient";
73
- const commandName = "ListApplicationVersionsCommand";
74
- const handlerExecutionContext: HandlerExecutionContext = {
75
- logger,
76
- clientName,
77
- commandName,
78
- inputFilterSensitiveLog: ListApplicationVersionsRequest.filterSensitiveLog,
79
- outputFilterSensitiveLog: ListApplicationVersionsResponse.filterSensitiveLog,
80
- };
81
- const { requestHandler } = configuration;
82
- return stack.resolve(
83
- (request: FinalizeHandlerArguments<any>) =>
84
- requestHandler.handle(request.request as __HttpRequest, options || {}),
85
- handlerExecutionContext
86
- );
87
- }
88
-
89
- private serialize(input: ListApplicationVersionsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
90
- return serializeAws_restJson1ListApplicationVersionsCommand(input, context);
91
- }
92
-
93
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListApplicationVersionsCommandOutput> {
94
- return deserializeAws_restJson1ListApplicationVersionsCommand(output, context);
95
- }
96
-
97
- // Start section: command_body_extra
98
- // End section: command_body_extra
99
- }
@@ -1,99 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { ListApplicationsRequest, ListApplicationsResponse } from "../models/models_0";
15
- import {
16
- deserializeAws_restJson1ListApplicationsCommand,
17
- serializeAws_restJson1ListApplicationsCommand,
18
- } from "../protocols/Aws_restJson1";
19
- import {
20
- ServerlessApplicationRepositoryClientResolvedConfig,
21
- ServiceInputTypes,
22
- ServiceOutputTypes,
23
- } from "../ServerlessApplicationRepositoryClient";
24
-
25
- export interface ListApplicationsCommandInput extends ListApplicationsRequest {}
26
- export interface ListApplicationsCommandOutput extends ListApplicationsResponse, __MetadataBearer {}
27
-
28
- /**
29
- * <p>Lists applications owned by the requester.</p>
30
- * @example
31
- * Use a bare-bones client and the command you need to make an API call.
32
- * ```javascript
33
- * import { ServerlessApplicationRepositoryClient, ListApplicationsCommand } from "@aws-sdk/client-serverlessapplicationrepository"; // ES Modules import
34
- * // const { ServerlessApplicationRepositoryClient, ListApplicationsCommand } = require("@aws-sdk/client-serverlessapplicationrepository"); // CommonJS import
35
- * const client = new ServerlessApplicationRepositoryClient(config);
36
- * const command = new ListApplicationsCommand(input);
37
- * const response = await client.send(command);
38
- * ```
39
- *
40
- * @see {@link ListApplicationsCommandInput} for command's `input` shape.
41
- * @see {@link ListApplicationsCommandOutput} for command's `response` shape.
42
- * @see {@link ServerlessApplicationRepositoryClientResolvedConfig | config} for command's `input` shape.
43
- *
44
- */
45
- export class ListApplicationsCommand extends $Command<
46
- ListApplicationsCommandInput,
47
- ListApplicationsCommandOutput,
48
- ServerlessApplicationRepositoryClientResolvedConfig
49
- > {
50
- // Start section: command_properties
51
- // End section: command_properties
52
-
53
- constructor(readonly input: ListApplicationsCommandInput) {
54
- // Start section: command_constructor
55
- super();
56
- // End section: command_constructor
57
- }
58
-
59
- /**
60
- * @internal
61
- */
62
- resolveMiddleware(
63
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
64
- configuration: ServerlessApplicationRepositoryClientResolvedConfig,
65
- options?: __HttpHandlerOptions
66
- ): Handler<ListApplicationsCommandInput, ListApplicationsCommandOutput> {
67
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
68
-
69
- const stack = clientStack.concat(this.middlewareStack);
70
-
71
- const { logger } = configuration;
72
- const clientName = "ServerlessApplicationRepositoryClient";
73
- const commandName = "ListApplicationsCommand";
74
- const handlerExecutionContext: HandlerExecutionContext = {
75
- logger,
76
- clientName,
77
- commandName,
78
- inputFilterSensitiveLog: ListApplicationsRequest.filterSensitiveLog,
79
- outputFilterSensitiveLog: ListApplicationsResponse.filterSensitiveLog,
80
- };
81
- const { requestHandler } = configuration;
82
- return stack.resolve(
83
- (request: FinalizeHandlerArguments<any>) =>
84
- requestHandler.handle(request.request as __HttpRequest, options || {}),
85
- handlerExecutionContext
86
- );
87
- }
88
-
89
- private serialize(input: ListApplicationsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
90
- return serializeAws_restJson1ListApplicationsCommand(input, context);
91
- }
92
-
93
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListApplicationsCommandOutput> {
94
- return deserializeAws_restJson1ListApplicationsCommand(output, context);
95
- }
96
-
97
- // Start section: command_body_extra
98
- // End section: command_body_extra
99
- }
@@ -1,102 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { PutApplicationPolicyRequest, PutApplicationPolicyResponse } from "../models/models_0";
15
- import {
16
- deserializeAws_restJson1PutApplicationPolicyCommand,
17
- serializeAws_restJson1PutApplicationPolicyCommand,
18
- } from "../protocols/Aws_restJson1";
19
- import {
20
- ServerlessApplicationRepositoryClientResolvedConfig,
21
- ServiceInputTypes,
22
- ServiceOutputTypes,
23
- } from "../ServerlessApplicationRepositoryClient";
24
-
25
- export interface PutApplicationPolicyCommandInput extends PutApplicationPolicyRequest {}
26
- export interface PutApplicationPolicyCommandOutput extends PutApplicationPolicyResponse, __MetadataBearer {}
27
-
28
- /**
29
- * <p>Sets the permission policy for an application. For the list of actions supported for this operation, see
30
- * <a href="https://docs.aws.amazon.com/serverlessrepo/latest/devguide/access-control-resource-based.html#application-permissions">Application
31
- * Permissions</a>
32
- * .</p>
33
- * @example
34
- * Use a bare-bones client and the command you need to make an API call.
35
- * ```javascript
36
- * import { ServerlessApplicationRepositoryClient, PutApplicationPolicyCommand } from "@aws-sdk/client-serverlessapplicationrepository"; // ES Modules import
37
- * // const { ServerlessApplicationRepositoryClient, PutApplicationPolicyCommand } = require("@aws-sdk/client-serverlessapplicationrepository"); // CommonJS import
38
- * const client = new ServerlessApplicationRepositoryClient(config);
39
- * const command = new PutApplicationPolicyCommand(input);
40
- * const response = await client.send(command);
41
- * ```
42
- *
43
- * @see {@link PutApplicationPolicyCommandInput} for command's `input` shape.
44
- * @see {@link PutApplicationPolicyCommandOutput} for command's `response` shape.
45
- * @see {@link ServerlessApplicationRepositoryClientResolvedConfig | config} for command's `input` shape.
46
- *
47
- */
48
- export class PutApplicationPolicyCommand extends $Command<
49
- PutApplicationPolicyCommandInput,
50
- PutApplicationPolicyCommandOutput,
51
- ServerlessApplicationRepositoryClientResolvedConfig
52
- > {
53
- // Start section: command_properties
54
- // End section: command_properties
55
-
56
- constructor(readonly input: PutApplicationPolicyCommandInput) {
57
- // Start section: command_constructor
58
- super();
59
- // End section: command_constructor
60
- }
61
-
62
- /**
63
- * @internal
64
- */
65
- resolveMiddleware(
66
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
67
- configuration: ServerlessApplicationRepositoryClientResolvedConfig,
68
- options?: __HttpHandlerOptions
69
- ): Handler<PutApplicationPolicyCommandInput, PutApplicationPolicyCommandOutput> {
70
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
71
-
72
- const stack = clientStack.concat(this.middlewareStack);
73
-
74
- const { logger } = configuration;
75
- const clientName = "ServerlessApplicationRepositoryClient";
76
- const commandName = "PutApplicationPolicyCommand";
77
- const handlerExecutionContext: HandlerExecutionContext = {
78
- logger,
79
- clientName,
80
- commandName,
81
- inputFilterSensitiveLog: PutApplicationPolicyRequest.filterSensitiveLog,
82
- outputFilterSensitiveLog: PutApplicationPolicyResponse.filterSensitiveLog,
83
- };
84
- const { requestHandler } = configuration;
85
- return stack.resolve(
86
- (request: FinalizeHandlerArguments<any>) =>
87
- requestHandler.handle(request.request as __HttpRequest, options || {}),
88
- handlerExecutionContext
89
- );
90
- }
91
-
92
- private serialize(input: PutApplicationPolicyCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
93
- return serializeAws_restJson1PutApplicationPolicyCommand(input, context);
94
- }
95
-
96
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<PutApplicationPolicyCommandOutput> {
97
- return deserializeAws_restJson1PutApplicationPolicyCommand(output, context);
98
- }
99
-
100
- // Start section: command_body_extra
101
- // End section: command_body_extra
102
- }
@@ -1,99 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { UnshareApplicationRequest } from "../models/models_0";
15
- import {
16
- deserializeAws_restJson1UnshareApplicationCommand,
17
- serializeAws_restJson1UnshareApplicationCommand,
18
- } from "../protocols/Aws_restJson1";
19
- import {
20
- ServerlessApplicationRepositoryClientResolvedConfig,
21
- ServiceInputTypes,
22
- ServiceOutputTypes,
23
- } from "../ServerlessApplicationRepositoryClient";
24
-
25
- export interface UnshareApplicationCommandInput extends UnshareApplicationRequest {}
26
- export interface UnshareApplicationCommandOutput extends __MetadataBearer {}
27
-
28
- /**
29
- * <p>Unshares an application from an AWS Organization.</p><p>This operation can be called only from the organization's master account.</p>
30
- * @example
31
- * Use a bare-bones client and the command you need to make an API call.
32
- * ```javascript
33
- * import { ServerlessApplicationRepositoryClient, UnshareApplicationCommand } from "@aws-sdk/client-serverlessapplicationrepository"; // ES Modules import
34
- * // const { ServerlessApplicationRepositoryClient, UnshareApplicationCommand } = require("@aws-sdk/client-serverlessapplicationrepository"); // CommonJS import
35
- * const client = new ServerlessApplicationRepositoryClient(config);
36
- * const command = new UnshareApplicationCommand(input);
37
- * const response = await client.send(command);
38
- * ```
39
- *
40
- * @see {@link UnshareApplicationCommandInput} for command's `input` shape.
41
- * @see {@link UnshareApplicationCommandOutput} for command's `response` shape.
42
- * @see {@link ServerlessApplicationRepositoryClientResolvedConfig | config} for command's `input` shape.
43
- *
44
- */
45
- export class UnshareApplicationCommand extends $Command<
46
- UnshareApplicationCommandInput,
47
- UnshareApplicationCommandOutput,
48
- ServerlessApplicationRepositoryClientResolvedConfig
49
- > {
50
- // Start section: command_properties
51
- // End section: command_properties
52
-
53
- constructor(readonly input: UnshareApplicationCommandInput) {
54
- // Start section: command_constructor
55
- super();
56
- // End section: command_constructor
57
- }
58
-
59
- /**
60
- * @internal
61
- */
62
- resolveMiddleware(
63
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
64
- configuration: ServerlessApplicationRepositoryClientResolvedConfig,
65
- options?: __HttpHandlerOptions
66
- ): Handler<UnshareApplicationCommandInput, UnshareApplicationCommandOutput> {
67
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
68
-
69
- const stack = clientStack.concat(this.middlewareStack);
70
-
71
- const { logger } = configuration;
72
- const clientName = "ServerlessApplicationRepositoryClient";
73
- const commandName = "UnshareApplicationCommand";
74
- const handlerExecutionContext: HandlerExecutionContext = {
75
- logger,
76
- clientName,
77
- commandName,
78
- inputFilterSensitiveLog: UnshareApplicationRequest.filterSensitiveLog,
79
- outputFilterSensitiveLog: (output: any) => output,
80
- };
81
- const { requestHandler } = configuration;
82
- return stack.resolve(
83
- (request: FinalizeHandlerArguments<any>) =>
84
- requestHandler.handle(request.request as __HttpRequest, options || {}),
85
- handlerExecutionContext
86
- );
87
- }
88
-
89
- private serialize(input: UnshareApplicationCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
90
- return serializeAws_restJson1UnshareApplicationCommand(input, context);
91
- }
92
-
93
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<UnshareApplicationCommandOutput> {
94
- return deserializeAws_restJson1UnshareApplicationCommand(output, context);
95
- }
96
-
97
- // Start section: command_body_extra
98
- // End section: command_body_extra
99
- }
@@ -1,99 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { UpdateApplicationRequest, UpdateApplicationResponse } from "../models/models_0";
15
- import {
16
- deserializeAws_restJson1UpdateApplicationCommand,
17
- serializeAws_restJson1UpdateApplicationCommand,
18
- } from "../protocols/Aws_restJson1";
19
- import {
20
- ServerlessApplicationRepositoryClientResolvedConfig,
21
- ServiceInputTypes,
22
- ServiceOutputTypes,
23
- } from "../ServerlessApplicationRepositoryClient";
24
-
25
- export interface UpdateApplicationCommandInput extends UpdateApplicationRequest {}
26
- export interface UpdateApplicationCommandOutput extends UpdateApplicationResponse, __MetadataBearer {}
27
-
28
- /**
29
- * <p>Updates the specified application.</p>
30
- * @example
31
- * Use a bare-bones client and the command you need to make an API call.
32
- * ```javascript
33
- * import { ServerlessApplicationRepositoryClient, UpdateApplicationCommand } from "@aws-sdk/client-serverlessapplicationrepository"; // ES Modules import
34
- * // const { ServerlessApplicationRepositoryClient, UpdateApplicationCommand } = require("@aws-sdk/client-serverlessapplicationrepository"); // CommonJS import
35
- * const client = new ServerlessApplicationRepositoryClient(config);
36
- * const command = new UpdateApplicationCommand(input);
37
- * const response = await client.send(command);
38
- * ```
39
- *
40
- * @see {@link UpdateApplicationCommandInput} for command's `input` shape.
41
- * @see {@link UpdateApplicationCommandOutput} for command's `response` shape.
42
- * @see {@link ServerlessApplicationRepositoryClientResolvedConfig | config} for command's `input` shape.
43
- *
44
- */
45
- export class UpdateApplicationCommand extends $Command<
46
- UpdateApplicationCommandInput,
47
- UpdateApplicationCommandOutput,
48
- ServerlessApplicationRepositoryClientResolvedConfig
49
- > {
50
- // Start section: command_properties
51
- // End section: command_properties
52
-
53
- constructor(readonly input: UpdateApplicationCommandInput) {
54
- // Start section: command_constructor
55
- super();
56
- // End section: command_constructor
57
- }
58
-
59
- /**
60
- * @internal
61
- */
62
- resolveMiddleware(
63
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
64
- configuration: ServerlessApplicationRepositoryClientResolvedConfig,
65
- options?: __HttpHandlerOptions
66
- ): Handler<UpdateApplicationCommandInput, UpdateApplicationCommandOutput> {
67
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
68
-
69
- const stack = clientStack.concat(this.middlewareStack);
70
-
71
- const { logger } = configuration;
72
- const clientName = "ServerlessApplicationRepositoryClient";
73
- const commandName = "UpdateApplicationCommand";
74
- const handlerExecutionContext: HandlerExecutionContext = {
75
- logger,
76
- clientName,
77
- commandName,
78
- inputFilterSensitiveLog: UpdateApplicationRequest.filterSensitiveLog,
79
- outputFilterSensitiveLog: UpdateApplicationResponse.filterSensitiveLog,
80
- };
81
- const { requestHandler } = configuration;
82
- return stack.resolve(
83
- (request: FinalizeHandlerArguments<any>) =>
84
- requestHandler.handle(request.request as __HttpRequest, options || {}),
85
- handlerExecutionContext
86
- );
87
- }
88
-
89
- private serialize(input: UpdateApplicationCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
90
- return serializeAws_restJson1UpdateApplicationCommand(input, context);
91
- }
92
-
93
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<UpdateApplicationCommandOutput> {
94
- return deserializeAws_restJson1UpdateApplicationCommand(output, context);
95
- }
96
-
97
- // Start section: command_body_extra
98
- // End section: command_body_extra
99
- }
package/src/endpoints.ts DELETED
@@ -1,66 +0,0 @@
1
- import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
2
- import { RegionInfoProvider } from "@aws-sdk/types";
3
-
4
- const regionHash: RegionHash = {
5
- "us-gov-east-1": {
6
- hostname: "serverlessrepo.us-gov-east-1.amazonaws.com",
7
- signingRegion: "us-gov-east-1",
8
- },
9
- "us-gov-west-1": {
10
- hostname: "serverlessrepo.us-gov-west-1.amazonaws.com",
11
- signingRegion: "us-gov-west-1",
12
- },
13
- };
14
-
15
- const partitionHash: PartitionHash = {
16
- aws: {
17
- regions: [
18
- "af-south-1",
19
- "ap-east-1",
20
- "ap-northeast-1",
21
- "ap-northeast-2",
22
- "ap-northeast-3",
23
- "ap-south-1",
24
- "ap-southeast-1",
25
- "ap-southeast-2",
26
- "ca-central-1",
27
- "eu-central-1",
28
- "eu-north-1",
29
- "eu-south-1",
30
- "eu-west-1",
31
- "eu-west-2",
32
- "eu-west-3",
33
- "me-south-1",
34
- "sa-east-1",
35
- "us-east-1",
36
- "us-east-2",
37
- "us-west-1",
38
- "us-west-2",
39
- ],
40
- hostname: "serverlessrepo.{region}.amazonaws.com",
41
- },
42
- "aws-cn": {
43
- regions: ["cn-north-1", "cn-northwest-1"],
44
- hostname: "serverlessrepo.{region}.amazonaws.com.cn",
45
- },
46
- "aws-iso": {
47
- regions: ["us-iso-east-1"],
48
- hostname: "serverlessrepo.{region}.c2s.ic.gov",
49
- },
50
- "aws-iso-b": {
51
- regions: ["us-isob-east-1"],
52
- hostname: "serverlessrepo.{region}.sc2s.sgov.gov",
53
- },
54
- "aws-us-gov": {
55
- regions: ["us-gov-east-1", "us-gov-west-1"],
56
- hostname: "serverlessrepo.{region}.amazonaws.com",
57
- },
58
- };
59
-
60
- export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
61
- getRegionInfo(region, {
62
- ...options,
63
- signingService: "serverlessrepo",
64
- regionHash,
65
- partitionHash,
66
- });
package/src/index.ts DELETED
@@ -1,21 +0,0 @@
1
- export * from "./ServerlessApplicationRepositoryClient";
2
- export * from "./ServerlessApplicationRepository";
3
- export * from "./commands/CreateApplicationCommand";
4
- export * from "./commands/CreateApplicationVersionCommand";
5
- export * from "./commands/CreateCloudFormationChangeSetCommand";
6
- export * from "./commands/CreateCloudFormationTemplateCommand";
7
- export * from "./commands/DeleteApplicationCommand";
8
- export * from "./commands/GetApplicationCommand";
9
- export * from "./commands/GetApplicationPolicyCommand";
10
- export * from "./commands/GetCloudFormationTemplateCommand";
11
- export * from "./commands/ListApplicationDependenciesCommand";
12
- export * from "./pagination/ListApplicationDependenciesPaginator";
13
- export * from "./commands/ListApplicationsCommand";
14
- export * from "./pagination/ListApplicationsPaginator";
15
- export * from "./commands/ListApplicationVersionsCommand";
16
- export * from "./pagination/ListApplicationVersionsPaginator";
17
- export * from "./commands/PutApplicationPolicyCommand";
18
- export * from "./commands/UnshareApplicationCommand";
19
- export * from "./commands/UpdateApplicationCommand";
20
- export * from "./pagination/Interfaces";
21
- export * from "./models/index";
@@ -1 +0,0 @@
1
- export * from "./models_0";