aws-sdk-cloudwatchevents 1.40.0 → 1.45.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.45.0
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-cloudwatchevents/customizations'
48
48
  # @!group service
49
49
  module Aws::CloudWatchEvents
50
50
 
51
- GEM_VERSION = '1.40.0'
51
+ GEM_VERSION = '1.45.0'
52
52
 
53
53
  end
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -393,6 +393,64 @@ module Aws::CloudWatchEvents
393
393
  req.send_request(options)
394
394
  end
395
395
 
396
+ # Creates an API destination, which is an HTTP invocation endpoint
397
+ # configured as a target for events.
398
+ #
399
+ # @option params [required, String] :name
400
+ # The name for the API destination to create.
401
+ #
402
+ # @option params [String] :description
403
+ # A description for the API destination to create.
404
+ #
405
+ # @option params [required, String] :connection_arn
406
+ # The ARN of the connection to use for the API destination. The
407
+ # destination endpoint must support the authorization type specified for
408
+ # the connection.
409
+ #
410
+ # @option params [required, String] :invocation_endpoint
411
+ # The URL to the HTTP invocation endpoint for the API destination.
412
+ #
413
+ # @option params [required, String] :http_method
414
+ # The method to use for the request to the HTTP invocation endpoint.
415
+ #
416
+ # @option params [Integer] :invocation_rate_limit_per_second
417
+ # The maximum number of requests per second to send to the HTTP
418
+ # invocation endpoint.
419
+ #
420
+ # @return [Types::CreateApiDestinationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
421
+ #
422
+ # * {Types::CreateApiDestinationResponse#api_destination_arn #api_destination_arn} => String
423
+ # * {Types::CreateApiDestinationResponse#api_destination_state #api_destination_state} => String
424
+ # * {Types::CreateApiDestinationResponse#creation_time #creation_time} => Time
425
+ # * {Types::CreateApiDestinationResponse#last_modified_time #last_modified_time} => Time
426
+ #
427
+ # @example Request syntax with placeholder values
428
+ #
429
+ # resp = client.create_api_destination({
430
+ # name: "ApiDestinationName", # required
431
+ # description: "ApiDestinationDescription",
432
+ # connection_arn: "ConnectionArn", # required
433
+ # invocation_endpoint: "HttpsEndpoint", # required
434
+ # http_method: "POST", # required, accepts POST, GET, HEAD, OPTIONS, PUT, PATCH, DELETE
435
+ # invocation_rate_limit_per_second: 1,
436
+ # })
437
+ #
438
+ # @example Response structure
439
+ #
440
+ # resp.api_destination_arn #=> String
441
+ # resp.api_destination_state #=> String, one of "ACTIVE", "INACTIVE"
442
+ # resp.creation_time #=> Time
443
+ # resp.last_modified_time #=> Time
444
+ #
445
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateApiDestination AWS API Documentation
446
+ #
447
+ # @overload create_api_destination(params = {})
448
+ # @param [Hash] params ({})
449
+ def create_api_destination(params = {}, options = {})
450
+ req = build_request(:create_api_destination, params)
451
+ req.send_request(options)
452
+ end
453
+
396
454
  # Creates an archive of events with the specified settings. When you
397
455
  # create an archive, incoming events might not immediately start being
398
456
  # sent to the archive. Allow a short period of time for changes to take
@@ -449,6 +507,118 @@ module Aws::CloudWatchEvents
449
507
  req.send_request(options)
450
508
  end
451
509
 
