aws-sdk-synthetics 1.62.0 → 1.64.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.
@@ -14,6 +14,7 @@ module Aws::Synthetics
14
14
 
15
15
  include Seahorse::Model
16
16
 
17
+ AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
17
18
  ArtifactConfigInput = Shapes::StructureShape.new(name: 'ArtifactConfigInput')
18
19
  ArtifactConfigOutput = Shapes::StructureShape.new(name: 'ArtifactConfigOutput')
19
20
  AssociateResourceRequest = Shapes::StructureShape.new(name: 'AssociateResourceRequest')
@@ -30,6 +31,7 @@ module Aws::Synthetics
30
31
  CanaryArn = Shapes::StringShape.new(name: 'CanaryArn')
31
32
  CanaryCodeInput = Shapes::StructureShape.new(name: 'CanaryCodeInput')
32
33
  CanaryCodeOutput = Shapes::StructureShape.new(name: 'CanaryCodeOutput')
34
+ CanaryDryRunConfigOutput = Shapes::StructureShape.new(name: 'CanaryDryRunConfigOutput')
33
35
  CanaryLastRun = Shapes::StructureShape.new(name: 'CanaryLastRun')
34
36
  CanaryName = Shapes::StringShape.new(name: 'CanaryName')
35
37
  CanaryRun = Shapes::StructureShape.new(name: 'CanaryRun')
@@ -66,6 +68,7 @@ module Aws::Synthetics
66
68
  DescribeRuntimeVersionsResponse = Shapes::StructureShape.new(name: 'DescribeRuntimeVersionsResponse')
67
69
  DisassociateResourceRequest = Shapes::StructureShape.new(name: 'DisassociateResourceRequest')
68
70
  DisassociateResourceResponse = Shapes::StructureShape.new(name: 'DisassociateResourceResponse')
71
+ DryRunConfigOutput = Shapes::StructureShape.new(name: 'DryRunConfigOutput')
69
72
  EncryptionMode = Shapes::StringShape.new(name: 'EncryptionMode')
70
73
  EnvironmentVariableName = Shapes::StringShape.new(name: 'EnvironmentVariableName')
71
74
  EnvironmentVariableValue = Shapes::StringShape.new(name: 'EnvironmentVariableValue')
@@ -99,6 +102,7 @@ module Aws::Synthetics
99
102
  MaxFifteenMinutesInSeconds = Shapes::IntegerShape.new(name: 'MaxFifteenMinutesInSeconds')
100
103
  MaxGroupResults = Shapes::IntegerShape.new(name: 'MaxGroupResults')
101
104
  MaxOneYearInSeconds = Shapes::IntegerShape.new(name: 'MaxOneYearInSeconds')
105
+ MaxRetries = Shapes::IntegerShape.new(name: 'MaxRetries')
102
106
  MaxSize100 = Shapes::IntegerShape.new(name: 'MaxSize100')
103
107
  MaxSize1024 = Shapes::IntegerShape.new(name: 'MaxSize1024')
104
108
  MaxSize3008 = Shapes::IntegerShape.new(name: 'MaxSize3008')
@@ -111,13 +115,19 @@ module Aws::Synthetics
111
115
  ResourceList = Shapes::ListShape.new(name: 'ResourceList')
112
116
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
113
117
  ResourceToTag = Shapes::StringShape.new(name: 'ResourceToTag')
118
+ RetryAttempt = Shapes::IntegerShape.new(name: 'RetryAttempt')
119
+ RetryConfigInput = Shapes::StructureShape.new(name: 'RetryConfigInput')
120
+ RetryConfigOutput = Shapes::StructureShape.new(name: 'RetryConfigOutput')
114
121
  RoleArn = Shapes::StringShape.new(name: 'RoleArn')
122
+ RunType = Shapes::StringShape.new(name: 'RunType')
115
123
  RuntimeVersion = Shapes::StructureShape.new(name: 'RuntimeVersion')
116
124
  RuntimeVersionList = Shapes::ListShape.new(name: 'RuntimeVersionList')
117
125
  S3EncryptionConfig = Shapes::StructureShape.new(name: 'S3EncryptionConfig')
