@aws-sdk/client-oam 3.1077.0 → 3.1078.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +23 -153
- package/dist-es/commandBuilder.js +6 -0
- package/dist-es/commands/CreateLinkCommand.js +2 -14
- package/dist-es/commands/CreateSinkCommand.js +2 -14
- package/dist-es/commands/DeleteLinkCommand.js +2 -14
- package/dist-es/commands/DeleteSinkCommand.js +2 -14
- package/dist-es/commands/GetLinkCommand.js +2 -14
- package/dist-es/commands/GetSinkCommand.js +2 -14
- package/dist-es/commands/GetSinkPolicyCommand.js +2 -14
- package/dist-es/commands/ListAttachedLinksCommand.js +2 -14
- package/dist-es/commands/ListLinksCommand.js +2 -14
- package/dist-es/commands/ListSinksCommand.js +2 -14
- package/dist-es/commands/ListTagsForResourceCommand.js +2 -14
- package/dist-es/commands/PutSinkPolicyCommand.js +2 -14
- package/dist-es/commands/TagResourceCommand.js +2 -14
- package/dist-es/commands/UntagResourceCommand.js +2 -14
- package/dist-es/commands/UpdateLinkCommand.js +2 -14
- package/dist-es/index.js +1 -0
- package/dist-types/commandBuilder.d.ts +18 -0
- package/dist-types/commands/CreateLinkCommand.d.ts +3 -8
- package/dist-types/commands/CreateSinkCommand.d.ts +3 -8
- package/dist-types/commands/DeleteLinkCommand.d.ts +3 -8
- package/dist-types/commands/DeleteSinkCommand.d.ts +3 -8
- package/dist-types/commands/GetLinkCommand.d.ts +3 -8
- package/dist-types/commands/GetSinkCommand.d.ts +3 -8
- package/dist-types/commands/GetSinkPolicyCommand.d.ts +3 -8
- package/dist-types/commands/ListAttachedLinksCommand.d.ts +3 -8
- package/dist-types/commands/ListLinksCommand.d.ts +3 -8
- package/dist-types/commands/ListSinksCommand.d.ts +3 -8
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
- package/dist-types/commands/PutSinkPolicyCommand.d.ts +3 -8
- package/dist-types/commands/TagResourceCommand.d.ts +3 -8
- package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
- package/dist-types/commands/UpdateLinkCommand.d.ts +3 -8
- package/dist-types/index.d.ts +1 -0
- package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
- package/dist-types/ts3.4/commands/CreateLinkCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/CreateSinkCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/DeleteLinkCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/DeleteSinkCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/GetLinkCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/GetSinkCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/GetSinkPolicyCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/ListAttachedLinksCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/ListLinksCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/ListSinksCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/PutSinkPolicyCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/UpdateLinkCommand.d.ts +7 -16
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/package.json +8 -8
package/dist-cjs/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
2
2
|
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
|
|
3
|
-
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client,
|
|
4
|
-
|
|
3
|
+
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
|
|
4
|
+
const { Command: $Command } = require("@smithy/core/client");
|
|
5
|
+
exports.$Command = $Command;
|
|
5
6
|
exports.__Client = Client;
|
|
6
7
|
const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
|
|
7
8
|
const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
@@ -68,7 +69,7 @@ const commonParams = {
|
|
|
68
69
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
69
70
|
};
|
|
70
71
|
|
|
71
|
-
var version = "3.
|
|
72
|
+
var version = "3.1077.0";
|
|
72
73
|
var packageInfo = {
|
|
73
74
|
version: version};
|
|
74
75
|
|
|
@@ -791,184 +792,53 @@ class OAMClient extends Client {
|
|
|
791
792
|
}
|
|
792
793
|
}
|
|
793
794
|
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
})
|
|
800
|
-
.s("oamservice", "CreateLink", {})
|
|
801
|
-
.n("OAMClient", "CreateLinkCommand")
|
|
802
|
-
.sc(CreateLink$)
|
|
803
|
-
.build() {
|
|
795
|
+
const command = makeBuilder(commonParams, "oamservice", "OAMClient", getEndpointPlugin);
|
|
796
|
+
const _ep0 = {};
|
|
797
|
+
const _mw0 = (Command, cs, config, o) => [];
|
|
798
|
+
|
|
799
|
+
class CreateLinkCommand extends command(_ep0, _mw0, "CreateLink", CreateLink$) {
|
|
804
800
|
}
|
|
805
801
|
|
|
806
|
-
class CreateSinkCommand extends
|
|
807
|
-
.classBuilder()
|
|
808
|
-
.ep(commonParams)
|
|
809
|
-
.m(function (Command, cs, config, o) {
|
|
810
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
811
|
-
})
|
|
812
|
-
.s("oamservice", "CreateSink", {})
|
|
813
|
-
.n("OAMClient", "CreateSinkCommand")
|
|
814
|
-
.sc(CreateSink$)
|
|
815
|
-
.build() {
|
|
802
|
+
class CreateSinkCommand extends command(_ep0, _mw0, "CreateSink", CreateSink$) {
|
|
816
803
|
}
|
|
817
804
|
|
|
818
|
-
class DeleteLinkCommand extends
|
|
819
|
-
.classBuilder()
|
|
820
|
-
.ep(commonParams)
|
|
821
|
-
.m(function (Command, cs, config, o) {
|
|
822
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
823
|
-
})
|
|
824
|
-
.s("oamservice", "DeleteLink", {})
|
|
825
|
-
.n("OAMClient", "DeleteLinkCommand")
|
|
826
|
-
.sc(DeleteLink$)
|
|
827
|
-
.build() {
|
|
805
|
+
class DeleteLinkCommand extends command(_ep0, _mw0, "DeleteLink", DeleteLink$) {
|
|
828
806
|
}
|
|
829
807
|
|
|
830
|
-
class DeleteSinkCommand extends
|
|
831
|
-
.classBuilder()
|
|
832
|
-
.ep(commonParams)
|
|
833
|
-
.m(function (Command, cs, config, o) {
|
|
834
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
835
|
-
})
|
|
836
|
-
.s("oamservice", "DeleteSink", {})
|
|
837
|
-
.n("OAMClient", "DeleteSinkCommand")
|
|
838
|
-
.sc(DeleteSink$)
|
|
839
|
-
.build() {
|
|
808
|
+
class DeleteSinkCommand extends command(_ep0, _mw0, "DeleteSink", DeleteSink$) {
|
|
840
809
|
}
|
|
841
810
|
|
|
842
|
-
class GetLinkCommand extends
|
|
843
|
-
.classBuilder()
|
|
844
|
-
.ep(commonParams)
|
|
845
|
-
.m(function (Command, cs, config, o) {
|
|
846
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
847
|
-
})
|
|
848
|
-
.s("oamservice", "GetLink", {})
|
|
849
|
-
.n("OAMClient", "GetLinkCommand")
|
|
850
|
-
.sc(GetLink$)
|
|
851
|
-
.build() {
|
|
811
|
+
class GetLinkCommand extends command(_ep0, _mw0, "GetLink", GetLink$) {
|
|
852
812
|
}
|
|
853
813
|
|
|
854
|
-
class GetSinkCommand extends
|
|
855
|
-
.classBuilder()
|
|
856
|
-
.ep(commonParams)
|
|
857
|
-
.m(function (Command, cs, config, o) {
|
|
858
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
859
|
-
})
|
|
860
|
-
.s("oamservice", "GetSink", {})
|
|
861
|
-
.n("OAMClient", "GetSinkCommand")
|
|
862
|
-
.sc(GetSink$)
|
|
863
|
-
.build() {
|
|
814
|
+
class GetSinkCommand extends command(_ep0, _mw0, "GetSink", GetSink$) {
|
|
864
815
|
}
|
|
865
816
|
|
|
866
|
-
class GetSinkPolicyCommand extends
|
|
867
|
-
.classBuilder()
|
|
868
|
-
.ep(commonParams)
|
|
869
|
-
.m(function (Command, cs, config, o) {
|
|
870
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
871
|
-
})
|
|
872
|
-
.s("oamservice", "GetSinkPolicy", {})
|
|
873
|
-
.n("OAMClient", "GetSinkPolicyCommand")
|
|
874
|
-
.sc(GetSinkPolicy$)
|
|
875
|
-
.build() {
|
|
817
|
+
class GetSinkPolicyCommand extends command(_ep0, _mw0, "GetSinkPolicy", GetSinkPolicy$) {
|
|
876
818
|
}
|
|
877
819
|
|
|
878
|
-
class ListAttachedLinksCommand extends
|
|
879
|
-
.classBuilder()
|
|
880
|
-
.ep(commonParams)
|
|
881
|
-
.m(function (Command, cs, config, o) {
|
|
882
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
883
|
-
})
|
|
884
|
-
.s("oamservice", "ListAttachedLinks", {})
|
|
885
|
-
.n("OAMClient", "ListAttachedLinksCommand")
|
|
886
|
-
.sc(ListAttachedLinks$)
|
|
887
|
-
.build() {
|
|
820
|
+
class ListAttachedLinksCommand extends command(_ep0, _mw0, "ListAttachedLinks", ListAttachedLinks$) {
|
|
888
821
|
}
|
|
889
822
|
|
|
890
|
-
class ListLinksCommand extends
|
|
891
|
-
.classBuilder()
|
|
892
|
-
.ep(commonParams)
|
|
893
|
-
.m(function (Command, cs, config, o) {
|
|
894
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
895
|
-
})
|
|
896
|
-
.s("oamservice", "ListLinks", {})
|
|
897
|
-
.n("OAMClient", "ListLinksCommand")
|
|
898
|
-
.sc(ListLinks$)
|
|
899
|
-
.build() {
|
|
823
|
+
class ListLinksCommand extends command(_ep0, _mw0, "ListLinks", ListLinks$) {
|
|
900
824
|
}
|
|
901
825
|
|
|
902
|
-
class ListSinksCommand extends
|
|
903
|
-
.classBuilder()
|
|
904
|
-
.ep(commonParams)
|
|
905
|
-
.m(function (Command, cs, config, o) {
|
|
906
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
907
|
-
})
|
|
908
|
-
.s("oamservice", "ListSinks", {})
|
|
909
|
-
.n("OAMClient", "ListSinksCommand")
|
|
910
|
-
.sc(ListSinks$)
|
|
911
|
-
.build() {
|
|
826
|
+
class ListSinksCommand extends command(_ep0, _mw0, "ListSinks", ListSinks$) {
|
|
912
827
|
}
|
|
913
828
|
|
|
914
|
-
class ListTagsForResourceCommand extends
|
|
915
|
-
.classBuilder()
|
|
916
|
-
.ep(commonParams)
|
|
917
|
-
.m(function (Command, cs, config, o) {
|
|
918
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
919
|
-
})
|
|
920
|
-
.s("oamservice", "ListTagsForResource", {})
|
|
921
|
-
.n("OAMClient", "ListTagsForResourceCommand")
|
|
922
|
-
.sc(ListTagsForResource$)
|
|
923
|
-
.build() {
|
|
829
|
+
class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
|
|
924
830
|
}
|
|
925
831
|
|
|
926
|
-
class PutSinkPolicyCommand extends
|
|
927
|
-
.classBuilder()
|
|
928
|
-
.ep(commonParams)
|
|
929
|
-
.m(function (Command, cs, config, o) {
|
|
930
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
931
|
-
})
|
|
932
|
-
.s("oamservice", "PutSinkPolicy", {})
|
|
933
|
-
.n("OAMClient", "PutSinkPolicyCommand")
|
|
934
|
-
.sc(PutSinkPolicy$)
|
|
935
|
-
.build() {
|
|
832
|
+
class PutSinkPolicyCommand extends command(_ep0, _mw0, "PutSinkPolicy", PutSinkPolicy$) {
|
|
936
833
|
}
|
|
937
834
|
|
|
938
|
-
class TagResourceCommand extends
|
|
939
|
-
.classBuilder()
|
|
940
|
-
.ep(commonParams)
|
|
941
|
-
.m(function (Command, cs, config, o) {
|
|
942
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
943
|
-
})
|
|
944
|
-
.s("oamservice", "TagResource", {})
|
|
945
|
-
.n("OAMClient", "TagResourceCommand")
|
|
946
|
-
.sc(TagResource$)
|
|
947
|
-
.build() {
|
|
835
|
+
class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
|
|
948
836
|
}
|
|
949
837
|
|
|
950
|
-
class UntagResourceCommand extends
|
|
951
|
-
.classBuilder()
|
|
952
|
-
.ep(commonParams)
|
|
953
|
-
.m(function (Command, cs, config, o) {
|
|
954
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
955
|
-
})
|
|
956
|
-
.s("oamservice", "UntagResource", {})
|
|
957
|
-
.n("OAMClient", "UntagResourceCommand")
|
|
958
|
-
.sc(UntagResource$)
|
|
959
|
-
.build() {
|
|
838
|
+
class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
|
|
960
839
|
}
|
|
961
840
|
|
|
962
|
-
class UpdateLinkCommand extends
|
|
963
|
-
.classBuilder()
|
|
964
|
-
.ep(commonParams)
|
|
965
|
-
.m(function (Command, cs, config, o) {
|
|
966
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
967
|
-
})
|
|
968
|
-
.s("oamservice", "UpdateLink", {})
|
|
969
|
-
.n("OAMClient", "UpdateLinkCommand")
|
|
970
|
-
.sc(UpdateLink$)
|
|
971
|
-
.build() {
|
|
841
|
+
class UpdateLinkCommand extends command(_ep0, _mw0, "UpdateLink", UpdateLink$) {
|
|
972
842
|
}
|
|
973
843
|
|
|
974
844
|
const paginateListAttachedLinks = createPaginator(OAMClient, ListAttachedLinksCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { makeBuilder } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "./endpoint/EndpointParameters";
|
|
4
|
+
export const command = makeBuilder(commonParams, "oamservice", "OAMClient", getEndpointPlugin);
|
|
5
|
+
export const _ep0 = {};
|
|
6
|
+
export const _mw0 = (Command, cs, config, o) => [];
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { CreateLink$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class CreateLinkCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("oamservice", "CreateLink", {})
|
|
13
|
-
.n("OAMClient", "CreateLinkCommand")
|
|
14
|
-
.sc(CreateLink$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class CreateLinkCommand extends command(_ep0, _mw0, "CreateLink", CreateLink$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { CreateSink$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class CreateSinkCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("oamservice", "CreateSink", {})
|
|
13
|
-
.n("OAMClient", "CreateSinkCommand")
|
|
14
|
-
.sc(CreateSink$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class CreateSinkCommand extends command(_ep0, _mw0, "CreateSink", CreateSink$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { DeleteLink$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class DeleteLinkCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("oamservice", "DeleteLink", {})
|
|
13
|
-
.n("OAMClient", "DeleteLinkCommand")
|
|
14
|
-
.sc(DeleteLink$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class DeleteLinkCommand extends command(_ep0, _mw0, "DeleteLink", DeleteLink$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { DeleteSink$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class DeleteSinkCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("oamservice", "DeleteSink", {})
|
|
13
|
-
.n("OAMClient", "DeleteSinkCommand")
|
|
14
|
-
.sc(DeleteSink$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class DeleteSinkCommand extends command(_ep0, _mw0, "DeleteSink", DeleteSink$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { GetLink$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class GetLinkCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("oamservice", "GetLink", {})
|
|
13
|
-
.n("OAMClient", "GetLinkCommand")
|
|
14
|
-
.sc(GetLink$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class GetLinkCommand extends command(_ep0, _mw0, "GetLink", GetLink$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { GetSink$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class GetSinkCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("oamservice", "GetSink", {})
|
|
13
|
-
.n("OAMClient", "GetSinkCommand")
|
|
14
|
-
.sc(GetSink$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class GetSinkCommand extends command(_ep0, _mw0, "GetSink", GetSink$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { GetSinkPolicy$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class GetSinkPolicyCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("oamservice", "GetSinkPolicy", {})
|
|
13
|
-
.n("OAMClient", "GetSinkPolicyCommand")
|
|
14
|
-
.sc(GetSinkPolicy$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class GetSinkPolicyCommand extends command(_ep0, _mw0, "GetSinkPolicy", GetSinkPolicy$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { ListAttachedLinks$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class ListAttachedLinksCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("oamservice", "ListAttachedLinks", {})
|
|
13
|
-
.n("OAMClient", "ListAttachedLinksCommand")
|
|
14
|
-
.sc(ListAttachedLinks$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class ListAttachedLinksCommand extends command(_ep0, _mw0, "ListAttachedLinks", ListAttachedLinks$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { ListLinks$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class ListLinksCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("oamservice", "ListLinks", {})
|
|
13
|
-
.n("OAMClient", "ListLinksCommand")
|
|
14
|
-
.sc(ListLinks$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class ListLinksCommand extends command(_ep0, _mw0, "ListLinks", ListLinks$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { ListSinks$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class ListSinksCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("oamservice", "ListSinks", {})
|
|
13
|
-
.n("OAMClient", "ListSinksCommand")
|
|
14
|
-
.sc(ListSinks$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class ListSinksCommand extends command(_ep0, _mw0, "ListSinks", ListSinks$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { ListTagsForResource$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class ListTagsForResourceCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("oamservice", "ListTagsForResource", {})
|
|
13
|
-
.n("OAMClient", "ListTagsForResourceCommand")
|
|
14
|
-
.sc(ListTagsForResource$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { PutSinkPolicy$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class PutSinkPolicyCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("oamservice", "PutSinkPolicy", {})
|
|
13
|
-
.n("OAMClient", "PutSinkPolicyCommand")
|
|
14
|
-
.sc(PutSinkPolicy$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class PutSinkPolicyCommand extends command(_ep0, _mw0, "PutSinkPolicy", PutSinkPolicy$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { TagResource$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class TagResourceCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("oamservice", "TagResource", {})
|
|
13
|
-
.n("OAMClient", "TagResourceCommand")
|
|
14
|
-
.sc(TagResource$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { UntagResource$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class UntagResourceCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("oamservice", "UntagResource", {})
|
|
13
|
-
.n("OAMClient", "UntagResourceCommand")
|
|
14
|
-
.sc(UntagResource$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { UpdateLink$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class UpdateLinkCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("oamservice", "UpdateLink", {})
|
|
13
|
-
.n("OAMClient", "UpdateLinkCommand")
|
|
14
|
-
.sc(UpdateLink$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class UpdateLinkCommand extends command(_ep0, _mw0, "UpdateLink", UpdateLink$) {
|
|
16
4
|
}
|
package/dist-es/index.js
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { EndpointParameterInstructions } from "@smithy/types";
|
|
2
|
+
import type { OAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "./OAMClient";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare const command: <I extends ServiceInputTypes, O extends ServiceOutputTypes>(added: EndpointParameterInstructions, plugins: (CommandCtor: any, clientStack: any, config: any, options: any) => import("@smithy/types").Pluggable<any, any>[], op: string, $: import("@smithy/types").StaticOperationSchema, smithyContext?: Record<string, unknown>) => {
|
|
7
|
+
new (input: I): import("@smithy/core/client").CommandImpl<I, O, OAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
8
|
+
new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, OAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
9
|
+
getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
export declare const _ep0: EndpointParameterInstructions;
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export declare const _mw0: (Command: any, cs: any, config: any, o: any) => never[];
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { Command as $Command } from "@smithy/core/client";
|
|
2
1
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
2
|
import type { CreateLinkInput, CreateLinkOutput } from "../models/models_0";
|
|
4
|
-
import type { OAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OAMClient";
|
|
5
3
|
/**
|
|
6
4
|
* @public
|
|
7
5
|
*/
|
|
8
6
|
export type { __MetadataBearer };
|
|
9
|
-
export { $Command };
|
|
10
7
|
/**
|
|
11
8
|
* @public
|
|
12
9
|
*
|
|
@@ -22,11 +19,9 @@ export interface CreateLinkCommandInput extends CreateLinkInput {
|
|
|
22
19
|
export interface CreateLinkCommandOutput extends CreateLinkOutput, __MetadataBearer {
|
|
23
20
|
}
|
|
24
21
|
declare const CreateLinkCommand_base: {
|
|
25
|
-
new (input: CreateLinkCommandInput): import("@smithy/core/client").CommandImpl<CreateLinkCommandInput, CreateLinkCommandOutput, OAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
-
new (input: CreateLinkCommandInput): import("@smithy/core/client").CommandImpl<CreateLinkCommandInput, CreateLinkCommandOutput, OAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions():
|
|
28
|
-
[x: string]: unknown;
|
|
29
|
-
};
|
|
22
|
+
new (input: CreateLinkCommandInput): import("@smithy/core/client").CommandImpl<CreateLinkCommandInput, CreateLinkCommandOutput, import("..").OAMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: CreateLinkCommandInput): import("@smithy/core/client").CommandImpl<CreateLinkCommandInput, CreateLinkCommandOutput, import("..").OAMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
30
25
|
};
|
|
31
26
|
/**
|
|
32
27
|
* <p>Creates a link between a source account and a sink that you have created in a monitoring account. After the link is created, data is sent from the source account to the monitoring account. When you create a link, you can optionally specify filters that specify which metric namespaces and which log groups are shared from the source account to the monitoring account.</p> <p>Before you create a link, you must create a sink in the monitoring account and create a sink policy in that account. The sink policy must permit the source account to link to it. You can grant permission to source accounts by granting permission to an entire organization or to individual accounts.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/OAM/latest/APIReference/API_CreateSink.html">CreateSink</a> and <a href="https://docs.aws.amazon.com/OAM/latest/APIReference/API_PutSinkPolicy.html">PutSinkPolicy</a>.</p> <p>Each monitoring account can be linked to as many as 100,000 source accounts.</p> <p>Each source account can be linked to as many as five monitoring accounts.</p>
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { Command as $Command } from "@smithy/core/client";
|
|
2
1
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
2
|
import type { CreateSinkInput, CreateSinkOutput } from "../models/models_0";
|
|
4
|
-
import type { OAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OAMClient";
|
|
5
3
|
/**
|
|
6
4
|
* @public
|
|
7
5
|
*/
|
|
8
6
|
export type { __MetadataBearer };
|
|
9
|
-
export { $Command };
|
|
10
7
|
/**
|
|
11
8
|
* @public
|
|
12
9
|
*
|
|
@@ -22,11 +19,9 @@ export interface CreateSinkCommandInput extends CreateSinkInput {
|
|
|
22
19
|
export interface CreateSinkCommandOutput extends CreateSinkOutput, __MetadataBearer {
|
|
23
20
|
}
|
|
24
21
|
declare const CreateSinkCommand_base: {
|
|
25
|
-
new (input: CreateSinkCommandInput): import("@smithy/core/client").CommandImpl<CreateSinkCommandInput, CreateSinkCommandOutput, OAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
-
new (input: CreateSinkCommandInput): import("@smithy/core/client").CommandImpl<CreateSinkCommandInput, CreateSinkCommandOutput, OAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions():
|
|
28
|
-
[x: string]: unknown;
|
|
29
|
-
};
|
|
22
|
+
new (input: CreateSinkCommandInput): import("@smithy/core/client").CommandImpl<CreateSinkCommandInput, CreateSinkCommandOutput, import("..").OAMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: CreateSinkCommandInput): import("@smithy/core/client").CommandImpl<CreateSinkCommandInput, CreateSinkCommandOutput, import("..").OAMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
30
25
|
};
|
|
31
26
|
/**
|
|
32
27
|
* <p>Use this to create a <i>sink</i> in the current account, so that it can be used as a monitoring account in CloudWatch cross-account observability. A sink is a resource that represents an attachment point in a monitoring account. Source accounts can link to the sink to send observability data.</p> <p>After you create a sink, you must create a sink policy that allows source accounts to attach to it. For more information, see <a href="https://docs.aws.amazon.com/OAM/latest/APIReference/API_PutSinkPolicy.html">PutSinkPolicy</a>.</p> <p>Each account can contain one sink per Region. If you delete a sink, you can then create a new one in that Region.</p>
|