aws-sdk-synthetics 1.5.0 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0e3f2d99c7275fc57d83dd5e935a47dfbef47e48f02985a2062ebc8612d5cf3b
4
- data.tar.gz: 3ab57bd22ed9f00f880d8495bbb72fa1fa882abcd8f8f60778f873af7f6cdef4
3
+ metadata.gz: d77ffc9e6b30e991c4bfbc3e443ba8ccba5d84ca5d5398ad0f633ea7a492ccd1
4
+ data.tar.gz: 6c519143fc3b952b3888e31d110101b82d96703ca6efe9b2a8e19af8d8289a91
5
5
  SHA512:
6
- metadata.gz: c4dbf880d7635eadb8664936f65b90eea22467c78e79bbfc02447d91c4b967b2a71928bf53f97d0acf5e48b2df58eabea1c5718fbe8afda69db385fb37880c5a
7
- data.tar.gz: f67261988e37c31dcf3e72aa3ceb8991b01a8380e49c8359845a9b9bbc90a9f36579b9863c31dd3bf98baedb10531c487cf4e3c26ed20982c52ab70c04851512
6
+ metadata.gz: 91cd051382515976415efec63dc4f7bed1e97e02e31139a16c4cb73c0e39e2799731ed0bf4506a015dd439fd32fe0f811f80e7a7b75017c078df241f597d99fa
7
+ data.tar.gz: c582d6a2f28507e2789ed1107af9b65ca0b5c552fbb12e9aa572564054c103c5478343ab135f8f797be6e1ea04673170fc092b4221ef6d939f88e0c31de531ce
@@ -7,6 +7,7 @@
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
10
+
10
11
  require 'aws-sdk-core'
11
12
  require 'aws-sigv4'
12
13
 
@@ -44,9 +45,9 @@ require_relative 'aws-sdk-synthetics/customizations'
44
45
  #
45
46
  # See {Errors} for more information.
46
47
  #
47
- # @service
48
+ # @!group service
48
49
  module Aws::Synthetics
49
50
 
50
- GEM_VERSION = '1.5.0'
51
+ GEM_VERSION = '1.10.0'
51
52
 
52
53
  end
@@ -85,13 +85,28 @@ module Aws::Synthetics
85
85
  # * `Aws::Credentials` - Used for configuring static, non-refreshing
86
86
  # credentials.
87
87
  #
88
+ # * `Aws::SharedCredentials` - Used for loading static credentials from a
89
+ # shared file, such as `~/.aws/config`.
90
+ #
91
+ # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
92
+ #
93
+ # * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
94
+ # assume a role after providing credentials via the web.
95
+ #
96
+ # * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
97
+ # access token generated from `aws login`.
98
+ #
99
+ # * `Aws::ProcessCredentials` - Used for loading credentials from a
100
+ # process that outputs to stdout.
101
+ #
88
102
  # * `Aws::InstanceProfileCredentials` - Used for loading credentials
89
103
  # from an EC2 IMDS on an EC2 instance.
90
104
  #
91
- # * `Aws::SharedCredentials` - Used for loading credentials from a
92
- # shared file, such as `~/.aws/config`.
105
+ # * `Aws::ECSCredentials` - Used for loading credentials from
106
+ # instances running in ECS.
93
107
  #
94
- # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
108
+ # * `Aws::CognitoIdentityCredentials` - Used for loading credentials
109
+ # from the Cognito Identity service.
95
110
  #
96
111
  # When `:credentials` are not configured directly, the following
97
112
  # locations will be searched for credentials:
@@ -101,10 +116,10 @@ module Aws::Synthetics
101
116
  # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
102
117
  # * `~/.aws/credentials`
103
118
  # * `~/.aws/config`
104
- # * EC2 IMDS instance profile - When used by default, the timeouts are
105
- # very aggressive. Construct and pass an instance of
106
- # `Aws::InstanceProfileCredentails` to enable retries and extended
107
- # timeouts.
119
+ # * EC2/ECS IMDS instance profile - When used by default, the timeouts
120
+ # are very aggressive. Construct and pass an instance of
121
+ # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
122
+ # enable retries and extended timeouts.
108
123
  #
109
124
  # @option options [required, String] :region
110
125
  # The AWS region to connect to. The configured `:region` is
@@ -380,7 +395,7 @@ module Aws::Synthetics
380
395
  #
381
396
  # * `logs:CreateLogStream`
382
397
  #
383
- # * `logs:CreateLogStream`
398
+ # * `logs:PutLogEvents`
384
399
  #
385
400
  # @option params [required, Types::CanaryScheduleInput] :schedule
386
401
  # A structure that contains information about how often the canary is to
