-
Notifications
You must be signed in to change notification settings - Fork 17
/
awsstepfunctionstasks_EmrCreateCluster_InstanceFleetConfigProperty.go
97 lines (94 loc) · 4.07 KB
/
awsstepfunctionstasks_EmrCreateCluster_InstanceFleetConfigProperty.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
package awsstepfunctionstasks
// The configuration that defines an instance fleet.
//
// Example:
// // The code below shows an example of how to instantiate this type.
// // The values are placeholders you should change.
// import monocdk "github.com/aws/aws-cdk-go/awscdk"
// import "github.com/aws/aws-cdk-go/awscdk"
//
// var configurationProperty_ configurationProperty
// var size size
//
// instanceFleetConfigProperty := &instanceFleetConfigProperty{
// instanceFleetType: awscdk.Aws_stepfunctions_tasks.emrCreateCluster.instanceRoleType_MASTER,
//
// // the properties below are optional
// instanceTypeConfigs: []instanceTypeConfigProperty{
// &instanceTypeConfigProperty{
// instanceType: jsii.String("instanceType"),
//
// // the properties below are optional
// bidPrice: jsii.String("bidPrice"),
// bidPriceAsPercentageOfOnDemandPrice: jsii.Number(123),
// configurations: []*configurationProperty{
// &configurationProperty{
// classification: jsii.String("classification"),
// configurations: []*configurationProperty{
// configurationProperty_,
// },
// properties: map[string]*string{
// "propertiesKey": jsii.String("properties"),
// },
// },
// },
// ebsConfiguration: &ebsConfigurationProperty{
// ebsBlockDeviceConfigs: []ebsBlockDeviceConfigProperty{
// &ebsBlockDeviceConfigProperty{
// volumeSpecification: &volumeSpecificationProperty{
// volumeSize: size,
// volumeType: awscdk.*Aws_stepfunctions_tasks.*emrCreateCluster.ebsBlockDeviceVolumeType_GP2,
//
// // the properties below are optional
// iops: jsii.Number(123),
// },
//
// // the properties below are optional
// volumesPerInstance: jsii.Number(123),
// },
// },
// ebsOptimized: jsii.Boolean(false),
// },
// weightedCapacity: jsii.Number(123),
// },
// },
// launchSpecifications: &instanceFleetProvisioningSpecificationsProperty{
// spotSpecification: &spotProvisioningSpecificationProperty{
// timeoutAction: awscdk.*Aws_stepfunctions_tasks.*emrCreateCluster.spotTimeoutAction_SWITCH_TO_ON_DEMAND,
// timeoutDurationMinutes: jsii.Number(123),
//
// // the properties below are optional
// allocationStrategy: awscdk.*Aws_stepfunctions_tasks.*emrCreateCluster.spotAllocationStrategy_CAPACITY_OPTIMIZED,
// blockDurationMinutes: jsii.Number(123),
// },
// },
// name: jsii.String("name"),
// targetOnDemandCapacity: jsii.Number(123),
// targetSpotCapacity: jsii.Number(123),
// }
//
// See: https://docs.aws.amazon.com/emr/latest/APIReference/API_InstanceFleetConfig.html
//
// Experimental.
type EmrCreateCluster_InstanceFleetConfigProperty struct {
// The node type that the instance fleet hosts.
//
// Valid values are MASTER,CORE,and TASK.
// Experimental.
InstanceFleetType EmrCreateCluster_InstanceRoleType `field:"required" json:"instanceFleetType" yaml:"instanceFleetType"`
// The instance type configurations that define the EC2 instances in the instance fleet.
// Experimental.
InstanceTypeConfigs *[]*EmrCreateCluster_InstanceTypeConfigProperty `field:"optional" json:"instanceTypeConfigs" yaml:"instanceTypeConfigs"`
// The launch specification for the instance fleet.
// Experimental.
LaunchSpecifications *EmrCreateCluster_InstanceFleetProvisioningSpecificationsProperty `field:"optional" json:"launchSpecifications" yaml:"launchSpecifications"`
// The friendly name of the instance fleet.
// Experimental.
Name *string `field:"optional" json:"name" yaml:"name"`
// The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision.
// Experimental.
TargetOnDemandCapacity *float64 `field:"optional" json:"targetOnDemandCapacity" yaml:"targetOnDemandCapacity"`
// The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision.
// Experimental.
TargetSpotCapacity *float64 `field:"optional" json:"targetSpotCapacity" yaml:"targetSpotCapacity"`
}