510
+ # Creates a connection. A connection defines the authorization type and
511
+ # credentials to use for authorization with an API destination HTTP
512
+ # endpoint.
513
+ #
514
+ # @option params [required, String] :name
515
+ # The name for the connection to create.
516
+ #
517
+ # @option params [String] :description
518
+ # A description for the connection to create.
519
+ #
520
+ # @option params [required, String] :authorization_type
521
+ # The type of authorization to use for the connection.
522
+ #
523
+ # @option params [required, Types::CreateConnectionAuthRequestParameters] :auth_parameters
524
+ # A `CreateConnectionAuthRequestParameters` object that contains the
525
+ # authorization parameters to use to authorize with the endpoint.
526
+ #
527
+ # @return [Types::CreateConnectionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
528
+ #
529
+ # * {Types::CreateConnectionResponse#connection_arn #connection_arn} => String
530
+ # * {Types::CreateConnectionResponse#connection_state #connection_state} => String
531
+ # * {Types::CreateConnectionResponse#creation_time #creation_time} => Time
532
+ # * {Types::CreateConnectionResponse#last_modified_time #last_modified_time} => Time
533
+ #
534
+ # @example Request syntax with placeholder values
535
+ #
536
+ # resp = client.create_connection({
537
+ # name: "ConnectionName", # required
538
+ # description: "ConnectionDescription",
539
+ # authorization_type: "BASIC", # required, accepts BASIC, OAUTH_CLIENT_CREDENTIALS, API_KEY
540
+ # auth_parameters: { # required
541
+ # basic_auth_parameters: {
542
+ # username: "AuthHeaderParameters", # required
543
+ # password: "AuthHeaderParameters", # required
544
+ # },
545
+ # o_auth_parameters: {
546
+ # client_parameters: { # required
547
+ # client_id: "AuthHeaderParameters", # required
548
+ # client_secret: "AuthHeaderParameters", # required
549
+ # },
550
+ # authorization_endpoint: "HttpsEndpoint", # required
551
+ # http_method: "GET", # required, accepts GET, POST, PUT
552
+ # o_auth_http_parameters: {
553
+ # header_parameters: [
554
+ # {
555
+ # key: "HeaderKey",
556
+ # value: "HeaderValue",
557
+ # is_value_secret: false,
558
+ # },
559
+ # ],
560
+ # query_string_parameters: [
561
+ # {
562
+ # key: "QueryStringKey",
563
+ # value: "QueryStringValue",
564
+ # is_value_secret: false,
565
+ # },
566
+ # ],
567
+ # body_parameters: [
568
+ # {
569
+ # key: "String",
570
+ # value: "String",
571
+ # is_value_secret: false,
572
+ # },
573
+ # ],
574
+ # },
575
+ # },
576
+ # api_key_auth_parameters: {
577
+ # api_key_name: "AuthHeaderParameters", # required
578
+ # api_key_value: "AuthHeaderParameters", # required
579
+ # },
580
+ # invocation_http_parameters: {
581
+ # header_parameters: [
582
+ # {
583
+ # key: "HeaderKey",
584
+ # value: "HeaderValue",
585
+ # is_value_secret: false,
586
+ # },
587
+ # ],
588
+ # query_string_parameters: [
589
+ # {
590
+ # key: "QueryStringKey",
591
+ # value: "QueryStringValue",
592
+ # is_value_secret: false,
593
+ # },
594
+ # ],
595
+ # body_parameters: [
596
+ # {
597
+ # key: "String",
598
+ # value: "String",
599
+ # is_value_secret: false,
600
+ # },
601
+ # ],
602
+ # },
603
+ # },
604
+ # })
605
+ #
606
+ # @example Response structure
607
+ #
608
+ # resp.connection_arn #=> String
609
+ # resp.connection_state #=> String, one of "CREATING", "UPDATING", "DELETING", "AUTHORIZED", "DEAUTHORIZED", "AUTHORIZING", "DEAUTHORIZING"
610
+ # resp.creation_time #=> Time
611
+ # resp.last_modified_time #=> Time
612
+ #
613
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateConnection AWS API Documentation
614
+ #
615
+ # @overload create_connection(params = {})
616
+ # @param [Hash] params ({})
617
+ def create_connection(params = {}, options = {})
618
+ req = build_request(:create_connection, params)
619
+ req.send_request(options)
620
+ end
621
+
452
622
  # Creates a new event bus within your account. This can be a custom
453
623
  # event bus which you can use to receive events from your custom
454
624
  # applications and services, or it can be a partner event bus which can
@@ -595,6 +765,66 @@ module Aws::CloudWatchEvents
595
765
  req.send_request(options)
596
766
  end
597
767
 
768
+ # Removes all authorization parameters from the connection. This lets
769
+ # you remove the secret from the connection so you can reuse it without
770
+ # having to create a new connection.
771
+ #
772
+ # @option params [required, String] :name
773
+ # The name of the connection to remove authorization from.
774
+ #
775
+ # @return [Types::DeauthorizeConnectionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
776
+ #
777
+ # * {Types::DeauthorizeConnectionResponse#connection_arn #connection_arn} => String
778
+ # * {Types::DeauthorizeConnectionResponse#connection_state #connection_state} => String
779
+ # * {Types::DeauthorizeConnectionResponse#creation_time #creation_time} => Time
780
+ # * {Types::DeauthorizeConnectionResponse#last_modified_time #last_modified_time} => Time
781
+ # * {Types::DeauthorizeConnectionResponse#last_authorized_time #last_authorized_time} => Time
782
+ #
783
+ # @example Request syntax with placeholder values
784
+ #
785
+ # resp = client.deauthorize_connection({
786
+ # name: "ConnectionName", # required
787
+ # })
788
+ #
789
+ # @example Response structure
790
+ #
791
+ # resp.connection_arn #=> String
792
+ # resp.connection_state #=> String, one of "CREATING", "UPDATING", "DELETING", "AUTHORIZED", "DEAUTHORIZED", "AUTHORIZING", "DEAUTHORIZING"
793
+ # resp.creation_time #=> Time
794
+ # resp.last_modified_time #=> Time
795
+ # resp.last_authorized_time #=> Time
796
+ #
797
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeauthorizeConnection AWS API Documentation
798
+ #
799
+ # @overload deauthorize_connection(params = {})
800
+ # @param [Hash] params ({})
801
+ def deauthorize_connection(params = {}, options = {})
802
+ req = build_request(:deauthorize_connection, params)
803
+ req.send_request(options)
804
+ end
805
+
806
+ # Deletes the specified API destination.
807
+ #
808
+ # @option params [required, String] :name
809
+ # The name of the destination to delete.
810
+ #
811
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
812
+ #
813
+ # @example Request syntax with placeholder values
814
+ #
815
+ # resp = client.delete_api_destination({
816
+ # name: "ApiDestinationName", # required
817
+ # })
818
+ #
819
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteApiDestination AWS API Documentation
820
+ #
821
+ # @overload delete_api_destination(params = {})
822
+ # @param [Hash] params ({})
823
+ def delete_api_destination(params = {}, options = {})
824
+ req = build_request(:delete_api_destination, params)
825
+ req.send_request(options)
826
+ end
827
+
598
828
  # Deletes the specified archive.