@@ -401,9 +416,9 @@ module Aws::Synthetics
401
416
  # is 1 to 455 days.
402
417
  #
403
418
  # @option params [required, String] :runtime_version
404
- # Specifies the runtime version to use for the canary. Currently, the
405
- # only valid value is `syn-1.0`. For more information about runtime
406
- # versions, see [ Canary Runtime Versions][1].
419
+ # Specifies the runtime version to use for the canary. For a list of
420
+ # valid runtime versions and more information about runtime versions,
421
+ # see [ Canary Runtime Versions][1].
407
422
  #
408
423
  #
409
424
  #
@@ -442,14 +457,18 @@ module Aws::Synthetics
442
457
  # handler: "String", # required
443
458
  # },
444
459
  # artifact_s3_location: "String", # required
445
- # execution_role_arn: "Arn", # required
460
+ # execution_role_arn: "RoleArn", # required
446
461
  # schedule: { # required
447
462
  # expression: "String", # required
448
463
  # duration_in_seconds: 1,
449
464
  # },
450
465
  # run_config: {
451
- # timeout_in_seconds: 1, # required
466
+ # timeout_in_seconds: 1,
452
467
  # memory_in_mb: 1,
468
+ # active_tracing: false,
469
+ # environment_variables: {
470
+ # "EnvironmentVariableName" => "EnvironmentVariableValue",
471
+ # },
453
472
  # },
454
473
  # success_retention_period_in_days: 1,
455
474
  # failure_retention_period_in_days: 1,
@@ -474,6 +493,7 @@ module Aws::Synthetics
474
493
  # resp.canary.schedule.duration_in_seconds #=> Integer
475
494
  # resp.canary.run_config.timeout_in_seconds #=> Integer
476
495
  # resp.canary.run_config.memory_in_mb #=> Integer
496
+ # resp.canary.run_config.active_tracing #=> Boolean
477
497
  # resp.canary.success_retention_period_in_days #=> Integer
478
498
  # resp.canary.failure_retention_period_in_days #=> Integer
479
499
  # resp.canary.status.state #=> String, one of "CREATING", "READY", "STARTING", "RUNNING", "UPDATING", "STOPPING", "STOPPED", "ERROR", "DELETING"
@@ -599,6 +619,7 @@ module Aws::Synthetics
599
619
  # resp.canaries[0].schedule.duration_in_seconds #=> Integer
600
620
  # resp.canaries[0].run_config.timeout_in_seconds #=> Integer
601
621
  # resp.canaries[0].run_config.memory_in_mb #=> Integer
622
+ # resp.canaries[0].run_config.active_tracing #=> Boolean
602
623
  # resp.canaries[0].success_retention_period_in_days #=> Integer
603
624
  # resp.canaries[0].failure_retention_period_in_days #=> Integer
604
625
  # resp.canaries[0].status.state #=> String, one of "CREATING", "READY", "STARTING", "RUNNING", "UPDATING", "STOPPING", "STOPPED", "ERROR", "DELETING"
@@ -660,6 +681,7 @@ module Aws::Synthetics
660
681
  #
661
682
  # resp.canaries_last_run #=> Array
662
683
  # resp.canaries_last_run[0].canary_name #=> String
684
+ # resp.canaries_last_run[0].last_run.id #=> String
663
685
  # resp.canaries_last_run[0].last_run.name #=> String
664
686
  # resp.canaries_last_run[0].last_run.status.state #=> String, one of "RUNNING", "PASSED", "FAILED"
665
687
  # resp.canaries_last_run[0].last_run.status.state_reason #=> String
@@ -759,6 +781,7 @@ module Aws::Synthetics
759
781
  # resp.canary.schedule.duration_in_seconds #=> Integer
760
782
  # resp.canary.run_config.timeout_in_seconds #=> Integer
761
783
  # resp.canary.run_config.memory_in_mb #=> Integer
784
+ # resp.canary.run_config.active_tracing #=> Boolean
762
785
  # resp.canary.success_retention_period_in_days #=> Integer
763
786
  # resp.canary.failure_retention_period_in_days #=> Integer
764
787
  # resp.canary.status.state #=> String, one of "CREATING", "READY", "STARTING", "RUNNING", "UPDATING", "STOPPING", "STOPPED", "ERROR", "DELETING"
@@ -821,6 +844,7 @@ module Aws::Synthetics
821
844
  # @example Response structure
822
845
  #
823
846
  # resp.canary_runs #=> Array
847
+ # resp.canary_runs[0].id #=> String
824
848
  # resp.canary_runs[0].name #=> String
