# BootstrapActionConfigProperty

`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](https://docs.aws.amazon.com//emr/latest/ManagementGuide/emr-plan-bootstrap.html) in the *Amazon EMR Management Guide* .

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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" }
    }
};
```

Golang:

```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

- `name`: string (required) — The name of the bootstrap action.

- `scriptBootstrapAction`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCluster.ScriptBootstrapActionConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_emr.CfnCluster.ScriptBootstrapActionConfigProperty.html) (required) — The script run by the bootstrap action.