599
829
  #
600
830
  # @option params [required, String] :archive_name
@@ -617,6 +847,42 @@ module Aws::CloudWatchEvents
617
847
  req.send_request(options)
618
848
  end
619
849
 
850
+ # Deletes a connection.
851
+ #
852
+ # @option params [required, String] :name
853
+ # The name of the connection to delete.
854
+ #
855
+ # @return [Types::DeleteConnectionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
856
+ #
857
+ # * {Types::DeleteConnectionResponse#connection_arn #connection_arn} => String
858
+ # * {Types::DeleteConnectionResponse#connection_state #connection_state} => String
859
+ # * {Types::DeleteConnectionResponse#creation_time #creation_time} => Time
860
+ # * {Types::DeleteConnectionResponse#last_modified_time #last_modified_time} => Time
861
+ # * {Types::DeleteConnectionResponse#last_authorized_time #last_authorized_time} => Time
862
+ #
863
+ # @example Request syntax with placeholder values
864
+ #
865
+ # resp = client.delete_connection({
866
+ # name: "ConnectionName", # required
867
+ # })
868
+ #
869
+ # @example Response structure
870
+ #
871
+ # resp.connection_arn #=> String
872
+ # resp.connection_state #=> String, one of "CREATING", "UPDATING", "DELETING", "AUTHORIZED", "DEAUTHORIZED", "AUTHORIZING", "DEAUTHORIZING"
873
+ # resp.creation_time #=> Time
874
+ # resp.last_modified_time #=> Time
875
+ # resp.last_authorized_time #=> Time
876
+ #
877
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteConnection AWS API Documentation
878
+ #
879
+ # @overload delete_connection(params = {})
880
+ # @param [Hash] params ({})
881
+ def delete_connection(params = {}, options = {})
882
+ req = build_request(:delete_connection, params)
883
+ req.send_request(options)
884
+ end
885
+
620
886
  # Deletes the specified custom event bus or partner event bus. All rules
621
887
  # associated with this event bus need to be deleted. You can't delete
622
888
  # your account's default event bus.
@@ -719,6 +985,52 @@ module Aws::CloudWatchEvents
719
985
  req.send_request(options)
720
986
  end
721
987
 
988
+ # Retrieves details about an API destination.
989
+ #
990
+ # @option params [required, String] :name
991
+ # The name of the API destination to retrieve.
992
+ #
993
+ # @return [Types::DescribeApiDestinationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
994
+ #
995
+ # * {Types::DescribeApiDestinationResponse#api_destination_arn #api_destination_arn} => String
996
+ # * {Types::DescribeApiDestinationResponse#name #name} => String
997
+ # * {Types::DescribeApiDestinationResponse#description #description} => String
998
+ # * {Types::DescribeApiDestinationResponse#api_destination_state #api_destination_state} => String
999
+ # * {Types::DescribeApiDestinationResponse#connection_arn #connection_arn} => String
1000
+ # * {Types::DescribeApiDestinationResponse#invocation_endpoint #invocation_endpoint} => String
1001
+ # * {Types::DescribeApiDestinationResponse#http_method #http_method} => String
1002
+ # * {Types::DescribeApiDestinationResponse#invocation_rate_limit_per_second #invocation_rate_limit_per_second} => Integer
1003
+ # * {Types::DescribeApiDestinationResponse#creation_time #creation_time} => Time
1004
+ # * {Types::DescribeApiDestinationResponse#last_modified_time #last_modified_time} => Time
1005
+ #
1006
+ # @example Request syntax with placeholder values
1007
+ #
1008
+ # resp = client.describe_api_destination({
1009
+ # name: "ApiDestinationName", # required
1010
+ # })
1011
+ #
1012
+ # @example Response structure
1013
+ #
1014
+ # resp.api_destination_arn #=> String
1015
+ # resp.name #=> String
1016
+ # resp.description #=> String
1017
+ # resp.api_destination_state #=> String, one of "ACTIVE", "INACTIVE"
1018
+ # resp.connection_arn #=> String
1019
+ # resp.invocation_endpoint #=> String
1020
+ # resp.http_method #=> String, one of "POST", "GET", "HEAD", "OPTIONS", "PUT", "PATCH", "DELETE"
1021
+ # resp.invocation_rate_limit_per_second #=> Integer
1022
+ # resp.creation_time #=> Time
1023
+ # resp.last_modified_time #=> Time
1024
+ #
1025
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeApiDestination AWS API Documentation
1026
+ #
1027
+ # @overload describe_api_destination(params = {})
1028
+ # @param [Hash] params ({})
1029
+ def describe_api_destination(params = {}, options = {})
1030
+ req = build_request(:describe_api_destination, params)
1031
+ req.send_request(options)
1032
+ end
1033
+
722
1034
  # Retrieves details about an archive.
