aws-sdk-ecr 1.37.0 → 1.42.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.
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -46,6 +46,7 @@ module Aws::ECR
46
46
  # * {LifecyclePolicyPreviewNotFoundException}
47
47
  # * {LimitExceededException}
48
48
  # * {ReferencedImagesNotFoundException}
49
+ # * {RegistryPolicyNotFoundException}
49
50
  # * {RepositoryAlreadyExistsException}
50
51
  # * {RepositoryNotEmptyException}
51
52
  # * {RepositoryNotFoundException}
@@ -55,6 +56,7 @@ module Aws::ECR
55
56
  # * {TooManyTagsException}
56
57
  # * {UnsupportedImageTypeException}
57
58
  # * {UploadNotFoundException}
59
+ # * {ValidationException}
58
60
  #
59
61
  # Additionally, error classes are dynamically generated for service errors based on the error code
60
62
  # if they are not defined above.
@@ -372,6 +374,21 @@ module Aws::ECR
372
374
  end
373
375
  end
374
376
 
377
+ class RegistryPolicyNotFoundException < ServiceError
378
+
379
+ # @param [Seahorse::Client::RequestContext] context
380
+ # @param [String] message
381
+ # @param [Aws::ECR::Types::RegistryPolicyNotFoundException] data
382
+ def initialize(context, message, data = Aws::EmptyStructure.new)
383
+ super(context, message, data)
384
+ end
385
+
386
+ # @return [String]
387
+ def message
388
+ @message || @data[:message]
389
+ end
390
+ end
391
+
375
392
  class RepositoryAlreadyExistsException < ServiceError
376
393
 
377
394
  # @param [Seahorse::Client::RequestContext] context
@@ -507,5 +524,20 @@ module Aws::ECR
507
524
  end
508
525
  end
509
526
 
527
+ class ValidationException < ServiceError
528
+
529
+ # @param [Seahorse::Client::RequestContext] context
530
+ # @param [String] message
531
+ # @param [Aws::ECR::Types::ValidationException] data
532
+ def initialize(context, message, data = Aws::EmptyStructure.new)
533
+ super(context, message, data)
534
+ end
535
+
536
+ # @return [String]
537
+ def message
538
+ @message || @data[:message]
539
+ end
540
+ end
541
+
510
542
  end
511
543
  end
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -440,6 +440,29 @@ module Aws::ECR
440
440
  include Aws::Structure
441
441
  end
442
442
 
443
+ # @api private
444
+ #
445
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DeleteRegistryPolicyRequest AWS API Documentation
446
+ #
447
+ class DeleteRegistryPolicyRequest < Aws::EmptyStructure; end
448
+
449
+ # @!attribute [rw] registry_id
450
+ # The registry ID associated with the request.
451
+ # @return [String]
452
+ #
453
+ # @!attribute [rw] policy_text
454
+ # The contents of the registry permissions policy that was deleted.
455
+ # @return [String]
456
+ #
457
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DeleteRegistryPolicyResponse AWS API Documentation
458
+ #
459
+ class DeleteRegistryPolicyResponse < Struct.new(
460
+ :registry_id,
461
+ :policy_text)
462
+ SENSITIVE = []
463
+ include Aws::Structure
464
+ end
465
+
443
466
  # @note When making an API call, you may pass DeleteRepositoryPolicyRequest
444
467
  # data as a hash:
445
468
  #
@@ -754,6 +777,29 @@ module Aws::ECR
754
777
  include Aws::Structure
755
778
  end
756
779
 
780
+ # @api private
781
+ #
782
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DescribeRegistryRequest AWS API Documentation
783
+ #
784
+ class DescribeRegistryRequest < Aws::EmptyStructure; end
785
+
786
+ # @!attribute [rw] registry_id
787
+ # The ID of the registry.
788
+ # @return [String]
789
+ #
790
+ # @!attribute [rw] replication_configuration
791
+ # The replication configuration for the registry.
792
+ # @return [Types::ReplicationConfiguration]
793
+ #
794
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DescribeRegistryResponse AWS API Documentation
795
+ #
796
+ class DescribeRegistryResponse < Struct.new(
797
+ :registry_id,
798
+ :replication_configuration)
799
+ SENSITIVE = []
800
+ include Aws::Structure
801
+ end
802
+
757
803
  # @note When making an API call, you may pass DescribeRepositoriesRequest
758
804
  # data as a hash:
759
805
  #
@@ -1179,6 +1225,29 @@ module Aws::ECR
1179
1225
  include Aws::Structure
1180
1226
  end
1181
1227
 