825
849
  # resp.canary_runs[0].status.state #=> String, one of "RUNNING", "PASSED", "FAILED"
826
850
  # resp.canary_runs[0].status.state_reason #=> String
@@ -854,7 +878,7 @@ module Aws::Synthetics
854
878
  # @example Request syntax with placeholder values
855
879
  #
856
880
  # resp = client.list_tags_for_resource({
857
- # resource_arn: "Arn", # required
881
+ # resource_arn: "CanaryArn", # required
858
882
  # })
859
883
  #
860
884
  # @example Response structure
@@ -969,7 +993,7 @@ module Aws::Synthetics
969
993
  # @example Request syntax with placeholder values
970
994
  #
971
995
  # resp = client.tag_resource({
972
- # resource_arn: "Arn", # required
996
+ # resource_arn: "CanaryArn", # required
973
997
  # tags: { # required
974
998
  # "TagKey" => "TagValue",
975
999
  # },
@@ -1000,7 +1024,7 @@ module Aws::Synthetics
1000
1024
  # @example Request syntax with placeholder values
1001
1025
  #
1002
1026
  # resp = client.untag_resource({
1003
- # resource_arn: "Arn", # required
1027
+ # resource_arn: "CanaryArn", # required
1004
1028
  # tag_keys: ["TagKey"], # required
1005
1029
  # })
1006
1030
  #
@@ -1060,8 +1084,8 @@ module Aws::Synthetics
1060
1084
  # * `logs:CreateLogStream`
1061
1085
  #
1062
1086
  # @option params [String] :runtime_version
1063
- # Specifies the runtime version to use for the canary. Currently, the
1064
- # only valid value is `syn-1.0`. For more information about runtime
1087
+ # Specifies the runtime version to use for the canary. For a list of
1088
+ # valid runtime versions and for more information about runtime
1065
1089
  # versions, see [ Canary Runtime Versions][1].
1066
1090
  #
1067
1091
  #
@@ -1105,15 +1129,19 @@ module Aws::Synthetics
1105
1129
  # zip_file: "data",
1106
1130
  # handler: "String", # required
1107
1131
  # },
1108
- # execution_role_arn: "Arn",
1132
+ # execution_role_arn: "RoleArn",
1109
1133
  # runtime_version: "String",
1110
1134
  # schedule: {
1111
1135
  # expression: "String", # required
1112
1136
  # duration_in_seconds: 1,
1113
1137
  # },
1114
1138
  # run_config: {
1115
- # timeout_in_seconds: 1, # required
1139
+ # timeout_in_seconds: 1,
1116
1140
  # memory_in_mb: 1,
1141
+ # active_tracing: false,
1142
+ # environment_variables: {
1143
+ # "EnvironmentVariableName" => "EnvironmentVariableValue",
1144
+ # },
1117
1145
  # },
1118
1146
  # success_retention_period_in_days: 1,
1119
1147
  # failure_retention_period_in_days: 1,
@@ -1145,7 +1173,7 @@ module Aws::Synthetics
1145
1173
  params: params,
1146
1174
  config: config)
1147
1175
  context[:gem_name] = 'aws-sdk-synthetics'
1148
- context[:gem_version] = '1.5.0'
1176
+ context[:gem_version] = '1.10.0'
1149
1177
  Seahorse::Client::Request.new(handlers, context)
1150
1178
  end
1151
1179
 
@@ -13,11 +13,11 @@ module Aws::Synthetics
13
13
 
14
14
  include Seahorse::Model
15
15
 
16
- Arn = Shapes::StringShape.new(name: 'Arn')
17
16
  Blob = Shapes::BlobShape.new(name: 'Blob')
18
17
  Canaries = Shapes::ListShape.new(name: 'Canaries')
19
18
  CanariesLastRun = Shapes::ListShape.new(name: 'CanariesLastRun')
20
19
  Canary = Shapes::StructureShape.new(name: 'Canary')
20
+ CanaryArn = Shapes::StringShape.new(name: 'CanaryArn')
21
21
  CanaryCodeInput = Shapes::StructureShape.new(name: 'CanaryCodeInput')
22
22
  CanaryCodeOutput = Shapes::StructureShape.new(name: 'CanaryCodeOutput')
23
23
  CanaryLastRun = Shapes::StructureShape.new(name: 'CanaryLastRun')
@@ -47,7 +47,11 @@ module Aws::Synthetics
47
47
  DescribeCanariesResponse = Shapes::StructureShape.new(name: 'DescribeCanariesResponse')
48
48
  DescribeRuntimeVersionsRequest = Shapes::StructureShape.new(name: 'DescribeRuntimeVersionsRequest')