723
1035
  #
724
1036
  # @option params [required, String] :archive_name
@@ -767,6 +1079,82 @@ module Aws::CloudWatchEvents
767
1079
  req.send_request(options)
768
1080
  end
769
1081
 
1082
+ # Retrieves details about a connection.
1083
+ #
1084
+ # @option params [required, String] :name
1085
+ # The name of the connection to retrieve.
1086
+ #
1087
+ # @return [Types::DescribeConnectionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1088
+ #
1089
+ # * {Types::DescribeConnectionResponse#connection_arn #connection_arn} => String
1090
+ # * {Types::DescribeConnectionResponse#name #name} => String
1091
+ # * {Types::DescribeConnectionResponse#description #description} => String
1092
+ # * {Types::DescribeConnectionResponse#connection_state #connection_state} => String
1093
+ # * {Types::DescribeConnectionResponse#state_reason #state_reason} => String
1094
+ # * {Types::DescribeConnectionResponse#authorization_type #authorization_type} => String
1095
+ # * {Types::DescribeConnectionResponse#secret_arn #secret_arn} => String
1096
+ # * {Types::DescribeConnectionResponse#auth_parameters #auth_parameters} => Types::ConnectionAuthResponseParameters
1097
+ # * {Types::DescribeConnectionResponse#creation_time #creation_time} => Time
1098
+ # * {Types::DescribeConnectionResponse#last_modified_time #last_modified_time} => Time
1099
+ # * {Types::DescribeConnectionResponse#last_authorized_time #last_authorized_time} => Time
1100
+ #
1101
+ # @example Request syntax with placeholder values
1102
+ #
1103
+ # resp = client.describe_connection({
1104
+ # name: "ConnectionName", # required
1105
+ # })
1106
+ #
1107
+ # @example Response structure
1108
+ #
1109
+ # resp.connection_arn #=> String
1110
+ # resp.name #=> String
1111
+ # resp.description #=> String
1112
+ # resp.connection_state #=> String, one of "CREATING", "UPDATING", "DELETING", "AUTHORIZED", "DEAUTHORIZED", "AUTHORIZING", "DEAUTHORIZING"
1113
+ # resp.state_reason #=> String
1114
+ # resp.authorization_type #=> String, one of "BASIC", "OAUTH_CLIENT_CREDENTIALS", "API_KEY"
1115
+ # resp.secret_arn #=> String
1116
+ # resp.auth_parameters.basic_auth_parameters.username #=> String
1117
+ # resp.auth_parameters.o_auth_parameters.client_parameters.client_id #=> String
1118
+ # resp.auth_parameters.o_auth_parameters.authorization_endpoint #=> String
1119
+ # resp.auth_parameters.o_auth_parameters.http_method #=> String, one of "GET", "POST", "PUT"
1120
+ # resp.auth_parameters.o_auth_parameters.o_auth_http_parameters.header_parameters #=> Array
1121
+ # resp.auth_parameters.o_auth_parameters.o_auth_http_parameters.header_parameters[0].key #=> String
1122
+ # resp.auth_parameters.o_auth_parameters.o_auth_http_parameters.header_parameters[0].value #=> String
1123
+ # resp.auth_parameters.o_auth_parameters.o_auth_http_parameters.header_parameters[0].is_value_secret #=> Boolean
1124
+ # resp.auth_parameters.o_auth_parameters.o_auth_http_parameters.query_string_parameters #=> Array
1125
+ # resp.auth_parameters.o_auth_parameters.o_auth_http_parameters.query_string_parameters[0].key #=> String
1126
+ # resp.auth_parameters.o_auth_parameters.o_auth_http_parameters.query_string_parameters[0].value #=> String
1127
+ # resp.auth_parameters.o_auth_parameters.o_auth_http_parameters.query_string_parameters[0].is_value_secret #=> Boolean
1128
+ # resp.auth_parameters.o_auth_parameters.o_auth_http_parameters.body_parameters #=> Array
1129
+ # resp.auth_parameters.o_auth_parameters.o_auth_http_parameters.body_parameters[0].key #=> String
1130
+ # resp.auth_parameters.o_auth_parameters.o_auth_http_parameters.body_parameters[0].value #=> String
1131
+ # resp.auth_parameters.o_auth_parameters.o_auth_http_parameters.body_parameters[0].is_value_secret #=> Boolean
1132
+ # resp.auth_parameters.api_key_auth_parameters.api_key_name #=> String
1133
+ # resp.auth_parameters.invocation_http_parameters.header_parameters #=> Array
1134
+ # resp.auth_parameters.invocation_http_parameters.header_parameters[0].key #=> String
1135
+ # resp.auth_parameters.invocation_http_parameters.header_parameters[0].value #=> String
1136
+ # resp.auth_parameters.invocation_http_parameters.header_parameters[0].is_value_secret #=> Boolean
1137
+ # resp.auth_parameters.invocation_http_parameters.query_string_parameters #=> Array
1138
+ # resp.auth_parameters.invocation_http_parameters.query_string_parameters[0].key #=> String
1139
+ # resp.auth_parameters.invocation_http_parameters.query_string_parameters[0].value #=> String
1140
+ # resp.auth_parameters.invocation_http_parameters.query_string_parameters[0].is_value_secret #=> Boolean
1141
+ # resp.auth_parameters.invocation_http_parameters.body_parameters #=> Array
1142
+ # resp.auth_parameters.invocation_http_parameters.body_parameters[0].key #=> String
1143
+ # resp.auth_parameters.invocation_http_parameters.body_parameters[0].value #=> String
1144
+ # resp.auth_parameters.invocation_http_parameters.body_parameters[0].is_value_secret #=> Boolean
1145
+ # resp.creation_time #=> Time
1146
+ # resp.last_modified_time #=> Time
1147
+ # resp.last_authorized_time #=> Time
1148
+ #
1149
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeConnection AWS API Documentation
1150
+ #
1151
+ # @overload describe_connection(params = {})
1152
+ # @param [Hash] params ({})
1153
+ def describe_connection(params = {}, options = {})
1154
+ req = build_request(:describe_connection, params)
1155
+ req.send_request(options)
1156
+ end
1157
+
770
1158
  # Displays details about an event bus in your account. This can include
