aws-sdk-autoscaling 1.121.0 → 1.123.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -375,6 +375,7 @@ module Aws::AutoScaling
375
375
  TrafficSourceStates = Shapes::ListShape.new(name: 'TrafficSourceStates')
376
376
  TrafficSources = Shapes::ListShape.new(name: 'TrafficSources')
377
377
  UpdateAutoScalingGroupType = Shapes::StructureShape.new(name: 'UpdateAutoScalingGroupType')
378
+ UpdatePlacementGroupParam = Shapes::StringShape.new(name: 'UpdatePlacementGroupParam')
378
379
  VCpuCountRequest = Shapes::StructureShape.new(name: 'VCpuCountRequest')
379
380
  Values = Shapes::ListShape.new(name: 'Values')
380
381
  WarmPoolConfiguration = Shapes::StructureShape.new(name: 'WarmPoolConfiguration')
@@ -1539,7 +1540,7 @@ module Aws::AutoScaling
1539
1540
  UpdateAutoScalingGroupType.add_member(:availability_zones, Shapes::ShapeRef.new(shape: AvailabilityZones, location_name: "AvailabilityZones"))
1540
1541
  UpdateAutoScalingGroupType.add_member(:health_check_type, Shapes::ShapeRef.new(shape: XmlStringMaxLen32, location_name: "HealthCheckType"))
1541
1542
  UpdateAutoScalingGroupType.add_member(:health_check_grace_period, Shapes::ShapeRef.new(shape: HealthCheckGracePeriod, location_name: "HealthCheckGracePeriod"))
1542
- UpdateAutoScalingGroupType.add_member(:placement_group, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "PlacementGroup"))
1543
+ UpdateAutoScalingGroupType.add_member(:placement_group, Shapes::ShapeRef.new(shape: UpdatePlacementGroupParam, location_name: "PlacementGroup"))
1543
1544
  UpdateAutoScalingGroupType.add_member(:vpc_zone_identifier, Shapes::ShapeRef.new(shape: XmlStringMaxLen5000, location_name: "VPCZoneIdentifier"))
1544
1545
  UpdateAutoScalingGroupType.add_member(:termination_policies, Shapes::ShapeRef.new(shape: TerminationPolicies, location_name: "TerminationPolicies"))
1545
1546
  UpdateAutoScalingGroupType.add_member(:new_instances_protected_from_scale_in, Shapes::ShapeRef.new(shape: InstanceProtected, location_name: "NewInstancesProtectedFromScaleIn"))
@@ -52,15 +52,18 @@ module Aws::AutoScaling
52
52
  self[:region] = options[:region]
53
53
  self[:use_dual_stack] = options[:use_dual_stack]
54
54
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
- if self[:use_dual_stack].nil?
56
- raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
57
- end
58
55
  self[:use_fips] = options[:use_fips]
59
56
  self[:use_fips] = false if self[:use_fips].nil?
60
- if self[:use_fips].nil?
61
- raise ArgumentError, "Missing required EndpointParameter: :use_fips"
62
- end
63
57
  self[:endpoint] = options[:endpoint]
64
58
  end
59
+
60
+ def self.create(config, options={})
61
+ new({
62
+ region: config.region,
63
+ use_dual_stack: config.use_dualstack_endpoint,
64
+ use_fips: config.use_fips_endpoint,
65
+ endpoint: (config.endpoint.to_s unless config.regional_endpoint),
66
+ }.merge(options))
67
+ end
65
68
  end
66
69
  end