49
49
  DescribeRuntimeVersionsResponse = Shapes::StructureShape.new(name: 'DescribeRuntimeVersionsResponse')
50
+ EnvironmentVariableName = Shapes::StringShape.new(name: 'EnvironmentVariableName')
51
+ EnvironmentVariableValue = Shapes::StringShape.new(name: 'EnvironmentVariableValue')
52
+ EnvironmentVariablesMap = Shapes::MapShape.new(name: 'EnvironmentVariablesMap')
50
53
  ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
54
+ FunctionArn = Shapes::StringShape.new(name: 'FunctionArn')
51
55
  GetCanaryRequest = Shapes::StructureShape.new(name: 'GetCanaryRequest')
52
56
  GetCanaryResponse = Shapes::StructureShape.new(name: 'GetCanaryResponse')
53
57
  GetCanaryRunsRequest = Shapes::StructureShape.new(name: 'GetCanaryRunsRequest')
@@ -61,7 +65,9 @@ module Aws::Synthetics
61
65
  MaxSize100 = Shapes::IntegerShape.new(name: 'MaxSize100')
62
66
  MaxSize1024 = Shapes::IntegerShape.new(name: 'MaxSize1024')
63
67
  MaxSize3008 = Shapes::IntegerShape.new(name: 'MaxSize3008')
68
+ NullableBoolean = Shapes::BooleanShape.new(name: 'NullableBoolean')
64
69
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
70
+ RoleArn = Shapes::StringShape.new(name: 'RoleArn')
65
71
  RuntimeVersion = Shapes::StructureShape.new(name: 'RuntimeVersion')
66
72
  RuntimeVersionList = Shapes::ListShape.new(name: 'RuntimeVersionList')
67
73
  SecurityGroupId = Shapes::StringShape.new(name: 'SecurityGroupId')
@@ -98,7 +104,7 @@ module Aws::Synthetics
98
104
  Canary.add_member(:id, Shapes::ShapeRef.new(shape: UUID, location_name: "Id"))
99
105
  Canary.add_member(:name, Shapes::ShapeRef.new(shape: CanaryName, location_name: "Name"))
100
106
  Canary.add_member(:code, Shapes::ShapeRef.new(shape: CanaryCodeOutput, location_name: "Code"))
101
- Canary.add_member(:execution_role_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "ExecutionRoleArn"))
107
+ Canary.add_member(:execution_role_arn, Shapes::ShapeRef.new(shape: RoleArn, location_name: "ExecutionRoleArn"))
102
108
  Canary.add_member(:schedule, Shapes::ShapeRef.new(shape: CanaryScheduleOutput, location_name: "Schedule"))
103
109
  Canary.add_member(:run_config, Shapes::ShapeRef.new(shape: CanaryRunConfigOutput, location_name: "RunConfig"))
104
110
  Canary.add_member(:success_retention_period_in_days, Shapes::ShapeRef.new(shape: MaxSize1024, location_name: "SuccessRetentionPeriodInDays"))
@@ -106,7 +112,7 @@ module Aws::Synthetics
106
112
  Canary.add_member(:status, Shapes::ShapeRef.new(shape: CanaryStatus, location_name: "Status"))
107
113
  Canary.add_member(:timeline, Shapes::ShapeRef.new(shape: CanaryTimeline, location_name: "Timeline"))
108
114
  Canary.add_member(:artifact_s3_location, Shapes::ShapeRef.new(shape: String, location_name: "ArtifactS3Location"))
109
- Canary.add_member(:engine_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "EngineArn"))
115
+ Canary.add_member(:engine_arn, Shapes::ShapeRef.new(shape: FunctionArn, location_name: "EngineArn"))
110
116
  Canary.add_member(:runtime_version, Shapes::ShapeRef.new(shape: String, location_name: "RuntimeVersion"))
111
117
  Canary.add_member(:vpc_config, Shapes::ShapeRef.new(shape: VpcConfigOutput, location_name: "VpcConfig"))
112
118
  Canary.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
@@ -127,18 +133,22 @@ module Aws::Synthetics
127
133
  CanaryLastRun.add_member(:last_run, Shapes::ShapeRef.new(shape: CanaryRun, location_name: "LastRun"))
128
134
  CanaryLastRun.struct_class = Types::CanaryLastRun
129
135
 
136
+ CanaryRun.add_member(:id, Shapes::ShapeRef.new(shape: UUID, location_name: "Id"))
130
137
  CanaryRun.add_member(:name, Shapes::ShapeRef.new(shape: CanaryName, location_name: "Name"))
131
138
  CanaryRun.add_member(:status, Shapes::ShapeRef.new(shape: CanaryRunStatus, location_name: "Status"))