771
1159
  # the external AWS accounts that are permitted to write events to your
772
1160
  # default event bus, and the associated policy. For custom event buses
@@ -1060,6 +1448,60 @@ module Aws::CloudWatchEvents
1060
1448
  req.send_request(options)
1061
1449
  end
1062
1450
 
1451
+ # Retrieves a list of API destination in the account in the current
1452
+ # Region.
1453
+ #
1454
+ # @option params [String] :name_prefix
1455
+ # A name prefix to filter results returned. Only API destinations with a
1456
+ # name that starts with the prefix are returned.
1457
+ #
1458
+ # @option params [String] :connection_arn
1459
+ # The ARN of the connection specified for the API destination.
1460
+ #
1461
+ # @option params [String] :next_token
1462
+ # The token returned by a previous call to retrieve the next set of
1463
+ # results.
1464
+ #
1465
+ # @option params [Integer] :limit
1466
+ # The maximum number of API destinations to include in the response.
1467
+ #
1468
+ # @return [Types::ListApiDestinationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1469
+ #
1470
+ # * {Types::ListApiDestinationsResponse#api_destinations #api_destinations} => Array<Types::ApiDestination>
1471
+ # * {Types::ListApiDestinationsResponse#next_token #next_token} => String
1472
+ #
1473
+ # @example Request syntax with placeholder values
1474
+ #
1475
+ # resp = client.list_api_destinations({
1476
+ # name_prefix: "ApiDestinationName",
1477
+ # connection_arn: "ConnectionArn",
1478
+ # next_token: "NextToken",
1479
+ # limit: 1,
1480
+ # })
1481
+ #
1482
+ # @example Response structure
1483
+ #
1484
+ # resp.api_destinations #=> Array
1485
+ # resp.api_destinations[0].api_destination_arn #=> String
1486
+ # resp.api_destinations[0].name #=> String
1487
+ # resp.api_destinations[0].api_destination_state #=> String, one of "ACTIVE", "INACTIVE"
1488
+ # resp.api_destinations[0].connection_arn #=> String
1489
+ # resp.api_destinations[0].invocation_endpoint #=> String
1490
+ # resp.api_destinations[0].http_method #=> String, one of "POST", "GET", "HEAD", "OPTIONS", "PUT", "PATCH", "DELETE"
1491
+ # resp.api_destinations[0].invocation_rate_limit_per_second #=> Integer
1492
+ # resp.api_destinations[0].creation_time #=> Time
1493
+ # resp.api_destinations[0].last_modified_time #=> Time
1494
+ # resp.next_token #=> String
1495
+ #
1496
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListApiDestinations AWS API Documentation
1497
+ #
1498
+ # @overload list_api_destinations(params = {})
1499
+ # @param [Hash] params ({})
1500
+ def list_api_destinations(params = {}, options = {})
1501
+ req = build_request(:list_api_destinations, params)
1502
+ req.send_request(options)
1503
+ end
1504
+
1063
1505
  # Lists your archives. You can either list all the archives or you can
