@aws-sdk/client-osis 3.888.0 → 3.891.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 (64) hide show
  1. package/README.md +64 -0
  2. package/dist-cjs/index.js +376 -0
  3. package/dist-es/OSIS.js +16 -0
  4. package/dist-es/commands/CreatePipelineEndpointCommand.js +22 -0
  5. package/dist-es/commands/DeletePipelineEndpointCommand.js +22 -0
  6. package/dist-es/commands/DeleteResourcePolicyCommand.js +22 -0
  7. package/dist-es/commands/GetResourcePolicyCommand.js +22 -0
  8. package/dist-es/commands/ListPipelineEndpointConnectionsCommand.js +22 -0
  9. package/dist-es/commands/ListPipelineEndpointsCommand.js +22 -0
  10. package/dist-es/commands/PutResourcePolicyCommand.js +22 -0
  11. package/dist-es/commands/RevokePipelineEndpointConnectionsCommand.js +22 -0
  12. package/dist-es/commands/index.js +8 -0
  13. package/dist-es/models/models_0.js +8 -0
  14. package/dist-es/pagination/ListPipelineEndpointConnectionsPaginator.js +4 -0
  15. package/dist-es/pagination/ListPipelineEndpointsPaginator.js +4 -0
  16. package/dist-es/pagination/index.js +2 -0
  17. package/dist-es/protocols/Aws_restJson1.js +204 -0
  18. package/dist-types/OSIS.d.ts +58 -0
  19. package/dist-types/OSISClient.d.ts +10 -2
  20. package/dist-types/commands/CreatePipelineCommand.d.ts +4 -1
  21. package/dist-types/commands/CreatePipelineEndpointCommand.d.ts +105 -0
  22. package/dist-types/commands/DeletePipelineCommand.d.ts +4 -1
  23. package/dist-types/commands/DeletePipelineEndpointCommand.d.ts +85 -0
  24. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +91 -0
  25. package/dist-types/commands/GetPipelineBlueprintCommand.d.ts +2 -0
  26. package/dist-types/commands/GetPipelineChangeProgressCommand.d.ts +2 -0
  27. package/dist-types/commands/GetPipelineCommand.d.ts +2 -0
  28. package/dist-types/commands/GetResourcePolicyCommand.d.ts +94 -0
  29. package/dist-types/commands/ListPipelineBlueprintsCommand.d.ts +4 -1
  30. package/dist-types/commands/ListPipelineEndpointConnectionsCommand.d.ts +99 -0
  31. package/dist-types/commands/ListPipelineEndpointsCommand.d.ts +108 -0
  32. package/dist-types/commands/ListPipelinesCommand.d.ts +5 -2
  33. package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -0
  34. package/dist-types/commands/PutResourcePolicyCommand.d.ts +96 -0
  35. package/dist-types/commands/RevokePipelineEndpointConnectionsCommand.d.ts +93 -0
  36. package/dist-types/commands/StartPipelineCommand.d.ts +2 -0
  37. package/dist-types/commands/StopPipelineCommand.d.ts +4 -1
  38. package/dist-types/commands/TagResourceCommand.d.ts +4 -1
  39. package/dist-types/commands/UntagResourceCommand.d.ts +4 -2
  40. package/dist-types/commands/UpdatePipelineCommand.d.ts +4 -1
  41. package/dist-types/commands/ValidatePipelineCommand.d.ts +2 -0
  42. package/dist-types/commands/index.d.ts +8 -0
  43. package/dist-types/models/models_0.d.ts +336 -17
  44. package/dist-types/pagination/ListPipelineEndpointConnectionsPaginator.d.ts +7 -0
  45. package/dist-types/pagination/ListPipelineEndpointsPaginator.d.ts +7 -0
  46. package/dist-types/pagination/index.d.ts +2 -0
  47. package/dist-types/protocols/Aws_restJson1.d.ts +72 -0
  48. package/dist-types/ts3.4/OSIS.d.ts +144 -0
  49. package/dist-types/ts3.4/OSISClient.d.ts +48 -0
  50. package/dist-types/ts3.4/commands/CreatePipelineEndpointCommand.d.ts +51 -0
  51. package/dist-types/ts3.4/commands/DeletePipelineEndpointCommand.d.ts +51 -0
  52. package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +51 -0
  53. package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +51 -0
  54. package/dist-types/ts3.4/commands/ListPipelineEndpointConnectionsCommand.d.ts +51 -0
  55. package/dist-types/ts3.4/commands/ListPipelineEndpointsCommand.d.ts +51 -0
  56. package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +51 -0
  57. package/dist-types/ts3.4/commands/RevokePipelineEndpointConnectionsCommand.d.ts +51 -0
  58. package/dist-types/ts3.4/commands/index.d.ts +8 -0
  59. package/dist-types/ts3.4/models/models_0.d.ts +84 -0
  60. package/dist-types/ts3.4/pagination/ListPipelineEndpointConnectionsPaginator.d.ts +11 -0
  61. package/dist-types/ts3.4/pagination/ListPipelineEndpointsPaginator.d.ts +11 -0
  62. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  63. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +96 -0
  64. package/package.json +19 -19