132
139
  CanaryRun.add_member(:timeline, Shapes::ShapeRef.new(shape: CanaryRunTimeline, location_name: "Timeline"))
133
140
  CanaryRun.add_member(:artifact_s3_location, Shapes::ShapeRef.new(shape: String, location_name: "ArtifactS3Location"))
134
141
  CanaryRun.struct_class = Types::CanaryRun
135
142
 
136
- CanaryRunConfigInput.add_member(:timeout_in_seconds, Shapes::ShapeRef.new(shape: MaxFifteenMinutesInSeconds, required: true, location_name: "TimeoutInSeconds"))
143
+ CanaryRunConfigInput.add_member(:timeout_in_seconds, Shapes::ShapeRef.new(shape: MaxFifteenMinutesInSeconds, location_name: "TimeoutInSeconds"))
137
144
  CanaryRunConfigInput.add_member(:memory_in_mb, Shapes::ShapeRef.new(shape: MaxSize3008, location_name: "MemoryInMB"))
145
+ CanaryRunConfigInput.add_member(:active_tracing, Shapes::ShapeRef.new(shape: NullableBoolean, location_name: "ActiveTracing"))
146
+ CanaryRunConfigInput.add_member(:environment_variables, Shapes::ShapeRef.new(shape: EnvironmentVariablesMap, location_name: "EnvironmentVariables"))
138
147
  CanaryRunConfigInput.struct_class = Types::CanaryRunConfigInput
139
148
 
140
149
  CanaryRunConfigOutput.add_member(:timeout_in_seconds, Shapes::ShapeRef.new(shape: MaxFifteenMinutesInSeconds, location_name: "TimeoutInSeconds"))
141
150
  CanaryRunConfigOutput.add_member(:memory_in_mb, Shapes::ShapeRef.new(shape: MaxSize3008, location_name: "MemoryInMB"))
151
+ CanaryRunConfigOutput.add_member(:active_tracing, Shapes::ShapeRef.new(shape: NullableBoolean, location_name: "ActiveTracing"))
142
152
  CanaryRunConfigOutput.struct_class = Types::CanaryRunConfigOutput
143
153
 
144
154
  CanaryRunStatus.add_member(:state, Shapes::ShapeRef.new(shape: CanaryRunState, location_name: "State"))
@@ -177,7 +187,7 @@ module Aws::Synthetics
177
187
  CreateCanaryRequest.add_member(:name, Shapes::ShapeRef.new(shape: CanaryName, required: true, location_name: "Name"))
178
188
  CreateCanaryRequest.add_member(:code, Shapes::ShapeRef.new(shape: CanaryCodeInput, required: true, location_name: "Code"))
179
189
  CreateCanaryRequest.add_member(:artifact_s3_location, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ArtifactS3Location"))
180
- CreateCanaryRequest.add_member(:execution_role_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "ExecutionRoleArn"))
190
+ CreateCanaryRequest.add_member(:execution_role_arn, Shapes::ShapeRef.new(shape: RoleArn, required: true, location_name: "ExecutionRoleArn"))
181
191
  CreateCanaryRequest.add_member(:schedule, Shapes::ShapeRef.new(shape: CanaryScheduleInput, required: true, location_name: "Schedule"))
182
192
  CreateCanaryRequest.add_member(:run_config, Shapes::ShapeRef.new(shape: CanaryRunConfigInput, location_name: "RunConfig"))
183
193
  CreateCanaryRequest.add_member(:success_retention_period_in_days, Shapes::ShapeRef.new(shape: MaxSize1024, location_name: "SuccessRetentionPeriodInDays"))
@@ -219,6 +229,9 @@ module Aws::Synthetics
219
229
  DescribeRuntimeVersionsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
220
230
  DescribeRuntimeVersionsResponse.struct_class = Types::DescribeRuntimeVersionsResponse
221
231
 
232
+ EnvironmentVariablesMap.key = Shapes::ShapeRef.new(shape: EnvironmentVariableName)
233
+ EnvironmentVariablesMap.value = Shapes::ShapeRef.new(shape: EnvironmentVariableValue)
234
+
222
235
  GetCanaryRequest.add_member(:name, Shapes::ShapeRef.new(shape: CanaryName, required: true, location: "uri", location_name: "name"))
223
236
  GetCanaryRequest.struct_class = Types::GetCanaryRequest
224
237
 
@@ -237,7 +250,7 @@ module Aws::Synthetics
237
250
  InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
238
251
  InternalServerException.struct_class = Types::InternalServerException
239
252
 
240
- ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "resourceArn"))
253
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: CanaryArn, required: true, location: "uri", location_name: "resourceArn"))
241
254
  ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