1228
+ # @api private
1229
+ #
1230
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/GetRegistryPolicyRequest AWS API Documentation
1231
+ #
1232
+ class GetRegistryPolicyRequest < Aws::EmptyStructure; end
1233
+
1234
+ # @!attribute [rw] registry_id
1235
+ # The ID of the registry.
1236
+ # @return [String]
1237
+ #
1238
+ # @!attribute [rw] policy_text
1239
+ # The JSON text of the permissions policy for a registry.
1240
+ # @return [String]
1241
+ #
1242
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/GetRegistryPolicyResponse AWS API Documentation
1243
+ #
1244
+ class GetRegistryPolicyResponse < Struct.new(
1245
+ :registry_id,
1246
+ :policy_text)
1247
+ SENSITIVE = []
1248
+ include Aws::Structure
1249
+ end
1250
+
1182
1251
  # @note When making an API call, you may pass GetRepositoryPolicyRequest
1183
1252
  # data as a hash:
1184
1253
  #
@@ -2362,6 +2431,91 @@ module Aws::ECR
2362
2431
  include Aws::Structure
2363
2432
  end
2364
2433
 
2434
+ # @note When making an API call, you may pass PutRegistryPolicyRequest
2435
+ # data as a hash:
2436
+ #
2437
+ # {
2438
+ # policy_text: "RegistryPolicyText", # required
2439
+ # }
2440
+ #
2441
+ # @!attribute [rw] policy_text
2442
+ # The JSON policy text to apply to your registry. The policy text
2443
+ # follows the same format as IAM policy text. For more information,
2444
+ # see [Registry permissions][1] in the *Amazon Elastic Container
2445
+ # Registry User Guide*.
2446
+ #
2447
+ #
2448
+ #
2449
+ # [1]: https://docs.aws.amazon.com/AmazonECR/latest/userguide/registry-permissions.html
2450
+ # @return [String]
2451
+ #
2452
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/PutRegistryPolicyRequest AWS API Documentation
2453
+ #
2454
+ class PutRegistryPolicyRequest < Struct.new(
2455
+ :policy_text)
2456
+ SENSITIVE = []
2457
+ include Aws::Structure
2458
+ end
2459
+
2460
+ # @!attribute [rw] registry_id
2461
+ # The registry ID.
2462
+ # @return [String]
2463
+ #
2464
+ # @!attribute [rw] policy_text
2465
+ # The JSON policy text for your registry.
2466
+ # @return [String]
2467
+ #
2468
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/PutRegistryPolicyResponse AWS API Documentation
2469
+ #
2470
+ class PutRegistryPolicyResponse < Struct.new(
2471
+ :registry_id,
2472
+ :policy_text)
2473
+ SENSITIVE = []
2474
+ include Aws::Structure
2475
+ end
2476
+
2477
+ # @note When making an API call, you may pass PutReplicationConfigurationRequest
2478
+ # data as a hash:
2479
+ #
2480
+ # {
2481
+ # replication_configuration: { # required
2482
+ # rules: [ # required
2483
+ # {
2484
+ # destinations: [ # required
2485
+ # {
2486
+ # region: "Region", # required
2487
+ # registry_id: "RegistryId", # required
2488
+ # },
2489
+ # ],
2490
+ # },
2491
+ # ],
2492
+ # },
2493
+ # }
2494
+ #
2495
+ # @!attribute [rw] replication_configuration
2496
+ # An object representing the replication configuration for a registry.
2497
+ # @return [Types::ReplicationConfiguration]
2498
+ #
2499
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/PutReplicationConfigurationRequest AWS API Documentation
2500
+ #
2501
+ class PutReplicationConfigurationRequest < Struct.new(
2502
+ :replication_configuration)
2503
+ SENSITIVE = []
2504
+ include Aws::Structure
2505
+ end
2506
+
2507
+ # @!attribute [rw] replication_configuration
2508
+ # The contents of the replication configuration for the registry.
2509
+ # @return [Types::ReplicationConfiguration]
2510
+ #
2511
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/PutReplicationConfigurationResponse AWS API Documentation
2512
+ #
2513
+ class PutReplicationConfigurationResponse < Struct.new(
2514
+ :replication_configuration)
2515
+ SENSITIVE = []
2516
+ include Aws::Structure
2517
+ end
2518
+
2365
2519
  # The manifest list is referencing an image that does not exist.
2366
2520
  #
2367
2521
  # @!attribute [rw] message
@@ -2375,6 +2529,110 @@ module Aws::ECR
2375
2529
  include Aws::Structure
2376
2530
  end
2377
2531
 
