@aws-sdk/client-oam 3.218.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 (143) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +216 -0
  3. package/dist-cjs/OAM.js +232 -0
  4. package/dist-cjs/OAMClient.js +40 -0
  5. package/dist-cjs/commands/CreateLinkCommand.js +46 -0
  6. package/dist-cjs/commands/CreateSinkCommand.js +46 -0
  7. package/dist-cjs/commands/DeleteLinkCommand.js +46 -0
  8. package/dist-cjs/commands/DeleteSinkCommand.js +46 -0
  9. package/dist-cjs/commands/GetLinkCommand.js +46 -0
  10. package/dist-cjs/commands/GetSinkCommand.js +46 -0
  11. package/dist-cjs/commands/GetSinkPolicyCommand.js +46 -0
  12. package/dist-cjs/commands/ListAttachedLinksCommand.js +46 -0
  13. package/dist-cjs/commands/ListLinksCommand.js +46 -0
  14. package/dist-cjs/commands/ListSinksCommand.js +46 -0
  15. package/dist-cjs/commands/ListTagsForResourceCommand.js +46 -0
  16. package/dist-cjs/commands/PutSinkPolicyCommand.js +46 -0
  17. package/dist-cjs/commands/TagResourceCommand.js +46 -0
  18. package/dist-cjs/commands/UntagResourceCommand.js +46 -0
  19. package/dist-cjs/commands/UpdateLinkCommand.js +46 -0
  20. package/dist-cjs/commands/index.js +18 -0
  21. package/dist-cjs/endpoint/EndpointParameters.js +12 -0
  22. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  23. package/dist-cjs/endpoint/ruleset.js +312 -0
  24. package/dist-cjs/index.js +11 -0
  25. package/dist-cjs/models/OAMServiceException.js +11 -0
  26. package/dist-cjs/models/index.js +4 -0
  27. package/dist-cjs/models/models_0.js +258 -0
  28. package/dist-cjs/pagination/Interfaces.js +2 -0
  29. package/dist-cjs/pagination/ListAttachedLinksPaginator.js +36 -0
  30. package/dist-cjs/pagination/ListLinksPaginator.js +36 -0
  31. package/dist-cjs/pagination/ListSinksPaginator.js +36 -0
  32. package/dist-cjs/pagination/index.js +7 -0
  33. package/dist-cjs/protocols/Aws_restJson1.js +1313 -0
  34. package/dist-cjs/runtimeConfig.browser.js +42 -0
  35. package/dist-cjs/runtimeConfig.js +50 -0
  36. package/dist-cjs/runtimeConfig.native.js +15 -0
  37. package/dist-cjs/runtimeConfig.shared.js +18 -0
  38. package/dist-es/OAM.js +228 -0
  39. package/dist-es/OAMClient.js +36 -0
  40. package/dist-es/commands/CreateLinkCommand.js +42 -0
  41. package/dist-es/commands/CreateSinkCommand.js +42 -0
  42. package/dist-es/commands/DeleteLinkCommand.js +42 -0
  43. package/dist-es/commands/DeleteSinkCommand.js +42 -0
  44. package/dist-es/commands/GetLinkCommand.js +42 -0
  45. package/dist-es/commands/GetSinkCommand.js +42 -0
  46. package/dist-es/commands/GetSinkPolicyCommand.js +42 -0
  47. package/dist-es/commands/ListAttachedLinksCommand.js +42 -0
  48. package/dist-es/commands/ListLinksCommand.js +42 -0
  49. package/dist-es/commands/ListSinksCommand.js +42 -0
  50. package/dist-es/commands/ListTagsForResourceCommand.js +42 -0
  51. package/dist-es/commands/PutSinkPolicyCommand.js +42 -0
  52. package/dist-es/commands/TagResourceCommand.js +42 -0
  53. package/dist-es/commands/UntagResourceCommand.js +42 -0
  54. package/dist-es/commands/UpdateLinkCommand.js +42 -0
  55. package/dist-es/commands/index.js +15 -0
  56. package/dist-es/endpoint/EndpointParameters.js +8 -0
  57. package/dist-es/endpoint/endpointResolver.js +8 -0
  58. package/dist-es/endpoint/ruleset.js +309 -0
  59. package/dist-es/index.js +6 -0
  60. package/dist-es/models/OAMServiceException.js +7 -0
  61. package/dist-es/models/index.js +1 -0
  62. package/dist-es/models/models_0.js +214 -0
  63. package/dist-es/pagination/Interfaces.js +1 -0
  64. package/dist-es/pagination/ListAttachedLinksPaginator.js +32 -0
  65. package/dist-es/pagination/ListLinksPaginator.js +32 -0
  66. package/dist-es/pagination/ListSinksPaginator.js +32 -0
  67. package/dist-es/pagination/index.js +4 -0
  68. package/dist-es/protocols/Aws_restJson1.js +1280 -0
  69. package/dist-es/runtimeConfig.browser.js +37 -0
  70. package/dist-es/runtimeConfig.js +45 -0
  71. package/dist-es/runtimeConfig.native.js +11 -0
  72. package/dist-es/runtimeConfig.shared.js +14 -0
  73. package/dist-types/OAM.d.ts +194 -0
  74. package/dist-types/OAMClient.d.ts +167 -0
  75. package/dist-types/commands/CreateLinkCommand.d.ts +46 -0
  76. package/dist-types/commands/CreateSinkCommand.d.ts +43 -0
  77. package/dist-types/commands/DeleteLinkCommand.d.ts +38 -0
  78. package/dist-types/commands/DeleteSinkCommand.d.ts +37 -0
  79. package/dist-types/commands/GetLinkCommand.d.ts +38 -0
  80. package/dist-types/commands/GetSinkCommand.d.ts +38 -0
  81. package/dist-types/commands/GetSinkPolicyCommand.d.ts +38 -0
  82. package/dist-types/commands/ListAttachedLinksCommand.d.ts +39 -0
  83. package/dist-types/commands/ListLinksCommand.d.ts +39 -0
  84. package/dist-types/commands/ListSinksCommand.d.ts +37 -0
  85. package/dist-types/commands/ListTagsForResourceCommand.d.ts +37 -0
  86. package/dist-types/commands/PutSinkPolicyCommand.d.ts +60 -0
  87. package/dist-types/commands/TagResourceCommand.d.ts +53 -0
  88. package/dist-types/commands/UntagResourceCommand.d.ts +43 -0
  89. package/dist-types/commands/UpdateLinkCommand.d.ts +40 -0
  90. package/dist-types/commands/index.d.ts +15 -0
  91. package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
  92. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  93. package/dist-types/endpoint/ruleset.d.ts +2 -0
  94. package/dist-types/index.d.ts +6 -0
  95. package/dist-types/models/OAMServiceException.d.ts +10 -0
  96. package/dist-types/models/index.d.ts +1 -0
  97. package/dist-types/models/models_0.d.ts +724 -0
  98. package/dist-types/pagination/Interfaces.d.ts +6 -0
  99. package/dist-types/pagination/ListAttachedLinksPaginator.d.ts +4 -0
  100. package/dist-types/pagination/ListLinksPaginator.d.ts +4 -0
  101. package/dist-types/pagination/ListSinksPaginator.d.ts +4 -0
  102. package/dist-types/pagination/index.d.ts +4 -0
  103. package/dist-types/protocols/Aws_restJson1.d.ts +47 -0
  104. package/dist-types/runtimeConfig.browser.d.ts +42 -0
  105. package/dist-types/runtimeConfig.d.ts +42 -0
  106. package/dist-types/runtimeConfig.native.d.ts +41 -0
  107. package/dist-types/runtimeConfig.shared.d.ts +16 -0
  108. package/dist-types/ts3.4/OAM.d.ts +259 -0
  109. package/dist-types/ts3.4/OAMClient.d.ts +200 -0
  110. package/dist-types/ts3.4/commands/CreateLinkCommand.d.ts +34 -0
  111. package/dist-types/ts3.4/commands/CreateSinkCommand.d.ts +34 -0
  112. package/dist-types/ts3.4/commands/DeleteLinkCommand.d.ts +34 -0
  113. package/dist-types/ts3.4/commands/DeleteSinkCommand.d.ts +34 -0
  114. package/dist-types/ts3.4/commands/GetLinkCommand.d.ts +32 -0
  115. package/dist-types/ts3.4/commands/GetSinkCommand.d.ts +32 -0
  116. package/dist-types/ts3.4/commands/GetSinkPolicyCommand.d.ts +34 -0
  117. package/dist-types/ts3.4/commands/ListAttachedLinksCommand.d.ts +37 -0
  118. package/dist-types/ts3.4/commands/ListLinksCommand.d.ts +34 -0
  119. package/dist-types/ts3.4/commands/ListSinksCommand.d.ts +34 -0
  120. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +38 -0
  121. package/dist-types/ts3.4/commands/PutSinkPolicyCommand.d.ts +34 -0
  122. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +34 -0
  123. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +34 -0
  124. package/dist-types/ts3.4/commands/UpdateLinkCommand.d.ts +34 -0
  125. package/dist-types/ts3.4/commands/index.d.ts +15 -0
  126. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +34 -0
  127. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  128. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  129. package/dist-types/ts3.4/index.d.ts +6 -0
  130. package/dist-types/ts3.4/models/OAMServiceException.d.ts +7 -0
  131. package/dist-types/ts3.4/models/index.d.ts +1 -0
  132. package/dist-types/ts3.4/models/models_0.d.ts +313 -0
  133. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  134. package/dist-types/ts3.4/pagination/ListAttachedLinksPaginator.d.ts +11 -0
  135. package/dist-types/ts3.4/pagination/ListLinksPaginator.d.ts +11 -0
  136. package/dist-types/ts3.4/pagination/ListSinksPaginator.d.ts +11 -0
  137. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  138. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +185 -0
  139. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +88 -0
  140. package/dist-types/ts3.4/runtimeConfig.d.ts +88 -0
  141. package/dist-types/ts3.4/runtimeConfig.native.d.ts +77 -0
  142. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +16 -0
  143. package/package.json +101 -0
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { GetSinkPolicyInputFilterSensitiveLog, GetSinkPolicyOutputFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1GetSinkPolicyCommand, serializeAws_restJson1GetSinkPolicyCommand, } from "../protocols/Aws_restJson1";
6
+ export class GetSinkPolicyCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, GetSinkPolicyCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "OAMClient";
25
+ const commandName = "GetSinkPolicyCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: GetSinkPolicyInputFilterSensitiveLog,
31
+ outputFilterSensitiveLog: GetSinkPolicyOutputFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1GetSinkPolicyCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1GetSinkPolicyCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListAttachedLinksInputFilterSensitiveLog, ListAttachedLinksOutputFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1ListAttachedLinksCommand, serializeAws_restJson1ListAttachedLinksCommand, } from "../protocols/Aws_restJson1";
6
+ export class ListAttachedLinksCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListAttachedLinksCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "OAMClient";
25
+ const commandName = "ListAttachedLinksCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: ListAttachedLinksInputFilterSensitiveLog,
31
+ outputFilterSensitiveLog: ListAttachedLinksOutputFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1ListAttachedLinksCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1ListAttachedLinksCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListLinksInputFilterSensitiveLog, ListLinksOutputFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1ListLinksCommand, serializeAws_restJson1ListLinksCommand, } from "../protocols/Aws_restJson1";
6
+ export class ListLinksCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListLinksCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "OAMClient";
25
+ const commandName = "ListLinksCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: ListLinksInputFilterSensitiveLog,
31
+ outputFilterSensitiveLog: ListLinksOutputFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1ListLinksCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1ListLinksCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListSinksInputFilterSensitiveLog, ListSinksOutputFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1ListSinksCommand, serializeAws_restJson1ListSinksCommand, } from "../protocols/Aws_restJson1";
6
+ export class ListSinksCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListSinksCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "OAMClient";
25
+ const commandName = "ListSinksCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: ListSinksInputFilterSensitiveLog,
31
+ outputFilterSensitiveLog: ListSinksOutputFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1ListSinksCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1ListSinksCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListTagsForResourceInputFilterSensitiveLog, ListTagsForResourceOutputFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1ListTagsForResourceCommand, serializeAws_restJson1ListTagsForResourceCommand, } from "../protocols/Aws_restJson1";
6
+ export class ListTagsForResourceCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListTagsForResourceCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "OAMClient";
25
+ const commandName = "ListTagsForResourceCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: ListTagsForResourceInputFilterSensitiveLog,
31
+ outputFilterSensitiveLog: ListTagsForResourceOutputFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1ListTagsForResourceCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1ListTagsForResourceCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { PutSinkPolicyInputFilterSensitiveLog, PutSinkPolicyOutputFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1PutSinkPolicyCommand, serializeAws_restJson1PutSinkPolicyCommand, } from "../protocols/Aws_restJson1";
6
+ export class PutSinkPolicyCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, PutSinkPolicyCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "OAMClient";
25
+ const commandName = "PutSinkPolicyCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: PutSinkPolicyInputFilterSensitiveLog,
31
+ outputFilterSensitiveLog: PutSinkPolicyOutputFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1PutSinkPolicyCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1PutSinkPolicyCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { TagResourceInputFilterSensitiveLog, TagResourceOutputFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1TagResourceCommand, serializeAws_restJson1TagResourceCommand, } from "../protocols/Aws_restJson1";
6
+ export class TagResourceCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, TagResourceCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "OAMClient";
25
+ const commandName = "TagResourceCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: TagResourceInputFilterSensitiveLog,
31
+ outputFilterSensitiveLog: TagResourceOutputFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1TagResourceCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1TagResourceCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { UntagResourceInputFilterSensitiveLog, UntagResourceOutputFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1UntagResourceCommand, serializeAws_restJson1UntagResourceCommand, } from "../protocols/Aws_restJson1";
6
+ export class UntagResourceCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, UntagResourceCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "OAMClient";
25
+ const commandName = "UntagResourceCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: UntagResourceInputFilterSensitiveLog,
31
+ outputFilterSensitiveLog: UntagResourceOutputFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1UntagResourceCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1UntagResourceCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { UpdateLinkInputFilterSensitiveLog, UpdateLinkOutputFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1UpdateLinkCommand, serializeAws_restJson1UpdateLinkCommand, } from "../protocols/Aws_restJson1";
6
+ export class UpdateLinkCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, UpdateLinkCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "OAMClient";
25
+ const commandName = "UpdateLinkCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: UpdateLinkInputFilterSensitiveLog,
31
+ outputFilterSensitiveLog: UpdateLinkOutputFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1UpdateLinkCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1UpdateLinkCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,15 @@
1
+ export * from "./CreateLinkCommand";
2
+ export * from "./CreateSinkCommand";
3
+ export * from "./DeleteLinkCommand";
4
+ export * from "./DeleteSinkCommand";
5
+ export * from "./GetLinkCommand";
6
+ export * from "./GetSinkCommand";
7
+ export * from "./GetSinkPolicyCommand";
8
+ export * from "./ListAttachedLinksCommand";
9
+ export * from "./ListLinksCommand";
10
+ export * from "./ListSinksCommand";
11
+ export * from "./ListTagsForResourceCommand";
12
+ export * from "./PutSinkPolicyCommand";
13
+ export * from "./TagResourceCommand";
14
+ export * from "./UntagResourceCommand";
15
+ export * from "./UpdateLinkCommand";
@@ -0,0 +1,8 @@
1
+ export const resolveClientEndpointParameters = (options) => {
2
+ return {
3
+ ...options,
4
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
5
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
6
+ defaultSigningName: "oam",
7
+ };
8
+ };
@@ -0,0 +1,8 @@
1
+ import { resolveEndpoint } from "@aws-sdk/util-endpoints";
2
+ import { ruleSet } from "./ruleset";
3
+ export const defaultEndpointResolver = (endpointParams, context = {}) => {
4
+ return resolveEndpoint(ruleSet, {
5
+ endpointParams: endpointParams,
6
+ logger: context.logger,
7
+ });
8
+ };