118
126
  SecurityGroupId = Shapes::StringShape.new(name: 'SecurityGroupId')
119
127
  SecurityGroupIds = Shapes::ListShape.new(name: 'SecurityGroupIds')
120
128
  ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
129
+ StartCanaryDryRunRequest = Shapes::StructureShape.new(name: 'StartCanaryDryRunRequest')
130
+ StartCanaryDryRunResponse = Shapes::StructureShape.new(name: 'StartCanaryDryRunResponse')
121
131
  StartCanaryRequest = Shapes::StructureShape.new(name: 'StartCanaryRequest')
122
132
  StartCanaryResponse = Shapes::StructureShape.new(name: 'StartCanaryResponse')
123
133
  StopCanaryRequest = Shapes::StructureShape.new(name: 'StopCanaryRequest')
@@ -148,6 +158,9 @@ module Aws::Synthetics
148
158
  VpcId = Shapes::StringShape.new(name: 'VpcId')
149
159
  boolean = Shapes::BooleanShape.new(name: 'boolean')
150
160
 
161
+ AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
162
+ AccessDeniedException.struct_class = Types::AccessDeniedException
163
+
151
164
  ArtifactConfigInput.add_member(:s3_encryption, Shapes::ShapeRef.new(shape: S3EncryptionConfig, location_name: "S3Encryption"))
152
165
  ArtifactConfigInput.struct_class = Types::ArtifactConfigInput
153
166
 
@@ -193,6 +206,7 @@ module Aws::Synthetics
193
206
  Canary.add_member(:provisioned_resource_cleanup, Shapes::ShapeRef.new(shape: ProvisionedResourceCleanupSetting, location_name: "ProvisionedResourceCleanup"))
194
207
  Canary.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
195
208
  Canary.add_member(:artifact_config, Shapes::ShapeRef.new(shape: ArtifactConfigOutput, location_name: "ArtifactConfig"))
209
+ Canary.add_member(:dry_run_config, Shapes::ShapeRef.new(shape: DryRunConfigOutput, location_name: "DryRunConfig"))
196
210
  Canary.struct_class = Types::Canary
197
211
 
198
212
  CanaryCodeInput.add_member(:s3_bucket, Shapes::ShapeRef.new(shape: String, location_name: "S3Bucket"))
@@ -206,15 +220,21 @@ module Aws::Synthetics
206
220
  CanaryCodeOutput.add_member(:handler, Shapes::ShapeRef.new(shape: String, location_name: "Handler"))
207
221
  CanaryCodeOutput.struct_class = Types::CanaryCodeOutput
208
222
 
223
+ CanaryDryRunConfigOutput.add_member(:dry_run_id, Shapes::ShapeRef.new(shape: UUID, location_name: "DryRunId"))
224
+ CanaryDryRunConfigOutput.struct_class = Types::CanaryDryRunConfigOutput
225
+
209
226
  CanaryLastRun.add_member(:canary_name, Shapes::ShapeRef.new(shape: CanaryName, location_name: "CanaryName"))
210
227
  CanaryLastRun.add_member(:last_run, Shapes::ShapeRef.new(shape: CanaryRun, location_name: "LastRun"))
211
228
  CanaryLastRun.struct_class = Types::CanaryLastRun
212
229
 
213
230
  CanaryRun.add_member(:id, Shapes::ShapeRef.new(shape: UUID, location_name: "Id"))
231
+ CanaryRun.add_member(:scheduled_run_id, Shapes::ShapeRef.new(shape: UUID, location_name: "ScheduledRunId"))
232
+ CanaryRun.add_member(:retry_attempt, Shapes::ShapeRef.new(shape: RetryAttempt, location_name: "RetryAttempt"))
214
233
  CanaryRun.add_member(:name, Shapes::ShapeRef.new(shape: CanaryName, location_name: "Name"))
215
234
  CanaryRun.add_member(:status, Shapes::ShapeRef.new(shape: CanaryRunStatus, location_name: "Status"))
216
235
  CanaryRun.add_member(:timeline, Shapes::ShapeRef.new(shape: CanaryRunTimeline, location_name: "Timeline"))
