aws-sdk-ec2 1.274.0 → 1.275.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 898edb5a4f9f6ca7c35d76f7c8d9b30640d7fc78465d662ba2d5495dbf9681dd
4
- data.tar.gz: 51f641cd18fd9656a062799aa293667ea7663668dbc8290256da0e3b59275f4e
3
+ metadata.gz: d98ad40003f74aaff309c7201c279a4eb66fbf284931eace1d1991b6f34fadba
4
+ data.tar.gz: f472a6b07897f1838dcb602aca18b049930fef692d1be04912c9af0361287f7c
5
5
  SHA512:
6
- metadata.gz: 1160e20b35ab5666b239f4967fb1a9f8c50f1b80478252ea73b1428929ef5cb52f209fb8a37271e5f4dbc7d303adf92c1c5e039c632fc97be21038cbf1060f26
7
- data.tar.gz: 125bfe7d979294985367133fdeef8ce4b510e5da2dfc77e6c468f11d758bb69f800d73f93ae14d09bcf9e4dcdc8fc3b5c30b8dd58cdbdcedd33712c82c404697
6
+ metadata.gz: f04f02376f5cf77758ad368ec92e872c3800fdb0ba28303a6f4f7703a4e0eb3784a77c3d33a64ab192eafee406c8589293adaec9a305941cd043a516e703cb40
7
+ data.tar.gz: 5e164de7154b4fc5d190df81d06a2aed21e2eb3bc1d31b2d35ab404688dc6e46a34193c7e081e18ccd0a980f203eb97216ee30c5326ec905bbc59fd42ca77975
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.275.0 (2021-10-29)
5
+ ------------------
6
+
7
+ * Feature - Support added for AMI sharing with organizations and organizational units in ModifyImageAttribute API
8
+
4
9
  1.274.0 (2021-10-28)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.274.0
1
+ 1.275.0
@@ -18717,6 +18717,8 @@ module Aws::EC2
18717
18717
  # resp.launch_permissions #=> Array
18718
18718
  # resp.launch_permissions[0].group #=> String, one of "all"
18719
18719
  # resp.launch_permissions[0].user_id #=> String
18720
+ # resp.launch_permissions[0].organization_arn #=> String
18721
+ # resp.launch_permissions[0].organizational_unit_arn #=> String
18720
18722
  # resp.product_codes #=> Array
18721
18723
  # resp.product_codes[0].product_code_id #=> String
18722
18724
  # resp.product_codes[0].product_code_type #=> String, one of "devpay", "marketplace"
@@ -18753,6 +18755,18 @@ module Aws::EC2
18753
18755
  # an Amazon Web Services account ID, `self` (the sender of the request),
18754
18756
  # or `all` (public AMIs).
18755
18757
  #
18758
+ # * If you specify an Amazon Web Services account ID that is not your
18759
+ # own, only AMIs shared with that specific Amazon Web Services account
18760
+ # ID are returned. However, AMIs that are shared with the account’s
18761
+ # organization or organizational unit (OU) are not returned.
18762
+ #
18763
+ # * If you specify `self` or your own Amazon Web Services account ID,
18764
+ # AMIs shared with your account are returned. In addition, AMIs that
18765
+ # are shared with the organization or OU of which you are member are
18766
+ # also returned.
18767
+ #
18768
+ # * If you specify `all`, all public AMIs are returned.
18769
+ #
18756
18770
  # @option params [Array<Types::Filter>] :filters
18757
18771
  # The filters.
18758
18772
  #
@@ -35919,8 +35933,9 @@ module Aws::EC2
35919
35933
  # the instance.
35920
35934
  #
35921
35935
  # @option params [String] :attribute
35922
- # The name of the attribute to modify. The valid values are
35923
- # `description` and `launchPermission`.
35936
+ # The name of the attribute to modify.
35937
+ #
35938
+ # Valid values: `description` \| `launchPermission`
35924
35939
  #
35925
35940
  # @option params [Types::AttributeValue] :description
35926
35941
  # A new description for the AMI.
@@ -35956,6 +35971,15 @@ module Aws::EC2
35956
35971
  # If you have the required permissions, the error response is
35957
35972
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
35958
35973
  #
35974
+ # @option params [Array<String>] :organization_arns
35975
+ # The Amazon Resource Name (ARN) of an organization. This parameter can
35976
+ # be used only when the `Attribute` parameter is `launchPermission`.
35977
+ #
35978
+ # @option params [Array<String>] :organizational_unit_arns
35979
+ # The Amazon Resource Name (ARN) of an organizational unit (OU). This
35980
+ # parameter can be used only when the `Attribute` parameter is
35981
+ # `launchPermission`.
35982
+ #
35959
35983
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
35960
35984
  #
35961
35985
  #
@@ -36008,12 +36032,16 @@ module Aws::EC2
36008
36032
  # {
36009
36033
  # group: "all", # accepts all
36010
36034
  # user_id: "String",
36035
+ # organization_arn: "String",
36036
+ # organizational_unit_arn: "String",
36011
36037
  # },
36012
36038
  # ],
36013
36039
  # remove: [
36014
36040
  # {
36015
36041
  # group: "all", # accepts all
36016
36042
  # user_id: "String",
36043
+ # organization_arn: "String",
36044
+ # organizational_unit_arn: "String",
36017
36045
  # },
36018
36046
  # ],
36019
36047
  # },
@@ -36023,6 +36051,8 @@ module Aws::EC2
36023
36051
  # user_ids: ["String"],
36024
36052
  # value: "String",
36025
36053
  # dry_run: false,
36054
+ # organization_arns: ["String"],
36055
+ # organizational_unit_arns: ["String"],
36026
36056
  # })
36027
36057
  #
36028
36058
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyImageAttribute AWS API Documentation
@@ -45181,7 +45211,7 @@ module Aws::EC2
45181
45211
  params: params,
45182
45212
  config: config)
45183
45213
  context[:gem_name] = 'aws-sdk-ec2'
45184
- context[:gem_version] = '1.274.0'
45214
+ context[:gem_version] = '1.275.0'
45185
45215
  Seahorse::Client::Request.new(handlers, context)
45186
45216
  end
45187
45217
 
@@ -1750,6 +1750,8 @@ module Aws::EC2
1750
1750
  OnDemandOptions = Shapes::StructureShape.new(name: 'OnDemandOptions')
1751
1751
  OnDemandOptionsRequest = Shapes::StructureShape.new(name: 'OnDemandOptionsRequest')
1752
1752
  OperationType = Shapes::StringShape.new(name: 'OperationType')
1753
+ OrganizationArnStringList = Shapes::ListShape.new(name: 'OrganizationArnStringList')
1754
+ OrganizationalUnitArnStringList = Shapes::ListShape.new(name: 'OrganizationalUnitArnStringList')
1753
1755
  OutpostArn = Shapes::StringShape.new(name: 'OutpostArn')
1754
1756
  OwnerStringList = Shapes::ListShape.new(name: 'OwnerStringList')
1755
1757
  PartitionLoadFrequency = Shapes::StringShape.new(name: 'PartitionLoadFrequency')
@@ -8173,6 +8175,8 @@ module Aws::EC2
8173
8175
 
8174
8176
  LaunchPermission.add_member(:group, Shapes::ShapeRef.new(shape: PermissionGroup, location_name: "group"))
8175
8177
  LaunchPermission.add_member(:user_id, Shapes::ShapeRef.new(shape: String, location_name: "userId"))
8178
+ LaunchPermission.add_member(:organization_arn, Shapes::ShapeRef.new(shape: String, location_name: "organizationArn"))
8179
+ LaunchPermission.add_member(:organizational_unit_arn, Shapes::ShapeRef.new(shape: String, location_name: "organizationalUnitArn"))
8176
8180
  LaunchPermission.struct_class = Types::LaunchPermission
8177
8181
 
8178
8182
  LaunchPermissionList.member = Shapes::ShapeRef.new(shape: LaunchPermission, location_name: "item")
@@ -8746,6 +8750,8 @@ module Aws::EC2
8746
8750
  ModifyImageAttributeRequest.add_member(:user_ids, Shapes::ShapeRef.new(shape: UserIdStringList, location_name: "UserId"))
8747
8751
  ModifyImageAttributeRequest.add_member(:value, Shapes::ShapeRef.new(shape: String, location_name: "Value"))
8748
8752
  ModifyImageAttributeRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
8753
+ ModifyImageAttributeRequest.add_member(:organization_arns, Shapes::ShapeRef.new(shape: OrganizationArnStringList, location_name: "OrganizationArn"))
8754
+ ModifyImageAttributeRequest.add_member(:organizational_unit_arns, Shapes::ShapeRef.new(shape: OrganizationalUnitArnStringList, location_name: "OrganizationalUnitArn"))
8749
8755
  ModifyImageAttributeRequest.struct_class = Types::ModifyImageAttributeRequest
8750
8756
 
8751
8757
  ModifyInstanceAttributeRequest.add_member(:source_dest_check, Shapes::ShapeRef.new(shape: AttributeBooleanValue, location_name: "SourceDestCheck"))
@@ -9384,6 +9390,10 @@ module Aws::EC2
9384
9390
  OnDemandOptionsRequest.add_member(:max_total_price, Shapes::ShapeRef.new(shape: String, location_name: "MaxTotalPrice"))
9385
9391
  OnDemandOptionsRequest.struct_class = Types::OnDemandOptionsRequest
9386
9392
 
9393
+ OrganizationArnStringList.member = Shapes::ShapeRef.new(shape: String, location_name: "OrganizationArn")
9394
+
9395
+ OrganizationalUnitArnStringList.member = Shapes::ShapeRef.new(shape: String, location_name: "OrganizationalUnitArn")
9396
+
9387
9397
  OwnerStringList.member = Shapes::ShapeRef.new(shape: String, location_name: "Owner")
9388
9398
 
9389
9399
  PathComponent.add_member(:sequence_number, Shapes::ShapeRef.new(shape: Integer, location_name: "sequenceNumber"))
@@ -533,12 +533,16 @@ module Aws::EC2
533
533
  # {
534
534
  # group: "all", # accepts all
535
535
  # user_id: "String",
536
+ # organization_arn: "String",
537
+ # organizational_unit_arn: "String",
536
538
  # },
537
539
  # ],
538
540
  # remove: [
539
541
  # {
540
542
  # group: "all", # accepts all
541
543
  # user_id: "String",
544
+ # organization_arn: "String",
545
+ # organizational_unit_arn: "String",
542
546
  # },
543
547
  # ],
544
548
  # },
@@ -548,11 +552,14 @@ module Aws::EC2
548
552
  # user_ids: ["String"],
549
553
  # value: "String",
550
554
  # dry_run: false,
555
+ # organization_arns: ["String"],
556
+ # organizational_unit_arns: ["String"],
551
557
  # })
552
558
  # @param [Hash] options ({})
553
559
  # @option options [String] :attribute
554
- # The name of the attribute to modify. The valid values are
555
- # `description` and `launchPermission`.
560
+ # The name of the attribute to modify.
561
+ #
562
+ # Valid values: `description` \| `launchPermission`
556
563
  # @option options [Types::AttributeValue] :description
557
564
  # A new description for the AMI.
558
565
  # @option options [Types::LaunchPermissionModifications] :launch_permission
@@ -576,6 +583,13 @@ module Aws::EC2
576
583
  # without actually making the request, and provides an error response.
577
584
  # If you have the required permissions, the error response is
578
585
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
586
+ # @option options [Array<String>] :organization_arns
587
+ # The Amazon Resource Name (ARN) of an organization. This parameter can
588
+ # be used only when the `Attribute` parameter is `launchPermission`.
589
+ # @option options [Array<String>] :organizational_unit_arns
590
+ # The Amazon Resource Name (ARN) of an organizational unit (OU). This
591
+ # parameter can be used only when the `Attribute` parameter is
592
+ # `launchPermission`.
579
593
  # @return [EmptyStructure]
580
594
  def modify_attribute(options = {})
581
595
  options = options.merge(image_id: @id)
@@ -1902,6 +1902,18 @@ module Aws::EC2
1902
1902
  # Scopes the images by users with explicit launch permissions. Specify
1903
1903
  # an Amazon Web Services account ID, `self` (the sender of the request),
1904
1904
  # or `all` (public AMIs).
1905
+ #
1906
+ # * If you specify an Amazon Web Services account ID that is not your
1907
+ # own, only AMIs shared with that specific Amazon Web Services account
1908
+ # ID are returned. However, AMIs that are shared with the account’s
1909
+ # organization or organizational unit (OU) are not returned.
1910
+ #
1911
+ # * If you specify `self` or your own Amazon Web Services account ID,
1912
+ # AMIs shared with your account are returned. In addition, AMIs that
1913
+ # are shared with the organization or OU of which you are member are
1914
+ # also returned.
1915
+ #
1916
+ # * If you specify `all`, all public AMIs are returned.
1905
1917
  # @option options [Array<Types::Filter>] :filters
1906
1918
  # The filters.
1907
1919
  #
@@ -18734,6 +18734,19 @@ module Aws::EC2
18734
18734
  # Scopes the images by users with explicit launch permissions. Specify
18735
18735
  # an Amazon Web Services account ID, `self` (the sender of the
18736
18736
  # request), or `all` (public AMIs).
18737
+ #
18738
+ # * If you specify an Amazon Web Services account ID that is not your
18739
+ # own, only AMIs shared with that specific Amazon Web Services
18740
+ # account ID are returned. However, AMIs that are shared with the
18741
+ # account’s organization or organizational unit (OU) are not
18742
+ # returned.
18743
+ #
18744
+ # * If you specify `self` or your own Amazon Web Services account ID,
18745
+ # AMIs shared with your account are returned. In addition, AMIs that
18746
+ # are shared with the organization or OU of which you are member are
18747
+ # also returned.
18748
+ #
18749
+ # * If you specify `all`, all public AMIs are returned.
18737
18750
  # @return [Array<String>]
18738
18751
  #
18739
18752
  # @!attribute [rw] filters
@@ -37737,10 +37750,10 @@ module Aws::EC2
37737
37750
  # type, size, or generation. The following are examples: `m5.8xlarge`,
37738
37751
  # `c5*.*`, `m5a.*`, `r*`, `*3*`.
37739
37752
  #
37740
- # For example, if you specify `c5*.*`, Amazon EC2 will exclude the
37741
- # entire C5 instance family (all C5a and C5n instance types). If you
37742
- # specify `c5a.*`, Amazon EC2 excludes all the C5a instance types, but
37743
- # does not exclude the C5n instance types.
37753
+ # For example, if you specify `c5*`,Amazon EC2 will exclude the entire
37754
+ # C5 instance family, which includes all C5a and C5n instance types.
37755
+ # If you specify `m5a.*`, Amazon EC2 will exclude all the M5a instance
37756
+ # types, but not the M5n instance types.
37744
37757
  #
37745
37758
  # Default: No excluded instance types
37746
37759
  # @return [Array<String>]
@@ -38125,10 +38138,10 @@ module Aws::EC2
38125
38138
  # family, type, size, or generation. The following are examples:
38126
38139
  # `m5.8xlarge`, `c5*.*`, `m5a.*`, `r*`, `*3*`.
38127
38140
  #
38128
- # For example, if you specify `c5*.*`, Amazon EC2 will exclude the
38129
- # entire C5 instance family (all C5a and C5n instance types). If you
38130
- # specify `c5a.*`, Amazon EC2 excludes all the C5a instance types, but
38131
- # does not exclude the C5n instance types.
38141
+ # For example, if you specify `c5*`,Amazon EC2 will exclude the entire
38142
+ # C5 instance family, which includes all C5a and C5n instance types.
38143
+ # If you specify `m5a.*`, Amazon EC2 will exclude all the M5a instance
38144
+ # types, but not the M5n instance types.
38132
38145
  #
38133
38146
  # Default: No excluded instance types
38134
38147
  # @return [Array<String>]
@@ -39511,6 +39524,8 @@ module Aws::EC2
39511
39524
  # {
39512
39525
  # group: "all", # accepts all
39513
39526
  # user_id: "String",
39527
+ # organization_arn: "String",
39528
+ # organizational_unit_arn: "String",
39514
39529
  # }
39515
39530
  #
39516
39531
  # @!attribute [rw] group
@@ -39524,11 +39539,21 @@ module Aws::EC2
39524
39539
  # request.
39525
39540
  # @return [String]
39526
39541
  #
39542
+ # @!attribute [rw] organization_arn
39543
+ # The Amazon Resource Name (ARN) of an organization.
39544
+ # @return [String]
39545
+ #
39546
+ # @!attribute [rw] organizational_unit_arn
39547
+ # The Amazon Resource Name (ARN) of an organizational unit (OU).
39548
+ # @return [String]
39549
+ #
39527
39550
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchPermission AWS API Documentation
39528
39551
  #
39529
39552
  class LaunchPermission < Struct.new(
39530
39553
  :group,
39531
- :user_id)
39554
+ :user_id,
39555
+ :organization_arn,
39556
+ :organizational_unit_arn)
39532
39557
  SENSITIVE = []
39533
39558
  include Aws::Structure
39534
39559
  end
@@ -39543,12 +39568,16 @@ module Aws::EC2
39543
39568
  # {
39544
39569
  # group: "all", # accepts all
39545
39570
  # user_id: "String",
39571
+ # organization_arn: "String",
39572
+ # organizational_unit_arn: "String",
39546
39573
  # },
39547
39574
  # ],
39548
39575
  # remove: [
39549
39576
  # {
39550
39577
  # group: "all", # accepts all
39551
39578
  # user_id: "String",
39579
+ # organization_arn: "String",
39580
+ # organizational_unit_arn: "String",
39552
39581
  # },
39553
39582
  # ],
39554
39583
  # }
@@ -43068,12 +43097,16 @@ module Aws::EC2
43068
43097
  # {
43069
43098
  # group: "all", # accepts all
43070
43099
  # user_id: "String",
43100
+ # organization_arn: "String",
43101
+ # organizational_unit_arn: "String",
43071
43102
  # },
43072
43103
  # ],
43073
43104
  # remove: [
43074
43105
  # {
43075
43106
  # group: "all", # accepts all
43076
43107
  # user_id: "String",
43108
+ # organization_arn: "String",
43109
+ # organizational_unit_arn: "String",
43077
43110
  # },
43078
43111
  # ],
43079
43112
  # },
@@ -43083,11 +43116,14 @@ module Aws::EC2
43083
43116
  # user_ids: ["String"],
43084
43117
  # value: "String",
43085
43118
  # dry_run: false,
43119
+ # organization_arns: ["String"],
43120
+ # organizational_unit_arns: ["String"],
43086
43121
  # }
43087
43122
  #
43088
43123
  # @!attribute [rw] attribute
43089
- # The name of the attribute to modify. The valid values are
43090
- # `description` and `launchPermission`.
43124
+ # The name of the attribute to modify.
43125
+ #
43126
+ # Valid values: `description` \| `launchPermission`
43091
43127
  # @return [String]
43092
43128
  #
43093
43129
  # @!attribute [rw] description
@@ -43133,6 +43169,18 @@ module Aws::EC2
43133
43169
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
43134
43170
  # @return [Boolean]
43135
43171
  #
43172
+ # @!attribute [rw] organization_arns
43173
+ # The Amazon Resource Name (ARN) of an organization. This parameter
43174
+ # can be used only when the `Attribute` parameter is
43175
+ # `launchPermission`.
43176
+ # @return [Array<String>]
43177
+ #
43178
+ # @!attribute [rw] organizational_unit_arns
43179
+ # The Amazon Resource Name (ARN) of an organizational unit (OU). This
43180
+ # parameter can be used only when the `Attribute` parameter is
43181
+ # `launchPermission`.
43182
+ # @return [Array<String>]
43183
+ #
43136
43184
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyImageAttributeRequest AWS API Documentation
43137
43185
  #
43138
43186
  class ModifyImageAttributeRequest < Struct.new(
@@ -43145,7 +43193,9 @@ module Aws::EC2
43145
43193
  :user_groups,
43146
43194
  :user_ids,
43147
43195
  :value,
43148
- :dry_run)
43196
+ :dry_run,
43197
+ :organization_arns,
43198
+ :organizational_unit_arns)
43149
43199
  SENSITIVE = []
43150
43200
  include Aws::Structure
43151
43201
  end
data/lib/aws-sdk-ec2.rb CHANGED
@@ -72,6 +72,6 @@ require_relative 'aws-sdk-ec2/customizations'
72
72
  # @!group service
73
73
  module Aws::EC2
74
74
 
75
- GEM_VERSION = '1.274.0'
75
+ GEM_VERSION = '1.275.0'
76
76
 
77
77
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-ec2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.274.0
4
+ version: 1.275.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: 2021-10-28 00:00:00.000000000 Z
11
+ date: 2021-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sigv4