1064
1506
  # provide a prefix to match to the archive names. Filter parameters are
1065
1507
  # exclusive.
@@ -1118,6 +1560,58 @@ module Aws::CloudWatchEvents
1118
1560
  req.send_request(options)
1119
1561
  end
1120
1562
 
1563
+ # Retrieves a list of connections from the account.
1564
+ #
1565
+ # @option params [String] :name_prefix
1566
+ # A name prefix to filter results returned. Only connections with a name
1567
+ # that starts with the prefix are returned.
1568
+ #
1569
+ # @option params [String] :connection_state
1570
+ # The state of the connection.
1571
+ #
1572
+ # @option params [String] :next_token
1573
+ # The token returned by a previous call to retrieve the next set of
1574
+ # results.
1575
+ #
1576
+ # @option params [Integer] :limit
1577
+ # The maximum number of connections to return.
1578
+ #
1579
+ # @return [Types::ListConnectionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1580
+ #
1581
+ # * {Types::ListConnectionsResponse#connections #connections} => Array<Types::Connection>
1582
+ # * {Types::ListConnectionsResponse#next_token #next_token} => String
1583
+ #
1584
+ # @example Request syntax with placeholder values
1585
+ #
1586
+ # resp = client.list_connections({
1587
+ # name_prefix: "ConnectionName",
1588
+ # connection_state: "CREATING", # accepts CREATING, UPDATING, DELETING, AUTHORIZED, DEAUTHORIZED, AUTHORIZING, DEAUTHORIZING
1589
+ # next_token: "NextToken",
1590
+ # limit: 1,
1591
+ # })
1592
+ #
1593
+ # @example Response structure
1594
+ #
1595
+ # resp.connections #=> Array
1596
+ # resp.connections[0].connection_arn #=> String
1597
+ # resp.connections[0].name #=> String
1598
+ # resp.connections[0].connection_state #=> String, one of "CREATING", "UPDATING", "DELETING", "AUTHORIZED", "DEAUTHORIZED", "AUTHORIZING", "DEAUTHORIZING"
1599
+ # resp.connections[0].state_reason #=> String
1600
+ # resp.connections[0].authorization_type #=> String, one of "BASIC", "OAUTH_CLIENT_CREDENTIALS", "API_KEY"
1601
+ # resp.connections[0].creation_time #=> Time
1602
+ # resp.connections[0].last_modified_time #=> Time
1603
+ # resp.connections[0].last_authorized_time #=> Time
1604
+ # resp.next_token #=> String
1605
+ #
1606
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListConnections AWS API Documentation
1607
+ #
1608
+ # @overload list_connections(params = {})
1609
+ # @param [Hash] params ({})
1610
+ def list_connections(params = {}, options = {})
1611
+ req = build_request(:list_connections, params)
1612
+ req.send_request(options)
1613
+ end
1614
+
1121
1615
  # Lists all the event buses in your account, including the default event
1122
1616
  # bus, custom event buses, and partner event buses.
1123
1617
  #
@@ -1575,6 +2069,9 @@ module Aws::CloudWatchEvents
1575
2069
  # resp.targets[0].redshift_data_parameters.sql #=> String
1576
2070
  # resp.targets[0].redshift_data_parameters.statement_name #=> String
1577
2071
  # resp.targets[0].redshift_data_parameters.with_event #=> Boolean
2072
+ # resp.targets[0].sage_maker_pipeline_parameters.pipeline_parameter_list #=> Array
2073
+ # resp.targets[0].sage_maker_pipeline_parameters.pipeline_parameter_list[0].name #=> String
2074
+ # resp.targets[0].sage_maker_pipeline_parameters.pipeline_parameter_list[0].value #=> String
1578
2075
  # resp.targets[0].dead_letter_config.arn #=> String
1579
2076
  # resp.targets[0].retry_policy.maximum_retry_attempts #=> Integer
1580
2077
  # resp.targets[0].retry_policy.maximum_event_age_in_seconds #=> Integer
@@ -1613,6 +2110,7 @@ module Aws::CloudWatchEvents
1613
2110
  # detail_type: "String",
1614
2111
  # detail: "String",
1615
2112
  # event_bus_name: "NonPartnerEventBusNameOrArn",
2113
+ # trace_header: "TraceHeader",
1616
2114
  # },
1617
2115
  # ],
1618
2116
  # })
@@ -1952,6 +2450,10 @@ module Aws::CloudWatchEvents
1952
2450
  #
1953
2451
  # * Redshift Clusters to invoke Data API ExecuteStatement on
1954
2452
  #
2453
+ # * Custom/SaaS HTTPS APIs via EventBridge API Destinations
2454
+ #
2455
+ # * Amazon SageMaker Model Building Pipelines
2456
+ #
1955
2457
  # Creating rules with built-in targets is supported only in the AWS
1956
2458
  # Management Console. The built-in targets are `EC2 CreateSnapshot API