217
236
  CanaryRun.add_member(:artifact_s3_location, Shapes::ShapeRef.new(shape: String, location_name: "ArtifactS3Location"))
237
+ CanaryRun.add_member(:dry_run_config, Shapes::ShapeRef.new(shape: CanaryDryRunConfigOutput, location_name: "DryRunConfig"))
218
238
  CanaryRun.struct_class = Types::CanaryRun
219
239
 
220
240
  CanaryRunConfigInput.add_member(:timeout_in_seconds, Shapes::ShapeRef.new(shape: MaxFifteenMinutesInSeconds, location_name: "TimeoutInSeconds"))
@@ -235,16 +255,19 @@ module Aws::Synthetics
235
255
 
236
256
  CanaryRunTimeline.add_member(:started, Shapes::ShapeRef.new(shape: Timestamp, location_name: "Started"))
237
257
  CanaryRunTimeline.add_member(:completed, Shapes::ShapeRef.new(shape: Timestamp, location_name: "Completed"))
258
+ CanaryRunTimeline.add_member(:metric_timestamp_for_run_and_retries, Shapes::ShapeRef.new(shape: Timestamp, location_name: "MetricTimestampForRunAndRetries"))
238
259
  CanaryRunTimeline.struct_class = Types::CanaryRunTimeline
239
260
 
240
261
  CanaryRuns.member = Shapes::ShapeRef.new(shape: CanaryRun)
241
262
 
242
263
  CanaryScheduleInput.add_member(:expression, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Expression"))
243
264
  CanaryScheduleInput.add_member(:duration_in_seconds, Shapes::ShapeRef.new(shape: MaxOneYearInSeconds, location_name: "DurationInSeconds"))
265
+ CanaryScheduleInput.add_member(:retry_config, Shapes::ShapeRef.new(shape: RetryConfigInput, location_name: "RetryConfig"))
244
266
  CanaryScheduleInput.struct_class = Types::CanaryScheduleInput
245
267
 
246
268
  CanaryScheduleOutput.add_member(:expression, Shapes::ShapeRef.new(shape: String, location_name: "Expression"))
247
269
  CanaryScheduleOutput.add_member(:duration_in_seconds, Shapes::ShapeRef.new(shape: MaxOneYearInSeconds, location_name: "DurationInSeconds"))
270
+ CanaryScheduleOutput.add_member(:retry_config, Shapes::ShapeRef.new(shape: RetryConfigOutput, location_name: "RetryConfig"))
248
271
  CanaryScheduleOutput.struct_class = Types::CanaryScheduleOutput
249
272
 
250
273
  CanaryStatus.add_member(:state, Shapes::ShapeRef.new(shape: CanaryState, location_name: "State"))
@@ -334,10 +357,15 @@ module Aws::Synthetics
334
357
 
335
358
  DisassociateResourceResponse.struct_class = Types::DisassociateResourceResponse
336
359
 
360
+ DryRunConfigOutput.add_member(:dry_run_id, Shapes::ShapeRef.new(shape: UUID, location_name: "DryRunId"))
361
+ DryRunConfigOutput.add_member(:last_dry_run_execution_status, Shapes::ShapeRef.new(shape: String, location_name: "LastDryRunExecutionStatus"))
362
+ DryRunConfigOutput.struct_class = Types::DryRunConfigOutput
363
+
337
364
  EnvironmentVariablesMap.key = Shapes::ShapeRef.new(shape: EnvironmentVariableName)
338
365
  EnvironmentVariablesMap.value = Shapes::ShapeRef.new(shape: EnvironmentVariableValue)
339
366
 
340
367
  GetCanaryRequest.add_member(:name, Shapes::ShapeRef.new(shape: CanaryName, required: true, location: "uri", location_name: "name"))
368
+ GetCanaryRequest.add_member(:dry_run_id, Shapes::ShapeRef.new(shape: UUID, location: "querystring", location_name: "dryRunId"))
341
369
  GetCanaryRequest.struct_class = Types::GetCanaryRequest
342
370
 
343
371
  GetCanaryResponse.add_member(:canary, Shapes::ShapeRef.new(shape: Canary, location_name: "Canary"))
@@ -346,6 +374,8 @@ module Aws::Synthetics
346
374
  GetCanaryRunsRequest.add_member(:name, Shapes::ShapeRef.new(shape: CanaryName, required: true, location: "uri", location_name: "name"))
347
375
  GetCanaryRunsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
348
376
  GetCanaryRunsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxSize100, location_name: "MaxResults"))