242
255
 
243
256
  ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
@@ -273,13 +286,13 @@ module Aws::Synthetics
273
286
  TagMap.key = Shapes::ShapeRef.new(shape: TagKey)
274
287
  TagMap.value = Shapes::ShapeRef.new(shape: TagValue)
275
288
 
276
- TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "resourceArn"))
289
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: CanaryArn, required: true, location: "uri", location_name: "resourceArn"))
277
290
  TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, required: true, location_name: "Tags"))
278
291
  TagResourceRequest.struct_class = Types::TagResourceRequest
279
292
 
280
293
  TagResourceResponse.struct_class = Types::TagResourceResponse
281
294
 
282
- UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "resourceArn"))
295
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: CanaryArn, required: true, location: "uri", location_name: "resourceArn"))
283
296
  UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location: "querystring", location_name: "tagKeys"))
284
297
  UntagResourceRequest.struct_class = Types::UntagResourceRequest
285
298
 
@@ -287,7 +300,7 @@ module Aws::Synthetics
287
300
 
288
301
  UpdateCanaryRequest.add_member(:name, Shapes::ShapeRef.new(shape: CanaryName, required: true, location: "uri", location_name: "name"))
289
302
  UpdateCanaryRequest.add_member(:code, Shapes::ShapeRef.new(shape: CanaryCodeInput, location_name: "Code"))
290
- UpdateCanaryRequest.add_member(:execution_role_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "ExecutionRoleArn"))
303
+ UpdateCanaryRequest.add_member(:execution_role_arn, Shapes::ShapeRef.new(shape: RoleArn, location_name: "ExecutionRoleArn"))
291
304
  UpdateCanaryRequest.add_member(:runtime_version, Shapes::ShapeRef.new(shape: String, location_name: "RuntimeVersion"))
292
305
  UpdateCanaryRequest.add_member(:schedule, Shapes::ShapeRef.new(shape: CanaryScheduleInput, location_name: "Schedule"))
293
306
  UpdateCanaryRequest.add_member(:run_config, Shapes::ShapeRef.new(shape: CanaryRunConfigInput, location_name: "RunConfig"))
@@ -37,7 +37,7 @@ module Aws::Synthetics
37
37
  # @return [Types::CanaryScheduleOutput]
38
38
  #
39
39
  # @!attribute [rw] run_config
40
- # A structure that contains information for a canary run.
40
+ # A structure that contains information about a canary run.
41
41
  # @return [Types::CanaryRunConfigOutput]
42
42
  #
43
43
  # @!attribute [rw] success_retention_period_in_days
@@ -75,9 +75,9 @@ module Aws::Synthetics
75
75
  # @return [String]
76
76
  #
77
77
  # @!attribute [rw] runtime_version
78
- # Specifies the runtime version to use for the canary. Currently, the
79
- # only valid value is `syn-1.0`. For more information about runtime
80
- # versions, see [ Canary Runtime Versions][1].
78
+ # Specifies the runtime version to use for the canary. For more
79
+ # information about runtime versions, see [ Canary Runtime
80
+ # Versions][1].
81
81
  #
82
82
  #
83
83
  #
@@ -224,6 +224,10 @@ module Aws::Synthetics
224
224
 
225
225
  # This structure contains the details about one run of one canary.
226
226
  #
227
+ # @!attribute [rw] id
228
+ # A unique ID that identifies this canary run.
229
+ # @return [String]
230
+ #
227
231
  # @!attribute [rw] name
228
232
  # The name of the canary.
229
233
  # @return [String]
@@ -244,6 +248,7 @@ module Aws::Synthetics
244
248
  # @see http://docs.aws.amazon.com/goto/WebAPI/synthetics-2017-10-11/CanaryRun AWS API Documentation
245
249
  #
