aws-sdk-cloudwatchevents 1.38.0 → 1.43.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +288 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/lib/aws-sdk-cloudwatchevents.rb +1 -1
- data/lib/aws-sdk-cloudwatchevents/client.rb +1192 -45
- data/lib/aws-sdk-cloudwatchevents/client_api.rb +737 -16
- data/lib/aws-sdk-cloudwatchevents/errors.rb +11 -0
- data/lib/aws-sdk-cloudwatchevents/types.rb +2750 -232
- metadata +8 -5
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.43.0
|
@@ -361,6 +361,264 @@ module Aws::CloudWatchEvents
|
|
361
361
|
req.send_request(options)
|
362
362
|
end
|
363
363
|
|
364
|
+
# Cancels the specified replay.
|
365
|
+
#
|
366
|
+
# @option params [required, String] :replay_name
|
367
|
+
# The name of the replay to cancel.
|
368
|
+
#
|
369
|
+
# @return [Types::CancelReplayResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
370
|
+
#
|
371
|
+
# * {Types::CancelReplayResponse#replay_arn #replay_arn} => String
|
372
|
+
# * {Types::CancelReplayResponse#state #state} => String
|
373
|
+
# * {Types::CancelReplayResponse#state_reason #state_reason} => String
|
374
|
+
#
|
375
|
+
# @example Request syntax with placeholder values
|
376
|
+
#
|
377
|
+
# resp = client.cancel_replay({
|
378
|
+
# replay_name: "ReplayName", # required
|
379
|
+
# })
|
380
|
+
#
|
381
|
+
# @example Response structure
|
382
|
+
#
|
383
|
+
# resp.replay_arn #=> String
|
384
|
+
# resp.state #=> String, one of "STARTING", "RUNNING", "CANCELLING", "COMPLETED", "CANCELLED", "FAILED"
|
385
|
+
# resp.state_reason #=> String
|
386
|
+
#
|
387
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CancelReplay AWS API Documentation
|
388
|
+
#
|
389
|
+
# @overload cancel_replay(params = {})
|
390
|
+
# @param [Hash] params ({})
|
391
|
+
def cancel_replay(params = {}, options = {})
|
392
|
+
req = build_request(:cancel_replay, params)
|
393
|
+
req.send_request(options)
|
394
|
+
end
|
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
|
+
|
454
|
+
# Creates an archive of events with the specified settings. When you
|
455
|
+
# create an archive, incoming events might not immediately start being
|
456
|
+
# sent to the archive. Allow a short period of time for changes to take
|
457
|
+
# effect. If you do not specify a pattern to filter events sent to the
|
458
|
+
# archive, all events are sent to the archive except replayed events.
|
459
|
+
# Replayed events are not sent to an archive.
|
460
|
+
#
|
461
|
+
# @option params [required, String] :archive_name
|
462
|
+
# The name for the archive to create.
|
463
|
+
#
|
464
|
+
# @option params [required, String] :event_source_arn
|
465
|
+
# The ARN of the event source associated with the archive.
|
466
|
+
#
|
467
|
+
# @option params [String] :description
|
468
|
+
# A description for the archive.
|
469
|
+
#
|
470
|
+
# @option params [String] :event_pattern
|
471
|
+
# An event pattern to use to filter events sent to the archive.
|
472
|
+
#
|
473
|
+
# @option params [Integer] :retention_days
|
474
|
+
# The number of days to retain events for. Default value is 0. If set to
|
475
|
+
# 0, events are retained indefinitely
|
476
|
+
#
|
477
|
+
# @return [Types::CreateArchiveResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
478
|
+
#
|
479
|
+
# * {Types::CreateArchiveResponse#archive_arn #archive_arn} => String
|
480
|
+
# * {Types::CreateArchiveResponse#state #state} => String
|
481
|
+
# * {Types::CreateArchiveResponse#state_reason #state_reason} => String
|
482
|
+
# * {Types::CreateArchiveResponse#creation_time #creation_time} => Time
|
483
|
+
#
|
484
|
+
# @example Request syntax with placeholder values
|
485
|
+
#
|
486
|
+
# resp = client.create_archive({
|
487
|
+
# archive_name: "ArchiveName", # required
|
488
|
+
# event_source_arn: "Arn", # required
|
489
|
+
# description: "ArchiveDescription",
|
490
|
+
# event_pattern: "EventPattern",
|
491
|
+
# retention_days: 1,
|
492
|
+
# })
|
493
|
+
#
|
494
|
+
# @example Response structure
|
495
|
+
#
|
496
|
+
# resp.archive_arn #=> String
|
497
|
+
# resp.state #=> String, one of "ENABLED", "DISABLED", "CREATING", "UPDATING", "CREATE_FAILED", "UPDATE_FAILED"
|
498
|
+
# resp.state_reason #=> String
|
499
|
+
# resp.creation_time #=> Time
|
500
|
+
#
|
501
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateArchive AWS API Documentation
|
502
|
+
#
|
503
|
+
# @overload create_archive(params = {})
|
504
|
+
# @param [Hash] params ({})
|
505
|
+
def create_archive(params = {}, options = {})
|
506
|
+
req = build_request(:create_archive, params)
|
507
|
+
req.send_request(options)
|
508
|
+
end
|
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
|
+
|
364
622
|
# Creates a new event bus within your account. This can be a custom
|
365
623
|
# event bus which you can use to receive events from your custom
|
366
624
|
# applications and services, or it can be a partner event bus which can
|
@@ -507,6 +765,124 @@ module Aws::CloudWatchEvents
|
|
507
765
|
req.send_request(options)
|
508
766
|
end
|
509
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
|
+
|
828
|
+
# Deletes the specified archive.
|
829
|
+
#
|
830
|
+
# @option params [required, String] :archive_name
|
831
|
+
# The name of the archive to delete.
|
832
|
+
#
|
833
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
834
|
+
#
|
835
|
+
# @example Request syntax with placeholder values
|
836
|
+
#
|
837
|
+
# resp = client.delete_archive({
|
838
|
+
# archive_name: "ArchiveName", # required
|
839
|
+
# })
|
840
|
+
#
|
841
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteArchive AWS API Documentation
|
842
|
+
#
|
843
|
+
# @overload delete_archive(params = {})
|
844
|
+
# @param [Hash] params ({})
|
845
|
+
def delete_archive(params = {}, options = {})
|
846
|
+
req = build_request(:delete_archive, params)
|
847
|
+
req.send_request(options)
|
848
|
+
end
|
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
|
+
|
510
886
|
# Deletes the specified custom event bus or partner event bus. All rules
|
511
887
|
# associated with this event bus need to be deleted. You can't delete
|
512
888
|
# your account's default event bus.
|
@@ -580,8 +956,8 @@ module Aws::CloudWatchEvents
|
|
580
956
|
# The name of the rule.
|
581
957
|
#
|
582
958
|
# @option params [String] :event_bus_name
|
583
|
-
# The event bus associated with the rule. If you omit
|
584
|
-
# event bus is used.
|
959
|
+
# The name or ARN of the event bus associated with the rule. If you omit
|
960
|
+
# this, the default event bus is used.
|
585
961
|
#
|
586
962
|
# @option params [Boolean] :force
|
587
963
|
# If this is a managed rule, created by an AWS service on your behalf,
|
@@ -596,7 +972,7 @@ module Aws::CloudWatchEvents
|
|
596
972
|
#
|
597
973
|
# resp = client.delete_rule({
|
598
974
|
# name: "RuleName", # required
|
599
|
-
# event_bus_name: "
|
975
|
+
# event_bus_name: "EventBusNameOrArn",
|
600
976
|
# force: false,
|
601
977
|
# })
|
602
978
|
#
|
@@ -609,6 +985,176 @@ module Aws::CloudWatchEvents
|
|
609
985
|
req.send_request(options)
|
610
986
|
end
|
611
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
|
+
|
1034
|
+
# Retrieves details about an archive.
|
1035
|
+
#
|
1036
|
+
# @option params [required, String] :archive_name
|
1037
|
+
# The name of the archive to retrieve.
|
1038
|
+
#
|
1039
|
+
# @return [Types::DescribeArchiveResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1040
|
+
#
|
1041
|
+
# * {Types::DescribeArchiveResponse#archive_arn #archive_arn} => String
|
1042
|
+
# * {Types::DescribeArchiveResponse#archive_name #archive_name} => String
|
1043
|
+
# * {Types::DescribeArchiveResponse#event_source_arn #event_source_arn} => String
|
1044
|
+
# * {Types::DescribeArchiveResponse#description #description} => String
|
1045
|
+
# * {Types::DescribeArchiveResponse#event_pattern #event_pattern} => String
|
1046
|
+
# * {Types::DescribeArchiveResponse#state #state} => String
|
1047
|
+
# * {Types::DescribeArchiveResponse#state_reason #state_reason} => String
|
1048
|
+
# * {Types::DescribeArchiveResponse#retention_days #retention_days} => Integer
|
1049
|
+
# * {Types::DescribeArchiveResponse#size_bytes #size_bytes} => Integer
|
1050
|
+
# * {Types::DescribeArchiveResponse#event_count #event_count} => Integer
|
1051
|
+
# * {Types::DescribeArchiveResponse#creation_time #creation_time} => Time
|
1052
|
+
#
|
1053
|
+
# @example Request syntax with placeholder values
|
1054
|
+
#
|
1055
|
+
# resp = client.describe_archive({
|
1056
|
+
# archive_name: "ArchiveName", # required
|
1057
|
+
# })
|
1058
|
+
#
|
1059
|
+
# @example Response structure
|
1060
|
+
#
|
1061
|
+
# resp.archive_arn #=> String
|
1062
|
+
# resp.archive_name #=> String
|
1063
|
+
# resp.event_source_arn #=> String
|
1064
|
+
# resp.description #=> String
|
1065
|
+
# resp.event_pattern #=> String
|
1066
|
+
# resp.state #=> String, one of "ENABLED", "DISABLED", "CREATING", "UPDATING", "CREATE_FAILED", "UPDATE_FAILED"
|
1067
|
+
# resp.state_reason #=> String
|
1068
|
+
# resp.retention_days #=> Integer
|
1069
|
+
# resp.size_bytes #=> Integer
|
1070
|
+
# resp.event_count #=> Integer
|
1071
|
+
# resp.creation_time #=> Time
|
1072
|
+
#
|
1073
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeArchive AWS API Documentation
|
1074
|
+
#
|
1075
|
+
# @overload describe_archive(params = {})
|
1076
|
+
# @param [Hash] params ({})
|
1077
|
+
def describe_archive(params = {}, options = {})
|
1078
|
+
req = build_request(:describe_archive, params)
|
1079
|
+
req.send_request(options)
|
1080
|
+
end
|
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
|
+
|
612
1158
|
# Displays details about an event bus in your account. This can include
|
613
1159
|
# the external AWS accounts that are permitted to write events to your
|
614
1160
|
# default event bus, and the associated policy. For custom event buses
|
@@ -621,8 +1167,8 @@ module Aws::CloudWatchEvents
|
|
621
1167
|
# For more information about partner event buses, see CreateEventBus.
|
622
1168
|
#
|
623
1169
|
# @option params [String] :name
|
624
|
-
# The name of the event bus to show details for. If you omit
|
625
|
-
# default event bus is displayed.
|
1170
|
+
# The name or ARN of the event bus to show details for. If you omit
|
1171
|
+
# this, the default event bus is displayed.
|
626
1172
|
#
|
627
1173
|
# @return [Types::DescribeEventBusResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
628
1174
|
#
|
@@ -633,7 +1179,7 @@ module Aws::CloudWatchEvents
|
|
633
1179
|
# @example Request syntax with placeholder values
|
634
1180
|
#
|
635
1181
|
# resp = client.describe_event_bus({
|
636
|
-
# name: "
|
1182
|
+
# name: "EventBusNameOrArn",
|
637
1183
|
# })
|
638
1184
|
#
|
639
1185
|
# @example Response structure
|
@@ -723,6 +1269,67 @@ module Aws::CloudWatchEvents
|
|
723
1269
|
req.send_request(options)
|
724
1270
|
end
|
725
1271
|
|
1272
|
+
# Retrieves details about a replay. Use `DescribeReplay` to determine
|
1273
|
+
# the progress of a running replay. A replay processes events to replay
|
1274
|
+
# based on the time in the event, and replays them using 1 minute
|
1275
|
+
# intervals. If you use `StartReplay` and specify an `EventStartTime`
|
1276
|
+
# and an `EventEndTime` that covers a 20 minute time range, the events
|
1277
|
+
# are replayed from the first minute of that 20 minute range first. Then
|
1278
|
+
# the events from the second minute are replayed. You can use
|
1279
|
+
# `DescribeReplay` to determine the progress of a replay. The value
|
1280
|
+
# returned for `EventLastReplayedTime` indicates the time within the
|
1281
|
+
# specified time range associated with the last event replayed.
|
1282
|
+
#
|
1283
|
+
# @option params [required, String] :replay_name
|
1284
|
+
# The name of the replay to retrieve.
|
1285
|
+
#
|
1286
|
+
# @return [Types::DescribeReplayResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1287
|
+
#
|
1288
|
+
# * {Types::DescribeReplayResponse#replay_name #replay_name} => String
|
1289
|
+
# * {Types::DescribeReplayResponse#replay_arn #replay_arn} => String
|
1290
|
+
# * {Types::DescribeReplayResponse#description #description} => String
|
1291
|
+
# * {Types::DescribeReplayResponse#state #state} => String
|
1292
|
+
# * {Types::DescribeReplayResponse#state_reason #state_reason} => String
|
1293
|
+
# * {Types::DescribeReplayResponse#event_source_arn #event_source_arn} => String
|
1294
|
+
# * {Types::DescribeReplayResponse#destination #destination} => Types::ReplayDestination
|
1295
|
+
# * {Types::DescribeReplayResponse#event_start_time #event_start_time} => Time
|
1296
|
+
# * {Types::DescribeReplayResponse#event_end_time #event_end_time} => Time
|
1297
|
+
# * {Types::DescribeReplayResponse#event_last_replayed_time #event_last_replayed_time} => Time
|
1298
|
+
# * {Types::DescribeReplayResponse#replay_start_time #replay_start_time} => Time
|
1299
|
+
# * {Types::DescribeReplayResponse#replay_end_time #replay_end_time} => Time
|
1300
|
+
#
|
1301
|
+
# @example Request syntax with placeholder values
|
1302
|
+
#
|
1303
|
+
# resp = client.describe_replay({
|
1304
|
+
# replay_name: "ReplayName", # required
|
1305
|
+
# })
|
1306
|
+
#
|
1307
|
+
# @example Response structure
|
1308
|
+
#
|
1309
|
+
# resp.replay_name #=> String
|
1310
|
+
# resp.replay_arn #=> String
|
1311
|
+
# resp.description #=> String
|
1312
|
+
# resp.state #=> String, one of "STARTING", "RUNNING", "CANCELLING", "COMPLETED", "CANCELLED", "FAILED"
|
1313
|
+
# resp.state_reason #=> String
|
1314
|
+
# resp.event_source_arn #=> String
|
1315
|
+
# resp.destination.arn #=> String
|
1316
|
+
# resp.destination.filter_arns #=> Array
|
1317
|
+
# resp.destination.filter_arns[0] #=> String
|
1318
|
+
# resp.event_start_time #=> Time
|
1319
|
+
# resp.event_end_time #=> Time
|
1320
|
+
# resp.event_last_replayed_time #=> Time
|
1321
|
+
# resp.replay_start_time #=> Time
|
1322
|
+
# resp.replay_end_time #=> Time
|
1323
|
+
#
|
1324
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeReplay AWS API Documentation
|
1325
|
+
#
|
1326
|
+
# @overload describe_replay(params = {})
|
1327
|
+
# @param [Hash] params ({})
|
1328
|
+
def describe_replay(params = {}, options = {})
|
1329
|
+
req = build_request(:describe_replay, params)
|
1330
|
+
req.send_request(options)
|
1331
|
+
end
|
1332
|
+
|
726
1333
|
# Describes the specified rule.
|
727
1334
|
#
|
728
1335
|
# DescribeRule does not list the targets of a rule. To see the targets
|
@@ -732,8 +1339,8 @@ module Aws::CloudWatchEvents
|
|
732
1339
|
# The name of the rule.
|
733
1340
|
#
|
734
1341
|
# @option params [String] :event_bus_name
|
735
|
-
# The event bus associated with the rule. If you omit
|
736
|
-
# event bus is used.
|
1342
|
+
# The name or ARN of the event bus associated with the rule. If you omit
|
1343
|
+
# this, the default event bus is used.
|
737
1344
|
#
|
738
1345
|
# @return [Types::DescribeRuleResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
739
1346
|
#
|
@@ -746,12 +1353,13 @@ module Aws::CloudWatchEvents
|
|
746
1353
|
# * {Types::DescribeRuleResponse#role_arn #role_arn} => String
|
747
1354
|
# * {Types::DescribeRuleResponse#managed_by #managed_by} => String
|
748
1355
|
# * {Types::DescribeRuleResponse#event_bus_name #event_bus_name} => String
|
1356
|
+
# * {Types::DescribeRuleResponse#created_by #created_by} => String
|
749
1357
|
#
|
750
1358
|
# @example Request syntax with placeholder values
|
751
1359
|
#
|
752
1360
|
# resp = client.describe_rule({
|
753
1361
|
# name: "RuleName", # required
|
754
|
-
# event_bus_name: "
|
1362
|
+
# event_bus_name: "EventBusNameOrArn",
|
755
1363
|
# })
|
756
1364
|
#
|
757
1365
|
# @example Response structure
|
@@ -765,6 +1373,7 @@ module Aws::CloudWatchEvents
|
|
765
1373
|
# resp.role_arn #=> String
|
766
1374
|
# resp.managed_by #=> String
|
767
1375
|
# resp.event_bus_name #=> String
|
1376
|
+
# resp.created_by #=> String
|
768
1377
|
#
|
769
1378
|
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeRule AWS API Documentation
|
770
1379
|
#
|
@@ -786,8 +1395,8 @@ module Aws::CloudWatchEvents
|
|
786
1395
|
# The name of the rule.
|
787
1396
|
#
|
788
1397
|
# @option params [String] :event_bus_name
|
789
|
-
# The event bus associated with the rule. If you omit
|
790
|
-
# event bus is used.
|
1398
|
+
# The name or ARN of the event bus associated with the rule. If you omit
|
1399
|
+
# this, the default event bus is used.
|
791
1400
|
#
|
792
1401
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
793
1402
|
#
|
@@ -795,7 +1404,7 @@ module Aws::CloudWatchEvents
|
|
795
1404
|
#
|
796
1405
|
# resp = client.disable_rule({
|
797
1406
|
# name: "RuleName", # required
|
798
|
-
# event_bus_name: "
|
1407
|
+
# event_bus_name: "EventBusNameOrArn",
|
799
1408
|
# })
|
800
1409
|
#
|
801
1410
|
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DisableRule AWS API Documentation
|
@@ -818,8 +1427,8 @@ module Aws::CloudWatchEvents
|
|
818
1427
|
# The name of the rule.
|
819
1428
|
#
|
820
1429
|
# @option params [String] :event_bus_name
|
821
|
-
# The event bus associated with the rule. If you omit
|
822
|
-
# event bus is used.
|
1430
|
+
# The name or ARN of the event bus associated with the rule. If you omit
|
1431
|
+
# this, the default event bus is used.
|
823
1432
|
#
|
824
1433
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
825
1434
|
#
|
@@ -827,7 +1436,7 @@ module Aws::CloudWatchEvents
|
|
827
1436
|
#
|
828
1437
|
# resp = client.enable_rule({
|
829
1438
|
# name: "RuleName", # required
|
830
|
-
# event_bus_name: "
|
1439
|
+
# event_bus_name: "EventBusNameOrArn",
|
831
1440
|
# })
|
832
1441
|
#
|
833
1442
|
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/EnableRule AWS API Documentation
|
@@ -839,6 +1448,170 @@ module Aws::CloudWatchEvents
|
|
839
1448
|
req.send_request(options)
|
840
1449
|
end
|
841
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
|
+
|
1505
|
+
# Lists your archives. You can either list all the archives or you can
|
1506
|
+
# provide a prefix to match to the archive names. Filter parameters are
|
1507
|
+
# exclusive.
|
1508
|
+
#
|
1509
|
+
# @option params [String] :name_prefix
|
1510
|
+
# A name prefix to filter the archives returned. Only archives with name
|
1511
|
+
# that match the prefix are returned.
|
1512
|
+
#
|
1513
|
+
# @option params [String] :event_source_arn
|
1514
|
+
# The ARN of the event source associated with the archive.
|
1515
|
+
#
|
1516
|
+
# @option params [String] :state
|
1517
|
+
# The state of the archive.
|
1518
|
+
#
|
1519
|
+
# @option params [String] :next_token
|
1520
|
+
# The token returned by a previous call to retrieve the next set of
|
1521
|
+
# results.
|
1522
|
+
#
|
1523
|
+
# @option params [Integer] :limit
|
1524
|
+
# The maximum number of results to return.
|
1525
|
+
#
|
1526
|
+
# @return [Types::ListArchivesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1527
|
+
#
|
1528
|
+
# * {Types::ListArchivesResponse#archives #archives} => Array<Types::Archive>
|
1529
|
+
# * {Types::ListArchivesResponse#next_token #next_token} => String
|
1530
|
+
#
|
1531
|
+
# @example Request syntax with placeholder values
|
1532
|
+
#
|
1533
|
+
# resp = client.list_archives({
|
1534
|
+
# name_prefix: "ArchiveName",
|
1535
|
+
# event_source_arn: "Arn",
|
1536
|
+
# state: "ENABLED", # accepts ENABLED, DISABLED, CREATING, UPDATING, CREATE_FAILED, UPDATE_FAILED
|
1537
|
+
# next_token: "NextToken",
|
1538
|
+
# limit: 1,
|
1539
|
+
# })
|
1540
|
+
#
|
1541
|
+
# @example Response structure
|
1542
|
+
#
|
1543
|
+
# resp.archives #=> Array
|
1544
|
+
# resp.archives[0].archive_name #=> String
|
1545
|
+
# resp.archives[0].event_source_arn #=> String
|
1546
|
+
# resp.archives[0].state #=> String, one of "ENABLED", "DISABLED", "CREATING", "UPDATING", "CREATE_FAILED", "UPDATE_FAILED"
|
1547
|
+
# resp.archives[0].state_reason #=> String
|
1548
|
+
# resp.archives[0].retention_days #=> Integer
|
1549
|
+
# resp.archives[0].size_bytes #=> Integer
|
1550
|
+
# resp.archives[0].event_count #=> Integer
|
1551
|
+
# resp.archives[0].creation_time #=> Time
|
1552
|
+
# resp.next_token #=> String
|
1553
|
+
#
|
1554
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListArchives AWS API Documentation
|
1555
|
+
#
|
1556
|
+
# @overload list_archives(params = {})
|
1557
|
+
# @param [Hash] params ({})
|
1558
|
+
def list_archives(params = {}, options = {})
|
1559
|
+
req = build_request(:list_archives, params)
|
1560
|
+
req.send_request(options)
|
1561
|
+
end
|
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
|
+
|
842
1615
|
# Lists all the event buses in your account, including the default event
|
843
1616
|
# bus, custom event buses, and partner event buses.
|
844
1617
|
#
|
@@ -1029,6 +1802,65 @@ module Aws::CloudWatchEvents
|
|
1029
1802
|
req.send_request(options)
|
1030
1803
|
end
|
1031
1804
|
|
1805
|
+
# Lists your replays. You can either list all the replays or you can
|
1806
|
+
# provide a prefix to match to the replay names. Filter parameters are
|
1807
|
+
# exclusive.
|
1808
|
+
#
|
1809
|
+
# @option params [String] :name_prefix
|
1810
|
+
# A name prefix to filter the replays returned. Only replays with name
|
1811
|
+
# that match the prefix are returned.
|
1812
|
+
#
|
1813
|
+
# @option params [String] :state
|
1814
|
+
# The state of the replay.
|
1815
|
+
#
|
1816
|
+
# @option params [String] :event_source_arn
|
1817
|
+
# The ARN of the event source associated with the replay.
|
1818
|
+
#
|
1819
|
+
# @option params [String] :next_token
|
1820
|
+
# The token returned by a previous call to retrieve the next set of
|
1821
|
+
# results.
|
1822
|
+
#
|
1823
|
+
# @option params [Integer] :limit
|
1824
|
+
# The maximum number of replays to retrieve.
|
1825
|
+
#
|
1826
|
+
# @return [Types::ListReplaysResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1827
|
+
#
|
1828
|
+
# * {Types::ListReplaysResponse#replays #replays} => Array<Types::Replay>
|
1829
|
+
# * {Types::ListReplaysResponse#next_token #next_token} => String
|
1830
|
+
#
|
1831
|
+
# @example Request syntax with placeholder values
|
1832
|
+
#
|
1833
|
+
# resp = client.list_replays({
|
1834
|
+
# name_prefix: "ReplayName",
|
1835
|
+
# state: "STARTING", # accepts STARTING, RUNNING, CANCELLING, COMPLETED, CANCELLED, FAILED
|
1836
|
+
# event_source_arn: "Arn",
|
1837
|
+
# next_token: "NextToken",
|
1838
|
+
# limit: 1,
|
1839
|
+
# })
|
1840
|
+
#
|
1841
|
+
# @example Response structure
|
1842
|
+
#
|
1843
|
+
# resp.replays #=> Array
|
1844
|
+
# resp.replays[0].replay_name #=> String
|
1845
|
+
# resp.replays[0].event_source_arn #=> String
|
1846
|
+
# resp.replays[0].state #=> String, one of "STARTING", "RUNNING", "CANCELLING", "COMPLETED", "CANCELLED", "FAILED"
|
1847
|
+
# resp.replays[0].state_reason #=> String
|
1848
|
+
# resp.replays[0].event_start_time #=> Time
|
1849
|
+
# resp.replays[0].event_end_time #=> Time
|
1850
|
+
# resp.replays[0].event_last_replayed_time #=> Time
|
1851
|
+
# resp.replays[0].replay_start_time #=> Time
|
1852
|
+
# resp.replays[0].replay_end_time #=> Time
|
1853
|
+
# resp.next_token #=> String
|
1854
|
+
#
|
1855
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListReplays AWS API Documentation
|
1856
|
+
#
|
1857
|
+
# @overload list_replays(params = {})
|
1858
|
+
# @param [Hash] params ({})
|
1859
|
+
def list_replays(params = {}, options = {})
|
1860
|
+
req = build_request(:list_replays, params)
|
1861
|
+
req.send_request(options)
|
1862
|
+
end
|
1863
|
+
|
1032
1864
|
# Lists the rules for the specified target. You can see which of the
|
1033
1865
|
# rules in Amazon EventBridge can invoke a specific target in your
|
1034
1866
|
# account.
|
@@ -1037,8 +1869,8 @@ module Aws::CloudWatchEvents
|
|
1037
1869
|
# The Amazon Resource Name (ARN) of the target resource.
|
1038
1870
|
#
|
1039
1871
|
# @option params [String] :event_bus_name
|
1040
|
-
#
|
1041
|
-
#
|
1872
|
+
# The name or ARN of the event bus to list rules for. If you omit this,
|
1873
|
+
# the default event bus is used.
|
1042
1874
|
#
|
1043
1875
|
# @option params [String] :next_token
|
1044
1876
|
# The token returned by a previous call to retrieve the next set of
|
@@ -1056,7 +1888,7 @@ module Aws::CloudWatchEvents
|
|
1056
1888
|
#
|
1057
1889
|
# resp = client.list_rule_names_by_target({
|
1058
1890
|
# target_arn: "TargetArn", # required
|
1059
|
-
# event_bus_name: "
|
1891
|
+
# event_bus_name: "EventBusNameOrArn",
|
1060
1892
|
# next_token: "NextToken",
|
1061
1893
|
# limit: 1,
|
1062
1894
|
# })
|
@@ -1086,8 +1918,8 @@ module Aws::CloudWatchEvents
|
|
1086
1918
|
# The prefix matching the rule name.
|
1087
1919
|
#
|
1088
1920
|
# @option params [String] :event_bus_name
|
1089
|
-
#
|
1090
|
-
#
|
1921
|
+
# The name or ARN of the event bus to list the rules for. If you omit
|
1922
|
+
# this, the default event bus is used.
|
1091
1923
|
#
|
1092
1924
|
# @option params [String] :next_token
|
1093
1925
|
# The token returned by a previous call to retrieve the next set of
|
@@ -1105,7 +1937,7 @@ module Aws::CloudWatchEvents
|
|
1105
1937
|
#
|
1106
1938
|
# resp = client.list_rules({
|
1107
1939
|
# name_prefix: "RuleName",
|
1108
|
-
# event_bus_name: "
|
1940
|
+
# event_bus_name: "EventBusNameOrArn",
|
1109
1941
|
# next_token: "NextToken",
|
1110
1942
|
# limit: 1,
|
1111
1943
|
# })
|
@@ -1170,8 +2002,8 @@ module Aws::CloudWatchEvents
|
|
1170
2002
|
# The name of the rule.
|
1171
2003
|
#
|
1172
2004
|
# @option params [String] :event_bus_name
|
1173
|
-
# The event bus associated with the rule. If you omit
|
1174
|
-
# event bus is used.
|
2005
|
+
# The name or ARN of the event bus associated with the rule. If you omit
|
2006
|
+
# this, the default event bus is used.
|
1175
2007
|
#
|
1176
2008
|
# @option params [String] :next_token
|
1177
2009
|
# The token returned by a previous call to retrieve the next set of
|
@@ -1189,7 +2021,7 @@ module Aws::CloudWatchEvents
|
|
1189
2021
|
#
|
1190
2022
|
# resp = client.list_targets_by_rule({
|
1191
2023
|
# rule: "RuleName", # required
|
1192
|
-
# event_bus_name: "
|
2024
|
+
# event_bus_name: "EventBusNameOrArn",
|
1193
2025
|
# next_token: "NextToken",
|
1194
2026
|
# limit: 1,
|
1195
2027
|
# })
|
@@ -1274,7 +2106,8 @@ module Aws::CloudWatchEvents
|
|
1274
2106
|
# resources: ["EventResource"],
|
1275
2107
|
# detail_type: "String",
|
1276
2108
|
# detail: "String",
|
1277
|
-
# event_bus_name: "
|
2109
|
+
# event_bus_name: "NonPartnerEventBusNameOrArn",
|
2110
|
+
# trace_header: "TraceHeader",
|
1278
2111
|
# },
|
1279
2112
|
# ],
|
1280
2113
|
# })
|
@@ -1368,14 +2201,14 @@ module Aws::CloudWatchEvents
|
|
1368
2201
|
# [1]: https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-cross-account-event-delivery.html
|
1369
2202
|
#
|
1370
2203
|
# @option params [String] :event_bus_name
|
1371
|
-
# The event bus associated with the rule. If you omit this,
|
1372
|
-
# event bus is used.
|
2204
|
+
# The name of the event bus associated with the rule. If you omit this,
|
2205
|
+
# the default event bus is used.
|
1373
2206
|
#
|
1374
|
-
# @option params [
|
2207
|
+
# @option params [String] :action
|
1375
2208
|
# The action that you are enabling the other account to perform.
|
1376
2209
|
# Currently, this must be `events:PutEvents`.
|
1377
2210
|
#
|
1378
|
-
# @option params [
|
2211
|
+
# @option params [String] :principal
|
1379
2212
|
# The 12-digit AWS account ID that you are permitting to put events to
|
1380
2213
|
# your default event bus. Specify "*" to permit any account to put
|
1381
2214
|
# events to your default event bus.
|
@@ -1387,7 +2220,7 @@ module Aws::CloudWatchEvents
|
|
1387
2220
|
# with an account field do not match any events sent from other
|
1388
2221
|
# accounts.
|
1389
2222
|
#
|
1390
|
-
# @option params [
|
2223
|
+
# @option params [String] :statement_id
|
1391
2224
|
# An identifier string for the external account that you are granting
|
1392
2225
|
# permissions to. If you later want to revoke the permission for this
|
1393
2226
|
# external account, specify this `StatementId` when you run
|
@@ -1410,20 +2243,26 @@ module Aws::CloudWatchEvents
|
|
1410
2243
|
#
|
1411
2244
|
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_introduction.html
|
1412
2245
|
#
|
2246
|
+
# @option params [String] :policy
|
2247
|
+
# A JSON string that describes the permission policy statement. You can
|
2248
|
+
# include a `Policy` parameter in the request instead of using the
|
2249
|
+
# `StatementId`, `Action`, `Principal`, or `Condition` parameters.
|
2250
|
+
#
|
1413
2251
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1414
2252
|
#
|
1415
2253
|
# @example Request syntax with placeholder values
|
1416
2254
|
#
|
1417
2255
|
# resp = client.put_permission({
|
1418
2256
|
# event_bus_name: "NonPartnerEventBusName",
|
1419
|
-
# action: "Action",
|
1420
|
-
# principal: "Principal",
|
1421
|
-
# statement_id: "StatementId",
|
2257
|
+
# action: "Action",
|
2258
|
+
# principal: "Principal",
|
2259
|
+
# statement_id: "StatementId",
|
1422
2260
|
# condition: {
|
1423
2261
|
# type: "String", # required
|
1424
2262
|
# key: "String", # required
|
1425
2263
|
# value: "String", # required
|
1426
2264
|
# },
|
2265
|
+
# policy: "String",
|
1427
2266
|
# })
|
1428
2267
|
#
|
1429
2268
|
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPermission AWS API Documentation
|
@@ -1529,8 +2368,8 @@ module Aws::CloudWatchEvents
|
|
1529
2368
|
# The list of key-value pairs to associate with the rule.
|
1530
2369
|
#
|
1531
2370
|
# @option params [String] :event_bus_name
|
1532
|
-
# The event bus to associate with this rule. If you
|
1533
|
-
# default event bus is used.
|
2371
|
+
# The name or ARN of the event bus to associate with this rule. If you
|
2372
|
+
# omit this, the default event bus is used.
|
1534
2373
|
#
|
1535
2374
|
# @return [Types::PutRuleResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1536
2375
|
#
|
@@ -1551,7 +2390,7 @@ module Aws::CloudWatchEvents
|
|
1551
2390
|
# value: "TagValue", # required
|
1552
2391
|
# },
|
1553
2392
|
# ],
|
1554
|
-
# event_bus_name: "
|
2393
|
+
# event_bus_name: "EventBusNameOrArn",
|
1555
2394
|
# })
|
1556
2395
|
#
|
1557
2396
|
# @example Response structure
|
@@ -1608,6 +2447,8 @@ module Aws::CloudWatchEvents
|
|
1608
2447
|
#
|
1609
2448
|
# * Redshift Clusters to invoke Data API ExecuteStatement on
|
1610
2449
|
#
|
2450
|
+
# * Custom/SaaS HTTPS APIs via EventBridge API Destinations
|
2451
|
+
#
|
1611
2452
|
# Creating rules with built-in targets is supported only in the AWS
|
1612
2453
|
# Management Console. The built-in targets are `EC2 CreateSnapshot API
|
1613
2454
|
# call`, `EC2 RebootInstances API call`, `EC2 StopInstances API call`,
|
@@ -1697,8 +2538,8 @@ module Aws::CloudWatchEvents
|
|
1697
2538
|
# The name of the rule.
|
1698
2539
|
#
|
1699
2540
|
# @option params [String] :event_bus_name
|
1700
|
-
# The name of the event bus associated with the rule. If you omit
|
1701
|
-
# the default event bus is used.
|
2541
|
+
# The name or ARN of the event bus associated with the rule. If you omit
|
2542
|
+
# this, the default event bus is used.
|
1702
2543
|
#
|
1703
2544
|
# @option params [required, Array<Types::Target>] :targets
|
1704
2545
|
# The targets to update or add to the rule.
|
@@ -1712,7 +2553,7 @@ module Aws::CloudWatchEvents
|
|
1712
2553
|
#
|
1713
2554
|
# resp = client.put_targets({
|
1714
2555
|
# rule: "RuleName", # required
|
1715
|
-
# event_bus_name: "
|
2556
|
+
# event_bus_name: "EventBusNameOrArn",
|
1716
2557
|
# targets: [ # required
|
1717
2558
|
# {
|
1718
2559
|
# id: "TargetId", # required
|
@@ -1815,10 +2656,13 @@ module Aws::CloudWatchEvents
|
|
1815
2656
|
# granted it permission with `PutPermission`. You can find the
|
1816
2657
|
# `StatementId` by using DescribeEventBus.
|
1817
2658
|
#
|
1818
|
-
# @option params [
|
2659
|
+
# @option params [String] :statement_id
|
1819
2660
|
# The statement ID corresponding to the account that is no longer
|
1820
2661
|
# allowed to put events to the default event bus.
|
1821
2662
|
#
|
2663
|
+
# @option params [Boolean] :remove_all_permissions
|
2664
|
+
# Specifies whether to remove all permissions.
|
2665
|
+
#
|
1822
2666
|
# @option params [String] :event_bus_name
|
1823
2667
|
# The name of the event bus to revoke permissions for. If you omit this,
|
1824
2668
|
# the default event bus is used.
|
@@ -1828,7 +2672,8 @@ module Aws::CloudWatchEvents
|
|
1828
2672
|
# @example Request syntax with placeholder values
|
1829
2673
|
#
|
1830
2674
|
# resp = client.remove_permission({
|
1831
|
-
# statement_id: "StatementId",
|
2675
|
+
# statement_id: "StatementId",
|
2676
|
+
# remove_all_permissions: false,
|
1832
2677
|
# event_bus_name: "NonPartnerEventBusName",
|
1833
2678
|
# })
|
1834
2679
|
#
|
@@ -1857,7 +2702,8 @@ module Aws::CloudWatchEvents
|
|
1857
2702
|
# The name of the rule.
|
1858
2703
|
#
|
1859
2704
|
# @option params [String] :event_bus_name
|
1860
|
-
# The name of the event bus associated with the rule.
|
2705
|
+
# The name or ARN of the event bus associated with the rule. If you omit
|
2706
|
+
# this, the default event bus is used.
|
1861
2707
|
#
|
1862
2708
|
# @option params [required, Array<String>] :ids
|
1863
2709
|
# The IDs of the targets to remove from the rule.
|
@@ -1878,7 +2724,7 @@ module Aws::CloudWatchEvents
|
|
1878
2724
|
#
|
1879
2725
|
# resp = client.remove_targets({
|
1880
2726
|
# rule: "RuleName", # required
|
1881
|
-
# event_bus_name: "
|
2727
|
+
# event_bus_name: "EventBusNameOrArn",
|
1882
2728
|
# ids: ["TargetId"], # required
|
1883
2729
|
# force: false,
|
1884
2730
|
# })
|
@@ -1900,6 +2746,75 @@ module Aws::CloudWatchEvents
|
|
1900
2746
|
req.send_request(options)
|
1901
2747
|
end
|
1902
2748
|
|
2749
|
+
# Starts the specified replay. Events are not necessarily replayed in
|
2750
|
+
# the exact same order that they were added to the archive. A replay
|
2751
|
+
# processes events to replay based on the time in the event, and replays
|
2752
|
+
# them using 1 minute intervals. If you specify an `EventStartTime` and
|
2753
|
+
# an `EventEndTime` that covers a 20 minute time range, the events are
|
2754
|
+
# replayed from the first minute of that 20 minute range first. Then the
|
2755
|
+
# events from the second minute are replayed. You can use
|
2756
|
+
# `DescribeReplay` to determine the progress of a replay. The value
|
2757
|
+
# returned for `EventLastReplayedTime` indicates the time within the
|
2758
|
+
# specified time range associated with the last event replayed.
|
2759
|
+
#
|
2760
|
+
# @option params [required, String] :replay_name
|
2761
|
+
# The name of the replay to start.
|
2762
|
+
#
|
2763
|
+
# @option params [String] :description
|
2764
|
+
# A description for the replay to start.
|
2765
|
+
#
|
2766
|
+
# @option params [required, String] :event_source_arn
|
2767
|
+
# The ARN of the archive to replay events from.
|
2768
|
+
#
|
2769
|
+
# @option params [required, Time,DateTime,Date,Integer,String] :event_start_time
|
2770
|
+
# A time stamp for the time to start replaying events. Only events that
|
2771
|
+
# occurred between the `EventStartTime` and `EventEndTime` are replayed.
|
2772
|
+
#
|
2773
|
+
# @option params [required, Time,DateTime,Date,Integer,String] :event_end_time
|
2774
|
+
# A time stamp for the time to stop replaying events. Only events that
|
2775
|
+
# occurred between the `EventStartTime` and `EventEndTime` are replayed.
|
2776
|
+
#
|
2777
|
+
# @option params [required, Types::ReplayDestination] :destination
|
2778
|
+
# A `ReplayDestination` object that includes details about the
|
2779
|
+
# destination for the replay.
|
2780
|
+
#
|
2781
|
+
# @return [Types::StartReplayResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2782
|
+
#
|
2783
|
+
# * {Types::StartReplayResponse#replay_arn #replay_arn} => String
|
2784
|
+
# * {Types::StartReplayResponse#state #state} => String
|
2785
|
+
# * {Types::StartReplayResponse#state_reason #state_reason} => String
|
2786
|
+
# * {Types::StartReplayResponse#replay_start_time #replay_start_time} => Time
|
2787
|
+
#
|
2788
|
+
# @example Request syntax with placeholder values
|
2789
|
+
#
|
2790
|
+
# resp = client.start_replay({
|
2791
|
+
# replay_name: "ReplayName", # required
|
2792
|
+
# description: "ReplayDescription",
|
2793
|
+
# event_source_arn: "Arn", # required
|
2794
|
+
# event_start_time: Time.now, # required
|
2795
|
+
# event_end_time: Time.now, # required
|
2796
|
+
# destination: { # required
|
2797
|
+
# arn: "Arn", # required
|
2798
|
+
# filter_arns: ["Arn"],
|
2799
|
+
# },
|
2800
|
+
# })
|
2801
|
+
#
|
2802
|
+
# @example Response structure
|
2803
|
+
#
|
2804
|
+
# resp.replay_arn #=> String
|
2805
|
+
# resp.state #=> String, one of "STARTING", "RUNNING", "CANCELLING", "COMPLETED", "CANCELLED", "FAILED"
|
2806
|
+
# resp.state_reason #=> String
|
2807
|
+
# resp.replay_start_time #=> Time
|
2808
|
+
#
|
2809
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/StartReplay AWS API Documentation
|
2810
|
+
#
|
2811
|
+
# @overload start_replay(params = {})
|
2812
|
+
# @param [Hash] params ({})
|
2813
|
+
def start_replay(params = {}, options = {})
|
2814
|
+
req = build_request(:start_replay, params)
|
2815
|
+
req.send_request(options)
|
2816
|
+
end
|
2817
|
+
|
1903
2818
|
# Assigns one or more tags (key-value pairs) to the specified
|
1904
2819
|
# EventBridge resource. Tags can help you organize and categorize your
|
1905
2820
|
# resources. You can also use them to scope user permissions by granting
|
@@ -1963,7 +2878,27 @@ module Aws::CloudWatchEvents
|
|
1963
2878
|
# [1]: https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html
|
1964
2879
|
#
|
1965
2880
|
# @option params [required, String] :event
|
1966
|
-
# The event, in JSON format, to test against the event pattern.
|
2881
|
+
# The event, in JSON format, to test against the event pattern. The JSON
|
2882
|
+
# must follow the format specified in [AWS Events][1], and the following
|
2883
|
+
# fields are mandatory:
|
2884
|
+
#
|
2885
|
+
# * `id`
|
2886
|
+
#
|
2887
|
+
# * `account`
|
2888
|
+
#
|
2889
|
+
# * `source`
|
2890
|
+
#
|
2891
|
+
# * `time`
|
2892
|
+
#
|
2893
|
+
# * `region`
|
2894
|
+
#
|
2895
|
+
# * `resources`
|
2896
|
+
#
|
2897
|
+
# * `detail-type`
|
2898
|
+
#
|
2899
|
+
#
|
2900
|
+
#
|
2901
|
+
# [1]: https://docs.aws.amazon.com/eventbridge/latest/userguide/aws-events.html
|
1967
2902
|
#
|
1968
2903
|
# @return [Types::TestEventPatternResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1969
2904
|
#
|
@@ -2017,6 +2952,218 @@ module Aws::CloudWatchEvents
|
|
2017
2952
|
req.send_request(options)
|
2018
2953
|
end
|
2019
2954
|
|
2955
|
+
# Updates an API destination.
|
2956
|
+
#
|
2957
|
+
# @option params [required, String] :name
|
2958
|
+
# The name of the API destination to update.
|
2959
|
+
#
|
2960
|
+
# @option params [String] :description
|
2961
|
+
# The name of the API destination to update.
|
2962
|
+
#
|
2963
|
+
# @option params [String] :connection_arn
|
2964
|
+
# The ARN of the connection to use for the API destination.
|
2965
|
+
#
|
2966
|
+
# @option params [String] :invocation_endpoint
|
2967
|
+
# The URL to the endpoint to use for the API destination.
|
2968
|
+
#
|
2969
|
+
# @option params [String] :http_method
|
2970
|
+
# The method to use for the API destination.
|
2971
|
+
#
|
2972
|
+
# @option params [Integer] :invocation_rate_limit_per_second
|
2973
|
+
# The maximum number of invocations per second to send to the API
|
2974
|
+
# destination.
|
2975
|
+
#
|
2976
|
+
# @return [Types::UpdateApiDestinationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2977
|
+
#
|
2978
|
+
# * {Types::UpdateApiDestinationResponse#api_destination_arn #api_destination_arn} => String
|
2979
|
+
# * {Types::UpdateApiDestinationResponse#api_destination_state #api_destination_state} => String
|
2980
|
+
# * {Types::UpdateApiDestinationResponse#creation_time #creation_time} => Time
|
2981
|
+
# * {Types::UpdateApiDestinationResponse#last_modified_time #last_modified_time} => Time
|
2982
|
+
#
|
2983
|
+
# @example Request syntax with placeholder values
|
2984
|
+
#
|
2985
|
+
# resp = client.update_api_destination({
|
2986
|
+
# name: "ApiDestinationName", # required
|
2987
|
+
# description: "ApiDestinationDescription",
|
2988
|
+
# connection_arn: "ConnectionArn",
|
2989
|
+
# invocation_endpoint: "HttpsEndpoint",
|
2990
|
+
# http_method: "POST", # accepts POST, GET, HEAD, OPTIONS, PUT, PATCH, DELETE
|
2991
|
+
# invocation_rate_limit_per_second: 1,
|
2992
|
+
# })
|
2993
|
+
#
|
2994
|
+
# @example Response structure
|
2995
|
+
#
|
2996
|
+
# resp.api_destination_arn #=> String
|
2997
|
+
# resp.api_destination_state #=> String, one of "ACTIVE", "INACTIVE"
|
2998
|
+
# resp.creation_time #=> Time
|
2999
|
+
# resp.last_modified_time #=> Time
|
3000
|
+
#
|
3001
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UpdateApiDestination AWS API Documentation
|
3002
|
+
#
|
3003
|
+
# @overload update_api_destination(params = {})
|
3004
|
+
# @param [Hash] params ({})
|
3005
|
+
def update_api_destination(params = {}, options = {})
|
3006
|
+
req = build_request(:update_api_destination, params)
|
3007
|
+
req.send_request(options)
|
3008
|
+
end
|
3009
|
+
|
3010
|
+
# Updates the specified archive.
|
3011
|
+
#
|
3012
|
+
# @option params [required, String] :archive_name
|
3013
|
+
# The name of the archive to update.
|
3014
|
+
#
|
3015
|
+
# @option params [String] :description
|
3016
|
+
# The description for the archive.
|
3017
|
+
#
|
3018
|
+
# @option params [String] :event_pattern
|
3019
|
+
# The event pattern to use to filter events sent to the archive.
|
3020
|
+
#
|
3021
|
+
# @option params [Integer] :retention_days
|
3022
|
+
# The number of days to retain events in the archive.
|
3023
|
+
#
|
3024
|
+
# @return [Types::UpdateArchiveResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3025
|
+
#
|
3026
|
+
# * {Types::UpdateArchiveResponse#archive_arn #archive_arn} => String
|
3027
|
+
# * {Types::UpdateArchiveResponse#state #state} => String
|
3028
|
+
# * {Types::UpdateArchiveResponse#state_reason #state_reason} => String
|
3029
|
+
# * {Types::UpdateArchiveResponse#creation_time #creation_time} => Time
|
3030
|
+
#
|
3031
|
+
# @example Request syntax with placeholder values
|
3032
|
+
#
|
3033
|
+
# resp = client.update_archive({
|
3034
|
+
# archive_name: "ArchiveName", # required
|
3035
|
+
# description: "ArchiveDescription",
|
3036
|
+
# event_pattern: "EventPattern",
|
3037
|
+
# retention_days: 1,
|
3038
|
+
# })
|
3039
|
+
#
|
3040
|
+
# @example Response structure
|
3041
|
+
#
|
3042
|
+
# resp.archive_arn #=> String
|
3043
|
+
# resp.state #=> String, one of "ENABLED", "DISABLED", "CREATING", "UPDATING", "CREATE_FAILED", "UPDATE_FAILED"
|
3044
|
+
# resp.state_reason #=> String
|
3045
|
+
# resp.creation_time #=> Time
|
3046
|
+
#
|
3047
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UpdateArchive AWS API Documentation
|
3048
|
+
#
|
3049
|
+
# @overload update_archive(params = {})
|
3050
|
+
# @param [Hash] params ({})
|
3051
|
+
def update_archive(params = {}, options = {})
|
3052
|
+
req = build_request(:update_archive, params)
|
3053
|
+
req.send_request(options)
|
3054
|
+
end
|
3055
|
+
|
3056
|
+
# Updates settings for a connection.
|
3057
|
+
#
|
3058
|
+
# @option params [required, String] :name
|
3059
|
+
# The name of the connection to update.
|
3060
|
+
#
|
3061
|
+
# @option params [String] :description
|
3062
|
+
# A description for the connection.
|
3063
|
+
#
|
3064
|
+
# @option params [String] :authorization_type
|
3065
|
+
# The type of authorization to use for the connection.
|
3066
|
+
#
|
3067
|
+
# @option params [Types::UpdateConnectionAuthRequestParameters] :auth_parameters
|
3068
|
+
# The authorization parameters to use for the connection.
|
3069
|
+
#
|
3070
|
+
# @return [Types::UpdateConnectionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3071
|
+
#
|
3072
|
+
# * {Types::UpdateConnectionResponse#connection_arn #connection_arn} => String
|
3073
|
+
# * {Types::UpdateConnectionResponse#connection_state #connection_state} => String
|
3074
|
+
# * {Types::UpdateConnectionResponse#creation_time #creation_time} => Time
|
3075
|
+
# * {Types::UpdateConnectionResponse#last_modified_time #last_modified_time} => Time
|
3076
|
+
# * {Types::UpdateConnectionResponse#last_authorized_time #last_authorized_time} => Time
|
3077
|
+
#
|
3078
|
+
# @example Request syntax with placeholder values
|
3079
|
+
#
|
3080
|
+
# resp = client.update_connection({
|
3081
|
+
# name: "ConnectionName", # required
|
3082
|
+
# description: "ConnectionDescription",
|
3083
|
+
# authorization_type: "BASIC", # accepts BASIC, OAUTH_CLIENT_CREDENTIALS, API_KEY
|
3084
|
+
# auth_parameters: {
|
3085
|
+
# basic_auth_parameters: {
|
3086
|
+
# username: "AuthHeaderParameters",
|
3087
|
+
# password: "AuthHeaderParameters",
|
3088
|
+
# },
|
3089
|
+
# o_auth_parameters: {
|
3090
|
+
# client_parameters: {
|
3091
|
+
# client_id: "AuthHeaderParameters",
|
3092
|
+
# client_secret: "AuthHeaderParameters",
|
3093
|
+
# },
|
3094
|
+
# authorization_endpoint: "HttpsEndpoint",
|
3095
|
+
# http_method: "GET", # accepts GET, POST, PUT
|
3096
|
+
# o_auth_http_parameters: {
|
3097
|
+
# header_parameters: [
|
3098
|
+
# {
|
3099
|
+
# key: "HeaderKey",
|
3100
|
+
# value: "HeaderValue",
|
3101
|
+
# is_value_secret: false,
|
3102
|
+
# },
|
3103
|
+
# ],
|
3104
|
+
# query_string_parameters: [
|
3105
|
+
# {
|
3106
|
+
# key: "QueryStringKey",
|
3107
|
+
# value: "QueryStringValue",
|
3108
|
+
# is_value_secret: false,
|
3109
|
+
# },
|
3110
|
+
# ],
|
3111
|
+
# body_parameters: [
|
3112
|
+
# {
|
3113
|
+
# key: "String",
|
3114
|
+
# value: "String",
|
3115
|
+
# is_value_secret: false,
|
3116
|
+
# },
|
3117
|
+
# ],
|
3118
|
+
# },
|
3119
|
+
# },
|
3120
|
+
# api_key_auth_parameters: {
|
3121
|
+
# api_key_name: "AuthHeaderParameters",
|
3122
|
+
# api_key_value: "AuthHeaderParameters",
|
3123
|
+
# },
|
3124
|
+
# invocation_http_parameters: {
|
3125
|
+
# header_parameters: [
|
3126
|
+
# {
|
3127
|
+
# key: "HeaderKey",
|
3128
|
+
# value: "HeaderValue",
|
3129
|
+
# is_value_secret: false,
|
3130
|
+
# },
|
3131
|
+
# ],
|
3132
|
+
# query_string_parameters: [
|
3133
|
+
# {
|
3134
|
+
# key: "QueryStringKey",
|
3135
|
+
# value: "QueryStringValue",
|
3136
|
+
# is_value_secret: false,
|
3137
|
+
# },
|
3138
|
+
# ],
|
3139
|
+
# body_parameters: [
|
3140
|
+
# {
|
3141
|
+
# key: "String",
|
3142
|
+
# value: "String",
|
3143
|
+
# is_value_secret: false,
|
3144
|
+
# },
|
3145
|
+
# ],
|
3146
|
+
# },
|
3147
|
+
# },
|
3148
|
+
# })
|
3149
|
+
#
|
3150
|
+
# @example Response structure
|
3151
|
+
#
|
3152
|
+
# resp.connection_arn #=> String
|
3153
|
+
# resp.connection_state #=> String, one of "CREATING", "UPDATING", "DELETING", "AUTHORIZED", "DEAUTHORIZED", "AUTHORIZING", "DEAUTHORIZING"
|
3154
|
+
# resp.creation_time #=> Time
|
3155
|
+
# resp.last_modified_time #=> Time
|
3156
|
+
# resp.last_authorized_time #=> Time
|
3157
|
+
#
|
3158
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/UpdateConnection AWS API Documentation
|
3159
|
+
#
|
3160
|
+
# @overload update_connection(params = {})
|
3161
|
+
# @param [Hash] params ({})
|
3162
|
+
def update_connection(params = {}, options = {})
|
3163
|
+
req = build_request(:update_connection, params)
|
3164
|
+
req.send_request(options)
|
3165
|
+
end
|
3166
|
+
|
2020
3167
|
# @!endgroup
|
2021
3168
|
|
2022
3169
|
# @param params ({})
|
@@ -2030,7 +3177,7 @@ module Aws::CloudWatchEvents
|
|
2030
3177
|
params: params,
|
2031
3178
|
config: config)
|
2032
3179
|
context[:gem_name] = 'aws-sdk-cloudwatchevents'
|
2033
|
-
context[:gem_version] = '1.
|
3180
|
+
context[:gem_version] = '1.43.0'
|
2034
3181
|
Seahorse::Client::Request.new(handlers, context)
|
2035
3182
|
end
|
2036
3183
|
|