2532
+ # The registry doesn't have an associated registry policy.
2533
+ #
2534
+ # @!attribute [rw] message
2535
+ # @return [String]
2536
+ #
2537
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/RegistryPolicyNotFoundException AWS API Documentation
2538
+ #
2539
+ class RegistryPolicyNotFoundException < Struct.new(
2540
+ :message)
2541
+ SENSITIVE = []
2542
+ include Aws::Structure
2543
+ end
2544
+
2545
+ # The replication configuration for a registry.
2546
+ #
2547
+ # @note When making an API call, you may pass ReplicationConfiguration
2548
+ # data as a hash:
2549
+ #
2550
+ # {
2551
+ # rules: [ # required
2552
+ # {
2553
+ # destinations: [ # required
2554
+ # {
2555
+ # region: "Region", # required
2556
+ # registry_id: "RegistryId", # required
2557
+ # },
2558
+ # ],
2559
+ # },
2560
+ # ],
2561
+ # }
2562
+ #
2563
+ # @!attribute [rw] rules
2564
+ # An array of objects representing the replication rules for a
2565
+ # replication configuration. A replication configuration may contain
2566
+ # only one replication rule but the rule may contain one or more
2567
+ # replication destinations.
2568
+ # @return [Array<Types::ReplicationRule>]
2569
+ #
2570
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/ReplicationConfiguration AWS API Documentation
2571
+ #
2572
+ class ReplicationConfiguration < Struct.new(
2573
+ :rules)
2574
+ SENSITIVE = []
2575
+ include Aws::Structure
2576
+ end
2577
+
2578
+ # An array of objects representing the details of a replication
2579
+ # destination.
2580
+ #
2581
+ # @note When making an API call, you may pass ReplicationDestination
2582
+ # data as a hash:
2583
+ #
2584
+ # {
2585
+ # region: "Region", # required
2586
+ # registry_id: "RegistryId", # required
2587
+ # }
2588
+ #
2589
+ # @!attribute [rw] region
2590
+ # A Region to replicate to.
2591
+ # @return [String]
2592
+ #
2593
+ # @!attribute [rw] registry_id
2594
+ # The account ID of the destination registry to replicate to.
2595
+ # @return [String]
2596
+ #
2597
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/ReplicationDestination AWS API Documentation
2598
+ #
2599
+ class ReplicationDestination < Struct.new(
2600
+ :region,
2601
+ :registry_id)
2602
+ SENSITIVE = []
2603
+ include Aws::Structure
2604
+ end
2605
+
2606
+ # An array of objects representing the replication destinations for a
2607
+ # replication configuration. A replication configuration may contain
2608
+ # only one replication rule but the rule may contain one or more
2609
+ # replication destinations.
2610
+ #
2611
+ # @note When making an API call, you may pass ReplicationRule
2612
+ # data as a hash:
2613
+ #
2614
+ # {
2615
+ # destinations: [ # required
2616
+ # {
2617
+ # region: "Region", # required
2618
+ # registry_id: "RegistryId", # required
2619
+ # },
2620
+ # ],
2621
+ # }
2622
+ #
2623
+ # @!attribute [rw] destinations
2624
+ # An array of objects representing the details of a replication
2625
+ # destination.
2626
+ # @return [Array<Types::ReplicationDestination>]
2627
+ #
2628
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/ReplicationRule AWS API Documentation
2629
+ #
2630
+ class ReplicationRule < Struct.new(
2631
+ :destinations)
2632
+ SENSITIVE = []
2633
+ include Aws::Structure
2634
+ end
2635
+
2378
2636
  # An object representing a repository.
2379
2637
  #
2380
2638
  # @!attribute [rw] repository_arn
@@ -2942,5 +3200,18 @@ module Aws::ECR
2942
3200
  include Aws::Structure
2943
3201
  end
2944
3202
 
3203
+ # There was an exception validating this request.
3204
+ #
3205
+ # @!attribute [rw] message
3206
+ # @return [String]
3207
+ #
3208
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/ValidationException AWS API Documentation
3209
+ #
3210
+ class ValidationException < Struct.new(
3211
+ :message)
3212
+ SENSITIVE = []
3213
+ include Aws::Structure
3214
+ end
3215
+
2945
3216
  end
2946
3217
  end
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-ecr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.37.0
4
+ version: 1.42.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-08-25 00:00:00.000000000 Z
11
+ date: 2021-03-10 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.112.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.112.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -47,11 +47,14 @@ dependencies:
47
47
  description: Official AWS Ruby gem for Amazon EC2 Container Registry (Amazon ECR).
48
48
  This gem is part of the AWS SDK for Ruby.
49
49
  email:
50
- - trevrowe@amazon.com
50
+ - aws-dr-rubygems@amazon.com
51
51
  executables: []
52
52
  extensions: []
53
53
  extra_rdoc_files: []
54
54
  files:
55
+ - CHANGELOG.md
56
+ - LICENSE.txt
57
+ - VERSION
55
58
  - lib/aws-sdk-ecr.rb
56
59
  - lib/aws-sdk-ecr/client.rb
57
60
  - lib/aws-sdk-ecr/client_api.rb