246
250
  class CanaryRun < Struct.new(
251
+ :id,
247
252
  :name,
248
253
  :status,
249
254
  :timeline,
@@ -258,31 +263,73 @@ module Aws::Synthetics
258
263
  # data as a hash:
259
264
  #
260
265
  # {
261
- # timeout_in_seconds: 1, # required
266
+ # timeout_in_seconds: 1,
262
267
  # memory_in_mb: 1,
268
+ # active_tracing: false,
269
+ # environment_variables: {
270
+ # "EnvironmentVariableName" => "EnvironmentVariableValue",
271
+ # },
263
272
  # }
264
273
  #
265
274
  # @!attribute [rw] timeout_in_seconds
266
- # How long the canary is allowed to run before it must stop. If you
267
- # omit this field, the frequency of the canary is used as this value,
268
- # up to a maximum of 14 minutes.
275
+ # How long the canary is allowed to run before it must stop. You
276
+ # can't set this time to be longer than the frequency of the runs of
277
+ # this canary.
278
+ #
279
+ # If you omit this field, the frequency of the canary is used as this
280
+ # value, up to a maximum of 14 minutes.
269
281
  # @return [Integer]
270
282
  #
271
283
  # @!attribute [rw] memory_in_mb
272
284
  # The maximum amount of memory available to the canary while it is
273
- # running, in MB. The value you specify must be a multiple of 64.
285
+ # running, in MB. This value must be a multiple of 64.
274
286
  # @return [Integer]
275
287
  #
288
+ # @!attribute [rw] active_tracing
289
+ # Specifies whether this canary is to use active AWS X-Ray tracing
290
+ # when it runs. Active tracing enables this canary run to be displayed
291
+ # in the ServiceLens and X-Ray service maps even if the canary does
292
+ # not hit an endpoint that has X-ray tracing enabled. Using X-Ray
293
+ # tracing incurs charges. For more information, see [ Canaries and
294
+ # X-Ray tracing][1].
295
+ #
296
+ # You can enable active tracing only for canaries that use version
297
+ # `syn-nodejs-2.0` or later for their canary runtime.
298
+ #
299
+ #
300
+ #
301
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_tracing.html
302
+ # @return [Boolean]
303
+ #
304
+ # @!attribute [rw] environment_variables
305
+ # Specifies the keys and values to use for any environment variables
306
+ # used in the canary script. Use the following format:
307
+ #
308
+ # \\\{ "key1" : "value1", "key2" : "value2", ...\\}
309
+ #
310
+ # Keys must start with a letter and be at least two characters. The
311
+ # total size of your environment variables cannot exceed 4 KB. You
312
+ # can't specify any Lambda reserved environment variables as the keys
313
+ # for your environment variables. For more information about reserved
314
+ # keys, see [ Runtime environment variables][1].
315
+ #
316
+ #
317
+ #
318
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-runtime
319
+ # @return [Hash<String,String>]
320
+ #
276
321
  # @see http://docs.aws.amazon.com/goto/WebAPI/synthetics-2017-10-11/CanaryRunConfigInput AWS API Documentation
277
322
  #
278
323
  class CanaryRunConfigInput < Struct.new(
279
324
  :timeout_in_seconds,
280
- :memory_in_mb)
325
+ :memory_in_mb,
326
+ :active_tracing,
327
+ :environment_variables)
281
328
  SENSITIVE = []
282
329
  include Aws::Structure
283
330
  end
284
331
 
285
- # A structure that contains information for a canary run.
332
+ # A structure that contains information about a canary run.
286
333
  #
287
334
  # @!attribute [rw] timeout_in_seconds
288
335
  # How long the canary is allowed to run before it must stop.
@@ -290,14 +337,19 @@ module Aws::Synthetics
290
337
  #
291
338
  # @!attribute [rw] memory_in_mb
292
339
  # The maximum amount of memory available to the canary while it is
293
- # running, in MB. The value you must be a multiple of 64.
340
+ # running, in MB. This value must be a multiple of 64.
294
341
  # @return [Integer]
295
342
  #
343
+ # @!attribute [rw] active_tracing
344
+ # Displays whether this canary run used active AWS X-Ray tracing.
345
+ # @return [Boolean]
346
+ #
296
347
  # @see http://docs.aws.amazon.com/goto/WebAPI/synthetics-2017-10-11/CanaryRunConfigOutput AWS API Documentation
297
348
  #
298
349
  class CanaryRunConfigOutput < Struct.new(
299
350
  :timeout_in_seconds,
300
- :memory_in_mb)
351
+ :memory_in_mb,
352
+ :active_tracing)
301
353
  SENSITIVE = []
302
354
  include Aws::Structure
303
355
  end
@@ -503,14 +555,18 @@ module Aws::Synthetics
503
555
  # handler: "String", # required
504
556
  # },
505
557
  # artifact_s3_location: "String", # required
506
- # execution_role_arn: "Arn", # required
558
+ # execution_role_arn: "RoleArn", # required
507
559
  # schedule: { # required
508
560
  # expression: "String", # required
509
561
  # duration_in_seconds: 1,
510
562
  # },
511
563
  # run_config: {
512
- # timeout_in_seconds: 1, # required
564
+ # timeout_in_seconds: 1,
513
565
  # memory_in_mb: 1,
566
+ # active_tracing: false,
567
+ # environment_variables: {
568
+ # "EnvironmentVariableName" => "EnvironmentVariableValue",
569
+ # },
514
570
  # },
