@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-22T10:27:17.624Z") @Stability(value=Stable) public class CfnInstanceGroupConfig 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_;
CfnInstanceGroupConfig cfnInstanceGroupConfig = CfnInstanceGroupConfig.Builder.create(this, "MyCfnInstanceGroupConfig")
.instanceCount(123)
.instanceRole("instanceRole")
.instanceType("instanceType")
.jobFlowId("jobFlowId")
// the properties below are optional
.autoScalingPolicy(AutoScalingPolicyProperty.builder()
.constraints(ScalingConstraintsProperty.builder()
.maxCapacity(123)
.minCapacity(123)
.build())
.rules(List.of(ScalingRuleProperty.builder()
.action(ScalingActionProperty.builder()
.simpleScalingPolicyConfiguration(SimpleScalingPolicyConfigurationProperty.builder()
.scalingAdjustment(123)
// the properties below are optional
.adjustmentType("adjustmentType")
.coolDown(123)
.build())
// the properties below are optional
.market("market")
.build())
.name("name")
.trigger(ScalingTriggerProperty.builder()
.cloudWatchAlarmDefinition(CloudWatchAlarmDefinitionProperty.builder()
.comparisonOperator("comparisonOperator")
.metricName("metricName")
.period(123)
.threshold(123)
// the properties below are optional
.dimensions(List.of(MetricDimensionProperty.builder()
.key("key")
.value("value")
.build()))
.evaluationPeriods(123)
.namespace("namespace")
.statistic("statistic")
.unit("unit")
.build())
.build())
// the properties below are optional
.description("description")
.build()))
.build())
.bidPrice("bidPrice")
.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())
.market("market")
.name("name")
.build();
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 |
|---|---|
|
CfnInstanceGroupConfig(software.constructs.Construct scope,
String id,
CfnInstanceGroupConfigProps props)
Create a new `AWS::EMR::InstanceGroupConfig`.
|
protected |
CfnInstanceGroupConfig(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnInstanceGroupConfig(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAutoScalingPolicy()
`AWS::EMR::InstanceGroupConfig.AutoScalingPolicy`.
|
String |
getBidPrice()
`AWS::EMR::InstanceGroupConfig.BidPrice`.
|
protected Map<String,Object> |
getCfnProperties() |
Object |
getConfigurations()
`AWS::EMR::InstanceGroupConfig.Configurations`.
|
String |
getCustomAmiId()
`AWS::EMR::InstanceGroupConfig.CustomAmiId`.
|
Object |
getEbsConfiguration()
`AWS::EMR::InstanceGroupConfig.EbsConfiguration`.
|
Number |
getInstanceCount()
`AWS::EMR::InstanceGroupConfig.InstanceCount`.
|
String |
getInstanceRole()
`AWS::EMR::InstanceGroupConfig.InstanceRole`.
|
String |
getInstanceType()
`AWS::EMR::InstanceGroupConfig.InstanceType`.
|
String |
getJobFlowId()
`AWS::EMR::InstanceGroupConfig.JobFlowId`.
|
String |
getMarket()
`AWS::EMR::InstanceGroupConfig.Market`.
|
String |
getName()
`AWS::EMR::InstanceGroupConfig.Name`.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAutoScalingPolicy(CfnInstanceGroupConfig.AutoScalingPolicyProperty value)
`AWS::EMR::InstanceGroupConfig.AutoScalingPolicy`.
|
void |
setAutoScalingPolicy(IResolvable value)
`AWS::EMR::InstanceGroupConfig.AutoScalingPolicy`.
|
void |
setBidPrice(String value)
`AWS::EMR::InstanceGroupConfig.BidPrice`.
|
void |
setConfigurations(IResolvable value)
`AWS::EMR::InstanceGroupConfig.Configurations`.
|
void |
setConfigurations(List<Object> value)
`AWS::EMR::InstanceGroupConfig.Configurations`.
|
void |
setCustomAmiId(String value)
`AWS::EMR::InstanceGroupConfig.CustomAmiId`.
|
void |
setEbsConfiguration(CfnInstanceGroupConfig.EbsConfigurationProperty value)
`AWS::EMR::InstanceGroupConfig.EbsConfiguration`.
|
void |
setEbsConfiguration(IResolvable value)
`AWS::EMR::InstanceGroupConfig.EbsConfiguration`.
|
void |
setInstanceCount(Number value)
`AWS::EMR::InstanceGroupConfig.InstanceCount`.
|
void |
setInstanceRole(String value)
`AWS::EMR::InstanceGroupConfig.InstanceRole`.
|
void |
setInstanceType(String value)
`AWS::EMR::InstanceGroupConfig.InstanceType`.
|
void |
setJobFlowId(String value)
`AWS::EMR::InstanceGroupConfig.JobFlowId`.
|
void |
setMarket(String value)
`AWS::EMR::InstanceGroupConfig.Market`.
|
void |
setName(String value)
`AWS::EMR::InstanceGroupConfig.Name`.
|
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 CfnInstanceGroupConfig(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnInstanceGroupConfig(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnInstanceGroupConfig(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnInstanceGroupConfigProps 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) @Nullable public Object getAutoScalingPolicy()
@Stability(value=Stable)
public void setAutoScalingPolicy(@Nullable
CfnInstanceGroupConfig.AutoScalingPolicyProperty value)
@Stability(value=Stable)
public void setAutoScalingPolicy(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public String getBidPrice()
@Stability(value=Stable)
public void setBidPrice(@Nullable
String value)
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @Nullable public Object getConfigurations()
@Stability(value=Stable)
public void setConfigurations(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setConfigurations(@Nullable
List<Object> value)
@Stability(value=Stable) @Nullable public String getCustomAmiId()
@Stability(value=Stable)
public void setCustomAmiId(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getEbsConfiguration()
@Stability(value=Stable)
public void setEbsConfiguration(@Nullable
CfnInstanceGroupConfig.EbsConfigurationProperty value)
@Stability(value=Stable)
public void setEbsConfiguration(@Nullable
IResolvable value)
@Stability(value=Stable) @NotNull public Number getInstanceCount()
@Stability(value=Stable)
public void setInstanceCount(@NotNull
Number value)
@Stability(value=Stable) @NotNull public String getInstanceRole()
@Stability(value=Stable)
public void setInstanceRole(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getInstanceType()
@Stability(value=Stable)
public void setInstanceType(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getJobFlowId()
@Stability(value=Stable)
public void setJobFlowId(@NotNull
String value)
@Stability(value=Stable) @Nullable public String getMarket()
@Stability(value=Stable)
public void setMarket(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getName()
@Stability(value=Stable)
public void setName(@Nullable
String value)
Copyright © 2021. All rights reserved.