377
+ GetCanaryRunsRequest.add_member(:dry_run_id, Shapes::ShapeRef.new(shape: UUID, location_name: "DryRunId"))
378
+ GetCanaryRunsRequest.add_member(:run_type, Shapes::ShapeRef.new(shape: RunType, location_name: "RunType"))
349
379
  GetCanaryRunsRequest.struct_class = Types::GetCanaryRunsRequest
350
380
 
351
381
  GetCanaryRunsResponse.add_member(:canary_runs, Shapes::ShapeRef.new(shape: CanaryRuns, location_name: "CanaryRuns"))
@@ -422,6 +452,12 @@ module Aws::Synthetics
422
452
  ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
423
453
  ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
424
454
 
455
+ RetryConfigInput.add_member(:max_retries, Shapes::ShapeRef.new(shape: MaxRetries, required: true, location_name: "MaxRetries"))
456
+ RetryConfigInput.struct_class = Types::RetryConfigInput
457
+
458
+ RetryConfigOutput.add_member(:max_retries, Shapes::ShapeRef.new(shape: MaxRetries, location_name: "MaxRetries"))
459
+ RetryConfigOutput.struct_class = Types::RetryConfigOutput
460
+
425
461
  RuntimeVersion.add_member(:version_name, Shapes::ShapeRef.new(shape: String, location_name: "VersionName"))
426
462
  RuntimeVersion.add_member(:description, Shapes::ShapeRef.new(shape: String, location_name: "Description"))
427
463
  RuntimeVersion.add_member(:release_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "ReleaseDate"))
@@ -439,6 +475,23 @@ module Aws::Synthetics
439
475
  ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
440
476
  ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
441
477
 
478
+ StartCanaryDryRunRequest.add_member(:name, Shapes::ShapeRef.new(shape: CanaryName, required: true, location: "uri", location_name: "name"))
479
+ StartCanaryDryRunRequest.add_member(:code, Shapes::ShapeRef.new(shape: CanaryCodeInput, location_name: "Code"))
480
+ StartCanaryDryRunRequest.add_member(:runtime_version, Shapes::ShapeRef.new(shape: String, location_name: "RuntimeVersion"))
481
+ StartCanaryDryRunRequest.add_member(:run_config, Shapes::ShapeRef.new(shape: CanaryRunConfigInput, location_name: "RunConfig"))
482
+ StartCanaryDryRunRequest.add_member(:vpc_config, Shapes::ShapeRef.new(shape: VpcConfigInput, location_name: "VpcConfig"))
483
+ StartCanaryDryRunRequest.add_member(:execution_role_arn, Shapes::ShapeRef.new(shape: RoleArn, location_name: "ExecutionRoleArn"))
484
+ StartCanaryDryRunRequest.add_member(:success_retention_period_in_days, Shapes::ShapeRef.new(shape: MaxSize1024, location_name: "SuccessRetentionPeriodInDays"))
485
+ StartCanaryDryRunRequest.add_member(:failure_retention_period_in_days, Shapes::ShapeRef.new(shape: MaxSize1024, location_name: "FailureRetentionPeriodInDays"))
486
+ StartCanaryDryRunRequest.add_member(:visual_reference, Shapes::ShapeRef.new(shape: VisualReferenceInput, location_name: "VisualReference"))
487
+ StartCanaryDryRunRequest.add_member(:artifact_s3_location, Shapes::ShapeRef.new(shape: String, location_name: "ArtifactS3Location"))
488
+ StartCanaryDryRunRequest.add_member(:artifact_config, Shapes::ShapeRef.new(shape: ArtifactConfigInput, location_name: "ArtifactConfig"))
489
+ StartCanaryDryRunRequest.add_member(:provisioned_resource_cleanup, Shapes::ShapeRef.new(shape: ProvisionedResourceCleanupSetting, location_name: "ProvisionedResourceCleanup"))
490
+ StartCanaryDryRunRequest.struct_class = Types::StartCanaryDryRunRequest
491
+
492
+ StartCanaryDryRunResponse.add_member(:dry_run_config, Shapes::ShapeRef.new(shape: DryRunConfigOutput, location_name: "DryRunConfig"))
493
+ StartCanaryDryRunResponse.struct_class = Types::StartCanaryDryRunResponse
494
+
442
495
  StartCanaryRequest.add_member(:name, Shapes::ShapeRef.new(shape: CanaryName, required: true, location: "uri", location_name: "name"))