515
571
  # success_retention_period_in_days: 1,
516
572
  # failure_retention_period_in_days: 1,
@@ -569,7 +625,7 @@ module Aws::Synthetics
569
625
  #
570
626
  # * `logs:CreateLogStream`
571
627
  #
572
- # * `logs:CreateLogStream`
628
+ # * `logs:PutLogEvents`
573
629
  # @return [String]
574
630
  #
575
631
  # @!attribute [rw] schedule
@@ -595,9 +651,9 @@ module Aws::Synthetics
595
651
  # @return [Integer]
596
652
  #
597
653
  # @!attribute [rw] runtime_version
598
- # Specifies the runtime version to use for the canary. Currently, the
599
- # only valid value is `syn-1.0`. For more information about runtime
600
- # versions, see [ Canary Runtime Versions][1].
654
+ # Specifies the runtime version to use for the canary. For a list of
655
+ # valid runtime versions and more information about runtime versions,
656
+ # see [ Canary Runtime Versions][1].
601
657
  #
602
658
  #
603
659
  #
@@ -932,7 +988,7 @@ module Aws::Synthetics
932
988
  # data as a hash:
933
989
  #
934
990
  # {
935
- # resource_arn: "Arn", # required
991
+ # resource_arn: "CanaryArn", # required
936
992
  # }
937
993
  #
938
994
  # @!attribute [rw] resource_arn
@@ -985,11 +1041,12 @@ module Aws::Synthetics
985
1041
  # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Library.html
986
1042
  #
987
1043
  # @!attribute [rw] version_name
988
- # The name of the runtime version. Currently, the only valid value is
989
- # `syn-1.0`.
1044
+ # The name of the runtime version. For a list of valid runtime
1045
+ # versions, see [ Canary Runtime Versions][1].
990
1046
  #
991
- # Specifies the runtime version to use for the canary. Currently, the
992
- # only valid value is `syn-1.0`.
1047
+ #
1048
+ #
1049
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Library.html
993
1050
  # @return [String]
994
1051
  #
995
1052
  # @!attribute [rw] description
@@ -1076,7 +1133,7 @@ module Aws::Synthetics
1076
1133
  # data as a hash:
1077
1134
  #
1078
1135
  # {
1079
- # resource_arn: "Arn", # required
1136
+ # resource_arn: "CanaryArn", # required
1080
1137
  # tags: { # required
1081
1138
  # "TagKey" => "TagValue",
1082
1139
  # },
@@ -1110,7 +1167,7 @@ module Aws::Synthetics
1110
1167
  # data as a hash:
1111
1168
  #
1112
1169
  # {
1113
- # resource_arn: "Arn", # required
1170
+ # resource_arn: "CanaryArn", # required
1114
1171
  # tag_keys: ["TagKey"], # required
1115
1172
  # }
1116
1173
  #
@@ -1150,15 +1207,19 @@ module Aws::Synthetics
1150
1207
  # zip_file: "data",
1151
1208
  # handler: "String", # required
1152
1209
  # },
1153
- # execution_role_arn: "Arn",
1210
+ # execution_role_arn: "RoleArn",
1154
1211
  # runtime_version: "String",
1155
1212
  # schedule: {
1156
1213
  # expression: "String", # required
1157
1214
  # duration_in_seconds: 1,
1158
1215
  # },
1159
1216
  # run_config: {
1160
- # timeout_in_seconds: 1, # required
1217
+ # timeout_in_seconds: 1,
1161
1218
  # memory_in_mb: 1,
1219
+ # active_tracing: false,
1220
+ # environment_variables: {
1221
+ # "EnvironmentVariableName" => "EnvironmentVariableValue",
1222
+ # },
1162
1223
  # },
1163
1224
  # success_retention_period_in_days: 1,
1164
1225
  # failure_retention_period_in_days: 1,
@@ -1208,8 +1269,8 @@ module Aws::Synthetics
1208
1269
  # @return [String]
1209
1270
  #
1210
1271
  # @!attribute [rw] runtime_version
1211
- # Specifies the runtime version to use for the canary. Currently, the
1212
- # only valid value is `syn-1.0`. For more information about runtime
1272
+ # Specifies the runtime version to use for the canary. For a list of
1273
+ # valid runtime versions and for more information about runtime
1213
1274
  # versions, see [ Canary Runtime Versions][1].
1214
1275
  #
1215
1276
  #
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.5.0
4
+ version: 1.10.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: 2020-06-23 00:00:00.000000000 Z
11
+ date: 2020-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.99.0
22
+ version: 3.109.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.99.0
32
+ version: 3.109.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement