@aws-sdk/client-codestar-notifications 3.1076.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 +24 -135
- package/dist-es/commandBuilder.js +6 -0
- package/dist-es/commands/CreateNotificationRuleCommand.js +2 -14
- package/dist-es/commands/DeleteNotificationRuleCommand.js +2 -14
- package/dist-es/commands/DeleteTargetCommand.js +2 -14
- package/dist-es/commands/DescribeNotificationRuleCommand.js +2 -14
- package/dist-es/commands/ListEventTypesCommand.js +2 -14
- package/dist-es/commands/ListNotificationRulesCommand.js +2 -14
- package/dist-es/commands/ListTagsForResourceCommand.js +2 -14
- package/dist-es/commands/ListTargetsCommand.js +2 -14
- package/dist-es/commands/SubscribeCommand.js +2 -14
- package/dist-es/commands/TagResourceCommand.js +2 -14
- package/dist-es/commands/UnsubscribeCommand.js +2 -14
- package/dist-es/commands/UntagResourceCommand.js +2 -14
- package/dist-es/commands/UpdateNotificationRuleCommand.js +2 -14
- package/dist-es/index.js +1 -0
- package/dist-es/runtimeConfig.browser.js +0 -2
- package/dist-es/runtimeConfig.js +1 -2
- package/dist-es/runtimeConfig.native.js +0 -2
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-types/commandBuilder.d.ts +18 -0
- package/dist-types/commands/CreateNotificationRuleCommand.d.ts +3 -8
- package/dist-types/commands/DeleteNotificationRuleCommand.d.ts +3 -8
- package/dist-types/commands/DeleteTargetCommand.d.ts +3 -8
- package/dist-types/commands/DescribeNotificationRuleCommand.d.ts +3 -8
- package/dist-types/commands/ListEventTypesCommand.d.ts +3 -8
- package/dist-types/commands/ListNotificationRulesCommand.d.ts +3 -8
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
- package/dist-types/commands/ListTargetsCommand.d.ts +3 -8
- package/dist-types/commands/SubscribeCommand.d.ts +3 -8
- package/dist-types/commands/TagResourceCommand.d.ts +3 -8
- package/dist-types/commands/UnsubscribeCommand.d.ts +3 -8
- package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
- package/dist-types/commands/UpdateNotificationRuleCommand.d.ts +3 -8
- package/dist-types/index.d.ts +1 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
- package/dist-types/ts3.4/commands/CreateNotificationRuleCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/DeleteNotificationRuleCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/DeleteTargetCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/DescribeNotificationRuleCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/ListEventTypesCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/ListNotificationRulesCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/ListTargetsCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/SubscribeCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/UnsubscribeCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/UpdateNotificationRuleCommand.d.ts +7 -16
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
- package/package.json +8 -10
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");
|
|
@@ -10,9 +11,10 @@ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CON
|
|
|
10
11
|
const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
11
12
|
const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
12
13
|
const { defaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
13
|
-
const { toUtf8, fromUtf8, toBase64, fromBase64,
|
|
14
|
+
const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
|
|
14
15
|
const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
|
|
15
16
|
const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
|
|
17
|
+
const { Sha256 } = require("@smithy/core/checksum");
|
|
16
18
|
|
|
17
19
|
const defaultCodestarNotificationsHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
18
20
|
return {
|
|
@@ -67,7 +69,7 @@ const commonParams = {
|
|
|
67
69
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
68
70
|
};
|
|
69
71
|
|
|
70
|
-
var version = "3.
|
|
72
|
+
var version = "3.1077.0";
|
|
71
73
|
var packageInfo = {
|
|
72
74
|
version: version};
|
|
73
75
|
|
|
@@ -658,6 +660,7 @@ const getRuntimeConfig$1 = (config) => {
|
|
|
658
660
|
serviceTarget: "CodeStarNotifications_20191015",
|
|
659
661
|
},
|
|
660
662
|
serviceId: config?.serviceId ?? "codestar notifications",
|
|
663
|
+
sha256: config?.sha256 ?? Sha256,
|
|
661
664
|
urlParser: config?.urlParser ?? parseUrl,
|
|
662
665
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
663
666
|
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
@@ -691,7 +694,6 @@ const getRuntimeConfig = (config) => {
|
|
|
691
694
|
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
692
695
|
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
693
696
|
}, config),
|
|
694
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
695
697
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
696
698
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
697
699
|
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
@@ -779,160 +781,47 @@ class CodestarNotificationsClient extends Client {
|
|
|
779
781
|
}
|
|
780
782
|
}
|
|
781
783
|
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
})
|
|
788
|
-
.s("CodeStarNotifications_20191015", "CreateNotificationRule", {})
|
|
789
|
-
.n("CodestarNotificationsClient", "CreateNotificationRuleCommand")
|
|
790
|
-
.sc(CreateNotificationRule$)
|
|
791
|
-
.build() {
|
|
784
|
+
const command = makeBuilder(commonParams, "CodeStarNotifications_20191015", "CodestarNotificationsClient", getEndpointPlugin);
|
|
785
|
+
const _ep0 = {};
|
|
786
|
+
const _mw0 = (Command, cs, config, o) => [];
|
|
787
|
+
|
|
788
|
+
class CreateNotificationRuleCommand extends command(_ep0, _mw0, "CreateNotificationRule", CreateNotificationRule$) {
|
|
792
789
|
}
|
|
793
790
|
|
|
794
|
-
class DeleteNotificationRuleCommand extends
|
|
795
|
-
.classBuilder()
|
|
796
|
-
.ep(commonParams)
|
|
797
|
-
.m(function (Command, cs, config, o) {
|
|
798
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
799
|
-
})
|
|
800
|
-
.s("CodeStarNotifications_20191015", "DeleteNotificationRule", {})
|
|
801
|
-
.n("CodestarNotificationsClient", "DeleteNotificationRuleCommand")
|
|
802
|
-
.sc(DeleteNotificationRule$)
|
|
803
|
-
.build() {
|
|
791
|
+
class DeleteNotificationRuleCommand extends command(_ep0, _mw0, "DeleteNotificationRule", DeleteNotificationRule$) {
|
|
804
792
|
}
|
|
805
793
|
|
|
806
|
-
class DeleteTargetCommand extends
|
|
807
|
-
.classBuilder()
|
|
808
|
-
.ep(commonParams)
|
|
809
|
-
.m(function (Command, cs, config, o) {
|
|
810
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
811
|
-
})
|
|
812
|
-
.s("CodeStarNotifications_20191015", "DeleteTarget", {})
|
|
813
|
-
.n("CodestarNotificationsClient", "DeleteTargetCommand")
|
|
814
|
-
.sc(DeleteTarget$)
|
|
815
|
-
.build() {
|
|
794
|
+
class DeleteTargetCommand extends command(_ep0, _mw0, "DeleteTarget", DeleteTarget$) {
|
|
816
795
|
}
|
|
817
796
|
|
|
818
|
-
class DescribeNotificationRuleCommand extends
|
|
819
|
-
.classBuilder()
|
|
820
|
-
.ep(commonParams)
|
|
821
|
-
.m(function (Command, cs, config, o) {
|
|
822
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
823
|
-
})
|
|
824
|
-
.s("CodeStarNotifications_20191015", "DescribeNotificationRule", {})
|
|
825
|
-
.n("CodestarNotificationsClient", "DescribeNotificationRuleCommand")
|
|
826
|
-
.sc(DescribeNotificationRule$)
|
|
827
|
-
.build() {
|
|
797
|
+
class DescribeNotificationRuleCommand extends command(_ep0, _mw0, "DescribeNotificationRule", DescribeNotificationRule$) {
|
|
828
798
|
}
|
|
829
799
|
|
|
830
|
-
class ListEventTypesCommand extends
|
|
831
|
-
.classBuilder()
|
|
832
|
-
.ep(commonParams)
|
|
833
|
-
.m(function (Command, cs, config, o) {
|
|
834
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
835
|
-
})
|
|
836
|
-
.s("CodeStarNotifications_20191015", "ListEventTypes", {})
|
|
837
|
-
.n("CodestarNotificationsClient", "ListEventTypesCommand")
|
|
838
|
-
.sc(ListEventTypes$)
|
|
839
|
-
.build() {
|
|
800
|
+
class ListEventTypesCommand extends command(_ep0, _mw0, "ListEventTypes", ListEventTypes$) {
|
|
840
801
|
}
|
|
841
802
|
|
|
842
|
-
class ListNotificationRulesCommand extends
|
|
843
|
-
.classBuilder()
|
|
844
|
-
.ep(commonParams)
|
|
845
|
-
.m(function (Command, cs, config, o) {
|
|
846
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
847
|
-
})
|
|
848
|
-
.s("CodeStarNotifications_20191015", "ListNotificationRules", {})
|
|
849
|
-
.n("CodestarNotificationsClient", "ListNotificationRulesCommand")
|
|
850
|
-
.sc(ListNotificationRules$)
|
|
851
|
-
.build() {
|
|
803
|
+
class ListNotificationRulesCommand extends command(_ep0, _mw0, "ListNotificationRules", ListNotificationRules$) {
|
|
852
804
|
}
|
|
853
805
|
|
|
854
|
-
class ListTagsForResourceCommand extends
|
|
855
|
-
.classBuilder()
|
|
856
|
-
.ep(commonParams)
|
|
857
|
-
.m(function (Command, cs, config, o) {
|
|
858
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
859
|
-
})
|
|
860
|
-
.s("CodeStarNotifications_20191015", "ListTagsForResource", {})
|
|
861
|
-
.n("CodestarNotificationsClient", "ListTagsForResourceCommand")
|
|
862
|
-
.sc(ListTagsForResource$)
|
|
863
|
-
.build() {
|
|
806
|
+
class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
|
|
864
807
|
}
|
|
865
808
|
|
|
866
|
-
class ListTargetsCommand extends
|
|
867
|
-
.classBuilder()
|
|
868
|
-
.ep(commonParams)
|
|
869
|
-
.m(function (Command, cs, config, o) {
|
|
870
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
871
|
-
})
|
|
872
|
-
.s("CodeStarNotifications_20191015", "ListTargets", {})
|
|
873
|
-
.n("CodestarNotificationsClient", "ListTargetsCommand")
|
|
874
|
-
.sc(ListTargets$)
|
|
875
|
-
.build() {
|
|
809
|
+
class ListTargetsCommand extends command(_ep0, _mw0, "ListTargets", ListTargets$) {
|
|
876
810
|
}
|
|
877
811
|
|
|
878
|
-
class SubscribeCommand extends
|
|
879
|
-
.classBuilder()
|
|
880
|
-
.ep(commonParams)
|
|
881
|
-
.m(function (Command, cs, config, o) {
|
|
882
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
883
|
-
})
|
|
884
|
-
.s("CodeStarNotifications_20191015", "Subscribe", {})
|
|
885
|
-
.n("CodestarNotificationsClient", "SubscribeCommand")
|
|
886
|
-
.sc(Subscribe$)
|
|
887
|
-
.build() {
|
|
812
|
+
class SubscribeCommand extends command(_ep0, _mw0, "Subscribe", Subscribe$) {
|
|
888
813
|
}
|
|
889
814
|
|
|
890
|
-
class TagResourceCommand extends
|
|
891
|
-
.classBuilder()
|
|
892
|
-
.ep(commonParams)
|
|
893
|
-
.m(function (Command, cs, config, o) {
|
|
894
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
895
|
-
})
|
|
896
|
-
.s("CodeStarNotifications_20191015", "TagResource", {})
|
|
897
|
-
.n("CodestarNotificationsClient", "TagResourceCommand")
|
|
898
|
-
.sc(TagResource$)
|
|
899
|
-
.build() {
|
|
815
|
+
class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
|
|
900
816
|
}
|
|
901
817
|
|
|
902
|
-
class UnsubscribeCommand extends
|
|
903
|
-
.classBuilder()
|
|
904
|
-
.ep(commonParams)
|
|
905
|
-
.m(function (Command, cs, config, o) {
|
|
906
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
907
|
-
})
|
|
908
|
-
.s("CodeStarNotifications_20191015", "Unsubscribe", {})
|
|
909
|
-
.n("CodestarNotificationsClient", "UnsubscribeCommand")
|
|
910
|
-
.sc(Unsubscribe$)
|
|
911
|
-
.build() {
|
|
818
|
+
class UnsubscribeCommand extends command(_ep0, _mw0, "Unsubscribe", Unsubscribe$) {
|
|
912
819
|
}
|
|
913
820
|
|
|
914
|
-
class UntagResourceCommand extends
|
|
915
|
-
.classBuilder()
|
|
916
|
-
.ep(commonParams)
|
|
917
|
-
.m(function (Command, cs, config, o) {
|
|
918
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
919
|
-
})
|
|
920
|
-
.s("CodeStarNotifications_20191015", "UntagResource", {})
|
|
921
|
-
.n("CodestarNotificationsClient", "UntagResourceCommand")
|
|
922
|
-
.sc(UntagResource$)
|
|
923
|
-
.build() {
|
|
821
|
+
class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
|
|
924
822
|
}
|
|
925
823
|
|
|
926
|
-
class UpdateNotificationRuleCommand extends
|
|
927
|
-
.classBuilder()
|
|
928
|
-
.ep(commonParams)
|
|
929
|
-
.m(function (Command, cs, config, o) {
|
|
930
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
931
|
-
})
|
|
932
|
-
.s("CodeStarNotifications_20191015", "UpdateNotificationRule", {})
|
|
933
|
-
.n("CodestarNotificationsClient", "UpdateNotificationRuleCommand")
|
|
934
|
-
.sc(UpdateNotificationRule$)
|
|
935
|
-
.build() {
|
|
824
|
+
class UpdateNotificationRuleCommand extends command(_ep0, _mw0, "UpdateNotificationRule", UpdateNotificationRule$) {
|
|
936
825
|
}
|
|
937
826
|
|
|
938
827
|
const paginateListEventTypes = createPaginator(CodestarNotificationsClient, ListEventTypesCommand, "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, "CodeStarNotifications_20191015", "CodestarNotificationsClient", 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 { CreateNotificationRule$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class CreateNotificationRuleCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("CodeStarNotifications_20191015", "CreateNotificationRule", {})
|
|
13
|
-
.n("CodestarNotificationsClient", "CreateNotificationRuleCommand")
|
|
14
|
-
.sc(CreateNotificationRule$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class CreateNotificationRuleCommand extends command(_ep0, _mw0, "CreateNotificationRule", CreateNotificationRule$) {
|
|
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 { DeleteNotificationRule$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class DeleteNotificationRuleCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("CodeStarNotifications_20191015", "DeleteNotificationRule", {})
|
|
13
|
-
.n("CodestarNotificationsClient", "DeleteNotificationRuleCommand")
|
|
14
|
-
.sc(DeleteNotificationRule$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class DeleteNotificationRuleCommand extends command(_ep0, _mw0, "DeleteNotificationRule", DeleteNotificationRule$) {
|
|
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 { DeleteTarget$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class DeleteTargetCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("CodeStarNotifications_20191015", "DeleteTarget", {})
|
|
13
|
-
.n("CodestarNotificationsClient", "DeleteTargetCommand")
|
|
14
|
-
.sc(DeleteTarget$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class DeleteTargetCommand extends command(_ep0, _mw0, "DeleteTarget", DeleteTarget$) {
|
|
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 { DescribeNotificationRule$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class DescribeNotificationRuleCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("CodeStarNotifications_20191015", "DescribeNotificationRule", {})
|
|
13
|
-
.n("CodestarNotificationsClient", "DescribeNotificationRuleCommand")
|
|
14
|
-
.sc(DescribeNotificationRule$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class DescribeNotificationRuleCommand extends command(_ep0, _mw0, "DescribeNotificationRule", DescribeNotificationRule$) {
|
|
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 { ListEventTypes$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class ListEventTypesCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("CodeStarNotifications_20191015", "ListEventTypes", {})
|
|
13
|
-
.n("CodestarNotificationsClient", "ListEventTypesCommand")
|
|
14
|
-
.sc(ListEventTypes$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class ListEventTypesCommand extends command(_ep0, _mw0, "ListEventTypes", ListEventTypes$) {
|
|
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 { ListNotificationRules$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class ListNotificationRulesCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("CodeStarNotifications_20191015", "ListNotificationRules", {})
|
|
13
|
-
.n("CodestarNotificationsClient", "ListNotificationRulesCommand")
|
|
14
|
-
.sc(ListNotificationRules$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class ListNotificationRulesCommand extends command(_ep0, _mw0, "ListNotificationRules", ListNotificationRules$) {
|
|
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("CodeStarNotifications_20191015", "ListTagsForResource", {})
|
|
13
|
-
.n("CodestarNotificationsClient", "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 { ListTargets$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class ListTargetsCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("CodeStarNotifications_20191015", "ListTargets", {})
|
|
13
|
-
.n("CodestarNotificationsClient", "ListTargetsCommand")
|
|
14
|
-
.sc(ListTargets$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class ListTargetsCommand extends command(_ep0, _mw0, "ListTargets", ListTargets$) {
|
|
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 { Subscribe$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class SubscribeCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("CodeStarNotifications_20191015", "Subscribe", {})
|
|
13
|
-
.n("CodestarNotificationsClient", "SubscribeCommand")
|
|
14
|
-
.sc(Subscribe$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class SubscribeCommand extends command(_ep0, _mw0, "Subscribe", Subscribe$) {
|
|
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("CodeStarNotifications_20191015", "TagResource", {})
|
|
13
|
-
.n("CodestarNotificationsClient", "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 { Unsubscribe$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class UnsubscribeCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("CodeStarNotifications_20191015", "Unsubscribe", {})
|
|
13
|
-
.n("CodestarNotificationsClient", "UnsubscribeCommand")
|
|
14
|
-
.sc(Unsubscribe$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class UnsubscribeCommand extends command(_ep0, _mw0, "Unsubscribe", Unsubscribe$) {
|
|
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("CodeStarNotifications_20191015", "UntagResource", {})
|
|
13
|
-
.n("CodestarNotificationsClient", "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 { UpdateNotificationRule$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class UpdateNotificationRuleCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("CodeStarNotifications_20191015", "UpdateNotificationRule", {})
|
|
13
|
-
.n("CodestarNotificationsClient", "UpdateNotificationRuleCommand")
|
|
14
|
-
.sc(UpdateNotificationRule$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class UpdateNotificationRuleCommand extends command(_ep0, _mw0, "UpdateNotificationRule", UpdateNotificationRule$) {
|
|
16
4
|
}
|
package/dist-es/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./CodestarNotificationsClient";
|
|
2
2
|
export * from "./CodestarNotifications";
|
|
3
3
|
export * from "./commands";
|
|
4
|
+
export { Command as $Command } from "@smithy/core/client";
|
|
4
5
|
export * from "./schemas/schemas_0";
|
|
5
6
|
export * from "./pagination";
|
|
6
7
|
export * from "./models/enums";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
|
-
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
2
|
import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
|
|
4
3
|
import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
5
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
|
|
@@ -23,7 +22,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
23
22
|
region: config?.region ?? invalidProvider("Region is missing"),
|
|
24
23
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
25
24
|
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
26
|
-
sha256: config?.sha256 ?? Sha256,
|
|
27
25
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
28
26
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
29
27
|
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -5,7 +5,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
|
|
|
5
5
|
import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
6
6
|
import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
|
|
7
7
|
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
|
|
8
|
-
import { calculateBodyLength
|
|
8
|
+
import { calculateBodyLength } from "@smithy/core/serde";
|
|
9
9
|
import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
|
|
10
10
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
11
11
|
export const getRuntimeConfig = (config) => {
|
|
@@ -35,7 +35,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
35
35
|
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
36
36
|
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
37
37
|
}, config),
|
|
38
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
39
38
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
40
39
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
41
40
|
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
2
1
|
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
3
2
|
export const getRuntimeConfig = (config) => {
|
|
4
3
|
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
@@ -6,6 +5,5 @@ export const getRuntimeConfig = (config) => {
|
|
|
6
5
|
...browserDefaults,
|
|
7
6
|
...config,
|
|
8
7
|
runtime: "react-native",
|
|
9
|
-
sha256: config?.sha256 ?? Sha256,
|
|
10
8
|
};
|
|
11
9
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
|
|
2
2
|
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
|
|
3
|
+
import { Sha256 } from "@smithy/core/checksum";
|
|
3
4
|
import { NoOpLogger } from "@smithy/core/client";
|
|
4
5
|
import { parseUrl } from "@smithy/core/protocols";
|
|
5
6
|
import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
|
|
@@ -31,6 +32,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
31
32
|
serviceTarget: "CodeStarNotifications_20191015",
|
|
32
33
|
},
|
|
33
34
|
serviceId: config?.serviceId ?? "codestar notifications",
|
|
35
|
+
sha256: config?.sha256 ?? Sha256,
|
|
34
36
|
urlParser: config?.urlParser ?? parseUrl,
|
|
35
37
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
36
38
|
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { EndpointParameterInstructions } from "@smithy/types";
|
|
2
|
+
import type { CodestarNotificationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "./CodestarNotificationsClient";
|
|
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, CodestarNotificationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
8
|
+
new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, CodestarNotificationsClientResolvedConfig, 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
|
-
import type { CodestarNotificationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodestarNotificationsClient";
|
|
4
2
|
import type { CreateNotificationRuleRequest, CreateNotificationRuleResult } from "../models/models_0";
|
|
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 CreateNotificationRuleCommandInput extends CreateNotificationRu
|
|
|
22
19
|
export interface CreateNotificationRuleCommandOutput extends CreateNotificationRuleResult, __MetadataBearer {
|
|
23
20
|
}
|
|
24
21
|
declare const CreateNotificationRuleCommand_base: {
|
|
25
|
-
new (input: CreateNotificationRuleCommandInput): import("@smithy/core/client").CommandImpl<CreateNotificationRuleCommandInput, CreateNotificationRuleCommandOutput, CodestarNotificationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
-
new (input: CreateNotificationRuleCommandInput): import("@smithy/core/client").CommandImpl<CreateNotificationRuleCommandInput, CreateNotificationRuleCommandOutput, CodestarNotificationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions():
|
|
28
|
-
[x: string]: unknown;
|
|
29
|
-
};
|
|
22
|
+
new (input: CreateNotificationRuleCommandInput): import("@smithy/core/client").CommandImpl<CreateNotificationRuleCommandInput, CreateNotificationRuleCommandOutput, import("..").CodestarNotificationsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: CreateNotificationRuleCommandInput): import("@smithy/core/client").CommandImpl<CreateNotificationRuleCommandInput, CreateNotificationRuleCommandOutput, import("..").CodestarNotificationsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
30
25
|
};
|
|
31
26
|
/**
|
|
32
27
|
* <p>Creates a notification rule for a resource. The rule specifies the events you want
|