package/dist-es/OSIS.js CHANGED
@@ -1,12 +1,20 @@
1
1
  import { createAggregatedClient } from "@smithy/smithy-client";
2
2
  import { CreatePipelineCommand, } from "./commands/CreatePipelineCommand";
3
+ import { CreatePipelineEndpointCommand, } from "./commands/CreatePipelineEndpointCommand";
3
4
  import { DeletePipelineCommand, } from "./commands/DeletePipelineCommand";
5
+ import { DeletePipelineEndpointCommand, } from "./commands/DeletePipelineEndpointCommand";
6
+ import { DeleteResourcePolicyCommand, } from "./commands/DeleteResourcePolicyCommand";
4
7
  import { GetPipelineBlueprintCommand, } from "./commands/GetPipelineBlueprintCommand";
5
8
  import { GetPipelineChangeProgressCommand, } from "./commands/GetPipelineChangeProgressCommand";
6
9
  import { GetPipelineCommand } from "./commands/GetPipelineCommand";
10
+ import { GetResourcePolicyCommand, } from "./commands/GetResourcePolicyCommand";
7
11
  import { ListPipelineBlueprintsCommand, } from "./commands/ListPipelineBlueprintsCommand";
12
+ import { ListPipelineEndpointConnectionsCommand, } from "./commands/ListPipelineEndpointConnectionsCommand";
13
+ import { ListPipelineEndpointsCommand, } from "./commands/ListPipelineEndpointsCommand";
8
14
  import { ListPipelinesCommand, } from "./commands/ListPipelinesCommand";
9
15
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
16
+ import { PutResourcePolicyCommand, } from "./commands/PutResourcePolicyCommand";
17
+ import { RevokePipelineEndpointConnectionsCommand, } from "./commands/RevokePipelineEndpointConnectionsCommand";
10
18
  import { StartPipelineCommand, } from "./commands/StartPipelineCommand";
11
19
  import { StopPipelineCommand, } from "./commands/StopPipelineCommand";
12
20
  import { TagResourceCommand } from "./commands/TagResourceCommand";
@@ -16,13 +24,21 @@ import { ValidatePipelineCommand, } from "./commands/ValidatePipelineCommand";
16
24
  import { OSISClient } from "./OSISClient";
