@aws-sdk/client-eventbridge 3.310.0 → 3.311.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.
@@ -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 = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "isSet", g = "booleanEquals", h = "endpoint", i = "error", j = "stringEquals", k = { [B]: true, "default": false, [C]: "Boolean" }, l = { [B]: false, [C]: c }, m = { [F]: "Region" }, n = { [F]: "EndpointId" }, o = { [F]: "UseFIPS" }, p = { [F]: "Endpoint" }, q = { "authSchemes": [{ "name": "sigv4a", "signingName": "events", "signingRegionSet": ["*"] }] }, r = {}, s = { [D]: g, [E]: [{ [F]: "UseDualStack" }, true] }, t = { [D]: g, [E]: [true, { [D]: "getAttr", [E]: [{ [F]: d }, "supportsDualStack"] }] }, u = { [i]: "DualStack is enabled but this partition does not support DualStack", [C]: i }, v = { [D]: g, [E]: [o, true] }, w = { [D]: g, [E]: [true, { [D]: "getAttr", [E]: [{ [F]: d }, "supportsFIPS"] }] }, x = [{ [D]: f, [E]: [p] }], y = [s], z = [t], A = [v];
6
- const _data = { version: "1.0", parameters: { Region: { [B]: a, [C]: c }, UseDualStack: k, UseFIPS: k, Endpoint: l, EndpointId: l }, rules: [{ conditions: [{ [D]: "aws.partition", [E]: [m], assign: d }], [C]: e, rules: [{ conditions: [{ [D]: f, [E]: [n] }], [C]: e, rules: [{ conditions: [{ [D]: "isValidHostLabel", [E]: [n, a] }], [C]: e, rules: [{ [C]: e, rules: [{ conditions: [{ [D]: g, [E]: [o, b] }], [C]: e, rules: [{ [C]: e, rules: [{ conditions: x, endpoint: { url: p, properties: q, headers: r }, [C]: h }, { conditions: y, [C]: e, rules: [{ conditions: z, [C]: e, rules: [{ endpoint: { url: "https://{EndpointId}.endpoint.events.{PartitionResult#dualStackDnsSuffix}", properties: q, headers: r }, [C]: h }] }, u] }, { endpoint: { url: "https://{EndpointId}.endpoint.events.{PartitionResult#dnsSuffix}", properties: q, headers: r }, [C]: h }] }] }, { error: "Invalid Configuration: FIPS is not supported with EventBridge multi-region endpoints.", [C]: i }] }] }, { error: "EndpointId must be a valid host label.", [C]: i }] }, { conditions: x, [C]: e, rules: [{ conditions: A, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [C]: i }, { [C]: e, rules: [{ conditions: y, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [C]: i }, { endpoint: { url: p, properties: r, headers: r }, [C]: h }] }] }, { conditions: [v, s], [C]: e, rules: [{ conditions: [w, t], [C]: e, rules: [{ endpoint: { url: "https://events-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: r, headers: r }, [C]: h }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", [C]: i }] }, { conditions: A, [C]: e, rules: [{ conditions: [w], [C]: e, rules: [{ [C]: e, rules: [{ conditions: [{ [D]: j, [E]: [m, "us-gov-east-1"] }], endpoint: { url: "https://events.us-gov-east-1.amazonaws.com", properties: r, headers: r }, [C]: h }, { conditions: [{ [D]: j, [E]: [m, "us-gov-west-1"] }], endpoint: { url: "https://events.us-gov-west-1.amazonaws.com", properties: r, headers: r }, [C]: h }, { endpoint: { url: "https://events-fips.{Region}.{PartitionResult#dnsSuffix}", properties: r, headers: r }, [C]: h }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", [C]: i }] }, { conditions: y, [C]: e, rules: [{ conditions: z, [C]: e, rules: [{ endpoint: { url: "https://events.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: r, headers: r }, [C]: h }] }, u] }, { endpoint: { url: "https://events.{Region}.{PartitionResult#dnsSuffix}", properties: r, headers: r }, [C]: h }] }] };
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;
@@ -3542,6 +3542,7 @@ const se_RedshiftDataParameters = (input, context) => {
3542
3542
  ...(input.DbUser != null && { DbUser: input.DbUser }),
3543
3543
  ...(input.SecretManagerArn != null && { SecretManagerArn: input.SecretManagerArn }),
3544
3544
  ...(input.Sql != null && { Sql: input.Sql }),
3545
+ ...(input.Sqls != null && { Sqls: se_Sqls(input.Sqls, context) }),
3545
3546
  ...(input.StatementName != null && { StatementName: input.StatementName }),
3546
3547
  ...(input.WithEvent != null && { WithEvent: input.WithEvent }),
3547
3548
  };
@@ -3642,6 +3643,13 @@ const se_Secondary = (input, context) => {
3642
3643
  ...(input.Route != null && { Route: input.Route }),
3643
3644
  };
3644
3645
  };
3646
+ const se_Sqls = (input, context) => {
3647
+ return input
3648
+ .filter((e) => e != null)
3649
+ .map((entry) => {
3650
+ return entry;
3651
+ });
3652
+ };
3645
3653
  const se_SqsParameters = (input, context) => {
3646
3654
  return {
3647
3655
  ...(input.MessageGroupId != null && { MessageGroupId: input.MessageGroupId }),
@@ -4777,6 +4785,7 @@ const de_RedshiftDataParameters = (output, context) => {
4777
4785
  DbUser: (0, smithy_client_1.expectString)(output.DbUser),
4778
4786
  SecretManagerArn: (0, smithy_client_1.expectString)(output.SecretManagerArn),
4779
4787
  Sql: (0, smithy_client_1.expectString)(output.Sql),
4788
+ Sqls: output.Sqls != null ? de_Sqls(output.Sqls, context) : undefined,
4780
4789
  StatementName: (0, smithy_client_1.expectString)(output.StatementName),
4781
4790
  WithEvent: (0, smithy_client_1.expectBoolean)(output.WithEvent),
4782
4791
  };
@@ -4979,6 +4988,17 @@ const de_Secondary = (output, context) => {
4979
4988
  Route: (0, smithy_client_1.expectString)(output.Route),
4980
4989
  };
4981
4990
  };
4991
+ const de_Sqls = (output, context) => {
4992
+ const retVal = (output || [])
4993
+ .filter((e) => e != null)
4994
+ .map((entry) => {
4995
+ if (entry === null) {
4996
+ return null;
4997
+ }
4998
+ return (0, smithy_client_1.expectString)(entry);
4999
+ });
5000
+ return retVal;
5001
+ };
4982
5002
  const de_SqsParameters = (output, context) => {
4983
5003
  return {
4984
5004
  MessageGroupId: (0, smithy_client_1.expectString)(output.MessageGroupId),
@@ -1,6 +1,7 @@
1
1
  import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListTargetsByRuleResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { de_ListTargetsByRuleCommand, se_ListTargetsByRuleCommand } from "../protocols/Aws_json1_1";
5
6
  export class ListTargetsByRuleCommand extends $Command {
6
7
  static getEndpointParameterInstructions() {
@@ -27,7 +28,7 @@ export class ListTargetsByRuleCommand extends $Command {
27
28
  clientName,
28
29
  commandName,
29
30
  inputFilterSensitiveLog: (_) => _,
30
- outputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: ListTargetsByRuleResponseFilterSensitiveLog,
31
32
  };
32
33
  const { requestHandler } = configuration;
33
34
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -1,6 +1,7 @@
1
1
  import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { PutTargetsRequestFilterSensitiveLog } from "../models/models_0";
4
5
  import { de_PutTargetsCommand, se_PutTargetsCommand } from "../protocols/Aws_json1_1";
5
6
  export class PutTargetsCommand extends $Command {
6
7
  static getEndpointParameterInstructions() {
@@ -26,7 +27,7 @@ export class PutTargetsCommand extends $Command {
26
27
  logger,
27
28
  clientName,
28
29
  commandName,
29
- inputFilterSensitiveLog: (_) => _,
30
+ inputFilterSensitiveLog: PutTargetsRequestFilterSensitiveLog,
30
31
  outputFilterSensitiveLog: (_) => _,
31
32
  };
32
33
  const { requestHandler } = configuration;
@@ -1,4 +1,4 @@
1
1
  const B = "required", C = "type", D = "fn", E = "argv", F = "ref";
2
- const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "isSet", g = "booleanEquals", h = "endpoint", i = "error", j = "stringEquals", k = { [B]: true, "default": false, [C]: "Boolean" }, l = { [B]: false, [C]: c }, m = { [F]: "Region" }, n = { [F]: "EndpointId" }, o = { [F]: "UseFIPS" }, p = { [F]: "Endpoint" }, q = { "authSchemes": [{ "name": "sigv4a", "signingName": "events", "signingRegionSet": ["*"] }] }, r = {}, s = { [D]: g, [E]: [{ [F]: "UseDualStack" }, true] }, t = { [D]: g, [E]: [true, { [D]: "getAttr", [E]: [{ [F]: d }, "supportsDualStack"] }] }, u = { [i]: "DualStack is enabled but this partition does not support DualStack", [C]: i }, v = { [D]: g, [E]: [o, true] }, w = { [D]: g, [E]: [true, { [D]: "getAttr", [E]: [{ [F]: d }, "supportsFIPS"] }] }, x = [{ [D]: f, [E]: [p] }], y = [s], z = [t], A = [v];
3
- const _data = { version: "1.0", parameters: { Region: { [B]: a, [C]: c }, UseDualStack: k, UseFIPS: k, Endpoint: l, EndpointId: l }, rules: [{ conditions: [{ [D]: "aws.partition", [E]: [m], assign: d }], [C]: e, rules: [{ conditions: [{ [D]: f, [E]: [n] }], [C]: e, rules: [{ conditions: [{ [D]: "isValidHostLabel", [E]: [n, a] }], [C]: e, rules: [{ [C]: e, rules: [{ conditions: [{ [D]: g, [E]: [o, b] }], [C]: e, rules: [{ [C]: e, rules: [{ conditions: x, endpoint: { url: p, properties: q, headers: r }, [C]: h }, { conditions: y, [C]: e, rules: [{ conditions: z, [C]: e, rules: [{ endpoint: { url: "https://{EndpointId}.endpoint.events.{PartitionResult#dualStackDnsSuffix}", properties: q, headers: r }, [C]: h }] }, u] }, { endpoint: { url: "https://{EndpointId}.endpoint.events.{PartitionResult#dnsSuffix}", properties: q, headers: r }, [C]: h }] }] }, { error: "Invalid Configuration: FIPS is not supported with EventBridge multi-region endpoints.", [C]: i }] }] }, { error: "EndpointId must be a valid host label.", [C]: i }] }, { conditions: x, [C]: e, rules: [{ conditions: A, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [C]: i }, { [C]: e, rules: [{ conditions: y, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [C]: i }, { endpoint: { url: p, properties: r, headers: r }, [C]: h }] }] }, { conditions: [v, s], [C]: e, rules: [{ conditions: [w, t], [C]: e, rules: [{ endpoint: { url: "https://events-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: r, headers: r }, [C]: h }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", [C]: i }] }, { conditions: A, [C]: e, rules: [{ conditions: [w], [C]: e, rules: [{ [C]: e, rules: [{ conditions: [{ [D]: j, [E]: [m, "us-gov-east-1"] }], endpoint: { url: "https://events.us-gov-east-1.amazonaws.com", properties: r, headers: r }, [C]: h }, { conditions: [{ [D]: j, [E]: [m, "us-gov-west-1"] }], endpoint: { url: "https://events.us-gov-west-1.amazonaws.com", properties: r, headers: r }, [C]: h }, { endpoint: { url: "https://events-fips.{Region}.{PartitionResult#dnsSuffix}", properties: r, headers: r }, [C]: h }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", [C]: i }] }, { conditions: y, [C]: e, rules: [{ conditions: z, [C]: e, rules: [{ endpoint: { url: "https://events.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: r, headers: r }, [C]: h }] }, u] }, { endpoint: { url: "https://events.{Region}.{PartitionResult#dnsSuffix}", properties: r, headers: r }, [C]: h }] }] };
2
+ 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];
3
+ 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 }] }] };
4
4
  export const ruleSet = _data;
@@ -1,3 +1,4 @@
1
+ import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
1
2
  import { EventBridgeServiceException as __BaseException } from "./EventBridgeServiceException";
2
3
  export class ConcurrentModificationException extends __BaseException {
3
4
  constructor(opts) {
@@ -222,3 +223,22 @@ export class PolicyLengthExceededException extends __BaseException {
222
223
  Object.setPrototypeOf(this, PolicyLengthExceededException.prototype);
223
224
  }
224
225
  }
226
+ export const RedshiftDataParametersFilterSensitiveLog = (obj) => ({
227
+ ...obj,
228
+ ...(obj.Sql && { Sql: SENSITIVE_STRING }),
229
+ ...(obj.Sqls && { Sqls: SENSITIVE_STRING }),
230
+ });
231
+ export const TargetFilterSensitiveLog = (obj) => ({
232
+ ...obj,
233
+ ...(obj.RedshiftDataParameters && {
234
+ RedshiftDataParameters: RedshiftDataParametersFilterSensitiveLog(obj.RedshiftDataParameters),
235
+ }),
236
+ });
237
+ export const ListTargetsByRuleResponseFilterSensitiveLog = (obj) => ({
238
+ ...obj,
239
+ ...(obj.Targets && { Targets: obj.Targets.map((item) => TargetFilterSensitiveLog(item)) }),
240
+ });
241
+ export const PutTargetsRequestFilterSensitiveLog = (obj) => ({
242
+ ...obj,
243
+ ...(obj.Targets && { Targets: obj.Targets.map((item) => TargetFilterSensitiveLog(item)) }),
244
+ });
@@ -3425,6 +3425,7 @@ const se_RedshiftDataParameters = (input, context) => {
3425
3425
  ...(input.DbUser != null && { DbUser: input.DbUser }),
3426
3426
  ...(input.SecretManagerArn != null && { SecretManagerArn: input.SecretManagerArn }),
3427
3427
  ...(input.Sql != null && { Sql: input.Sql }),
3428
+ ...(input.Sqls != null && { Sqls: se_Sqls(input.Sqls, context) }),
3428
3429
  ...(input.StatementName != null && { StatementName: input.StatementName }),
3429
3430
  ...(input.WithEvent != null && { WithEvent: input.WithEvent }),
3430
3431
  };
@@ -3525,6 +3526,13 @@ const se_Secondary = (input, context) => {
3525
3526
  ...(input.Route != null && { Route: input.Route }),
3526
3527
  };
3527
3528
  };
3529
+ const se_Sqls = (input, context) => {
3530
+ return input
3531
+ .filter((e) => e != null)
3532
+ .map((entry) => {
3533
+ return entry;
3534
+ });
3535
+ };
3528
3536
  const se_SqsParameters = (input, context) => {
3529
3537
  return {
3530
3538
  ...(input.MessageGroupId != null && { MessageGroupId: input.MessageGroupId }),
@@ -4660,6 +4668,7 @@ const de_RedshiftDataParameters = (output, context) => {
4660
4668
  DbUser: __expectString(output.DbUser),
4661
4669
  SecretManagerArn: __expectString(output.SecretManagerArn),
4662
4670
  Sql: __expectString(output.Sql),
4671
+ Sqls: output.Sqls != null ? de_Sqls(output.Sqls, context) : undefined,
4663
4672
  StatementName: __expectString(output.StatementName),
4664
4673
  WithEvent: __expectBoolean(output.WithEvent),
4665
4674
  };
@@ -4862,6 +4871,17 @@ const de_Secondary = (output, context) => {
4862
4871
  Route: __expectString(output.Route),
4863
4872
  };
4864
4873
  };
4874
+ const de_Sqls = (output, context) => {
4875
+ const retVal = (output || [])
4876
+ .filter((e) => e != null)
4877
+ .map((entry) => {
4878
+ if (entry === null) {
4879
+ return null;
4880
+ }
4881
+ return __expectString(entry);
4882
+ });
4883
+ return retVal;
4884
+ };
4865
4885
  const de_SqsParameters = (output, context) => {
4866
4886
  return {
4867
4887
  MessageGroupId: __expectString(output.MessageGroupId),
@@ -307,9 +307,12 @@ export interface PutTargetsCommandOutput extends PutTargetsResponse, __MetadataB
307
307
  * SecretManagerArn: "STRING_VALUE",
308
308
  * Database: "STRING_VALUE", // required
309
309
  * DbUser: "STRING_VALUE",
310
- * Sql: "STRING_VALUE", // required
310
+ * Sql: "STRING_VALUE",
311
311
  * StatementName: "STRING_VALUE",
312
312
  * WithEvent: true || false,
313
+ * Sqls: [ // Sqls
314
+ * "STRING_VALUE",
315
+ * ],
313
316
  * },
314
317
  * SageMakerPipelineParameters: { // SageMakerPipelineParameters
315
318
  * PipelineParameterList: [ // SageMakerPipelineParameterList
@@ -12,7 +12,7 @@ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInp
12
12
  defaultSigningName: string;
13
13
  };
14
14
  export interface EndpointParameters extends __EndpointParameters {
15
- Region: string;
15
+ Region?: string;
16
16
  UseDualStack?: boolean;
17
17
  UseFIPS?: boolean;
18
18
  Endpoint?: string;
@@ -2868,7 +2868,7 @@ export interface RedshiftDataParameters {
2868
2868
  /**
2869
2869
  * <p>The SQL statement text to run.</p>
2870
2870
  */
2871
- Sql: string | undefined;
2871
+ Sql?: string;
2872
2872
  /**
2873
2873
  * <p>The name of the SQL statement. You can name the SQL statement when you create it to
2874
2874
  * identify the query.</p>
@@ -2879,6 +2879,10 @@ export interface RedshiftDataParameters {
2879
2879
  * runs.</p>
2880
2880
  */
2881
2881
  WithEvent?: boolean;
2882
+ /**
2883
+ * A list of SQLs.
2884
+ */
2885
+ Sqls?: string[];
2882
2886
  }
2883
2887
  /**
2884
2888
  * @public
@@ -3982,3 +3986,19 @@ export interface UpdateEndpointResponse {
3982
3986
  */
3983
3987
  State?: EndpointState | string;
3984
3988
  }
3989
+ /**
3990
+ * @internal
3991
+ */
3992
+ export declare const RedshiftDataParametersFilterSensitiveLog: (obj: RedshiftDataParameters) => any;
3993
+ /**
3994
+ * @internal
3995
+ */
3996
+ export declare const TargetFilterSensitiveLog: (obj: Target) => any;
3997
+ /**
3998
+ * @internal
3999
+ */
4000
+ export declare const ListTargetsByRuleResponseFilterSensitiveLog: (obj: ListTargetsByRuleResponse) => any;
4001
+ /**
4002
+ * @internal
4003
+ */
4004
+ export declare const PutTargetsRequestFilterSensitiveLog: (obj: PutTargetsRequest) => any;
@@ -26,7 +26,7 @@ export declare const resolveClientEndpointParameters: <T>(
26
26
  defaultSigningName: string;
27
27
  };
28
28
  export interface EndpointParameters extends __EndpointParameters {
29
- Region: string;
29
+ Region?: string;
30
30
  UseDualStack?: boolean;
31
31
  UseFIPS?: boolean;
32
32
  Endpoint?: string;
@@ -821,9 +821,10 @@ export interface RedshiftDataParameters {
821
821
  SecretManagerArn?: string;
822
822
  Database: string | undefined;
823
823
  DbUser?: string;
824
- Sql: string | undefined;
824
+ Sql?: string;
825
825
  StatementName?: string;
826
826
  WithEvent?: boolean;
827
+ Sqls?: string[];
827
828
  }
828
829
  export interface RetryPolicy {
829
830
  MaximumRetryAttempts?: number;
@@ -1089,3 +1090,13 @@ export interface UpdateEndpointResponse {
1089
1090
  EndpointUrl?: string;
1090
1091
  State?: EndpointState | string;
1091
1092
  }
1093
+ export declare const RedshiftDataParametersFilterSensitiveLog: (
1094
+ obj: RedshiftDataParameters
1095
+ ) => any;
1096
+ export declare const TargetFilterSensitiveLog: (obj: Target) => any;
1097
+ export declare const ListTargetsByRuleResponseFilterSensitiveLog: (
1098
+ obj: ListTargetsByRuleResponse
1099
+ ) => any;
1100
+ export declare const PutTargetsRequestFilterSensitiveLog: (
1101
+ obj: PutTargetsRequest
1102
+ ) => any;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-eventbridge",
3
3
  "description": "AWS SDK for JavaScript Eventbridge Client for Node.js, Browser and React Native",
4
- "version": "3.310.0",
4
+ "version": "3.311.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",