AWS SDK for .NET Documentation
BootstrapActions Class
AmazonAmazon.ElasticMapReduce.ModelBootstrapActions Did this page help you?   Yes   No    Tell us about it...
Class that provides helper methods for constructing predefined bootstrap actions.
Declaration Syntax
C#
public class BootstrapActions
Members
All MembersConstructorsMethods



IconMemberDescription
BootstrapActions()()()()
Creates a new default BootstrapActions for us in us-east-1.

BootstrapActions(String)
Creates a new BootstrapActions.

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the type of the current instance.
(Inherited from Object.)
NewConfigureDaemons()()()()
Create a new bootstrap action which lets you configure Hadoop's daemons. The options are written to the hadoop-user-env.sh file.

NewConfigureHadoop()()()()
Create a new bootstrap action which lets you configure Hadoop's XML files.

NewRunIf(String, BootstrapActionConfig)
Create a new run-if bootstrap action which lets you conditionally run bootstrap actions.

ToString()()()()
Returns a string that represents the current object.
(Inherited from Object.)
Examples
CopyC#
AmazonElasticMapReduce emr = AWSClientFactory.CreateAmazonElasticMapReduceClient(accessKey, secretKey);

BootstrapActions bootstrapActions = new BootstrapActions();
RunJobFlowRequest request = new RunJobFlowRequest
{
    Name = "Job Flow With Bootstrap Actions",
    BootstrapActions = new List<BootstrapActionConfig>
    {
        bootstrapActions.NewRunIf(
            "instance.isMaster=true",
            bootstrapActions.NewConfigureDaemons()
                .WithHeapSize(Daemon.JobTracker, 2048)
                .Build())
    },
    LogUri = "s3://log-bucket/",
    Instances = new JobFlowInstancesConfig
    {
        Ec2KeyName = "keypair",
        HadoopVersion = "0.20",
        InstanceCount = 5,
        KeepJobFlowAliveWhenNoSteps = true,
        MasterInstanceType = "m1.small",
        SlaveInstanceType = "m1.small"
    }
};
Inheritance Hierarchy
Object
BootstrapActions

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)