convection 1.0.0.pre.beta.9 → 1.0.0.pre.beta.10
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 +4 -4
- data/lib/convection/model/template/resource/aws_ec2_spot_fleet.rb +24 -0
- data/lib/convection/model/template/resource_property/aws_ec2_iam_instance_profile.rb +15 -0
- data/lib/convection/model/template/resource_property/aws_ec2_spot_fleet_request_config_data.rb +29 -0
- data/lib/convection/model/template/resource_property/aws_ec2_spot_fleet_request_config_data_launch_specifications.rb +54 -0
- data/lib/convection/model/template/resource_property/aws_ec2_spot_fleet_request_config_data_launch_specifications_block_device_mapping.rb +24 -0
- data/lib/convection/model/template/resource_property/aws_ec2_spot_fleet_request_config_data_launch_specifications_block_device_mapping_ebs.rb +20 -0
- data/lib/convection/model/template/resource_property/aws_ec2_spot_fleet_request_config_data_launch_specifications_network_interface.rb +23 -0
- data/lib/convection/model/template/resource_property/aws_ec2_spot_fleet_request_config_data_launch_specifications_security_groups.rb +15 -0
- metadata +10 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7952cd78f788ee55f80b7241f5a0e06f3d6ab426
|
4
|
+
data.tar.gz: b7f4c398e6db761c3adda3f082b934011ede201a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bdac55c00c021892fecbf6799c1ec3e030bc7669845cb64b21ec9eeb6334534e351e1a2e36fd69bf4a0d507994b01fee219128dc587f0da8296f89fd89fd7c9b
|
7
|
+
data.tar.gz: 605d315c240390ae52471536ac07d018c79fc426c4d84bad21521fa76129e696506adeddbc23604ab2d0f73c8dd9ba39f6b799cc61f914710d6bacf31f206b7b
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require_relative '../resource'
|
2
|
+
|
3
|
+
module Convection
|
4
|
+
module Model
|
5
|
+
class Template
|
6
|
+
class Resource
|
7
|
+
##
|
8
|
+
# AWS::EC2::SpotFleet
|
9
|
+
##
|
10
|
+
class SpotFleet < Resource
|
11
|
+
type 'AWS::EC2::SpotFleet'
|
12
|
+
property :spot_fleet_request_configuration, 'SpotFleetRequestConfigData'
|
13
|
+
|
14
|
+
# Configuration for a Spot fleet request
|
15
|
+
def spot_fleet_request_configuration(&block)
|
16
|
+
config = ResourceProperty::EC2SpotFleetRequestConfigData.new(self)
|
17
|
+
config.instance_exec(&block) if block
|
18
|
+
properties['SpotFleetRequestConfigData'].set(config)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require_relative '../resource_property'
|
2
|
+
|
3
|
+
module Convection
|
4
|
+
module Model
|
5
|
+
class Template
|
6
|
+
class ResourceProperty
|
7
|
+
# Represents an {https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-iaminstanceprofile.html
|
8
|
+
# EC2 Block Device Mapping Property Type}
|
9
|
+
class EC2SpotFleetRequestConfigDataLaunchSpecificationsIamInstanceProfile < ResourceProperty
|
10
|
+
property :arn, 'Arn'
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
data/lib/convection/model/template/resource_property/aws_ec2_spot_fleet_request_config_data.rb
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
require_relative '../resource_property'
|
2
|
+
|
3
|
+
module Convection
|
4
|
+
module Model
|
5
|
+
class Template
|
6
|
+
class ResourceProperty
|
7
|
+
# Represents an {https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html
|
8
|
+
# EC2 Spot Fleet Request Config Data Property Type}
|
9
|
+
class EC2SpotFleetRequestConfigData < ResourceProperty
|
10
|
+
property :allocation_strategy, 'AllocationStrategy'
|
11
|
+
property :excess_capacity_termination_policy, 'ExcessCapacityTerminationPolicy'
|
12
|
+
property :iam_fleet_role, 'IamFleetRole'
|
13
|
+
property :launch_specifications, 'LaunchSpecifications', :type => :list
|
14
|
+
property :spot_price, 'SpotPrice'
|
15
|
+
property :target_capacity, 'TargetCapacity'
|
16
|
+
property :terminate_instances_with_expiration, 'TerminateInstancesWithExpiration'
|
17
|
+
property :valid_from, 'ValidFrom'
|
18
|
+
property :valid_until, 'ValidUntil'
|
19
|
+
|
20
|
+
def launch_specification(&block)
|
21
|
+
launch_specification = ResourceProperty::EC2SpotFleetRequestConfigDataLaunchSpecifications.new(self)
|
22
|
+
launch_specification.instance_exec(&block) if block
|
23
|
+
launch_specifications << launch_specification
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,54 @@
|
|
1
|
+
require_relative '../resource_property'
|
2
|
+
|
3
|
+
module Convection
|
4
|
+
module Model
|
5
|
+
class Template
|
6
|
+
class ResourceProperty
|
7
|
+
# Represents an {https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html
|
8
|
+
# EC2 Spot Fleet Request Config Data Launch Specification Property Type}
|
9
|
+
class EC2SpotFleetRequestConfigDataLaunchSpecifications < ResourceProperty
|
10
|
+
property :block_device_mappings, 'BlockDeviceMappings', :type => :array
|
11
|
+
property :ebs_optimized, 'EbsOptimized'
|
12
|
+
property :iam_instance_profile, 'IamInstanceProfile'
|
13
|
+
property :image_id, 'ImageId'
|
14
|
+
property :instance_type, 'InstanceType'
|
15
|
+
property :kernel_id, 'KernelId'
|
16
|
+
property :key_name, 'KeyName'
|
17
|
+
property :monitoring, 'Monitoring'
|
18
|
+
property :network_interfaces, 'NetworkInterfaces', :type => :array
|
19
|
+
property :placement, 'Placement'
|
20
|
+
property :ramdisk_id, 'RamdiskId'
|
21
|
+
property :security_groups, 'SecurityGroups', :type => :array
|
22
|
+
property :spot_price, 'SpotPrice'
|
23
|
+
property :subnet_id, 'SubnetId'
|
24
|
+
property :user_data, 'UserData'
|
25
|
+
property :weighted_capacity, 'WeightedCapacity'
|
26
|
+
|
27
|
+
def block_device_mapping(&block)
|
28
|
+
block_device_mapping = ResourceProperty::EC2SpotFleetRequestConfigDataLaunchSpecificationsBlockDeviceMapping.new(self)
|
29
|
+
block_device_mapping.instance_exec(&block) if block
|
30
|
+
block_device_mappings << block_device_mapping
|
31
|
+
end
|
32
|
+
|
33
|
+
def iam_instance_profile(&block)
|
34
|
+
iam = ResourceProperty::EC2SpotFleetRequestConfigDataLaunchSpecificationsIamInstanceProfile.new(self)
|
35
|
+
iam.instance_exec(&block) if block
|
36
|
+
properties['IamInstanceProfile'].set(iam)
|
37
|
+
end
|
38
|
+
|
39
|
+
def network_interfaces(&block)
|
40
|
+
network_interface = ResourceProperty::EC2SpotFleetRequestConfigDataLaunchSpecificationsNetworkInterface.new(self)
|
41
|
+
network_interface.instance_exec(&block) if block
|
42
|
+
network_interfaces << network_interface
|
43
|
+
end
|
44
|
+
|
45
|
+
def security_group(&block)
|
46
|
+
sec_group = ResourceProperty::EC2SpotFleetRequestConfigDataLaunchSpecificationsSecurityGroups.new(self)
|
47
|
+
sec_group.instance_exec(&block) if block
|
48
|
+
security_groups << sec_group
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require_relative '../resource_property'
|
2
|
+
|
3
|
+
module Convection
|
4
|
+
module Model
|
5
|
+
class Template
|
6
|
+
class ResourceProperty
|
7
|
+
# Represents an {https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-blockdevicemappings.html
|
8
|
+
# EC2 Spot Fleet Request Config Data Launch Specifications Block Device Mapping Property Type}
|
9
|
+
class EC2SpotFleetRequestConfigDataLaunchSpecificationsBlockDeviceMapping < ResourceProperty
|
10
|
+
property :device_name, 'DeviceName'
|
11
|
+
property :ebs, 'Ebs'
|
12
|
+
property :no_device, 'NoDevice'
|
13
|
+
property :virtual_name, 'VirtualName'
|
14
|
+
|
15
|
+
def ebs(&block)
|
16
|
+
config = ResourceProperty::EC2SpotFleetRequestConfigDataLaunchSpecificationsBlockDeviceMappingEbs.new(self)
|
17
|
+
config.instance_exec(&block) if block
|
18
|
+
properties['Ebs'].set(config)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require_relative '../resource_property'
|
2
|
+
|
3
|
+
module Convection
|
4
|
+
module Model
|
5
|
+
class Template
|
6
|
+
class ResourceProperty
|
7
|
+
# Represents an {https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-blockdevicemappings-ebs.html
|
8
|
+
# EC2 Spot Fleet Request Config Data Launch Specifications Block Device Mapping Ebs Property Type}
|
9
|
+
class EC2SpotFleetRequestConfigDataLaunchSpecificationsBlockDeviceMappingEbs < ResourceProperty
|
10
|
+
property :delete_on_termination, 'DeleteOnTermination'
|
11
|
+
property :encrypted, 'Encrypted'
|
12
|
+
property :iops, 'Iops'
|
13
|
+
property :snapshot_id, 'SnapshotId'
|
14
|
+
property :volume_size, 'VolumeSize'
|
15
|
+
property :volume_type, 'VolumeType'
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require_relative '../resource_property'
|
2
|
+
|
3
|
+
module Convection
|
4
|
+
module Model
|
5
|
+
class Template
|
6
|
+
class ResourceProperty
|
7
|
+
# Represents an {https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-networkinterfaces.html
|
8
|
+
# EC2 Spot Fleet Request Config Data Launch Specification Network Interfaces Property Type}
|
9
|
+
class EC2SpotFleetRequestConfigDataLaunchSpecificationsNetworkInterface < ResourceProperty
|
10
|
+
property :associate_public_ip_address, 'AssociatePublicIpAddress'
|
11
|
+
property :delete_on_termination, 'DeleteOnTermination'
|
12
|
+
property :description, 'Description'
|
13
|
+
property :device_index, 'DeviceIndex'
|
14
|
+
property :groups, 'Groups', :type => :list
|
15
|
+
property :network_interface_id, 'NetworkInterfaceId'
|
16
|
+
property :private_ip_addresses, 'PrivateIpAddresses', :type => :list
|
17
|
+
property :secondary_private_ip_address_count, 'SecondaryPrivateIpAddressCount'
|
18
|
+
property :subnet, 'SubnetId'
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require_relative '../resource_property'
|
2
|
+
|
3
|
+
module Convection
|
4
|
+
module Model
|
5
|
+
class Template
|
6
|
+
class ResourceProperty
|
7
|
+
# Represents an {https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-securitygroups.html
|
8
|
+
# EC2 spot fleet request config data launch specifications security groups Property Type}
|
9
|
+
class EC2SpotFleetRequestConfigDataLaunchSpecificationsSecurityGroups < ResourceProperty
|
10
|
+
property :group_id, 'GroupId'
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: convection
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.pre.beta.
|
4
|
+
version: 1.0.0.pre.beta.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Manero
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|
@@ -157,6 +157,7 @@ files:
|
|
157
157
|
- lib/convection/model/template/resource/aws_ec2_route_table.rb
|
158
158
|
- lib/convection/model/template/resource/aws_ec2_security_group.rb
|
159
159
|
- lib/convection/model/template/resource/aws_ec2_security_group_ingres.rb
|
160
|
+
- lib/convection/model/template/resource/aws_ec2_spot_fleet.rb
|
160
161
|
- lib/convection/model/template/resource/aws_ec2_subnet.rb
|
161
162
|
- lib/convection/model/template/resource/aws_ec2_subnet_network_acl_association.rb
|
162
163
|
- lib/convection/model/template/resource/aws_ec2_subnet_route_table_association.rb
|
@@ -231,8 +232,15 @@ files:
|
|
231
232
|
- lib/convection/model/template/resource_property/aws_cloudfront_viewercertificate.rb
|
232
233
|
- lib/convection/model/template/resource_property/aws_ec2_block_device_mapping.rb
|
233
234
|
- lib/convection/model/template/resource_property/aws_ec2_block_store_block_device.rb
|
235
|
+
- lib/convection/model/template/resource_property/aws_ec2_iam_instance_profile.rb
|
234
236
|
- lib/convection/model/template/resource_property/aws_ec2_mount_point.rb
|
235
237
|
- lib/convection/model/template/resource_property/aws_ec2_network_interface.rb
|
238
|
+
- lib/convection/model/template/resource_property/aws_ec2_spot_fleet_request_config_data.rb
|
239
|
+
- lib/convection/model/template/resource_property/aws_ec2_spot_fleet_request_config_data_launch_specifications.rb
|
240
|
+
- lib/convection/model/template/resource_property/aws_ec2_spot_fleet_request_config_data_launch_specifications_block_device_mapping.rb
|
241
|
+
- lib/convection/model/template/resource_property/aws_ec2_spot_fleet_request_config_data_launch_specifications_block_device_mapping_ebs.rb
|
242
|
+
- lib/convection/model/template/resource_property/aws_ec2_spot_fleet_request_config_data_launch_specifications_network_interface.rb
|
243
|
+
- lib/convection/model/template/resource_property/aws_ec2_spot_fleet_request_config_data_launch_specifications_security_groups.rb
|
236
244
|
- lib/convection/model/template/resource_property/aws_elbv2_listener_certificates.rb
|
237
245
|
- lib/convection/model/template/resource_property/aws_elbv2_listener_default_action.rb
|
238
246
|
- lib/convection/model/template/resource_property/aws_elbv2_listener_rule_action.rb
|