Skip to content
v2.278.0

EbsConfigurationProperty Struct ​

The Amazon EBS configuration of a cluster instance.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_emr as emr } from 'aws-cdk-lib';
const ebsConfigurationProperty: emr.CfnInstanceGroupConfig.EbsConfigurationProperty = {
  ebsBlockDeviceConfigs: [{
    volumeSpecification: {
      sizeInGb: 123,
      volumeType: 'volumeType',

      // the properties below are optional
      iops: 123,
      throughput: 123,
    },

    // the properties below are optional
    volumesPerInstance: 123,
  }],
  ebsOptimized: false,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_emr as emr

ebs_configuration_property = emr.CfnInstanceGroupConfig.EbsConfigurationProperty(
    ebs_block_device_configs=[emr.CfnInstanceGroupConfig.EbsBlockDeviceConfigProperty(
        volume_specification=emr.CfnInstanceGroupConfig.VolumeSpecificationProperty(
            size_in_gb=123,
            volume_type="volumeType",

            # the properties below are optional
            iops=123,
            throughput=123
        ),

        # the properties below are optional
        volumes_per_instance=123
    )],
    ebs_optimized=False
)
java
// 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.*;

EbsConfigurationProperty ebsConfigurationProperty = EbsConfigurationProperty.builder()
        .ebsBlockDeviceConfigs(List.of(EbsBlockDeviceConfigProperty.builder()
                .volumeSpecification(VolumeSpecificationProperty.builder()
                        .sizeInGb(123)
                        .volumeType("volumeType")

                        // the properties below are optional
                        .iops(123)
                        .throughput(123)
                        .build())

                // the properties below are optional
                .volumesPerInstance(123)
                .build()))
        .ebsOptimized(false)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EMR;

var ebsConfigurationProperty = new EbsConfigurationProperty {
    EbsBlockDeviceConfigs = new [] { new EbsBlockDeviceConfigProperty {
        VolumeSpecification = new VolumeSpecificationProperty {
            SizeInGb = 123,
            VolumeType = "volumeType",

            // the properties below are optional
            Iops = 123,
            Throughput = 123
        },

        // the properties below are optional
        VolumesPerInstance = 123
    } },
    EbsOptimized = false
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

ebsConfigurationProperty := &EbsConfigurationProperty{
	EbsBlockDeviceConfigs: []interface{}{
		&EbsBlockDeviceConfigProperty{
			VolumeSpecification: &VolumeSpecificationProperty{
				SizeInGb: jsii.Number(123),
				VolumeType: jsii.String("volumeType"),

				// the properties below are optional
				Iops: jsii.Number(123),
				Throughput: jsii.Number(123),
			},

			// the properties below are optional
			VolumesPerInstance: jsii.Number(123),
		},
	},
	EbsOptimized: jsii.Boolean(false),
}

Properties ​

ebsBlockDeviceConfigsoptionalIResolvable | IResolvable | CfnInstanceGroupConfig.EbsBlockDeviceConfigProperty[]ebs_block_device_configsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, EbsBlockDeviceConfigProperty]]]ebsBlockDeviceConfigsoptionalIResolvableEbsBlockDeviceConfigsoptionalIResolvableEbsBlockDeviceConfigsoptionalinterface{} #
An array of Amazon EBS volume specifications attached to a cluster instance.
ebsOptimizedoptionalboolean | IResolvableebs_optimizedoptionaltyping.Union[bool, IResolvable]ebsOptimizedoptionalBooleanEbsOptimizedoptionalboolEbsOptimizedoptionalinterface{} #
Indicates whether an Amazon EBS volume is EBS-optimized.

The default is false. You should explicitly set this value to true to enable the Amazon EBS-optimized setting for an EC2 instance.