1957
2459
  # call`, `EC2 RebootInstances API call`, `EC2 StopInstances API call`,
@@ -2125,6 +2627,14 @@ module Aws::CloudWatchEvents
2125
2627
  # statement_name: "StatementName",
2126
2628
  # with_event: false,
2127
2629
  # },
2630
+ # sage_maker_pipeline_parameters: {
2631
+ # pipeline_parameter_list: [
2632
+ # {
2633
+ # name: "SageMakerPipelineParameterName", # required
2634
+ # value: "SageMakerPipelineParameterValue", # required
2635
+ # },
2636
+ # ],
2637
+ # },
2128
2638
  # dead_letter_config: {
2129
2639
  # arn: "ResourceArn",
2130
2640
  # },
@@ -2381,7 +2891,27 @@ module Aws::CloudWatchEvents
2381
2891
  # [1]: https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html
2382
2892
  #
2383
2893
  # @option params [required, String] :event
2384
- # The event, in JSON format, to test against the event pattern.
2894
+ # The event, in JSON format, to test against the event pattern. The JSON
2895
+ # must follow the format specified in [AWS Events][1], and the following
2896
+ # fields are mandatory:
2897
+ #
2898
+ # * `id`
2899
+ #
2900
+ # * `account`
2901
+ #
2902
+ # * `source`
2903
+ #
2904
+ # * `time`
2905
+ #
2906
+ # * `region`
2907
+ #
2908
+ # * `resources`
2909
+ #
2910
+ # * `detail-type`
2911
+ #
2912
+ #
2913
+ #
2914
+ # [1]: https://docs.aws.amazon.com/eventbridge/latest/userguide/aws-events.html
2385
2915
  #
2386
2916
  # @return [Types::TestEventPatternResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2387
2917
  #
@@ -2435,6 +2965,61 @@ module Aws::CloudWatchEvents
2435
2965
  req.send_request(options)
2436
2966
  end
2437
2967
 
2968
+ # Updates an API destination.
2969
+ #
2970
+ # @option params [required, String] :name
2971
+ # The name of the API destination to update.
2972
+ #
2973
+ # @option params [String] :description
2974
+ # The name of the API destination to update.
2975
+ #
2976
+ # @option params [String] :connection_arn
2977
+ # The ARN of the connection to use for the API destination.
2978
+ #
2979
+ # @option params [String] :invocation_endpoint
2980
+ # The URL to the endpoint to use for the API destination.
2981
+ #
2982
+ # @option params [String] :http_method
2983
+ # The method to use for the API destination.
2984
+ #
2985
+ # @option params [Integer] :invocation_rate_limit_per_second
2986
+ # The maximum number of invocations per second to send to the API
2987
+ # destination.
2988
+ #
2989
+ # @return [Types::UpdateApiDestinationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2990
+ #
2991
+ # * {Types::UpdateApiDestinationResponse#api_destination_arn #api_destination_arn} => String
2992
+ # * {Types::UpdateApiDestinationResponse#api_destination_state #api_destination_state} => String
2993
+ # * {Types::UpdateApiDestinationResponse#creation_time #creation_time} => Time
2994
+ # * {Types::UpdateApiDestinationResponse#last_modified_time #last_modified_time} => Time
2995
+ #
2996
+ # @example Request syntax with placeholder values
2997
+ #
2998
+ # resp = client.update_api_destination({
2999
+ # name: "ApiDestinationName", # required
3000
+ # description: "ApiDestinationDescription",
3001
+ # connection_arn: "ConnectionArn",
3002
+ # invocation_endpoint: "HttpsEndpoint",
3003
+ # http_method: "POST", # accepts POST, GET, HEAD, OPTIONS, PUT, PATCH, DELETE
3004
+ # invocation_rate_limit_per_second: 1,
3005
+ # })
3006
+ #
3007
+ # @example Response structure
3008
+ #
3009
+ # resp.api_destination_arn #=> String
3010
+ # resp.api_destination_state #=> String, one of "ACTIVE", "INACTIVE"
3011
+ # resp.creation_time #=> Time
3012
+ # resp.last_modified_time #=> Time
3013
+ #
3014
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UpdateApiDestination AWS API Documentation
3015
+ #
3016
+ # @overload update_api_destination(params = {})
3017
+ # @param [Hash] params ({})
3018
+ def update_api_destination(params = {}, options = {})
3019
+ req = build_request(:update_api_destination, params)
3020
+ req.send_request(options)
3021
+ end
3022
+
2438
3023
  # Updates the specified archive.
2439
3024
  #
2440
3025
  # @option params [required, String] :archive_name
@@ -2481,6 +3066,117 @@ module Aws::CloudWatchEvents
2481
3066
  req.send_request(options)
2482
3067
  end
2483
3068
 
