Skip to content
v2.278.0

BootstrapActionConfigProperty Struct ​

BootstrapActionConfig is a property of AWS::EMR::Cluster that can be used to run bootstrap actions on EMR clusters.

You can use a bootstrap action to install software and configure EC2 instances for all cluster nodes before EMR installs and configures open-source big data applications on cluster instances. For more information, see Create Bootstrap Actions to Install Additional Software in the Amazon EMR Management Guide .

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 bootstrapActionConfigProperty: emr.CfnCluster.BootstrapActionConfigProperty = {
  name: 'name',
  scriptBootstrapAction: {
    path: 'path',

    // the properties below are optional
    args: ['args'],
  },
};
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

bootstrap_action_config_property = emr.CfnCluster.BootstrapActionConfigProperty(
    name="name",
    script_bootstrap_action=emr.CfnCluster.ScriptBootstrapActionConfigProperty(
        path="path",

        # the properties below are optional
        args=["args"]
    )
)
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.*;

BootstrapActionConfigProperty bootstrapActionConfigProperty = BootstrapActionConfigProperty.builder()
        .name("name")
        .scriptBootstrapAction(ScriptBootstrapActionConfigProperty.builder()
                .path("path")

                // the properties below are optional
                .args(List.of("args"))
                .build())
        .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 bootstrapActionConfigProperty = new BootstrapActionConfigProperty {
    Name = "name",
    ScriptBootstrapAction = new ScriptBootstrapActionConfigProperty {
        Path = "path",

        // the properties below are optional
        Args = new [] { "args" }
    }
};
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"

bootstrapActionConfigProperty := &BootstrapActionConfigProperty{
	Name: jsii.String("name"),
	ScriptBootstrapAction: &ScriptBootstrapActionConfigProperty{
		Path: jsii.String("path"),

		// the properties below are optional
		Args: []*string{
			jsii.String("args"),
		},
	},
}

Properties ​

namestringnamestrnameStringNamestringName*string required #
The name of the bootstrap action.
scriptBootstrapActionIResolvable | CfnCluster.ScriptBootstrapActionConfigPropertyscript_bootstrap_actiontyping.Union[IResolvable, ScriptBootstrapActionConfigProperty]scriptBootstrapActionIResolvableScriptBootstrapActionIResolvableScriptBootstrapActioninterface{} required #
The script run by the bootstrap action.