@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-22T10:27:17.622Z") @Stability(value=Stable) public class CfnInstanceFleetConfig extends CfnResource implements IInspectable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.emr.*;
ConfigurationProperty configurationProperty_;
CfnInstanceFleetConfig cfnInstanceFleetConfig = CfnInstanceFleetConfig.Builder.create(this, "MyCfnInstanceFleetConfig")
.clusterId("clusterId")
.instanceFleetType("instanceFleetType")
// the properties below are optional
.instanceTypeConfigs(List.of(InstanceTypeConfigProperty.builder()
.instanceType("instanceType")
// the properties below are optional
.bidPrice("bidPrice")
.bidPriceAsPercentageOfOnDemandPrice(123)
.configurations(List.of(ConfigurationProperty.builder()
.classification("classification")
.configurationProperties(Map.of(
"configurationPropertiesKey", "configurationProperties"))
.configurations(List.of(configurationProperty_))
.build()))
.customAmiId("customAmiId")
.ebsConfiguration(EbsConfigurationProperty.builder()
.ebsBlockDeviceConfigs(List.of(EbsBlockDeviceConfigProperty.builder()
.volumeSpecification(VolumeSpecificationProperty.builder()
.sizeInGb(123)
.volumeType("volumeType")
// the properties below are optional
.iops(123)
.build())
// the properties below are optional
.volumesPerInstance(123)
.build()))
.ebsOptimized(false)
.build())
.weightedCapacity(123)
.build()))
.launchSpecifications(InstanceFleetProvisioningSpecificationsProperty.builder()
.onDemandSpecification(OnDemandProvisioningSpecificationProperty.builder()
.allocationStrategy("allocationStrategy")
.build())
.spotSpecification(SpotProvisioningSpecificationProperty.builder()
.timeoutAction("timeoutAction")
.timeoutDurationMinutes(123)
// the properties below are optional
.allocationStrategy("allocationStrategy")
.blockDurationMinutes(123)
.build())
.build())
.name("name")
.targetOnDemandCapacity(123)
.targetSpotCapacity(123)
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnInstanceFleetConfig.Builder
A fluent builder for
CfnInstanceFleetConfig. |
static interface |
CfnInstanceFleetConfig.ConfigurationProperty
Example:
|
static interface |
CfnInstanceFleetConfig.EbsBlockDeviceConfigProperty
Example:
|
static interface |
CfnInstanceFleetConfig.EbsConfigurationProperty
Example:
|
static interface |
CfnInstanceFleetConfig.InstanceFleetProvisioningSpecificationsProperty
Example:
|
static interface |
CfnInstanceFleetConfig.InstanceTypeConfigProperty
Example:
|
static interface |
CfnInstanceFleetConfig.OnDemandProvisioningSpecificationProperty
Example:
|
static interface |
CfnInstanceFleetConfig.SpotProvisioningSpecificationProperty
Example:
|
static interface |
CfnInstanceFleetConfig.VolumeSpecificationProperty
Example:
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnInstanceFleetConfig(software.constructs.Construct scope,
String id,
CfnInstanceFleetConfigProps props)
Create a new `AWS::EMR::InstanceFleetConfig`.
|
protected |
CfnInstanceFleetConfig(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnInstanceFleetConfig(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
getCfnProperties() |
String |
getClusterId()
`AWS::EMR::InstanceFleetConfig.ClusterId`.
|
String |
getInstanceFleetType()
`AWS::EMR::InstanceFleetConfig.InstanceFleetType`.
|
Object |
getInstanceTypeConfigs()
`AWS::EMR::InstanceFleetConfig.InstanceTypeConfigs`.
|
Object |
getLaunchSpecifications()
`AWS::EMR::InstanceFleetConfig.LaunchSpecifications`.
|
String |
getName()
`AWS::EMR::InstanceFleetConfig.Name`.
|
Number |
getTargetOnDemandCapacity()
`AWS::EMR::InstanceFleetConfig.TargetOnDemandCapacity`.
|
Number |
getTargetSpotCapacity()
`AWS::EMR::InstanceFleetConfig.TargetSpotCapacity`.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setClusterId(String value)
`AWS::EMR::InstanceFleetConfig.ClusterId`.
|
void |
setInstanceFleetType(String value)
`AWS::EMR::InstanceFleetConfig.InstanceFleetType`.
|
void |
setInstanceTypeConfigs(IResolvable value)
`AWS::EMR::InstanceFleetConfig.InstanceTypeConfigs`.
|
void |
setInstanceTypeConfigs(List<Object> value)
`AWS::EMR::InstanceFleetConfig.InstanceTypeConfigs`.
|
void |
setLaunchSpecifications(CfnInstanceFleetConfig.InstanceFleetProvisioningSpecificationsProperty value)
`AWS::EMR::InstanceFleetConfig.LaunchSpecifications`.
|
void |
setLaunchSpecifications(IResolvable value)
`AWS::EMR::InstanceFleetConfig.LaunchSpecifications`.
|
void |
setName(String value)
`AWS::EMR::InstanceFleetConfig.Name`.
|
void |
setTargetOnDemandCapacity(Number value)
`AWS::EMR::InstanceFleetConfig.TargetOnDemandCapacity`.
|
void |
setTargetSpotCapacity(Number value)
`AWS::EMR::InstanceFleetConfig.TargetSpotCapacity`.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnInstanceFleetConfig(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnInstanceFleetConfig(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnInstanceFleetConfig(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnInstanceFleetConfigProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getClusterId()
@Stability(value=Stable)
public void setClusterId(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getInstanceFleetType()
@Stability(value=Stable)
public void setInstanceFleetType(@NotNull
String value)
@Stability(value=Stable) @Nullable public Object getInstanceTypeConfigs()
@Stability(value=Stable)
public void setInstanceTypeConfigs(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setInstanceTypeConfigs(@Nullable
List<Object> value)
@Stability(value=Stable) @Nullable public Object getLaunchSpecifications()
@Stability(value=Stable)
public void setLaunchSpecifications(@Nullable
CfnInstanceFleetConfig.InstanceFleetProvisioningSpecificationsProperty value)
@Stability(value=Stable)
public void setLaunchSpecifications(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public String getName()
@Stability(value=Stable)
public void setName(@Nullable
String value)
@Stability(value=Stable) @Nullable public Number getTargetOnDemandCapacity()
@Stability(value=Stable)
public void setTargetOnDemandCapacity(@Nullable
Number value)
@Stability(value=Stable) @Nullable public Number getTargetSpotCapacity()
@Stability(value=Stable)
public void setTargetSpotCapacity(@Nullable
Number value)
Copyright © 2021. All rights reserved.