/** * <p> * Also called instance profile and EC2 role. An IAM role for an EMR cluster. The EC2 instances of the cluster * assume this role. The default role is <code>EMR_EC2_DefaultRole</code>. In order to use the default role, you * must have already created it using the CLI or console. * </p> * * @param jobFlowRole * Also called instance profile and EC2 role. An IAM role for an EMR cluster. The EC2 instances of the * cluster assume this role. The default role is <code>EMR_EC2_DefaultRole</code>. In order to use the * default role, you must have already created it using the CLI or console. * @return Returns a reference to this object so that method calls can be chained together. */ public RunJobFlowRequest withJobFlowRole(String jobFlowRole) { setJobFlowRole(jobFlowRole); return this; }
/** * <p> * Also called instance profile and EC2 role. An IAM role for an EMR cluster. The EC2 instances of the cluster * assume this role. The default role is <code>EMR_EC2_DefaultRole</code>. In order to use the default role, you * must have already created it using the CLI or console. * </p> * * @param jobFlowRole * Also called instance profile and EC2 role. An IAM role for an EMR cluster. The EC2 instances of the * cluster assume this role. The default role is <code>EMR_EC2_DefaultRole</code>. In order to use the * default role, you must have already created it using the CLI or console. * @return Returns a reference to this object so that method calls can be chained together. */ public RunJobFlowRequest withJobFlowRole(String jobFlowRole) { setJobFlowRole(jobFlowRole); return this; }
runJobFlowRequest.setJobFlowRole( EMR_EC2_DEFAULT_ROLE ); } else { runJobFlowRequest.setJobFlowRole( ec2Role );
runJobFlowRequest.setJobFlowRole(emrClusterDefinition.getEc2NodeIamProfileName()); runJobFlowRequest.setJobFlowRole(herdStringHelper.getRequiredConfigurationValue(ConfigurationValue.EMR_DEFAULT_EC2_NODE_IAM_PROFILE_NAME));
runJobFlowRequest.setJobFlowRole(emrClusterDefinition.getEc2NodeIamProfileName()); runJobFlowRequest.setJobFlowRole(herdStringHelper.getRequiredConfigurationValue(ConfigurationValue.EMR_DEFAULT_EC2_NODE_IAM_PROFILE_NAME));