aws-sdk-synthetics 1.23.0 → 1.24.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-synthetics/client.rb +70 -5
- data/lib/aws-sdk-synthetics/client_api.rb +14 -0
- data/lib/aws-sdk-synthetics/errors.rb +16 -0
- data/lib/aws-sdk-synthetics/types.rb +61 -3
- data/lib/aws-sdk-synthetics.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef6c0f77e8ee3ee6e0721111a64ddc60ef13323bda6f551719276c94140baca1
|
4
|
+
data.tar.gz: b865b3fb7efde95a4fb7b1a8f10651f9f4a1552e46835897ebb2a8b7485b9068
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf4258a8aea33367df051252fbfb49d8329f8956dc4fe56033674c80f78ecf86315c4cf36a966158a4d7e3eb7ffd0bf2ed9b1eb74d16a9b70cb8800a8794e11e
|
7
|
+
data.tar.gz: bbbbf3d8949b7bbe08d41fb4e268e4865e524c638989a630192a1079b6bdb2d0878f218b0e65bda459ca428505102881ba6d5f64f8fe61fb63a629ae26771df0
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.24.0
|
@@ -618,10 +618,21 @@ module Aws::Synthetics
|
|
618
618
|
# This operation returns a list of the canaries in your account, along
|
619
619
|
# with full details about each canary.
|
620
620
|
#
|
621
|
-
# This operation
|
622
|
-
#
|
623
|
-
#
|
624
|
-
#
|
621
|
+
# This operation supports resource-level authorization using an IAM
|
622
|
+
# policy and the `Names` parameter. If you specify the `Names`
|
623
|
+
# parameter, the operation is successful only if you have authorization
|
624
|
+
# to view all the canaries that you specify in your request. If you do
|
625
|
+
# not have permission to view any of the canaries, the request fails
|
626
|
+
# with a 403 response.
|
627
|
+
#
|
628
|
+
# You are required to use the `Names` parameter if you are logged on to
|
629
|
+
# a user or role that has an IAM policy that restricts which canaries
|
630
|
+
# that you are allowed to view. For more information, see [ Limiting a
|
631
|
+
# user to viewing specific canaries][1].
|
632
|
+
#
|
633
|
+
#
|
634
|
+
#
|
635
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Restricted.html
|
625
636
|
#
|
626
637
|
# @option params [String] :next_token
|
627
638
|
# A token that indicates that there is more data available. You can use
|
@@ -633,6 +644,24 @@ module Aws::Synthetics
|
|
633
644
|
# time you use the `DescribeCanaries` operation. If you omit this
|
634
645
|
# parameter, the default of 100 is used.
|
635
646
|
#
|
647
|
+
# @option params [Array<String>] :names
|
648
|
+
# Use this parameter to return only canaries that match the names that
|
649
|
+
# you specify here. You can specify as many as five canary names.
|
650
|
+
#
|
651
|
+
# If you specify this parameter, the operation is successful only if you
|
652
|
+
# have authorization to view all the canaries that you specify in your
|
653
|
+
# request. If you do not have permission to view any of the canaries,
|
654
|
+
# the request fails with a 403 response.
|
655
|
+
#
|
656
|
+
# You are required to use this parameter if you are logged on to a user
|
657
|
+
# or role that has an IAM policy that restricts which canaries that you
|
658
|
+
# are allowed to view. For more information, see [ Limiting a user to
|
659
|
+
# viewing specific canaries][1].
|
660
|
+
#
|
661
|
+
#
|
662
|
+
#
|
663
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Restricted.html
|
664
|
+
#
|
636
665
|
# @return [Types::DescribeCanariesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
637
666
|
#
|
638
667
|
# * {Types::DescribeCanariesResponse#canaries #canaries} => Array<Types::Canary>
|
@@ -645,6 +674,7 @@ module Aws::Synthetics
|
|
645
674
|
# resp = client.describe_canaries({
|
646
675
|
# next_token: "Token",
|
647
676
|
# max_results: 1,
|
677
|
+
# names: ["CanaryName"],
|
648
678
|
# })
|
649
679
|
#
|
650
680
|
# @example Response structure
|
@@ -700,6 +730,22 @@ module Aws::Synthetics
|
|
700
730
|
# Use this operation to see information from the most recent run of each
|
701
731
|
# canary that you have created.
|
702
732
|
#
|
733
|
+
# This operation supports resource-level authorization using an IAM
|
734
|
+
# policy and the `Names` parameter. If you specify the `Names`
|
735
|
+
# parameter, the operation is successful only if you have authorization
|
736
|
+
# to view all the canaries that you specify in your request. If you do
|
737
|
+
# not have permission to view any of the canaries, the request fails
|
738
|
+
# with a 403 response.
|
739
|
+
#
|
740
|
+
# You are required to use the `Names` parameter if you are logged on to
|
741
|
+
# a user or role that has an IAM policy that restricts which canaries
|
742
|
+
# that you are allowed to view. For more information, see [ Limiting a
|
743
|
+
# user to viewing specific canaries][1].
|
744
|
+
#
|
745
|
+
#
|
746
|
+
#
|
747
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Restricted.html
|
748
|
+
#
|
703
749
|
# @option params [String] :next_token
|
704
750
|
# A token that indicates that there is more data available. You can use
|
705
751
|
# this token in a subsequent `DescribeCanaries` operation to retrieve
|
@@ -710,6 +756,24 @@ module Aws::Synthetics
|
|
710
756
|
# you use the `DescribeLastRun` operation. If you omit this parameter,
|
711
757
|
# the default of 100 is used.
|
712
758
|
#
|
759
|
+
# @option params [Array<String>] :names
|
760
|
+
# Use this parameter to return only canaries that match the names that
|
761
|
+
# you specify here. You can specify as many as five canary names.
|
762
|
+
#
|
763
|
+
# If you specify this parameter, the operation is successful only if you
|
764
|
+
# have authorization to view all the canaries that you specify in your
|
765
|
+
# request. If you do not have permission to view any of the canaries,
|
766
|
+
# the request fails with a 403 response.
|
767
|
+
#
|
768
|
+
# You are required to use the `Names` parameter if you are logged on to
|
769
|
+
# a user or role that has an IAM policy that restricts which canaries
|
770
|
+
# that you are allowed to view. For more information, see [ Limiting a
|
771
|
+
# user to viewing specific canaries][1].
|
772
|
+
#
|
773
|
+
#
|
774
|
+
#
|
775
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Restricted.html
|
776
|
+
#
|
713
777
|
# @return [Types::DescribeCanariesLastRunResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
714
778
|
#
|
715
779
|
# * {Types::DescribeCanariesLastRunResponse#canaries_last_run #canaries_last_run} => Array<Types::CanaryLastRun>
|
@@ -722,6 +786,7 @@ module Aws::Synthetics
|
|
722
786
|
# resp = client.describe_canaries_last_run({
|
723
787
|
# next_token: "Token",
|
724
788
|
# max_results: 1,
|
789
|
+
# names: ["CanaryName"],
|
725
790
|
# })
|
726
791
|
#
|
727
792
|
# @example Response structure
|
@@ -1268,7 +1333,7 @@ module Aws::Synthetics
|
|
1268
1333
|
params: params,
|
1269
1334
|
config: config)
|
1270
1335
|
context[:gem_name] = 'aws-sdk-synthetics'
|
1271
|
-
context[:gem_version] = '1.
|
1336
|
+
context[:gem_version] = '1.24.0'
|
1272
1337
|
Seahorse::Client::Request.new(handlers, context)
|
1273
1338
|
end
|
1274
1339
|
|
@@ -47,8 +47,10 @@ module Aws::Synthetics
|
|
47
47
|
CreateCanaryResponse = Shapes::StructureShape.new(name: 'CreateCanaryResponse')
|
48
48
|
DeleteCanaryRequest = Shapes::StructureShape.new(name: 'DeleteCanaryRequest')
|
49
49
|
DeleteCanaryResponse = Shapes::StructureShape.new(name: 'DeleteCanaryResponse')
|
50
|
+
DescribeCanariesLastRunNameFilter = Shapes::ListShape.new(name: 'DescribeCanariesLastRunNameFilter')
|
50
51
|
DescribeCanariesLastRunRequest = Shapes::StructureShape.new(name: 'DescribeCanariesLastRunRequest')
|
51
52
|
DescribeCanariesLastRunResponse = Shapes::StructureShape.new(name: 'DescribeCanariesLastRunResponse')
|
53
|
+
DescribeCanariesNameFilter = Shapes::ListShape.new(name: 'DescribeCanariesNameFilter')
|
52
54
|
DescribeCanariesRequest = Shapes::StructureShape.new(name: 'DescribeCanariesRequest')
|
53
55
|
DescribeCanariesResponse = Shapes::StructureShape.new(name: 'DescribeCanariesResponse')
|
54
56
|
DescribeRuntimeVersionsRequest = Shapes::StructureShape.new(name: 'DescribeRuntimeVersionsRequest')
|
@@ -74,6 +76,7 @@ module Aws::Synthetics
|
|
74
76
|
MaxSize1024 = Shapes::IntegerShape.new(name: 'MaxSize1024')
|
75
77
|
MaxSize3008 = Shapes::IntegerShape.new(name: 'MaxSize3008')
|
76
78
|
NullableBoolean = Shapes::BooleanShape.new(name: 'NullableBoolean')
|
79
|
+
RequestEntityTooLargeException = Shapes::StructureShape.new(name: 'RequestEntityTooLargeException')
|
77
80
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
78
81
|
RoleArn = Shapes::StringShape.new(name: 'RoleArn')
|
79
82
|
RuntimeVersion = Shapes::StructureShape.new(name: 'RuntimeVersion')
|
@@ -233,16 +236,22 @@ module Aws::Synthetics
|
|
233
236
|
|
234
237
|
DeleteCanaryResponse.struct_class = Types::DeleteCanaryResponse
|
235
238
|
|
239
|
+
DescribeCanariesLastRunNameFilter.member = Shapes::ShapeRef.new(shape: CanaryName)
|
240
|
+
|
236
241
|
DescribeCanariesLastRunRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
|
237
242
|
DescribeCanariesLastRunRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxSize100, location_name: "MaxResults"))
|
243
|
+
DescribeCanariesLastRunRequest.add_member(:names, Shapes::ShapeRef.new(shape: DescribeCanariesLastRunNameFilter, location_name: "Names"))
|
238
244
|
DescribeCanariesLastRunRequest.struct_class = Types::DescribeCanariesLastRunRequest
|
239
245
|
|
240
246
|
DescribeCanariesLastRunResponse.add_member(:canaries_last_run, Shapes::ShapeRef.new(shape: CanariesLastRun, location_name: "CanariesLastRun"))
|
241
247
|
DescribeCanariesLastRunResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
|
242
248
|
DescribeCanariesLastRunResponse.struct_class = Types::DescribeCanariesLastRunResponse
|
243
249
|
|
250
|
+
DescribeCanariesNameFilter.member = Shapes::ShapeRef.new(shape: CanaryName)
|
251
|
+
|
244
252
|
DescribeCanariesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
|
245
253
|
DescribeCanariesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxCanaryResults, location_name: "MaxResults"))
|
254
|
+
DescribeCanariesRequest.add_member(:names, Shapes::ShapeRef.new(shape: DescribeCanariesNameFilter, location_name: "Names"))
|
246
255
|
DescribeCanariesRequest.struct_class = Types::DescribeCanariesRequest
|
247
256
|
|
248
257
|
DescribeCanariesResponse.add_member(:canaries, Shapes::ShapeRef.new(shape: Canaries, location_name: "Canaries"))
|
@@ -284,6 +293,9 @@ module Aws::Synthetics
|
|
284
293
|
ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
|
285
294
|
ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
|
286
295
|
|
296
|
+
RequestEntityTooLargeException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
297
|
+
RequestEntityTooLargeException.struct_class = Types::RequestEntityTooLargeException
|
298
|
+
|
287
299
|
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
288
300
|
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
289
301
|
|
@@ -393,6 +405,7 @@ module Aws::Synthetics
|
|
393
405
|
o.output = Shapes::ShapeRef.new(shape: CreateCanaryResponse)
|
394
406
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
395
407
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
408
|
+
o.errors << Shapes::ShapeRef.new(shape: RequestEntityTooLargeException)
|
396
409
|
end)
|
397
410
|
|
398
411
|
api.add_operation(:delete_canary, Seahorse::Model::Operation.new.tap do |o|
|
@@ -549,6 +562,7 @@ module Aws::Synthetics
|
|
549
562
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
550
563
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
551
564
|
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
565
|
+
o.errors << Shapes::ShapeRef.new(shape: RequestEntityTooLargeException)
|
552
566
|
end)
|
553
567
|
end
|
554
568
|
|
@@ -29,6 +29,7 @@ module Aws::Synthetics
|
|
29
29
|
# ## Error Classes
|
30
30
|
# * {ConflictException}
|
31
31
|
# * {InternalServerException}
|
32
|
+
# * {RequestEntityTooLargeException}
|
32
33
|
# * {ResourceNotFoundException}
|
33
34
|
# * {ValidationException}
|
34
35
|
#
|
@@ -68,6 +69,21 @@ module Aws::Synthetics
|
|
68
69
|
end
|
69
70
|
end
|
70
71
|
|
72
|
+
class RequestEntityTooLargeException < ServiceError
|
73
|
+
|
74
|
+
# @param [Seahorse::Client::RequestContext] context
|
75
|
+
# @param [String] message
|
76
|
+
# @param [Aws::Synthetics::Types::RequestEntityTooLargeException] data
|
77
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
78
|
+
super(context, message, data)
|
79
|
+
end
|
80
|
+
|
81
|
+
# @return [String]
|
82
|
+
def message
|
83
|
+
@message || @data[:message]
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
71
87
|
class ResourceNotFoundException < ServiceError
|
72
88
|
|
73
89
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -261,7 +261,10 @@ module Aws::Synthetics
|
|
261
261
|
# If you input your canary script directly into the canary instead of
|
262
262
|
# referring to an S3 location, the value of this parameter is the
|
263
263
|
# base64-encoded contents of the .zip file that contains the script.
|
264
|
-
# It must be smaller than
|
264
|
+
# It must be smaller than 225 Kb.
|
265
|
+
#
|
266
|
+
# For large canary scripts, we recommend that you use an S3 location
|
267
|
+
# instead of inputting it directly with this parameter.
|
265
268
|
# @return [String]
|
266
269
|
#
|
267
270
|
# @!attribute [rw] handler
|
@@ -881,6 +884,7 @@ module Aws::Synthetics
|
|
881
884
|
# {
|
882
885
|
# next_token: "Token",
|
883
886
|
# max_results: 1,
|
887
|
+
# names: ["CanaryName"],
|
884
888
|
# }
|
885
889
|
#
|
886
890
|
# @!attribute [rw] next_token
|
@@ -895,11 +899,31 @@ module Aws::Synthetics
|
|
895
899
|
# the default of 100 is used.
|
896
900
|
# @return [Integer]
|
897
901
|
#
|
902
|
+
# @!attribute [rw] names
|
903
|
+
# Use this parameter to return only canaries that match the names that
|
904
|
+
# you specify here. You can specify as many as five canary names.
|
905
|
+
#
|
906
|
+
# If you specify this parameter, the operation is successful only if
|
907
|
+
# you have authorization to view all the canaries that you specify in
|
908
|
+
# your request. If you do not have permission to view any of the
|
909
|
+
# canaries, the request fails with a 403 response.
|
910
|
+
#
|
911
|
+
# You are required to use the `Names` parameter if you are logged on
|
912
|
+
# to a user or role that has an IAM policy that restricts which
|
913
|
+
# canaries that you are allowed to view. For more information, see [
|
914
|
+
# Limiting a user to viewing specific canaries][1].
|
915
|
+
#
|
916
|
+
#
|
917
|
+
#
|
918
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Restricted.html
|
919
|
+
# @return [Array<String>]
|
920
|
+
#
|
898
921
|
# @see http://docs.aws.amazon.com/goto/WebAPI/synthetics-2017-10-11/DescribeCanariesLastRunRequest AWS API Documentation
|
899
922
|
#
|
900
923
|
class DescribeCanariesLastRunRequest < Struct.new(
|
901
924
|
:next_token,
|
902
|
-
:max_results
|
925
|
+
:max_results,
|
926
|
+
:names)
|
903
927
|
SENSITIVE = []
|
904
928
|
include Aws::Structure
|
905
929
|
end
|
@@ -930,6 +954,7 @@ module Aws::Synthetics
|
|
930
954
|
# {
|
931
955
|
# next_token: "Token",
|
932
956
|
# max_results: 1,
|
957
|
+
# names: ["CanaryName"],
|
933
958
|
# }
|
934
959
|
#
|
935
960
|
# @!attribute [rw] next_token
|
@@ -944,11 +969,31 @@ module Aws::Synthetics
|
|
944
969
|
# parameter, the default of 100 is used.
|
945
970
|
# @return [Integer]
|
946
971
|
#
|
972
|
+
# @!attribute [rw] names
|
973
|
+
# Use this parameter to return only canaries that match the names that
|
974
|
+
# you specify here. You can specify as many as five canary names.
|
975
|
+
#
|
976
|
+
# If you specify this parameter, the operation is successful only if
|
977
|
+
# you have authorization to view all the canaries that you specify in
|
978
|
+
# your request. If you do not have permission to view any of the
|
979
|
+
# canaries, the request fails with a 403 response.
|
980
|
+
#
|
981
|
+
# You are required to use this parameter if you are logged on to a
|
982
|
+
# user or role that has an IAM policy that restricts which canaries
|
983
|
+
# that you are allowed to view. For more information, see [ Limiting a
|
984
|
+
# user to viewing specific canaries][1].
|
985
|
+
#
|
986
|
+
#
|
987
|
+
#
|
988
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Restricted.html
|
989
|
+
# @return [Array<String>]
|
990
|
+
#
|
947
991
|
# @see http://docs.aws.amazon.com/goto/WebAPI/synthetics-2017-10-11/DescribeCanariesRequest AWS API Documentation
|
948
992
|
#
|
949
993
|
class DescribeCanariesRequest < Struct.new(
|
950
994
|
:next_token,
|
951
|
-
:max_results
|
995
|
+
:max_results,
|
996
|
+
:names)
|
952
997
|
SENSITIVE = []
|
953
998
|
include Aws::Structure
|
954
999
|
end
|
@@ -1156,6 +1201,19 @@ module Aws::Synthetics
|
|
1156
1201
|
include Aws::Structure
|
1157
1202
|
end
|
1158
1203
|
|
1204
|
+
# One of the input resources is larger than is allowed.
|
1205
|
+
#
|
1206
|
+
# @!attribute [rw] message
|
1207
|
+
# @return [String]
|
1208
|
+
#
|
1209
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/synthetics-2017-10-11/RequestEntityTooLargeException AWS API Documentation
|
1210
|
+
#
|
1211
|
+
class RequestEntityTooLargeException < Struct.new(
|
1212
|
+
:message)
|
1213
|
+
SENSITIVE = []
|
1214
|
+
include Aws::Structure
|
1215
|
+
end
|
1216
|
+
|
1159
1217
|
# One of the specified resources was not found.
|
1160
1218
|
#
|
1161
1219
|
# @!attribute [rw] message
|
data/lib/aws-sdk-synthetics.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-synthetics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.24.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-02-
|
11
|
+
date: 2022-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|