443
496
  StartCanaryRequest.struct_class = Types::StartCanaryRequest
444
497
 
@@ -486,6 +539,7 @@ module Aws::Synthetics
486
539
  UpdateCanaryRequest.add_member(:artifact_s3_location, Shapes::ShapeRef.new(shape: String, location_name: "ArtifactS3Location"))
487
540
  UpdateCanaryRequest.add_member(:artifact_config, Shapes::ShapeRef.new(shape: ArtifactConfigInput, location_name: "ArtifactConfig"))
488
541
  UpdateCanaryRequest.add_member(:provisioned_resource_cleanup, Shapes::ShapeRef.new(shape: ProvisionedResourceCleanupSetting, location_name: "ProvisionedResourceCleanup"))
542
+ UpdateCanaryRequest.add_member(:dry_run_id, Shapes::ShapeRef.new(shape: UUID, location_name: "DryRunId"))
489
543
  UpdateCanaryRequest.struct_class = Types::UpdateCanaryRequest
490
544
 
491
545
  UpdateCanaryResponse.struct_class = Types::UpdateCanaryResponse
@@ -768,6 +822,19 @@ module Aws::Synthetics
768
822
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
769
823
  end)
770
824
 
825
+ api.add_operation(:start_canary_dry_run, Seahorse::Model::Operation.new.tap do |o|
826
+ o.name = "StartCanaryDryRun"
827
+ o.http_method = "POST"
828
+ o.http_request_uri = "/canary/{name}/dry-run/start"
829
+ o.input = Shapes::ShapeRef.new(shape: StartCanaryDryRunRequest)
830
+ o.output = Shapes::ShapeRef.new(shape: StartCanaryDryRunResponse)
831
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
832
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
833
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
834
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
835
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
836
+ end)
837
+
771
838
  api.add_operation(:stop_canary, Seahorse::Model::Operation.new.tap do |o|
772
839
  o.name = "StopCanary"
773
840
  o.http_method = "POST"
@@ -817,6 +884,7 @@ module Aws::Synthetics
817
884
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
818
885
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
819
886
  o.errors << Shapes::ShapeRef.new(shape: RequestEntityTooLargeException)
887
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
820
888
  end)
821
889
  end
822
890
 
@@ -27,6 +27,7 @@ module Aws::Synthetics
27
27
  # See {Seahorse::Client::RequestContext} for more information.
28
28
  #
29
29
  # ## Error Classes
30
+ # * {AccessDeniedException}
30
31
  # * {BadRequestException}
31
32
  # * {ConflictException}
32
33
  # * {InternalFailureException}
@@ -44,6 +45,21 @@ module Aws::Synthetics
44
45
 
45
46
  extend Aws::Errors::DynamicErrors
46
47
 
48
+ class AccessDeniedException < ServiceError
49
+
50
+ # @param [Seahorse::Client::RequestContext] context
51
+ # @param [String] message
52
+ # @param [Aws::Synthetics::Types::AccessDeniedException] data
53
+ def initialize(context, message, data = Aws::EmptyStructure.new)
54
+ super(context, message, data)
55
+ end
56
+
57
+ # @return [String]
58
+ def message
59
+ @message || @data[:message]
60
+ end
61
+ end
62
+
47
63
  class BadRequestException < ServiceError
48
64
 
49
65
  # @param [Seahorse::Client::RequestContext] context