@aws-sdk/client-eventbridge 3.310.0 → 3.312.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/commands/ListTargetsByRuleCommand.js +2 -1
- package/dist-cjs/commands/PutTargetsCommand.js +2 -1
- package/dist-cjs/endpoint/ruleset.js +2 -2
- package/dist-cjs/models/models_0.js +25 -1
- package/dist-cjs/protocols/Aws_json1_1.js +82 -224
- package/dist-es/commands/ListTargetsByRuleCommand.js +2 -1
- package/dist-es/commands/PutTargetsCommand.js +2 -1
- package/dist-es/endpoint/ruleset.js +2 -2
- package/dist-es/models/models_0.js +20 -0
- package/dist-es/protocols/Aws_json1_1.js +82 -224
- package/dist-types/commands/PutTargetsCommand.d.ts +4 -1
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +21 -1
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +12 -1
- package/package.json +2 -2
|
@@ -4,6 +4,7 @@ exports.ListTargetsByRuleCommand = void 0;
|
|
|
4
4
|
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
5
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
7
8
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
9
|
class ListTargetsByRuleCommand extends smithy_client_1.Command {
|
|
9
10
|
static getEndpointParameterInstructions() {
|
|
@@ -30,7 +31,7 @@ class ListTargetsByRuleCommand extends smithy_client_1.Command {
|
|
|
30
31
|
clientName,
|
|
31
32
|
commandName,
|
|
32
33
|
inputFilterSensitiveLog: (_) => _,
|
|
33
|
-
outputFilterSensitiveLog:
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.ListTargetsByRuleResponseFilterSensitiveLog,
|
|
34
35
|
};
|
|
35
36
|
const { requestHandler } = configuration;
|
|
36
37
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -4,6 +4,7 @@ exports.PutTargetsCommand = void 0;
|
|
|
4
4
|
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
5
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
7
8
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
9
|
class PutTargetsCommand extends smithy_client_1.Command {
|
|
9
10
|
static getEndpointParameterInstructions() {
|
|
@@ -29,7 +30,7 @@ class PutTargetsCommand extends smithy_client_1.Command {
|
|
|
29
30
|
logger,
|
|
30
31
|
clientName,
|
|
31
32
|
commandName,
|
|
32
|
-
inputFilterSensitiveLog:
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.PutTargetsRequestFilterSensitiveLog,
|
|
33
34
|
outputFilterSensitiveLog: (_) => _,
|
|
34
35
|
};
|
|
35
36
|
const { requestHandler } = configuration;
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
4
|
const B = "required", C = "type", D = "fn", E = "argv", F = "ref";
|
|
5
|
-
const a =
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
5
|
+
const a = false, b = true, c = "isSet", d = "tree", e = "booleanEquals", f = "endpoint", g = "error", h = "stringEquals", i = { [B]: false, [C]: "String" }, j = { [B]: true, "default": false, [C]: "Boolean" }, k = { [F]: "EndpointId" }, l = { [D]: c, [E]: [{ [F]: "Region" }] }, m = { [F]: "Region" }, n = { [D]: "aws.partition", [E]: [m], "assign": "PartitionResult" }, o = { [F]: "UseFIPS" }, p = { [F]: "Endpoint" }, q = { "authSchemes": [{ "name": "sigv4a", "signingName": "events", "signingRegionSet": ["*"] }] }, r = {}, s = { [D]: e, [E]: [{ [F]: "UseDualStack" }, true] }, t = { [D]: e, [E]: [true, { [D]: "getAttr", [E]: [{ [F]: "PartitionResult" }, "supportsDualStack"] }] }, u = { [g]: "DualStack is enabled but this partition does not support DualStack", [C]: g }, v = { [D]: e, [E]: [o, true] }, w = { [D]: e, [E]: [true, { [D]: "getAttr", [E]: [{ [F]: "PartitionResult" }, "supportsFIPS"] }] }, x = [{ [D]: c, [E]: [p] }], y = [s], z = [t], A = [v];
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i, EndpointId: i }, rules: [{ conditions: [{ [D]: c, [E]: [k] }, l, n], [C]: d, rules: [{ conditions: [{ [D]: "isValidHostLabel", [E]: [k, b] }], [C]: d, rules: [{ [C]: d, rules: [{ conditions: [{ [D]: e, [E]: [o, a] }], [C]: d, rules: [{ [C]: d, rules: [{ conditions: x, endpoint: { url: p, properties: q, headers: r }, [C]: f }, { conditions: y, [C]: d, rules: [{ conditions: z, [C]: d, rules: [{ endpoint: { url: "https://{EndpointId}.endpoint.events.{PartitionResult#dualStackDnsSuffix}", properties: q, headers: r }, [C]: f }] }, u] }, { endpoint: { url: "https://{EndpointId}.endpoint.events.{PartitionResult#dnsSuffix}", properties: q, headers: r }, [C]: f }] }] }, { error: "Invalid Configuration: FIPS is not supported with EventBridge multi-region endpoints.", [C]: g }] }] }, { error: "EndpointId must be a valid host label.", [C]: g }] }, { conditions: x, [C]: d, rules: [{ conditions: A, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [C]: g }, { [C]: d, rules: [{ conditions: y, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [C]: g }, { endpoint: { url: p, properties: r, headers: r }, [C]: f }] }] }, { [C]: d, rules: [{ conditions: [l], [C]: d, rules: [{ conditions: [n], [C]: d, rules: [{ conditions: [v, s], [C]: d, rules: [{ conditions: [w, t], [C]: d, rules: [{ [C]: d, rules: [{ endpoint: { url: "https://events-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: r, headers: r }, [C]: f }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", [C]: g }] }, { conditions: A, [C]: d, rules: [{ conditions: [w], [C]: d, rules: [{ [C]: d, rules: [{ conditions: [{ [D]: h, [E]: [m, "us-gov-east-1"] }], endpoint: { url: "https://events.us-gov-east-1.amazonaws.com", properties: r, headers: r }, [C]: f }, { conditions: [{ [D]: h, [E]: [m, "us-gov-west-1"] }], endpoint: { url: "https://events.us-gov-west-1.amazonaws.com", properties: r, headers: r }, [C]: f }, { endpoint: { url: "https://events-fips.{Region}.{PartitionResult#dnsSuffix}", properties: r, headers: r }, [C]: f }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", [C]: g }] }, { conditions: y, [C]: d, rules: [{ conditions: z, [C]: d, rules: [{ [C]: d, rules: [{ endpoint: { url: "https://events.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: r, headers: r }, [C]: f }] }] }, u] }, { [C]: d, rules: [{ endpoint: { url: "https://events.{Region}.{PartitionResult#dnsSuffix}", properties: r, headers: r }, [C]: f }] }] }] }, { error: "Invalid Configuration: Missing Region", [C]: g }] }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PolicyLengthExceededException = exports.PropagateTags = exports.PlacementStrategyType = exports.PlacementConstraintType = exports.LaunchType = exports.RuleState = exports.EventSourceState = exports.ManagedRuleException = exports.EndpointState = exports.ReplicationState = exports.ConnectionState = exports.ConnectionOAuthHttpMethod = exports.ConnectionAuthorizationType = exports.InvalidEventPatternException = exports.ResourceAlreadyExistsException = exports.LimitExceededException = exports.IllegalStatusException = exports.ReplayState = exports.AssignPublicIp = exports.ArchiveState = exports.ApiDestinationHttpMethod = exports.ApiDestinationState = exports.ResourceNotFoundException = exports.OperationDisabledException = exports.InvalidStateException = exports.InternalException = exports.ConcurrentModificationException = void 0;
|
|
3
|
+
exports.PutTargetsRequestFilterSensitiveLog = exports.ListTargetsByRuleResponseFilterSensitiveLog = exports.TargetFilterSensitiveLog = exports.RedshiftDataParametersFilterSensitiveLog = exports.PolicyLengthExceededException = exports.PropagateTags = exports.PlacementStrategyType = exports.PlacementConstraintType = exports.LaunchType = exports.RuleState = exports.EventSourceState = exports.ManagedRuleException = exports.EndpointState = exports.ReplicationState = exports.ConnectionState = exports.ConnectionOAuthHttpMethod = exports.ConnectionAuthorizationType = exports.InvalidEventPatternException = exports.ResourceAlreadyExistsException = exports.LimitExceededException = exports.IllegalStatusException = exports.ReplayState = exports.AssignPublicIp = exports.ArchiveState = exports.ApiDestinationHttpMethod = exports.ApiDestinationState = exports.ResourceNotFoundException = exports.OperationDisabledException = exports.InvalidStateException = exports.InternalException = exports.ConcurrentModificationException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const EventBridgeServiceException_1 = require("./EventBridgeServiceException");
|
|
5
6
|
class ConcurrentModificationException extends EventBridgeServiceException_1.EventBridgeServiceException {
|
|
6
7
|
constructor(opts) {
|
|
@@ -236,3 +237,26 @@ class PolicyLengthExceededException extends EventBridgeServiceException_1.EventB
|
|
|
236
237
|
}
|
|
237
238
|
}
|
|
238
239
|
exports.PolicyLengthExceededException = PolicyLengthExceededException;
|
|
240
|
+
const RedshiftDataParametersFilterSensitiveLog = (obj) => ({
|
|
241
|
+
...obj,
|
|
242
|
+
...(obj.Sql && { Sql: smithy_client_1.SENSITIVE_STRING }),
|
|
243
|
+
...(obj.Sqls && { Sqls: smithy_client_1.SENSITIVE_STRING }),
|
|
244
|
+
});
|
|
245
|
+
exports.RedshiftDataParametersFilterSensitiveLog = RedshiftDataParametersFilterSensitiveLog;
|
|
246
|
+
const TargetFilterSensitiveLog = (obj) => ({
|
|
247
|
+
...obj,
|
|
248
|
+
...(obj.RedshiftDataParameters && {
|
|
249
|
+
RedshiftDataParameters: (0, exports.RedshiftDataParametersFilterSensitiveLog)(obj.RedshiftDataParameters),
|
|
250
|
+
}),
|
|
251
|
+
});
|
|
252
|
+
exports.TargetFilterSensitiveLog = TargetFilterSensitiveLog;
|
|
253
|
+
const ListTargetsByRuleResponseFilterSensitiveLog = (obj) => ({
|
|
254
|
+
...obj,
|
|
255
|
+
...(obj.Targets && { Targets: obj.Targets.map((item) => (0, exports.TargetFilterSensitiveLog)(item)) }),
|
|
256
|
+
});
|
|
257
|
+
exports.ListTargetsByRuleResponseFilterSensitiveLog = ListTargetsByRuleResponseFilterSensitiveLog;
|
|
258
|
+
const PutTargetsRequestFilterSensitiveLog = (obj) => ({
|
|
259
|
+
...obj,
|
|
260
|
+
...(obj.Targets && { Targets: obj.Targets.map((item) => (0, exports.TargetFilterSensitiveLog)(item)) }),
|
|
261
|
+
});
|
|
262
|
+
exports.PutTargetsRequestFilterSensitiveLog = PutTargetsRequestFilterSensitiveLog;
|