3069
+ # Updates settings for a connection.
3070
+ #
3071
+ # @option params [required, String] :name
3072
+ # The name of the connection to update.
3073
+ #
3074
+ # @option params [String] :description
3075
+ # A description for the connection.
3076
+ #
3077
+ # @option params [String] :authorization_type
3078
+ # The type of authorization to use for the connection.
3079
+ #
3080
+ # @option params [Types::UpdateConnectionAuthRequestParameters] :auth_parameters
3081
+ # The authorization parameters to use for the connection.
3082
+ #
3083
+ # @return [Types::UpdateConnectionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3084
+ #
3085
+ # * {Types::UpdateConnectionResponse#connection_arn #connection_arn} => String
3086
+ # * {Types::UpdateConnectionResponse#connection_state #connection_state} => String
3087
+ # * {Types::UpdateConnectionResponse#creation_time #creation_time} => Time
3088
+ # * {Types::UpdateConnectionResponse#last_modified_time #last_modified_time} => Time
3089
+ # * {Types::UpdateConnectionResponse#last_authorized_time #last_authorized_time} => Time
3090
+ #
3091
+ # @example Request syntax with placeholder values
3092
+ #
3093
+ # resp = client.update_connection({
3094
+ # name: "ConnectionName", # required
3095
+ # description: "ConnectionDescription",
3096
+ # authorization_type: "BASIC", # accepts BASIC, OAUTH_CLIENT_CREDENTIALS, API_KEY
3097
+ # auth_parameters: {
3098
+ # basic_auth_parameters: {
3099
+ # username: "AuthHeaderParameters",
3100
+ # password: "AuthHeaderParameters",
3101
+ # },
3102
+ # o_auth_parameters: {
3103
+ # client_parameters: {
3104
+ # client_id: "AuthHeaderParameters",
3105
+ # client_secret: "AuthHeaderParameters",
3106
+ # },
3107
+ # authorization_endpoint: "HttpsEndpoint",
3108
+ # http_method: "GET", # accepts GET, POST, PUT
3109
+ # o_auth_http_parameters: {
3110
+ # header_parameters: [
3111
+ # {
3112
+ # key: "HeaderKey",
3113
+ # value: "HeaderValue",
3114
+ # is_value_secret: false,
3115
+ # },
3116
+ # ],
3117
+ # query_string_parameters: [
3118
+ # {
3119
+ # key: "QueryStringKey",
3120
+ # value: "QueryStringValue",
3121
+ # is_value_secret: false,
3122
+ # },
3123
+ # ],
3124
+ # body_parameters: [
3125
+ # {
3126
+ # key: "String",
3127
+ # value: "String",
3128
+ # is_value_secret: false,
3129
+ # },
3130
+ # ],
3131
+ # },
3132
+ # },
3133
+ # api_key_auth_parameters: {
3134
+ # api_key_name: "AuthHeaderParameters",
3135
+ # api_key_value: "AuthHeaderParameters",
3136
+ # },
3137
+ # invocation_http_parameters: {
3138
+ # header_parameters: [
3139
+ # {
3140
+ # key: "HeaderKey",
3141
+ # value: "HeaderValue",
3142
+ # is_value_secret: false,
3143
+ # },
3144
+ # ],
3145
+ # query_string_parameters: [
3146
+ # {
3147
+ # key: "QueryStringKey",
3148
+ # value: "QueryStringValue",
3149
+ # is_value_secret: false,
3150
+ # },
3151
+ # ],
3152
+ # body_parameters: [
3153
+ # {
3154
+ # key: "String",
3155
+ # value: "String",
3156
+ # is_value_secret: false,
3157
+ # },
3158
+ # ],
3159
+ # },
3160
+ # },
3161
+ # })
3162
+ #
3163
+ # @example Response structure
3164
+ #
3165
+ # resp.connection_arn #=> String
3166
+ # resp.connection_state #=> String, one of "CREATING", "UPDATING", "DELETING", "AUTHORIZED", "DEAUTHORIZED", "AUTHORIZING", "DEAUTHORIZING"
3167
+ # resp.creation_time #=> Time
3168
+ # resp.last_modified_time #=> Time
3169
+ # resp.last_authorized_time #=> Time
3170
+ #
3171
+ # @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UpdateConnection AWS API Documentation
3172
+ #
3173
+ # @overload update_connection(params = {})
3174
+ # @param [Hash] params ({})
3175
+ def update_connection(params = {}, options = {})
3176
+ req = build_request(:update_connection, params)
3177
+ req.send_request(options)
3178
+ end
3179
+
2484
3180
  # @!endgroup
2485
3181
 
2486
3182
  # @param params ({})
@@ -2494,7 +3190,7 @@ module Aws::CloudWatchEvents
2494
3190
  params: params,
2495
3191
  config: config)
2496
3192
  context[:gem_name] = 'aws-sdk-cloudwatchevents'
2497
- context[:gem_version] = '1.40.0'
3193
+ context[:gem_version] = '1.45.0'
2498
3194
  Seahorse::Client::Request.new(handlers, context)
2499
3195
  end
2500
3196