17
25
  const commands = {
18
26
  CreatePipelineCommand,
27
+ CreatePipelineEndpointCommand,
19
28
  DeletePipelineCommand,
29
+ DeletePipelineEndpointCommand,
30
+ DeleteResourcePolicyCommand,
20
31
  GetPipelineCommand,
21
32
  GetPipelineBlueprintCommand,
22
33
  GetPipelineChangeProgressCommand,
34
+ GetResourcePolicyCommand,
23
35
  ListPipelineBlueprintsCommand,
36
+ ListPipelineEndpointConnectionsCommand,
37
+ ListPipelineEndpointsCommand,
24
38
  ListPipelinesCommand,
25
39
  ListTagsForResourceCommand,
40
+ PutResourcePolicyCommand,
41
+ RevokePipelineEndpointConnectionsCommand,
26
42
  StartPipelineCommand,
27
43
  StopPipelineCommand,
28
44
  TagResourceCommand,
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_CreatePipelineEndpointCommand, se_CreatePipelineEndpointCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class CreatePipelineEndpointCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AmazonOpenSearchIngestionService", "CreatePipelineEndpoint", {})
17
+ .n("OSISClient", "CreatePipelineEndpointCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_CreatePipelineEndpointCommand)
20
+ .de(de_CreatePipelineEndpointCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_DeletePipelineEndpointCommand, se_DeletePipelineEndpointCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class DeletePipelineEndpointCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AmazonOpenSearchIngestionService", "DeletePipelineEndpoint", {})
17
+ .n("OSISClient", "DeletePipelineEndpointCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_DeletePipelineEndpointCommand)
20
+ .de(de_DeletePipelineEndpointCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_DeleteResourcePolicyCommand, se_DeleteResourcePolicyCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class DeleteResourcePolicyCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AmazonOpenSearchIngestionService", "DeleteResourcePolicy", {})
17
+ .n("OSISClient", "DeleteResourcePolicyCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_DeleteResourcePolicyCommand)
20
+ .de(de_DeleteResourcePolicyCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_GetResourcePolicyCommand, se_GetResourcePolicyCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class GetResourcePolicyCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AmazonOpenSearchIngestionService", "GetResourcePolicy", {})
17
+ .n("OSISClient", "GetResourcePolicyCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_GetResourcePolicyCommand)
20
+ .de(de_GetResourcePolicyCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_ListPipelineEndpointConnectionsCommand, se_ListPipelineEndpointConnectionsCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class ListPipelineEndpointConnectionsCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AmazonOpenSearchIngestionService", "ListPipelineEndpointConnections", {})
17
+ .n("OSISClient", "ListPipelineEndpointConnectionsCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_ListPipelineEndpointConnectionsCommand)
20
+ .de(de_ListPipelineEndpointConnectionsCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_ListPipelineEndpointsCommand, se_ListPipelineEndpointsCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class ListPipelineEndpointsCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AmazonOpenSearchIngestionService", "ListPipelineEndpoints", {})
17
+ .n("OSISClient", "ListPipelineEndpointsCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_ListPipelineEndpointsCommand)
20
+ .de(de_ListPipelineEndpointsCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_PutResourcePolicyCommand, se_PutResourcePolicyCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class PutResourcePolicyCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AmazonOpenSearchIngestionService", "PutResourcePolicy", {})
17
+ .n("OSISClient", "PutResourcePolicyCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_PutResourcePolicyCommand)
20
+ .de(de_PutResourcePolicyCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_RevokePipelineEndpointConnectionsCommand, se_RevokePipelineEndpointConnectionsCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class RevokePipelineEndpointConnectionsCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AmazonOpenSearchIngestionService", "RevokePipelineEndpointConnections", {})
17
+ .n("OSISClient", "RevokePipelineEndpointConnectionsCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_RevokePipelineEndpointConnectionsCommand)
20
+ .de(de_RevokePipelineEndpointConnectionsCommand)
21
+ .build() {
22
+ }
@@ -1,11 +1,19 @@
1
1
  export * from "./CreatePipelineCommand";
2
+ export * from "./CreatePipelineEndpointCommand";
2
3
  export * from "./DeletePipelineCommand";
4
+ export * from "./DeletePipelineEndpointCommand";
5
+ export * from "./DeleteResourcePolicyCommand";
3
6
  export * from "./GetPipelineBlueprintCommand";
4
7
  export * from "./GetPipelineChangeProgressCommand";
5
8
  export * from "./GetPipelineCommand";
9
+ export * from "./GetResourcePolicyCommand";
6
10
  export * from "./ListPipelineBlueprintsCommand";
11
+ export * from "./ListPipelineEndpointConnectionsCommand";
12
+ export * from "./ListPipelineEndpointsCommand";
7
13
  export * from "./ListPipelinesCommand";
8
14
  export * from "./ListTagsForResourceCommand";
15
+ export * from "./PutResourcePolicyCommand";
16
+ export * from "./RevokePipelineEndpointConnectionsCommand";
9
17
  export * from "./StartPipelineCommand";
10
18
  export * from "./StopPipelineCommand";
11
19
  export * from "./TagResourceCommand";
@@ -102,6 +102,14 @@ export class ValidationException extends __BaseException {
102
102
  Object.setPrototypeOf(this, ValidationException.prototype);
103
103
  }
104
104
  }
105
+ export const PipelineEndpointStatus = {
106
+ ACTIVE: "ACTIVE",
107
+ CREATE_FAILED: "CREATE_FAILED",
108
+ CREATING: "CREATING",
109
+ DELETING: "DELETING",
110
+ REVOKED: "REVOKED",
111
+ REVOKING: "REVOKING",
112
+ };
105
113
  export class ConflictException extends __BaseException {
106
114
  name = "ConflictException";
107
115
  $fault = "client";
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListPipelineEndpointConnectionsCommand, } from "../commands/ListPipelineEndpointConnectionsCommand";
3
+ import { OSISClient } from "../OSISClient";
4
+ export const paginateListPipelineEndpointConnections = createPaginator(OSISClient, ListPipelineEndpointConnectionsCommand, "NextToken", "NextToken", "MaxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListPipelineEndpointsCommand, } from "../commands/ListPipelineEndpointsCommand";
3
+ import { OSISClient } from "../OSISClient";
4
+ export const paginateListPipelineEndpoints = createPaginator(OSISClient, ListPipelineEndpointsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,2 +1,4 @@
1
1
  export * from "./Interfaces";
2
+ export * from "./ListPipelineEndpointConnectionsPaginator";
3
+ export * from "./ListPipelineEndpointsPaginator";
2
4
  export * from "./ListPipelinesPaginator";
@@ -25,6 +25,20 @@ export const se_CreatePipelineCommand = async (input, context) => {
25
25
  b.m("POST").h(headers).b(body);
26
26
  return b.build();
27
27
  };
28
+ export const se_CreatePipelineEndpointCommand = async (input, context) => {
29
+ const b = rb(input, context);
30
+ const headers = {
31
+ "content-type": "application/json",
32
+ };
33
+ b.bp("/2022-01-01/osis/createPipelineEndpoint");
34
+ let body;
35
+ body = JSON.stringify(take(input, {
36
+ PipelineArn: [],
37
+ VpcOptions: (_) => _json(_),
38
+ }));
39
+ b.m("POST").h(headers).b(body);
40
+ return b.build();
41
+ };
28
42
  export const se_DeletePipelineCommand = async (input, context) => {
29
43
  const b = rb(input, context);
30
44
  const headers = {};
@@ -34,6 +48,24 @@ export const se_DeletePipelineCommand = async (input, context) => {
34
48
  b.m("DELETE").h(headers).b(body);
35
49
  return b.build();
36
50
  };
51
+ export const se_DeletePipelineEndpointCommand = async (input, context) => {
52
+ const b = rb(input, context);
53
+ const headers = {};
54
+ b.bp("/2022-01-01/osis/deletePipelineEndpoint/{EndpointId}");
55
+ b.p("EndpointId", () => input.EndpointId, "{EndpointId}", false);
56
+ let body;
57
+ b.m("DELETE").h(headers).b(body);
58
+ return b.build();
59
+ };
60
+ export const se_DeleteResourcePolicyCommand = async (input, context) => {
61
+ const b = rb(input, context);
62
+ const headers = {};
63
+ b.bp("/2022-01-01/osis/resourcePolicy/{ResourceArn}");
64
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
65
+ let body;
66
+ b.m("DELETE").h(headers).b(body);
67
+ return b.build();
68
+ };
37
69
  export const se_GetPipelineCommand = async (input, context) => {
38
70
  const b = rb(input, context);
39
71
  const headers = {};
@@ -64,6 +96,15 @@ export const se_GetPipelineChangeProgressCommand = async (input, context) => {
64
96
  b.m("GET").h(headers).b(body);
65
97
  return b.build();
66
98
  };
99
+ export const se_GetResourcePolicyCommand = async (input, context) => {
100
+ const b = rb(input, context);
101
+ const headers = {};
102
+ b.bp("/2022-01-01/osis/resourcePolicy/{ResourceArn}");
103
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
104
+ let body;
105
+ b.m("GET").h(headers).b(body);
106
+ return b.build();
107
+ };
67
108
  export const se_ListPipelineBlueprintsCommand = async (input, context) => {
68
109
  const b = rb(input, context);
69
110
  const headers = {};
@@ -72,6 +113,30 @@ export const se_ListPipelineBlueprintsCommand = async (input, context) => {
72
113
  b.m("POST").h(headers).b(body);
73
114
  return b.build();
74
115
  };
116
+ export const se_ListPipelineEndpointConnectionsCommand = async (input, context) => {
117
+ const b = rb(input, context);
118
+ const headers = {};
119
+ b.bp("/2022-01-01/osis/listPipelineEndpointConnections");
120
+ const query = map({
121
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
122
+ [_nT]: [, input[_NT]],
123
+ });
124
+ let body;
125
+ b.m("GET").h(headers).q(query).b(body);
126
+ return b.build();
127
+ };
128
+ export const se_ListPipelineEndpointsCommand = async (input, context) => {
129
+ const b = rb(input, context);
130
+ const headers = {};
131
+ b.bp("/2022-01-01/osis/listPipelineEndpoints");
132
+ const query = map({
133
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
134
+ [_nT]: [, input[_NT]],
135
+ });
136
+ let body;
137
+ b.m("GET").h(headers).q(query).b(body);
138
+ return b.build();
139
+ };
75
140
  export const se_ListPipelinesCommand = async (input, context) => {
76
141
  const b = rb(input, context);
77
142
  const headers = {};
@@ -95,6 +160,34 @@ export const se_ListTagsForResourceCommand = async (input, context) => {
95
160
  b.m("GET").h(headers).q(query).b(body);
96
161
  return b.build();
97
162
  };
163
+ export const se_PutResourcePolicyCommand = async (input, context) => {
164
+ const b = rb(input, context);
165
+ const headers = {
166
+ "content-type": "application/json",
167
+ };
168
+ b.bp("/2022-01-01/osis/resourcePolicy/{ResourceArn}");
169
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
170
+ let body;
171
+ body = JSON.stringify(take(input, {
172
+ Policy: [],
173
+ }));
174
+ b.m("PUT").h(headers).b(body);
175
+ return b.build();
176
+ };
177
+ export const se_RevokePipelineEndpointConnectionsCommand = async (input, context) => {
178
+ const b = rb(input, context);
179
+ const headers = {
180
+ "content-type": "application/json",
181
+ };
182
+ b.bp("/2022-01-01/osis/revokePipelineEndpointConnections");
183
+ let body;
184
+ body = JSON.stringify(take(input, {
185
+ EndpointIds: (_) => _json(_),
186
+ PipelineArn: [],
187
+ }));
188
+ b.m("POST").h(headers).b(body);
189
+ return b.build();
190
+ };
98
191
  export const se_StartPipelineCommand = async (input, context) => {
99
192
  const b = rb(input, context);
100
193
  const headers = {};
@@ -192,6 +285,23 @@ export const de_CreatePipelineCommand = async (output, context) => {
192
285
  Object.assign(contents, doc);
193
286
  return contents;
194
287
  };
288
+ export const de_CreatePipelineEndpointCommand = async (output, context) => {
289
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
290
+ return de_CommandError(output, context);
291
+ }
292
+ const contents = map({
293
+ $metadata: deserializeMetadata(output),
294
+ });
295
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
296
+ const doc = take(data, {
297
+ EndpointId: __expectString,
298
+ PipelineArn: __expectString,
299
+ Status: __expectString,
300
+ VpcId: __expectString,
301
+ });
302
+ Object.assign(contents, doc);
303
+ return contents;
304
+ };
195
305
  export const de_DeletePipelineCommand = async (output, context) => {
196
306
  if (output.statusCode !== 200 && output.statusCode >= 300) {
197
307
  return de_CommandError(output, context);
@@ -202,6 +312,26 @@ export const de_DeletePipelineCommand = async (output, context) => {
202
312
  await collectBody(output.body, context);
203
313
  return contents;
204
314
  };
315
+ export const de_DeletePipelineEndpointCommand = async (output, context) => {
316
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
317
+ return de_CommandError(output, context);
318
+ }
319
+ const contents = map({
320
+ $metadata: deserializeMetadata(output),
321
+ });
322
+ await collectBody(output.body, context);
323
+ return contents;
324
+ };
325
+ export const de_DeleteResourcePolicyCommand = async (output, context) => {
326
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
327
+ return de_CommandError(output, context);
328
+ }
329
+ const contents = map({
330
+ $metadata: deserializeMetadata(output),
331
+ });
332
+ await collectBody(output.body, context);
333
+ return contents;
334
+ };
205
335
  export const de_GetPipelineCommand = async (output, context) => {
206
336
  if (output.statusCode !== 200 && output.statusCode >= 300) {
207
337
  return de_CommandError(output, context);
@@ -245,6 +375,21 @@ export const de_GetPipelineChangeProgressCommand = async (output, context) => {
245
375
  Object.assign(contents, doc);
246
376
  return contents;
247
377
  };
378
+ export const de_GetResourcePolicyCommand = async (output, context) => {
379
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
380
+ return de_CommandError(output, context);
381
+ }
382
+ const contents = map({
383
+ $metadata: deserializeMetadata(output),
384
+ });
385
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
386
+ const doc = take(data, {
387
+ Policy: __expectString,
388
+ ResourceArn: __expectString,
389
+ });
390
+ Object.assign(contents, doc);
391
+ return contents;
392
+ };
248
393
  export const de_ListPipelineBlueprintsCommand = async (output, context) => {
249
394
  if (output.statusCode !== 200 && output.statusCode >= 300) {
250
395
  return de_CommandError(output, context);
@@ -259,6 +404,36 @@ export const de_ListPipelineBlueprintsCommand = async (output, context) => {
259
404
  Object.assign(contents, doc);
260
405
  return contents;
261
406
  };
407
+ export const de_ListPipelineEndpointConnectionsCommand = async (output, context) => {
408
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
409
+ return de_CommandError(output, context);
410
+ }
411
+ const contents = map({
412
+ $metadata: deserializeMetadata(output),
413
+ });
414
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
415
+ const doc = take(data, {
416
+ NextToken: __expectString,
417
+ PipelineEndpointConnections: _json,
418
+ });
419
+ Object.assign(contents, doc);
420
+ return contents;
421
+ };
422
+ export const de_ListPipelineEndpointsCommand = async (output, context) => {
423
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
424
+ return de_CommandError(output, context);
425
+ }
426
+ const contents = map({
427
+ $metadata: deserializeMetadata(output),
428
+ });
429
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
430
+ const doc = take(data, {
431
+ NextToken: __expectString,
432
+ PipelineEndpoints: _json,
433
+ });
434
+ Object.assign(contents, doc);
435
+ return contents;
436
+ };
262
437
  export const de_ListPipelinesCommand = async (output, context) => {
263
438
  if (output.statusCode !== 200 && output.statusCode >= 300) {
264
439
  return de_CommandError(output, context);
@@ -288,6 +463,35 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
288
463
  Object.assign(contents, doc);
289
464
  return contents;
290
465
  };
466
+ export const de_PutResourcePolicyCommand = async (output, context) => {
467
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
468
+ return de_CommandError(output, context);
469
+ }
470
+ const contents = map({
471
+ $metadata: deserializeMetadata(output),
472
+ });
473
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
474
+ const doc = take(data, {
475
+ Policy: __expectString,
476
+ ResourceArn: __expectString,
477
+ });
478
+ Object.assign(contents, doc);
479
+ return contents;
480
+ };
481
+ export const de_RevokePipelineEndpointConnectionsCommand = async (output, context) => {
482
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
483
+ return de_CommandError(output, context);
484
+ }
485
+ const contents = map({
486
+ $metadata: deserializeMetadata(output),
487
+ });
488
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
489
+ const doc = take(data, {
490
+ PipelineArn: __expectString,
491
+ });
492
+ Object.assign(contents, doc);
493
+ return contents;
494
+ };
291
495
  export const de_StartPipelineCommand = async (output, context) => {
292
496
  if (output.statusCode !== 200 && output.statusCode >= 300) {
293
497
  return de_CommandError(output, context);
@@ -1,12 +1,20 @@
1
1
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
2
  import { CreatePipelineCommandInput, CreatePipelineCommandOutput } from "./commands/CreatePipelineCommand";
3
+ import { CreatePipelineEndpointCommandInput, CreatePipelineEndpointCommandOutput } from "./commands/CreatePipelineEndpointCommand";
3
4
  import { DeletePipelineCommandInput, DeletePipelineCommandOutput } from "./commands/DeletePipelineCommand";
5
+ import { DeletePipelineEndpointCommandInput, DeletePipelineEndpointCommandOutput } from "./commands/DeletePipelineEndpointCommand";
6
+ import { DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput } from "./commands/DeleteResourcePolicyCommand";
4
7
  import { GetPipelineBlueprintCommandInput, GetPipelineBlueprintCommandOutput } from "./commands/GetPipelineBlueprintCommand";
5
8
  import { GetPipelineChangeProgressCommandInput, GetPipelineChangeProgressCommandOutput } from "./commands/GetPipelineChangeProgressCommand";
6
9
  import { GetPipelineCommandInput, GetPipelineCommandOutput } from "./commands/GetPipelineCommand";
10
+ import { GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
7
11
  import { ListPipelineBlueprintsCommandInput, ListPipelineBlueprintsCommandOutput } from "./commands/ListPipelineBlueprintsCommand";
12
+ import { ListPipelineEndpointConnectionsCommandInput, ListPipelineEndpointConnectionsCommandOutput } from "./commands/ListPipelineEndpointConnectionsCommand";
13
+ import { ListPipelineEndpointsCommandInput, ListPipelineEndpointsCommandOutput } from "./commands/ListPipelineEndpointsCommand";
8
14
  import { ListPipelinesCommandInput, ListPipelinesCommandOutput } from "./commands/ListPipelinesCommand";
9
15
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
16
+ import { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "./commands/PutResourcePolicyCommand";
17
+ import { RevokePipelineEndpointConnectionsCommandInput, RevokePipelineEndpointConnectionsCommandOutput } from "./commands/RevokePipelineEndpointConnectionsCommand";
10
18
  import { StartPipelineCommandInput, StartPipelineCommandOutput } from "./commands/StartPipelineCommand";
11
19
  import { StopPipelineCommandInput, StopPipelineCommandOutput } from "./commands/StopPipelineCommand";
12
20
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
@@ -21,12 +29,30 @@ export interface OSIS {
21
29
  createPipeline(args: CreatePipelineCommandInput, options?: __HttpHandlerOptions): Promise<CreatePipelineCommandOutput>;
22
30
  createPipeline(args: CreatePipelineCommandInput, cb: (err: any, data?: CreatePipelineCommandOutput) => void): void;
23
31
  createPipeline(args: CreatePipelineCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreatePipelineCommandOutput) => void): void;
32
+ /**
33
+ * @see {@link CreatePipelineEndpointCommand}
34
+ */
35
+ createPipelineEndpoint(args: CreatePipelineEndpointCommandInput, options?: __HttpHandlerOptions): Promise<CreatePipelineEndpointCommandOutput>;
36
+ createPipelineEndpoint(args: CreatePipelineEndpointCommandInput, cb: (err: any, data?: CreatePipelineEndpointCommandOutput) => void): void;
37
+ createPipelineEndpoint(args: CreatePipelineEndpointCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreatePipelineEndpointCommandOutput) => void): void;
24
38
  /**
25
39
  * @see {@link DeletePipelineCommand}
26
40
  */
27
41
  deletePipeline(args: DeletePipelineCommandInput, options?: __HttpHandlerOptions): Promise<DeletePipelineCommandOutput>;
28
42
  deletePipeline(args: DeletePipelineCommandInput, cb: (err: any, data?: DeletePipelineCommandOutput) => void): void;
29
43
  deletePipeline(args: DeletePipelineCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeletePipelineCommandOutput) => void): void;
44
+ /**
45
+ * @see {@link DeletePipelineEndpointCommand}
46
+ */
47
+ deletePipelineEndpoint(args: DeletePipelineEndpointCommandInput, options?: __HttpHandlerOptions): Promise<DeletePipelineEndpointCommandOutput>;
48
+ deletePipelineEndpoint(args: DeletePipelineEndpointCommandInput, cb: (err: any, data?: DeletePipelineEndpointCommandOutput) => void): void;
49
+ deletePipelineEndpoint(args: DeletePipelineEndpointCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeletePipelineEndpointCommandOutput) => void): void;
50
+ /**
51
+ * @see {@link DeleteResourcePolicyCommand}
52
+ */
53
+ deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<DeleteResourcePolicyCommandOutput>;
54
+ deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void): void;
55
+ deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void): void;
30
56
  /**
31
57
  * @see {@link GetPipelineCommand}
32
58
  */
@@ -45,6 +71,12 @@ export interface OSIS {
45
71
  getPipelineChangeProgress(args: GetPipelineChangeProgressCommandInput, options?: __HttpHandlerOptions): Promise<GetPipelineChangeProgressCommandOutput>;
46
72
  getPipelineChangeProgress(args: GetPipelineChangeProgressCommandInput, cb: (err: any, data?: GetPipelineChangeProgressCommandOutput) => void): void;
47
73
  getPipelineChangeProgress(args: GetPipelineChangeProgressCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPipelineChangeProgressCommandOutput) => void): void;
74
+ /**
75
+ * @see {@link GetResourcePolicyCommand}
76
+ */
77
+ getResourcePolicy(args: GetResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<GetResourcePolicyCommandOutput>;
78
+ getResourcePolicy(args: GetResourcePolicyCommandInput, cb: (err: any, data?: GetResourcePolicyCommandOutput) => void): void;
79
+ getResourcePolicy(args: GetResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetResourcePolicyCommandOutput) => void): void;
48
80
  /**
49
81
  * @see {@link ListPipelineBlueprintsCommand}
50
82
  */
@@ -52,6 +84,20 @@ export interface OSIS {
52
84
  listPipelineBlueprints(args: ListPipelineBlueprintsCommandInput, options?: __HttpHandlerOptions): Promise<ListPipelineBlueprintsCommandOutput>;
53
85
  listPipelineBlueprints(args: ListPipelineBlueprintsCommandInput, cb: (err: any, data?: ListPipelineBlueprintsCommandOutput) => void): void;
54
86
  listPipelineBlueprints(args: ListPipelineBlueprintsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListPipelineBlueprintsCommandOutput) => void): void;
87
+ /**
88
+ * @see {@link ListPipelineEndpointConnectionsCommand}
89
+ */
90
+ listPipelineEndpointConnections(): Promise<ListPipelineEndpointConnectionsCommandOutput>;
91
+ listPipelineEndpointConnections(args: ListPipelineEndpointConnectionsCommandInput, options?: __HttpHandlerOptions): Promise<ListPipelineEndpointConnectionsCommandOutput>;
92
+ listPipelineEndpointConnections(args: ListPipelineEndpointConnectionsCommandInput, cb: (err: any, data?: ListPipelineEndpointConnectionsCommandOutput) => void): void;
93
+ listPipelineEndpointConnections(args: ListPipelineEndpointConnectionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListPipelineEndpointConnectionsCommandOutput) => void): void;
94
+ /**
95
+ * @see {@link ListPipelineEndpointsCommand}
96
+ */
97
+ listPipelineEndpoints(): Promise<ListPipelineEndpointsCommandOutput>;
98
+ listPipelineEndpoints(args: ListPipelineEndpointsCommandInput, options?: __HttpHandlerOptions): Promise<ListPipelineEndpointsCommandOutput>;
99
+ listPipelineEndpoints(args: ListPipelineEndpointsCommandInput, cb: (err: any, data?: ListPipelineEndpointsCommandOutput) => void): void;
100
+ listPipelineEndpoints(args: ListPipelineEndpointsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListPipelineEndpointsCommandOutput) => void): void;
55
101
  /**
56
102
  * @see {@link ListPipelinesCommand}
57
103
  */
@@ -65,6 +111,18 @@ export interface OSIS {
65
111
  listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
66
112
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
67
113
  listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
114
+ /**
115
+ * @see {@link PutResourcePolicyCommand}
116
+ */
117
+ putResourcePolicy(args: PutResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<PutResourcePolicyCommandOutput>;
118
+ putResourcePolicy(args: PutResourcePolicyCommandInput, cb: (err: any, data?: PutResourcePolicyCommandOutput) => void): void;
119
+ putResourcePolicy(args: PutResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutResourcePolicyCommandOutput) => void): void;
120
+ /**
121
+ * @see {@link RevokePipelineEndpointConnectionsCommand}
122
+ */
123
+ revokePipelineEndpointConnections(args: RevokePipelineEndpointConnectionsCommandInput, options?: __HttpHandlerOptions): Promise<RevokePipelineEndpointConnectionsCommandOutput>;
124
+ revokePipelineEndpointConnections(args: RevokePipelineEndpointConnectionsCommandInput, cb: (err: any, data?: RevokePipelineEndpointConnectionsCommandOutput) => void): void;
125
+ revokePipelineEndpointConnections(args: RevokePipelineEndpointConnectionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RevokePipelineEndpointConnectionsCommandOutput) => void): void;
68
126
  /**
69
127
  * @see {@link StartPipelineCommand}
70
128
  */