terraform/vendor/github.com/aws/aws-sdk-go/service/emr/api.go

8624 lines
283 KiB
Go
Raw Normal View History

// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
// Package emr provides a client for Amazon Elastic MapReduce.
package emr
import (
"fmt"
"time"
"github.com/aws/aws-sdk-go/aws/awsutil"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/private/protocol"
"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
)
const opAddInstanceGroups = "AddInstanceGroups"
// AddInstanceGroupsRequest generates a "aws/request.Request" representing the
// client's request for the AddInstanceGroups operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See AddInstanceGroups for usage and error information.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the AddInstanceGroups method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the AddInstanceGroupsRequest method.
// req, resp := client.AddInstanceGroupsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/AddInstanceGroups
func (c *EMR) AddInstanceGroupsRequest(input *AddInstanceGroupsInput) (req *request.Request, output *AddInstanceGroupsOutput) {
op := &request.Operation{
Name: opAddInstanceGroups,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &AddInstanceGroupsInput{}
}
output = &AddInstanceGroupsOutput{}
2017-01-23 22:22:31 +01:00
req = c.newRequest(op, input, output)
return
}
2016-10-17 23:21:08 +02:00
// AddInstanceGroups API operation for Amazon Elastic MapReduce.
//
2016-11-19 19:41:01 +01:00
// Adds one or more instance groups to a running cluster.
2016-10-17 23:21:08 +02:00
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Elastic MapReduce's
// API operation AddInstanceGroups for usage and error information.
//
// Returned Error Codes:
// * InternalServerError
// Indicates that an error occurred while processing the request and that the
// request was not completed.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/AddInstanceGroups
func (c *EMR) AddInstanceGroups(input *AddInstanceGroupsInput) (*AddInstanceGroupsOutput, error) {
req, out := c.AddInstanceGroupsRequest(input)
err := req.Send()
return out, err
}
const opAddJobFlowSteps = "AddJobFlowSteps"
// AddJobFlowStepsRequest generates a "aws/request.Request" representing the
// client's request for the AddJobFlowSteps operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See AddJobFlowSteps for usage and error information.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the AddJobFlowSteps method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the AddJobFlowStepsRequest method.
// req, resp := client.AddJobFlowStepsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/AddJobFlowSteps
func (c *EMR) AddJobFlowStepsRequest(input *AddJobFlowStepsInput) (req *request.Request, output *AddJobFlowStepsOutput) {
op := &request.Operation{
Name: opAddJobFlowSteps,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &AddJobFlowStepsInput{}
}
output = &AddJobFlowStepsOutput{}
2017-01-23 22:22:31 +01:00
req = c.newRequest(op, input, output)
return
}
2016-10-17 23:21:08 +02:00
// AddJobFlowSteps API operation for Amazon Elastic MapReduce.
//
// AddJobFlowSteps adds new steps to a running job flow. A maximum of 256 steps
// are allowed in each job flow.
//
// If your job flow is long-running (such as a Hive data warehouse) or complex,
// you may require more than 256 steps to process your data. You can bypass
// the 256-step limitation in various ways, including using the SSH shell to
// connect to the master node and submitting queries directly to the software
// running on the master node, such as Hive and Hadoop. For more information
2016-11-19 19:41:01 +01:00
// on how to do this, see Add More than 256 Steps to a Job Flow (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/AddMoreThan256Steps.html)
// in the Amazon EMR Developer's Guide.
//
2016-11-19 19:41:01 +01:00
// A step specifies the location of a JAR file stored either on the master node
// of the job flow or in Amazon S3. Each step is performed by the main function
// of the main class of the JAR file. The main class can be specified either
// in the manifest of the JAR or by using the MainFunction parameter of the
// step.
//
2016-11-19 19:41:01 +01:00
// Amazon EMR executes each step in the order listed. For a step to be considered
// complete, the main function must exit with a zero exit code and all Hadoop
// jobs started while the step was running must have completed and run successfully.
//
// You can only add steps to a job flow that is in one of the following states:
// STARTING, BOOTSTRAPPING, RUNNING, or WAITING.
2016-10-17 23:21:08 +02:00
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Elastic MapReduce's
// API operation AddJobFlowSteps for usage and error information.
//
// Returned Error Codes:
// * InternalServerError
// Indicates that an error occurred while processing the request and that the
// request was not completed.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/AddJobFlowSteps
func (c *EMR) AddJobFlowSteps(input *AddJobFlowStepsInput) (*AddJobFlowStepsOutput, error) {
req, out := c.AddJobFlowStepsRequest(input)
err := req.Send()
return out, err
}
const opAddTags = "AddTags"
// AddTagsRequest generates a "aws/request.Request" representing the
// client's request for the AddTags operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See AddTags for usage and error information.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the AddTags method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the AddTagsRequest method.
// req, resp := client.AddTagsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/AddTags
func (c *EMR) AddTagsRequest(input *AddTagsInput) (req *request.Request, output *AddTagsOutput) {
op := &request.Operation{
Name: opAddTags,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &AddTagsInput{}
}
output = &AddTagsOutput{}
2017-01-23 22:22:31 +01:00
req = c.newRequest(op, input, output)
return
}
2016-10-17 23:21:08 +02:00
// AddTags API operation for Amazon Elastic MapReduce.
//
// Adds tags to an Amazon EMR resource. Tags make it easier to associate clusters
// in various ways, such as grouping clusters to track your Amazon EMR resource
// allocation costs. For more information, see Tagging Amazon EMR Resources
// (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/emr-plan-tags.html).
2016-10-17 23:21:08 +02:00
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Elastic MapReduce's
// API operation AddTags for usage and error information.
//
// Returned Error Codes:
// * InternalServerException
// This exception occurs when there is an internal failure in the EMR service.
//
// * InvalidRequestException
// This exception occurs when there is something wrong with user input.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/AddTags
func (c *EMR) AddTags(input *AddTagsInput) (*AddTagsOutput, error) {
req, out := c.AddTagsRequest(input)
err := req.Send()
return out, err
}
2016-11-19 19:41:01 +01:00
const opCancelSteps = "CancelSteps"
// CancelStepsRequest generates a "aws/request.Request" representing the
// client's request for the CancelSteps operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// See CancelSteps for usage and error information.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the CancelSteps method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the CancelStepsRequest method.
// req, resp := client.CancelStepsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/CancelSteps
2016-11-19 19:41:01 +01:00
func (c *EMR) CancelStepsRequest(input *CancelStepsInput) (req *request.Request, output *CancelStepsOutput) {
op := &request.Operation{
Name: opCancelSteps,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CancelStepsInput{}
}
output = &CancelStepsOutput{}
2017-01-23 22:22:31 +01:00
req = c.newRequest(op, input, output)
2016-11-19 19:41:01 +01:00
return
}
// CancelSteps API operation for Amazon Elastic MapReduce.
//
// Cancels a pending step or steps in a running cluster. Available only in Amazon
// EMR versions 4.8.0 and later, excluding version 5.0.0. A maximum of 256 steps
// are allowed in each CancelSteps request. CancelSteps is idempotent but asynchronous;
// it does not guarantee a step will be canceled, even if the request is successfully
// submitted. You can only cancel steps that are in a PENDING state.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Elastic MapReduce's
// API operation CancelSteps for usage and error information.
//
// Returned Error Codes:
// * InternalServerError
// Indicates that an error occurred while processing the request and that the
// request was not completed.
//
// * InvalidRequestException
// This exception occurs when there is something wrong with user input.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/CancelSteps
2016-11-19 19:41:01 +01:00
func (c *EMR) CancelSteps(input *CancelStepsInput) (*CancelStepsOutput, error) {
req, out := c.CancelStepsRequest(input)
err := req.Send()
return out, err
}
const opCreateSecurityConfiguration = "CreateSecurityConfiguration"
// CreateSecurityConfigurationRequest generates a "aws/request.Request" representing the
// client's request for the CreateSecurityConfiguration operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See CreateSecurityConfiguration for usage and error information.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the CreateSecurityConfiguration method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the CreateSecurityConfigurationRequest method.
// req, resp := client.CreateSecurityConfigurationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/CreateSecurityConfiguration
func (c *EMR) CreateSecurityConfigurationRequest(input *CreateSecurityConfigurationInput) (req *request.Request, output *CreateSecurityConfigurationOutput) {
op := &request.Operation{
Name: opCreateSecurityConfiguration,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CreateSecurityConfigurationInput{}
}
output = &CreateSecurityConfigurationOutput{}
2017-01-23 22:22:31 +01:00
req = c.newRequest(op, input, output)
return
}
2016-10-17 23:21:08 +02:00
// CreateSecurityConfiguration API operation for Amazon Elastic MapReduce.
//
2016-11-19 19:41:01 +01:00
// Creates a security configuration, which is stored in the service and can
// be specified when a cluster is created.
2016-10-17 23:21:08 +02:00
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Elastic MapReduce's
// API operation CreateSecurityConfiguration for usage and error information.
//
// Returned Error Codes:
// * InternalServerException
// This exception occurs when there is an internal failure in the EMR service.
//
// * InvalidRequestException
// This exception occurs when there is something wrong with user input.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/CreateSecurityConfiguration
func (c *EMR) CreateSecurityConfiguration(input *CreateSecurityConfigurationInput) (*CreateSecurityConfigurationOutput, error) {
req, out := c.CreateSecurityConfigurationRequest(input)
err := req.Send()
return out, err
}
const opDeleteSecurityConfiguration = "DeleteSecurityConfiguration"
// DeleteSecurityConfigurationRequest generates a "aws/request.Request" representing the
// client's request for the DeleteSecurityConfiguration operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See DeleteSecurityConfiguration for usage and error information.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DeleteSecurityConfiguration method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DeleteSecurityConfigurationRequest method.
// req, resp := client.DeleteSecurityConfigurationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/DeleteSecurityConfiguration
func (c *EMR) DeleteSecurityConfigurationRequest(input *DeleteSecurityConfigurationInput) (req *request.Request, output *DeleteSecurityConfigurationOutput) {
op := &request.Operation{
Name: opDeleteSecurityConfiguration,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteSecurityConfigurationInput{}
}
output = &DeleteSecurityConfigurationOutput{}
2017-01-23 22:22:31 +01:00
req = c.newRequest(op, input, output)
return
}
2016-10-17 23:21:08 +02:00
// DeleteSecurityConfiguration API operation for Amazon Elastic MapReduce.
//
// Deletes a security configuration.
2016-10-17 23:21:08 +02:00
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Elastic MapReduce's
// API operation DeleteSecurityConfiguration for usage and error information.
//
// Returned Error Codes:
// * InternalServerException
// This exception occurs when there is an internal failure in the EMR service.
//
// * InvalidRequestException
// This exception occurs when there is something wrong with user input.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/DeleteSecurityConfiguration
func (c *EMR) DeleteSecurityConfiguration(input *DeleteSecurityConfigurationInput) (*DeleteSecurityConfigurationOutput, error) {
req, out := c.DeleteSecurityConfigurationRequest(input)
err := req.Send()
return out, err
}
const opDescribeCluster = "DescribeCluster"
// DescribeClusterRequest generates a "aws/request.Request" representing the
// client's request for the DescribeCluster operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See DescribeCluster for usage and error information.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DescribeCluster method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DescribeClusterRequest method.
// req, resp := client.DescribeClusterRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/DescribeCluster
func (c *EMR) DescribeClusterRequest(input *DescribeClusterInput) (req *request.Request, output *DescribeClusterOutput) {
op := &request.Operation{
Name: opDescribeCluster,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeClusterInput{}
}
output = &DescribeClusterOutput{}
2017-01-23 22:22:31 +01:00
req = c.newRequest(op, input, output)
return
}
2016-10-17 23:21:08 +02:00
// DescribeCluster API operation for Amazon Elastic MapReduce.
//
// Provides cluster-level details including status, hardware and software configuration,
// VPC settings, and so on. For information about the cluster steps, see ListSteps.
2016-10-17 23:21:08 +02:00
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Elastic MapReduce's
// API operation DescribeCluster for usage and error information.
//
// Returned Error Codes:
// * InternalServerException
// This exception occurs when there is an internal failure in the EMR service.
//
// * InvalidRequestException
// This exception occurs when there is something wrong with user input.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/DescribeCluster
func (c *EMR) DescribeCluster(input *DescribeClusterInput) (*DescribeClusterOutput, error) {
req, out := c.DescribeClusterRequest(input)
err := req.Send()
return out, err
}
const opDescribeJobFlows = "DescribeJobFlows"
// DescribeJobFlowsRequest generates a "aws/request.Request" representing the
// client's request for the DescribeJobFlows operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See DescribeJobFlows for usage and error information.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DescribeJobFlows method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DescribeJobFlowsRequest method.
// req, resp := client.DescribeJobFlowsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/DescribeJobFlows
func (c *EMR) DescribeJobFlowsRequest(input *DescribeJobFlowsInput) (req *request.Request, output *DescribeJobFlowsOutput) {
if c.Client.Config.Logger != nil {
c.Client.Config.Logger.Log("This operation, DescribeJobFlows, has been deprecated")
}
op := &request.Operation{
Name: opDescribeJobFlows,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeJobFlowsInput{}
}
output = &DescribeJobFlowsOutput{}
2017-01-23 22:22:31 +01:00
req = c.newRequest(op, input, output)
return
}
2016-10-17 23:21:08 +02:00
// DescribeJobFlows API operation for Amazon Elastic MapReduce.
//
// This API is deprecated and will eventually be removed. We recommend you use
// ListClusters, DescribeCluster, ListSteps, ListInstanceGroups and ListBootstrapActions
// instead.
//
// DescribeJobFlows returns a list of job flows that match all of the supplied
// parameters. The parameters can include a list of job flow IDs, job flow states,
// and restrictions on job flow creation date and time.
//
// Regardless of supplied parameters, only job flows created within the last
// two months are returned.
//
// If no parameters are supplied, then job flows matching either of the following
// criteria are returned:
//
2016-11-19 19:41:01 +01:00
// * Job flows created and completed in the last two weeks
//
2016-11-19 19:41:01 +01:00
// * Job flows created within the last two months that are in one of the
// following states: RUNNING, WAITING, SHUTTING_DOWN, STARTING
//
2016-11-19 19:41:01 +01:00
// Amazon EMR can return a maximum of 512 job flow descriptions.
2016-10-17 23:21:08 +02:00
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Elastic MapReduce's
// API operation DescribeJobFlows for usage and error information.
//
// Returned Error Codes:
// * InternalServerError
// Indicates that an error occurred while processing the request and that the
// request was not completed.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/DescribeJobFlows
func (c *EMR) DescribeJobFlows(input *DescribeJobFlowsInput) (*DescribeJobFlowsOutput, error) {
req, out := c.DescribeJobFlowsRequest(input)
err := req.Send()
return out, err
}
const opDescribeSecurityConfiguration = "DescribeSecurityConfiguration"
// DescribeSecurityConfigurationRequest generates a "aws/request.Request" representing the
// client's request for the DescribeSecurityConfiguration operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See DescribeSecurityConfiguration for usage and error information.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DescribeSecurityConfiguration method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DescribeSecurityConfigurationRequest method.
// req, resp := client.DescribeSecurityConfigurationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/DescribeSecurityConfiguration
func (c *EMR) DescribeSecurityConfigurationRequest(input *DescribeSecurityConfigurationInput) (req *request.Request, output *DescribeSecurityConfigurationOutput) {
op := &request.Operation{
Name: opDescribeSecurityConfiguration,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeSecurityConfigurationInput{}
}
output = &DescribeSecurityConfigurationOutput{}
2017-01-23 22:22:31 +01:00
req = c.newRequest(op, input, output)
return
}
2016-10-17 23:21:08 +02:00
// DescribeSecurityConfiguration API operation for Amazon Elastic MapReduce.
//
// Provides the details of a security configuration by returning the configuration
// JSON.
2016-10-17 23:21:08 +02:00
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Elastic MapReduce's
// API operation DescribeSecurityConfiguration for usage and error information.
//
// Returned Error Codes:
// * InternalServerException
// This exception occurs when there is an internal failure in the EMR service.
//
// * InvalidRequestException
// This exception occurs when there is something wrong with user input.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/DescribeSecurityConfiguration
func (c *EMR) DescribeSecurityConfiguration(input *DescribeSecurityConfigurationInput) (*DescribeSecurityConfigurationOutput, error) {
req, out := c.DescribeSecurityConfigurationRequest(input)
err := req.Send()
return out, err
}
const opDescribeStep = "DescribeStep"
// DescribeStepRequest generates a "aws/request.Request" representing the
// client's request for the DescribeStep operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See DescribeStep for usage and error information.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DescribeStep method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DescribeStepRequest method.
// req, resp := client.DescribeStepRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/DescribeStep
func (c *EMR) DescribeStepRequest(input *DescribeStepInput) (req *request.Request, output *DescribeStepOutput) {
op := &request.Operation{
Name: opDescribeStep,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeStepInput{}
}
output = &DescribeStepOutput{}
2017-01-23 22:22:31 +01:00
req = c.newRequest(op, input, output)
return
}
2016-10-17 23:21:08 +02:00
// DescribeStep API operation for Amazon Elastic MapReduce.
//
// Provides more detail about the cluster step.
2016-10-17 23:21:08 +02:00
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Elastic MapReduce's
// API operation DescribeStep for usage and error information.
//
// Returned Error Codes:
// * InternalServerException
// This exception occurs when there is an internal failure in the EMR service.
//
// * InvalidRequestException
// This exception occurs when there is something wrong with user input.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/DescribeStep
func (c *EMR) DescribeStep(input *DescribeStepInput) (*DescribeStepOutput, error) {
req, out := c.DescribeStepRequest(input)
err := req.Send()
return out, err
}
const opListBootstrapActions = "ListBootstrapActions"
// ListBootstrapActionsRequest generates a "aws/request.Request" representing the
// client's request for the ListBootstrapActions operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See ListBootstrapActions for usage and error information.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the ListBootstrapActions method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the ListBootstrapActionsRequest method.
// req, resp := client.ListBootstrapActionsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListBootstrapActions
func (c *EMR) ListBootstrapActionsRequest(input *ListBootstrapActionsInput) (req *request.Request, output *ListBootstrapActionsOutput) {
op := &request.Operation{
Name: opListBootstrapActions,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &request.Paginator{
InputTokens: []string{"Marker"},
OutputTokens: []string{"Marker"},
LimitToken: "",
TruncationToken: "",
},
}
if input == nil {
input = &ListBootstrapActionsInput{}
}
output = &ListBootstrapActionsOutput{}
2017-01-23 22:22:31 +01:00
req = c.newRequest(op, input, output)
return
}
2016-10-17 23:21:08 +02:00
// ListBootstrapActions API operation for Amazon Elastic MapReduce.
//
// Provides information about the bootstrap actions associated with a cluster.
2016-10-17 23:21:08 +02:00
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Elastic MapReduce's
// API operation ListBootstrapActions for usage and error information.
//
// Returned Error Codes:
// * InternalServerException
// This exception occurs when there is an internal failure in the EMR service.
//
// * InvalidRequestException
// This exception occurs when there is something wrong with user input.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListBootstrapActions
func (c *EMR) ListBootstrapActions(input *ListBootstrapActionsInput) (*ListBootstrapActionsOutput, error) {
req, out := c.ListBootstrapActionsRequest(input)
err := req.Send()
return out, err
}
// ListBootstrapActionsPages iterates over the pages of a ListBootstrapActions operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See ListBootstrapActions method for more information on how to use this operation.
//
// Note: This operation can generate multiple requests to a service.
//
// // Example iterating over at most 3 pages of a ListBootstrapActions operation.
// pageNum := 0
// err := client.ListBootstrapActionsPages(params,
// func(page *ListBootstrapActionsOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
func (c *EMR) ListBootstrapActionsPages(input *ListBootstrapActionsInput, fn func(p *ListBootstrapActionsOutput, lastPage bool) (shouldContinue bool)) error {
page, _ := c.ListBootstrapActionsRequest(input)
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
return page.EachPage(func(p interface{}, lastPage bool) bool {
return fn(p.(*ListBootstrapActionsOutput), lastPage)
})
}
const opListClusters = "ListClusters"
// ListClustersRequest generates a "aws/request.Request" representing the
// client's request for the ListClusters operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See ListClusters for usage and error information.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the ListClusters method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the ListClustersRequest method.
// req, resp := client.ListClustersRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListClusters
func (c *EMR) ListClustersRequest(input *ListClustersInput) (req *request.Request, output *ListClustersOutput) {
op := &request.Operation{
Name: opListClusters,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &request.Paginator{
InputTokens: []string{"Marker"},
OutputTokens: []string{"Marker"},
LimitToken: "",
TruncationToken: "",
},
}
if input == nil {
input = &ListClustersInput{}
}
output = &ListClustersOutput{}
2017-01-23 22:22:31 +01:00
req = c.newRequest(op, input, output)
return
}
2016-10-17 23:21:08 +02:00
// ListClusters API operation for Amazon Elastic MapReduce.
//
// Provides the status of all clusters visible to this AWS account. Allows you
// to filter the list of clusters based on certain criteria; for example, filtering
// by cluster creation date and time or by status. This call returns a maximum
// of 50 clusters per call, but returns a marker to track the paging of the
// cluster list across multiple ListClusters calls.
2016-10-17 23:21:08 +02:00
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Elastic MapReduce's
// API operation ListClusters for usage and error information.
//
// Returned Error Codes:
// * InternalServerException
// This exception occurs when there is an internal failure in the EMR service.
//
// * InvalidRequestException
// This exception occurs when there is something wrong with user input.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListClusters
func (c *EMR) ListClusters(input *ListClustersInput) (*ListClustersOutput, error) {
req, out := c.ListClustersRequest(input)
err := req.Send()
return out, err
}
// ListClustersPages iterates over the pages of a ListClusters operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See ListClusters method for more information on how to use this operation.
//
// Note: This operation can generate multiple requests to a service.
//
// // Example iterating over at most 3 pages of a ListClusters operation.
// pageNum := 0
// err := client.ListClustersPages(params,
// func(page *ListClustersOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
func (c *EMR) ListClustersPages(input *ListClustersInput, fn func(p *ListClustersOutput, lastPage bool) (shouldContinue bool)) error {
page, _ := c.ListClustersRequest(input)
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
return page.EachPage(func(p interface{}, lastPage bool) bool {
return fn(p.(*ListClustersOutput), lastPage)
})
}
const opListInstanceGroups = "ListInstanceGroups"
// ListInstanceGroupsRequest generates a "aws/request.Request" representing the
// client's request for the ListInstanceGroups operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See ListInstanceGroups for usage and error information.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the ListInstanceGroups method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the ListInstanceGroupsRequest method.
// req, resp := client.ListInstanceGroupsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListInstanceGroups
func (c *EMR) ListInstanceGroupsRequest(input *ListInstanceGroupsInput) (req *request.Request, output *ListInstanceGroupsOutput) {
op := &request.Operation{
Name: opListInstanceGroups,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &request.Paginator{
InputTokens: []string{"Marker"},
OutputTokens: []string{"Marker"},
LimitToken: "",
TruncationToken: "",
},
}
if input == nil {
input = &ListInstanceGroupsInput{}
}
output = &ListInstanceGroupsOutput{}
2017-01-23 22:22:31 +01:00
req = c.newRequest(op, input, output)
return
}
2016-10-17 23:21:08 +02:00
// ListInstanceGroups API operation for Amazon Elastic MapReduce.
//
// Provides all available details about the instance groups in a cluster.
2016-10-17 23:21:08 +02:00
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Elastic MapReduce's
// API operation ListInstanceGroups for usage and error information.
//
// Returned Error Codes:
// * InternalServerException
// This exception occurs when there is an internal failure in the EMR service.
//
// * InvalidRequestException
// This exception occurs when there is something wrong with user input.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListInstanceGroups
func (c *EMR) ListInstanceGroups(input *ListInstanceGroupsInput) (*ListInstanceGroupsOutput, error) {
req, out := c.ListInstanceGroupsRequest(input)
err := req.Send()
return out, err
}
// ListInstanceGroupsPages iterates over the pages of a ListInstanceGroups operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See ListInstanceGroups method for more information on how to use this operation.
//
// Note: This operation can generate multiple requests to a service.
//
// // Example iterating over at most 3 pages of a ListInstanceGroups operation.
// pageNum := 0
// err := client.ListInstanceGroupsPages(params,
// func(page *ListInstanceGroupsOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
func (c *EMR) ListInstanceGroupsPages(input *ListInstanceGroupsInput, fn func(p *ListInstanceGroupsOutput, lastPage bool) (shouldContinue bool)) error {
page, _ := c.ListInstanceGroupsRequest(input)
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
return page.EachPage(func(p interface{}, lastPage bool) bool {
return fn(p.(*ListInstanceGroupsOutput), lastPage)
})
}
const opListInstances = "ListInstances"
// ListInstancesRequest generates a "aws/request.Request" representing the
// client's request for the ListInstances operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See ListInstances for usage and error information.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the ListInstances method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the ListInstancesRequest method.
// req, resp := client.ListInstancesRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListInstances
func (c *EMR) ListInstancesRequest(input *ListInstancesInput) (req *request.Request, output *ListInstancesOutput) {
op := &request.Operation{
Name: opListInstances,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &request.Paginator{
InputTokens: []string{"Marker"},
OutputTokens: []string{"Marker"},
LimitToken: "",
TruncationToken: "",
},
}
if input == nil {
input = &ListInstancesInput{}
}
output = &ListInstancesOutput{}
2017-01-23 22:22:31 +01:00
req = c.newRequest(op, input, output)
return
}
2016-10-17 23:21:08 +02:00
// ListInstances API operation for Amazon Elastic MapReduce.
//
// Provides information about the cluster instances that Amazon EMR provisions
// on behalf of a user when it creates the cluster. For example, this operation
// indicates when the EC2 instances reach the Ready state, when instances become
// available to Amazon EMR to use for jobs, and the IP addresses for cluster
// instances, etc.
2016-10-17 23:21:08 +02:00
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Elastic MapReduce's
// API operation ListInstances for usage and error information.
//
// Returned Error Codes:
// * InternalServerException
// This exception occurs when there is an internal failure in the EMR service.
//
// * InvalidRequestException
// This exception occurs when there is something wrong with user input.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListInstances
func (c *EMR) ListInstances(input *ListInstancesInput) (*ListInstancesOutput, error) {
req, out := c.ListInstancesRequest(input)
err := req.Send()
return out, err
}
// ListInstancesPages iterates over the pages of a ListInstances operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See ListInstances method for more information on how to use this operation.
//
// Note: This operation can generate multiple requests to a service.
//
// // Example iterating over at most 3 pages of a ListInstances operation.
// pageNum := 0
// err := client.ListInstancesPages(params,
// func(page *ListInstancesOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
func (c *EMR) ListInstancesPages(input *ListInstancesInput, fn func(p *ListInstancesOutput, lastPage bool) (shouldContinue bool)) error {
page, _ := c.ListInstancesRequest(input)
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
return page.EachPage(func(p interface{}, lastPage bool) bool {
return fn(p.(*ListInstancesOutput), lastPage)
})
}
const opListSecurityConfigurations = "ListSecurityConfigurations"
// ListSecurityConfigurationsRequest generates a "aws/request.Request" representing the
// client's request for the ListSecurityConfigurations operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See ListSecurityConfigurations for usage and error information.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the ListSecurityConfigurations method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the ListSecurityConfigurationsRequest method.
// req, resp := client.ListSecurityConfigurationsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListSecurityConfigurations
func (c *EMR) ListSecurityConfigurationsRequest(input *ListSecurityConfigurationsInput) (req *request.Request, output *ListSecurityConfigurationsOutput) {
op := &request.Operation{
Name: opListSecurityConfigurations,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ListSecurityConfigurationsInput{}
}
output = &ListSecurityConfigurationsOutput{}
2017-01-23 22:22:31 +01:00
req = c.newRequest(op, input, output)
return
}
2016-10-17 23:21:08 +02:00
// ListSecurityConfigurations API operation for Amazon Elastic MapReduce.
//
// Lists all the security configurations visible to this account, providing
// their creation dates and times, and their names. This call returns a maximum
// of 50 clusters per call, but returns a marker to track the paging of the
// cluster list across multiple ListSecurityConfigurations calls.
2016-10-17 23:21:08 +02:00
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Elastic MapReduce's
// API operation ListSecurityConfigurations for usage and error information.
//
// Returned Error Codes:
// * InternalServerException
// This exception occurs when there is an internal failure in the EMR service.
//
// * InvalidRequestException
// This exception occurs when there is something wrong with user input.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListSecurityConfigurations
func (c *EMR) ListSecurityConfigurations(input *ListSecurityConfigurationsInput) (*ListSecurityConfigurationsOutput, error) {
req, out := c.ListSecurityConfigurationsRequest(input)
err := req.Send()
return out, err
}
const opListSteps = "ListSteps"
// ListStepsRequest generates a "aws/request.Request" representing the
// client's request for the ListSteps operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See ListSteps for usage and error information.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the ListSteps method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the ListStepsRequest method.
// req, resp := client.ListStepsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListSteps
func (c *EMR) ListStepsRequest(input *ListStepsInput) (req *request.Request, output *ListStepsOutput) {
op := &request.Operation{
Name: opListSteps,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &request.Paginator{
InputTokens: []string{"Marker"},
OutputTokens: []string{"Marker"},
LimitToken: "",
TruncationToken: "",
},
}
if input == nil {
input = &ListStepsInput{}
}
output = &ListStepsOutput{}
2017-01-23 22:22:31 +01:00
req = c.newRequest(op, input, output)
return
}
2016-10-17 23:21:08 +02:00
// ListSteps API operation for Amazon Elastic MapReduce.
//
2016-11-19 19:41:01 +01:00
// Provides a list of steps for the cluster in reverse order unless you specify
// stepIds with the request.
2016-10-17 23:21:08 +02:00
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Elastic MapReduce's
// API operation ListSteps for usage and error information.
//
// Returned Error Codes:
// * InternalServerException
// This exception occurs when there is an internal failure in the EMR service.
//
// * InvalidRequestException
// This exception occurs when there is something wrong with user input.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListSteps
func (c *EMR) ListSteps(input *ListStepsInput) (*ListStepsOutput, error) {
req, out := c.ListStepsRequest(input)
err := req.Send()
return out, err
}
// ListStepsPages iterates over the pages of a ListSteps operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See ListSteps method for more information on how to use this operation.
//
// Note: This operation can generate multiple requests to a service.
//
// // Example iterating over at most 3 pages of a ListSteps operation.
// pageNum := 0
// err := client.ListStepsPages(params,
// func(page *ListStepsOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
func (c *EMR) ListStepsPages(input *ListStepsInput, fn func(p *ListStepsOutput, lastPage bool) (shouldContinue bool)) error {
page, _ := c.ListStepsRequest(input)
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
return page.EachPage(func(p interface{}, lastPage bool) bool {
return fn(p.(*ListStepsOutput), lastPage)
})
}
const opModifyInstanceGroups = "ModifyInstanceGroups"
// ModifyInstanceGroupsRequest generates a "aws/request.Request" representing the
// client's request for the ModifyInstanceGroups operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See ModifyInstanceGroups for usage and error information.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the ModifyInstanceGroups method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the ModifyInstanceGroupsRequest method.
// req, resp := client.ModifyInstanceGroupsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ModifyInstanceGroups
func (c *EMR) ModifyInstanceGroupsRequest(input *ModifyInstanceGroupsInput) (req *request.Request, output *ModifyInstanceGroupsOutput) {
op := &request.Operation{
Name: opModifyInstanceGroups,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ModifyInstanceGroupsInput{}
}
2017-01-23 22:22:31 +01:00
output = &ModifyInstanceGroupsOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
return
}
2016-10-17 23:21:08 +02:00
// ModifyInstanceGroups API operation for Amazon Elastic MapReduce.
//
// ModifyInstanceGroups modifies the number of nodes and configuration settings
// of an instance group. The input parameters include the new target instance
// count for the group and the instance group ID. The call will either succeed
// or fail atomically.
2016-10-17 23:21:08 +02:00
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Elastic MapReduce's
// API operation ModifyInstanceGroups for usage and error information.
//
// Returned Error Codes:
// * InternalServerError
// Indicates that an error occurred while processing the request and that the
// request was not completed.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ModifyInstanceGroups
func (c *EMR) ModifyInstanceGroups(input *ModifyInstanceGroupsInput) (*ModifyInstanceGroupsOutput, error) {
req, out := c.ModifyInstanceGroupsRequest(input)
err := req.Send()
return out, err
}
2016-11-19 19:41:01 +01:00
const opPutAutoScalingPolicy = "PutAutoScalingPolicy"
// PutAutoScalingPolicyRequest generates a "aws/request.Request" representing the
// client's request for the PutAutoScalingPolicy operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// See PutAutoScalingPolicy for usage and error information.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the PutAutoScalingPolicy method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the PutAutoScalingPolicyRequest method.
// req, resp := client.PutAutoScalingPolicyRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/PutAutoScalingPolicy
2016-11-19 19:41:01 +01:00
func (c *EMR) PutAutoScalingPolicyRequest(input *PutAutoScalingPolicyInput) (req *request.Request, output *PutAutoScalingPolicyOutput) {
op := &request.Operation{
Name: opPutAutoScalingPolicy,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &PutAutoScalingPolicyInput{}
}
output = &PutAutoScalingPolicyOutput{}
2017-01-23 22:22:31 +01:00
req = c.newRequest(op, input, output)
2016-11-19 19:41:01 +01:00
return
}
// PutAutoScalingPolicy API operation for Amazon Elastic MapReduce.
//
// Creates or updates an automatic scaling policy for a core instance group
// or task instance group in an Amazon EMR cluster. The automatic scaling policy
// defines how an instance group dynamically adds and terminates EC2 instances
// in response to the value of a CloudWatch metric.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Elastic MapReduce's
// API operation PutAutoScalingPolicy for usage and error information.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/PutAutoScalingPolicy
2016-11-19 19:41:01 +01:00
func (c *EMR) PutAutoScalingPolicy(input *PutAutoScalingPolicyInput) (*PutAutoScalingPolicyOutput, error) {
req, out := c.PutAutoScalingPolicyRequest(input)
err := req.Send()
return out, err
}
const opRemoveAutoScalingPolicy = "RemoveAutoScalingPolicy"
// RemoveAutoScalingPolicyRequest generates a "aws/request.Request" representing the
// client's request for the RemoveAutoScalingPolicy operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// See RemoveAutoScalingPolicy for usage and error information.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the RemoveAutoScalingPolicy method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the RemoveAutoScalingPolicyRequest method.
// req, resp := client.RemoveAutoScalingPolicyRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/RemoveAutoScalingPolicy
2016-11-19 19:41:01 +01:00
func (c *EMR) RemoveAutoScalingPolicyRequest(input *RemoveAutoScalingPolicyInput) (req *request.Request, output *RemoveAutoScalingPolicyOutput) {
op := &request.Operation{
Name: opRemoveAutoScalingPolicy,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &RemoveAutoScalingPolicyInput{}
}
output = &RemoveAutoScalingPolicyOutput{}
2017-01-23 22:22:31 +01:00
req = c.newRequest(op, input, output)
2016-11-19 19:41:01 +01:00
return
}
// RemoveAutoScalingPolicy API operation for Amazon Elastic MapReduce.
//
// Removes an automatic scaling policy from a specified instance group within
// an EMR cluster.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Elastic MapReduce's
// API operation RemoveAutoScalingPolicy for usage and error information.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/RemoveAutoScalingPolicy
2016-11-19 19:41:01 +01:00
func (c *EMR) RemoveAutoScalingPolicy(input *RemoveAutoScalingPolicyInput) (*RemoveAutoScalingPolicyOutput, error) {
req, out := c.RemoveAutoScalingPolicyRequest(input)
err := req.Send()
return out, err
}
const opRemoveTags = "RemoveTags"
// RemoveTagsRequest generates a "aws/request.Request" representing the
// client's request for the RemoveTags operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See RemoveTags for usage and error information.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the RemoveTags method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the RemoveTagsRequest method.
// req, resp := client.RemoveTagsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/RemoveTags
func (c *EMR) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Request, output *RemoveTagsOutput) {
op := &request.Operation{
Name: opRemoveTags,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &RemoveTagsInput{}
}
output = &RemoveTagsOutput{}
2017-01-23 22:22:31 +01:00
req = c.newRequest(op, input, output)
return
}
2016-10-17 23:21:08 +02:00
// RemoveTags API operation for Amazon Elastic MapReduce.
//
// Removes tags from an Amazon EMR resource. Tags make it easier to associate
// clusters in various ways, such as grouping clusters to track your Amazon
// EMR resource allocation costs. For more information, see Tagging Amazon EMR
// Resources (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/emr-plan-tags.html).
//
// The following example removes the stack tag with value Prod from a cluster:
2016-10-17 23:21:08 +02:00
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Elastic MapReduce's
// API operation RemoveTags for usage and error information.
//
// Returned Error Codes:
// * InternalServerException
// This exception occurs when there is an internal failure in the EMR service.
//
// * InvalidRequestException
// This exception occurs when there is something wrong with user input.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/RemoveTags
func (c *EMR) RemoveTags(input *RemoveTagsInput) (*RemoveTagsOutput, error) {
req, out := c.RemoveTagsRequest(input)
err := req.Send()
return out, err
}
const opRunJobFlow = "RunJobFlow"
// RunJobFlowRequest generates a "aws/request.Request" representing the
// client's request for the RunJobFlow operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See RunJobFlow for usage and error information.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the RunJobFlow method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the RunJobFlowRequest method.
// req, resp := client.RunJobFlowRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/RunJobFlow
func (c *EMR) RunJobFlowRequest(input *RunJobFlowInput) (req *request.Request, output *RunJobFlowOutput) {
op := &request.Operation{
Name: opRunJobFlow,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &RunJobFlowInput{}
}
output = &RunJobFlowOutput{}
2017-01-23 22:22:31 +01:00
req = c.newRequest(op, input, output)
return
}
2016-10-17 23:21:08 +02:00
// RunJobFlow API operation for Amazon Elastic MapReduce.
//
// RunJobFlow creates and starts running a new job flow. The job flow will run
2016-11-19 19:41:01 +01:00
// the steps specified. After the job flow completes, the cluster is stopped
// and the HDFS partition is lost. To prevent loss of data, configure the last
2016-11-19 19:41:01 +01:00
// step of the job flow to store results in Amazon S3. If the JobFlowInstancesConfigKeepJobFlowAliveWhenNoSteps
// parameter is set to TRUE, the job flow will transition to the WAITING state
// rather than shutting down after the steps have completed.
//
2016-11-19 19:41:01 +01:00
// For additional protection, you can set the JobFlowInstancesConfigTerminationProtected
// parameter to TRUE to lock the job flow and prevent it from being terminated
// by API call, user intervention, or in the event of a job flow error.
//
// A maximum of 256 steps are allowed in each job flow.
//
// If your job flow is long-running (such as a Hive data warehouse) or complex,
// you may require more than 256 steps to process your data. You can bypass
// the 256-step limitation in various ways, including using the SSH shell to
// connect to the master node and submitting queries directly to the software
// running on the master node, such as Hive and Hadoop. For more information
2016-11-19 19:41:01 +01:00
// on how to do this, see Add More than 256 Steps to a Job Flow (http://docs.aws.amazon.com/ElasticMapReduce/latest/Management/Guide/AddMoreThan256Steps.html)
// in the Amazon EMR Management Guide.
//
// For long running job flows, we recommend that you periodically store your
// results.
2016-10-17 23:21:08 +02:00
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Elastic MapReduce's
// API operation RunJobFlow for usage and error information.
//
// Returned Error Codes:
// * InternalServerError
// Indicates that an error occurred while processing the request and that the
// request was not completed.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/RunJobFlow
func (c *EMR) RunJobFlow(input *RunJobFlowInput) (*RunJobFlowOutput, error) {
req, out := c.RunJobFlowRequest(input)
err := req.Send()
return out, err
}
const opSetTerminationProtection = "SetTerminationProtection"
// SetTerminationProtectionRequest generates a "aws/request.Request" representing the
// client's request for the SetTerminationProtection operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See SetTerminationProtection for usage and error information.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the SetTerminationProtection method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the SetTerminationProtectionRequest method.
// req, resp := client.SetTerminationProtectionRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/SetTerminationProtection
func (c *EMR) SetTerminationProtectionRequest(input *SetTerminationProtectionInput) (req *request.Request, output *SetTerminationProtectionOutput) {
op := &request.Operation{
Name: opSetTerminationProtection,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &SetTerminationProtectionInput{}
}
2017-01-23 22:22:31 +01:00
output = &SetTerminationProtectionOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
return
}
2016-10-17 23:21:08 +02:00
// SetTerminationProtection API operation for Amazon Elastic MapReduce.
//
2016-11-19 19:41:01 +01:00
// SetTerminationProtection locks a job flow so the EC2 instances in the cluster
// cannot be terminated by user intervention, an API call, or in the event of
// a job-flow error. The cluster still terminates upon successful completion
// of the job flow. Calling SetTerminationProtection on a job flow is analogous
// to calling the Amazon EC2 DisableAPITermination API on all of the EC2 instances
// in a cluster.
//
2016-11-19 19:41:01 +01:00
// SetTerminationProtection is used to prevent accidental termination of a job
// flow and to ensure that in the event of an error, the instances will persist
// so you can recover any data stored in their ephemeral instance storage.
//
2016-11-19 19:41:01 +01:00
// To terminate a job flow that has been locked by setting SetTerminationProtection
// to true, you must first unlock the job flow by a subsequent call to SetTerminationProtection
// in which you set the value to false.
//
2016-11-19 19:41:01 +01:00
// For more information, seeProtecting a Job Flow from Termination (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/UsingEMR_TerminationProtection.html)
// in the Amazon EMR Guide.
2016-10-17 23:21:08 +02:00
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Elastic MapReduce's
// API operation SetTerminationProtection for usage and error information.
//
// Returned Error Codes:
// * InternalServerError
// Indicates that an error occurred while processing the request and that the
// request was not completed.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/SetTerminationProtection
func (c *EMR) SetTerminationProtection(input *SetTerminationProtectionInput) (*SetTerminationProtectionOutput, error) {
req, out := c.SetTerminationProtectionRequest(input)
err := req.Send()
return out, err
}
const opSetVisibleToAllUsers = "SetVisibleToAllUsers"
// SetVisibleToAllUsersRequest generates a "aws/request.Request" representing the
// client's request for the SetVisibleToAllUsers operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See SetVisibleToAllUsers for usage and error information.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the SetVisibleToAllUsers method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the SetVisibleToAllUsersRequest method.
// req, resp := client.SetVisibleToAllUsersRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/SetVisibleToAllUsers
func (c *EMR) SetVisibleToAllUsersRequest(input *SetVisibleToAllUsersInput) (req *request.Request, output *SetVisibleToAllUsersOutput) {
op := &request.Operation{
Name: opSetVisibleToAllUsers,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &SetVisibleToAllUsersInput{}
}
2017-01-23 22:22:31 +01:00
output = &SetVisibleToAllUsersOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
return
}
2016-10-17 23:21:08 +02:00
// SetVisibleToAllUsers API operation for Amazon Elastic MapReduce.
//
// Sets whether all AWS Identity and Access Management (IAM) users under your
// account can access the specified job flows. This action works on running
// job flows. You can also set the visibility of a job flow when you launch
// it using the VisibleToAllUsers parameter of RunJobFlow. The SetVisibleToAllUsers
// action can be called only by an IAM user who created the job flow or the
// AWS account that owns the job flow.
2016-10-17 23:21:08 +02:00
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Elastic MapReduce's
// API operation SetVisibleToAllUsers for usage and error information.
//
// Returned Error Codes:
// * InternalServerError
// Indicates that an error occurred while processing the request and that the
// request was not completed.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/SetVisibleToAllUsers
func (c *EMR) SetVisibleToAllUsers(input *SetVisibleToAllUsersInput) (*SetVisibleToAllUsersOutput, error) {
req, out := c.SetVisibleToAllUsersRequest(input)
err := req.Send()
return out, err
}
const opTerminateJobFlows = "TerminateJobFlows"
// TerminateJobFlowsRequest generates a "aws/request.Request" representing the
// client's request for the TerminateJobFlows operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
2016-10-17 23:21:08 +02:00
// See TerminateJobFlows for usage and error information.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the TerminateJobFlows method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the TerminateJobFlowsRequest method.
// req, resp := client.TerminateJobFlowsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/TerminateJobFlows
func (c *EMR) TerminateJobFlowsRequest(input *TerminateJobFlowsInput) (req *request.Request, output *TerminateJobFlowsOutput) {
op := &request.Operation{
Name: opTerminateJobFlows,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &TerminateJobFlowsInput{}
}
2017-01-23 22:22:31 +01:00
output = &TerminateJobFlowsOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
return
}
2016-10-17 23:21:08 +02:00
// TerminateJobFlows API operation for Amazon Elastic MapReduce.
//
// TerminateJobFlows shuts a list of job flows down. When a job flow is shut
// down, any step not yet completed is canceled and the EC2 instances on which
// the job flow is running are stopped. Any log files not already saved are
// uploaded to Amazon S3 if a LogUri was specified when the job flow was created.
//
// The maximum number of JobFlows allowed is 10. The call to TerminateJobFlows
// is asynchronous. Depending on the configuration of the job flow, it may take
2016-11-19 19:41:01 +01:00
// up to 1-5 minutes for the job flow to completely terminate and release allocated
// resources, such as Amazon EC2 instances.
2016-10-17 23:21:08 +02:00
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Elastic MapReduce's
// API operation TerminateJobFlows for usage and error information.
//
// Returned Error Codes:
// * InternalServerError
// Indicates that an error occurred while processing the request and that the
// request was not completed.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/TerminateJobFlows
func (c *EMR) TerminateJobFlows(input *TerminateJobFlowsInput) (*TerminateJobFlowsOutput, error) {
req, out := c.TerminateJobFlowsRequest(input)
err := req.Send()
return out, err
}
// Input to an AddInstanceGroups call.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/AddInstanceGroupsInput
type AddInstanceGroupsInput struct {
_ struct{} `type:"structure"`
2016-11-19 19:41:01 +01:00
// Instance groups to add.
2016-10-17 23:21:08 +02:00
//
// InstanceGroups is a required field
InstanceGroups []*InstanceGroupConfig `type:"list" required:"true"`
// Job flow in which to add the instance groups.
2016-10-17 23:21:08 +02:00
//
// JobFlowId is a required field
JobFlowId *string `type:"string" required:"true"`
}
// String returns the string representation
func (s AddInstanceGroupsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AddInstanceGroupsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *AddInstanceGroupsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "AddInstanceGroupsInput"}
if s.InstanceGroups == nil {
invalidParams.Add(request.NewErrParamRequired("InstanceGroups"))
}
if s.JobFlowId == nil {
invalidParams.Add(request.NewErrParamRequired("JobFlowId"))
}
if s.InstanceGroups != nil {
for i, v := range s.InstanceGroups {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InstanceGroups", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetInstanceGroups sets the InstanceGroups field's value.
func (s *AddInstanceGroupsInput) SetInstanceGroups(v []*InstanceGroupConfig) *AddInstanceGroupsInput {
s.InstanceGroups = v
return s
}
// SetJobFlowId sets the JobFlowId field's value.
func (s *AddInstanceGroupsInput) SetJobFlowId(v string) *AddInstanceGroupsInput {
s.JobFlowId = &v
return s
}
// Output from an AddInstanceGroups call.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/AddInstanceGroupsOutput
type AddInstanceGroupsOutput struct {
_ struct{} `type:"structure"`
// Instance group IDs of the newly created instance groups.
InstanceGroupIds []*string `type:"list"`
// The job flow ID in which the instance groups are added.
JobFlowId *string `type:"string"`
}
// String returns the string representation
func (s AddInstanceGroupsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AddInstanceGroupsOutput) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetInstanceGroupIds sets the InstanceGroupIds field's value.
func (s *AddInstanceGroupsOutput) SetInstanceGroupIds(v []*string) *AddInstanceGroupsOutput {
s.InstanceGroupIds = v
return s
}
// SetJobFlowId sets the JobFlowId field's value.
func (s *AddInstanceGroupsOutput) SetJobFlowId(v string) *AddInstanceGroupsOutput {
s.JobFlowId = &v
return s
}
// The input argument to the AddJobFlowSteps operation.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/AddJobFlowStepsInput
type AddJobFlowStepsInput struct {
_ struct{} `type:"structure"`
// A string that uniquely identifies the job flow. This identifier is returned
// by RunJobFlow and can also be obtained from ListClusters.
2016-10-17 23:21:08 +02:00
//
// JobFlowId is a required field
JobFlowId *string `type:"string" required:"true"`
// A list of StepConfig to be executed by the job flow.
2016-10-17 23:21:08 +02:00
//
// Steps is a required field
Steps []*StepConfig `type:"list" required:"true"`
}
// String returns the string representation
func (s AddJobFlowStepsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AddJobFlowStepsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *AddJobFlowStepsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "AddJobFlowStepsInput"}
if s.JobFlowId == nil {
invalidParams.Add(request.NewErrParamRequired("JobFlowId"))
}
if s.Steps == nil {
invalidParams.Add(request.NewErrParamRequired("Steps"))
}
if s.Steps != nil {
for i, v := range s.Steps {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Steps", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetJobFlowId sets the JobFlowId field's value.
func (s *AddJobFlowStepsInput) SetJobFlowId(v string) *AddJobFlowStepsInput {
s.JobFlowId = &v
return s
}
// SetSteps sets the Steps field's value.
func (s *AddJobFlowStepsInput) SetSteps(v []*StepConfig) *AddJobFlowStepsInput {
s.Steps = v
return s
}
// The output for the AddJobFlowSteps operation.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/AddJobFlowStepsOutput
type AddJobFlowStepsOutput struct {
_ struct{} `type:"structure"`
// The identifiers of the list of steps added to the job flow.
StepIds []*string `type:"list"`
}
// String returns the string representation
func (s AddJobFlowStepsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AddJobFlowStepsOutput) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetStepIds sets the StepIds field's value.
func (s *AddJobFlowStepsOutput) SetStepIds(v []*string) *AddJobFlowStepsOutput {
s.StepIds = v
return s
}
// This input identifies a cluster and a list of tags to attach.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/AddTagsInput
type AddTagsInput struct {
_ struct{} `type:"structure"`
// The Amazon EMR resource identifier to which tags will be added. This value
// must be a cluster identifier.
2016-10-17 23:21:08 +02:00
//
// ResourceId is a required field
ResourceId *string `type:"string" required:"true"`
2016-11-19 19:41:01 +01:00
// A list of tags to associate with a cluster and propagate to EC2 instances.
// Tags are user-defined key/value pairs that consist of a required key string
// with a maximum of 128 characters, and an optional value string with a maximum
// of 256 characters.
2016-10-17 23:21:08 +02:00
//
// Tags is a required field
Tags []*Tag `type:"list" required:"true"`
}
// String returns the string representation
func (s AddTagsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AddTagsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *AddTagsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "AddTagsInput"}
if s.ResourceId == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceId"))
}
if s.Tags == nil {
invalidParams.Add(request.NewErrParamRequired("Tags"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetResourceId sets the ResourceId field's value.
func (s *AddTagsInput) SetResourceId(v string) *AddTagsInput {
s.ResourceId = &v
return s
}
// SetTags sets the Tags field's value.
func (s *AddTagsInput) SetTags(v []*Tag) *AddTagsInput {
s.Tags = v
return s
}
// This output indicates the result of adding tags to a resource.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/AddTagsOutput
type AddTagsOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s AddTagsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AddTagsOutput) GoString() string {
return s.String()
}
// An application is any Amazon or third-party software that you can add to
// the cluster. This structure contains a list of strings that indicates the
// software to use with the cluster and accepts a user argument list. Amazon
// EMR accepts and forwards the argument list to the corresponding installation
// script as bootstrap action argument. For more information, see Launch a Job
// Flow on the MapR Distribution for Hadoop (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/emr-mapr.html).
// Currently supported values are:
//
2016-11-19 19:41:01 +01:00
// * "mapr-m3" - launch the job flow using MapR M3 Edition.
//
2016-11-19 19:41:01 +01:00
// * "mapr-m5" - launch the job flow using MapR M5 Edition.
//
2016-11-19 19:41:01 +01:00
// * "mapr" with the user arguments specifying "--edition,m3" or "--edition,m5"
// - launch the job flow using MapR M3 or M5 Edition, respectively.
//
2016-11-19 19:41:01 +01:00
// In Amazon EMR releases 4.0 and greater, the only accepted parameter is the
// application name. To pass arguments to applications, you supply a configuration
// for each application.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/Application
type Application struct {
_ struct{} `type:"structure"`
// This option is for advanced users only. This is meta information about third-party
// applications that third-party vendors use for testing purposes.
AdditionalInfo map[string]*string `type:"map"`
// Arguments for Amazon EMR to pass to the application.
Args []*string `type:"list"`
// The name of the application.
Name *string `type:"string"`
// The version of the application.
Version *string `type:"string"`
}
// String returns the string representation
func (s Application) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Application) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetAdditionalInfo sets the AdditionalInfo field's value.
func (s *Application) SetAdditionalInfo(v map[string]*string) *Application {
s.AdditionalInfo = v
return s
}
// SetArgs sets the Args field's value.
func (s *Application) SetArgs(v []*string) *Application {
s.Args = v
return s
}
// SetName sets the Name field's value.
func (s *Application) SetName(v string) *Application {
s.Name = &v
return s
}
// SetVersion sets the Version field's value.
func (s *Application) SetVersion(v string) *Application {
s.Version = &v
return s
}
// An automatic scaling policy for a core instance group or task instance group
// in an Amazon EMR cluster. An automatic scaling policy defines how an instance
// group dynamically adds and terminates EC2 instances in response to the value
// of a CloudWatch metric. See PutAutoScalingPolicy.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/AutoScalingPolicy
2016-11-19 19:41:01 +01:00
type AutoScalingPolicy struct {
_ struct{} `type:"structure"`
2016-11-19 19:41:01 +01:00
// The upper and lower EC2 instance limits for an automatic scaling policy.
// Automatic scaling activity will not cause an instance group to grow above
// or below these limits.
//
// Constraints is a required field
Constraints *ScalingConstraints `type:"structure" required:"true"`
2016-11-19 19:41:01 +01:00
// The scale-in and scale-out rules that comprise the automatic scaling policy.
//
// Rules is a required field
Rules []*ScalingRule `type:"list" required:"true"`
}
// String returns the string representation
2016-11-19 19:41:01 +01:00
func (s AutoScalingPolicy) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
2016-11-19 19:41:01 +01:00
func (s AutoScalingPolicy) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
2016-11-19 19:41:01 +01:00
func (s *AutoScalingPolicy) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "AutoScalingPolicy"}
if s.Constraints == nil {
invalidParams.Add(request.NewErrParamRequired("Constraints"))
}
2016-11-19 19:41:01 +01:00
if s.Rules == nil {
invalidParams.Add(request.NewErrParamRequired("Rules"))
}
2016-11-19 19:41:01 +01:00
if s.Constraints != nil {
if err := s.Constraints.Validate(); err != nil {
invalidParams.AddNested("Constraints", err.(request.ErrInvalidParams))
}
}
if s.Rules != nil {
for i, v := range s.Rules {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Rules", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetConstraints sets the Constraints field's value.
func (s *AutoScalingPolicy) SetConstraints(v *ScalingConstraints) *AutoScalingPolicy {
s.Constraints = v
return s
}
// SetRules sets the Rules field's value.
func (s *AutoScalingPolicy) SetRules(v []*ScalingRule) *AutoScalingPolicy {
s.Rules = v
return s
}
// An automatic scaling policy for a core instance group or task instance group
// in an Amazon EMR cluster. The automatic scaling policy defines how an instance
// group dynamically adds and terminates EC2 instances in response to the value
// of a CloudWatch metric. See PutAutoScalingPolicy.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/AutoScalingPolicyDescription
2016-11-19 19:41:01 +01:00
type AutoScalingPolicyDescription struct {
_ struct{} `type:"structure"`
2016-11-19 19:41:01 +01:00
// The upper and lower EC2 instance limits for an automatic scaling policy.
// Automatic scaling activity will not cause an instance group to grow above
// or below these limits.
Constraints *ScalingConstraints `type:"structure"`
// The scale-in and scale-out rules that comprise the automatic scaling policy.
Rules []*ScalingRule `type:"list"`
// The status of an automatic scaling policy.
Status *AutoScalingPolicyStatus `type:"structure"`
}
// String returns the string representation
2016-11-19 19:41:01 +01:00
func (s AutoScalingPolicyDescription) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
2016-11-19 19:41:01 +01:00
func (s AutoScalingPolicyDescription) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetConstraints sets the Constraints field's value.
func (s *AutoScalingPolicyDescription) SetConstraints(v *ScalingConstraints) *AutoScalingPolicyDescription {
s.Constraints = v
return s
}
2016-11-19 19:41:01 +01:00
// SetRules sets the Rules field's value.
func (s *AutoScalingPolicyDescription) SetRules(v []*ScalingRule) *AutoScalingPolicyDescription {
s.Rules = v
return s
}
2016-11-19 19:41:01 +01:00
// SetStatus sets the Status field's value.
func (s *AutoScalingPolicyDescription) SetStatus(v *AutoScalingPolicyStatus) *AutoScalingPolicyDescription {
s.Status = v
return s
}
2016-11-19 19:41:01 +01:00
// The reason for an AutoScalingPolicyStatus change.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/AutoScalingPolicyStateChangeReason
2016-11-19 19:41:01 +01:00
type AutoScalingPolicyStateChangeReason struct {
_ struct{} `type:"structure"`
2016-11-19 19:41:01 +01:00
// The code indicating the reason for the change in status.USER_REQUEST indicates
// that the scaling policy status was changed by a user. PROVISION_FAILURE indicates
// that the status change was because the policy failed to provision. CLEANUP_FAILURE
// indicates something unclean happened.-->
Code *string `type:"string" enum:"AutoScalingPolicyStateChangeReasonCode"`
2016-11-19 19:41:01 +01:00
// A friendly, more verbose message that accompanies an automatic scaling policy
// state change.
Message *string `type:"string"`
}
2016-11-19 19:41:01 +01:00
// String returns the string representation
func (s AutoScalingPolicyStateChangeReason) String() string {
return awsutil.Prettify(s)
}
2016-11-19 19:41:01 +01:00
// GoString returns the string representation
func (s AutoScalingPolicyStateChangeReason) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetCode sets the Code field's value.
func (s *AutoScalingPolicyStateChangeReason) SetCode(v string) *AutoScalingPolicyStateChangeReason {
s.Code = &v
return s
}
2016-11-19 19:41:01 +01:00
// SetMessage sets the Message field's value.
func (s *AutoScalingPolicyStateChangeReason) SetMessage(v string) *AutoScalingPolicyStateChangeReason {
s.Message = &v
return s
}
2016-11-19 19:41:01 +01:00
// The status of an automatic scaling policy.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/AutoScalingPolicyStatus
2016-11-19 19:41:01 +01:00
type AutoScalingPolicyStatus struct {
_ struct{} `type:"structure"`
2016-11-19 19:41:01 +01:00
State *string `type:"string" enum:"AutoScalingPolicyState"`
2016-11-19 19:41:01 +01:00
// The reason for a change in status.
StateChangeReason *AutoScalingPolicyStateChangeReason `type:"structure"`
}
// String returns the string representation
func (s AutoScalingPolicyStatus) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AutoScalingPolicyStatus) GoString() string {
return s.String()
}
// SetState sets the State field's value.
func (s *AutoScalingPolicyStatus) SetState(v string) *AutoScalingPolicyStatus {
s.State = &v
return s
}
// SetStateChangeReason sets the StateChangeReason field's value.
func (s *AutoScalingPolicyStatus) SetStateChangeReason(v *AutoScalingPolicyStateChangeReason) *AutoScalingPolicyStatus {
s.StateChangeReason = v
return s
}
// Configuration of a bootstrap action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/BootstrapActionConfig
2016-11-19 19:41:01 +01:00
type BootstrapActionConfig struct {
_ struct{} `type:"structure"`
// The name of the bootstrap action.
//
// Name is a required field
Name *string `type:"string" required:"true"`
// The script run by the bootstrap action.
//
// ScriptBootstrapAction is a required field
ScriptBootstrapAction *ScriptBootstrapActionConfig `type:"structure" required:"true"`
}
// String returns the string representation
func (s BootstrapActionConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s BootstrapActionConfig) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *BootstrapActionConfig) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "BootstrapActionConfig"}
if s.Name == nil {
invalidParams.Add(request.NewErrParamRequired("Name"))
}
if s.ScriptBootstrapAction == nil {
invalidParams.Add(request.NewErrParamRequired("ScriptBootstrapAction"))
}
if s.ScriptBootstrapAction != nil {
if err := s.ScriptBootstrapAction.Validate(); err != nil {
invalidParams.AddNested("ScriptBootstrapAction", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetName sets the Name field's value.
func (s *BootstrapActionConfig) SetName(v string) *BootstrapActionConfig {
s.Name = &v
return s
}
// SetScriptBootstrapAction sets the ScriptBootstrapAction field's value.
func (s *BootstrapActionConfig) SetScriptBootstrapAction(v *ScriptBootstrapActionConfig) *BootstrapActionConfig {
s.ScriptBootstrapAction = v
return s
}
// Reports the configuration of a bootstrap action in a job flow.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/BootstrapActionDetail
2016-11-19 19:41:01 +01:00
type BootstrapActionDetail struct {
_ struct{} `type:"structure"`
// A description of the bootstrap action.
BootstrapActionConfig *BootstrapActionConfig `type:"structure"`
}
// String returns the string representation
func (s BootstrapActionDetail) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s BootstrapActionDetail) GoString() string {
return s.String()
}
// SetBootstrapActionConfig sets the BootstrapActionConfig field's value.
func (s *BootstrapActionDetail) SetBootstrapActionConfig(v *BootstrapActionConfig) *BootstrapActionDetail {
s.BootstrapActionConfig = v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/CancelStepsInfo
2016-11-19 19:41:01 +01:00
type CancelStepsInfo struct {
_ struct{} `type:"structure"`
Reason *string `type:"string"`
Status *string `type:"string" enum:"CancelStepsRequestStatus"`
StepId *string `type:"string"`
}
// String returns the string representation
func (s CancelStepsInfo) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CancelStepsInfo) GoString() string {
return s.String()
}
// SetReason sets the Reason field's value.
func (s *CancelStepsInfo) SetReason(v string) *CancelStepsInfo {
s.Reason = &v
return s
}
// SetStatus sets the Status field's value.
func (s *CancelStepsInfo) SetStatus(v string) *CancelStepsInfo {
s.Status = &v
return s
}
// SetStepId sets the StepId field's value.
func (s *CancelStepsInfo) SetStepId(v string) *CancelStepsInfo {
s.StepId = &v
return s
}
// The input argument to the CancelSteps operation.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/CancelStepsInput
2016-11-19 19:41:01 +01:00
type CancelStepsInput struct {
_ struct{} `type:"structure"`
// The ClusterID for which specified steps will be canceled. Use RunJobFlow
// and ListClusters to get ClusterIDs.
ClusterId *string `type:"string"`
// The list of StepIDs to cancel. Use ListSteps to get steps and their states
// for the specified cluster.
StepIds []*string `type:"list"`
}
// String returns the string representation
func (s CancelStepsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CancelStepsInput) GoString() string {
return s.String()
}
// SetClusterId sets the ClusterId field's value.
func (s *CancelStepsInput) SetClusterId(v string) *CancelStepsInput {
s.ClusterId = &v
return s
}
// SetStepIds sets the StepIds field's value.
func (s *CancelStepsInput) SetStepIds(v []*string) *CancelStepsInput {
s.StepIds = v
return s
}
// The output for the CancelSteps operation.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/CancelStepsOutput
2016-11-19 19:41:01 +01:00
type CancelStepsOutput struct {
_ struct{} `type:"structure"`
// A list of CancelStepsInfo, which shows the status of specified cancel requests
// for each StepID specified.
CancelStepsInfoList []*CancelStepsInfo `type:"list"`
}
// String returns the string representation
func (s CancelStepsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CancelStepsOutput) GoString() string {
return s.String()
}
// SetCancelStepsInfoList sets the CancelStepsInfoList field's value.
func (s *CancelStepsOutput) SetCancelStepsInfoList(v []*CancelStepsInfo) *CancelStepsOutput {
s.CancelStepsInfoList = v
return s
}
// The definition of a CloudWatch metric alarm, which determines when an automatic
// scaling activity is triggered. When the defined alarm conditions are satisfied,
// scaling activity begins.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/CloudWatchAlarmDefinition
2016-11-19 19:41:01 +01:00
type CloudWatchAlarmDefinition struct {
_ struct{} `type:"structure"`
// Determines how the metric specified by MetricName is compared to the value
// specified by Threshold.
//
// ComparisonOperator is a required field
ComparisonOperator *string `type:"string" required:"true" enum:"ComparisonOperator"`
// A CloudWatch metric dimension.
Dimensions []*MetricDimension `type:"list"`
// The number of periods, expressed in seconds using Period, during which the
// alarm condition must exist before the alarm triggers automatic scaling activity.
// The default value is 1.
EvaluationPeriods *int64 `type:"integer"`
// The name of the CloudWatch metric that is watched to determine an alarm condition.
//
// MetricName is a required field
MetricName *string `type:"string" required:"true"`
// The namespace for the CloudWatch metric. The default is AWS/ElasticMapReduce.
Namespace *string `type:"string"`
// The period, in seconds, over which the statistic is applied. EMR CloudWatch
// metrics are emitted every five minutes (300 seconds), so if an EMR CloudWatch
// metric is specified, specify 300.
//
// Period is a required field
Period *int64 `type:"integer" required:"true"`
// The statistic to apply to the metric associated with the alarm. The default
// is AVERAGE.
Statistic *string `type:"string" enum:"Statistic"`
// The value against which the specified statistic is compared.
//
// Threshold is a required field
Threshold *float64 `type:"double" required:"true"`
// The unit of measure associated with the CloudWatch metric being watched.
// The value specified for Unit must correspond to the units specified in the
// CloudWatch metric.
Unit *string `type:"string" enum:"Unit"`
}
// String returns the string representation
func (s CloudWatchAlarmDefinition) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CloudWatchAlarmDefinition) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CloudWatchAlarmDefinition) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CloudWatchAlarmDefinition"}
if s.ComparisonOperator == nil {
invalidParams.Add(request.NewErrParamRequired("ComparisonOperator"))
}
if s.MetricName == nil {
invalidParams.Add(request.NewErrParamRequired("MetricName"))
}
if s.Period == nil {
invalidParams.Add(request.NewErrParamRequired("Period"))
}
if s.Threshold == nil {
invalidParams.Add(request.NewErrParamRequired("Threshold"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetComparisonOperator sets the ComparisonOperator field's value.
func (s *CloudWatchAlarmDefinition) SetComparisonOperator(v string) *CloudWatchAlarmDefinition {
s.ComparisonOperator = &v
return s
}
// SetDimensions sets the Dimensions field's value.
func (s *CloudWatchAlarmDefinition) SetDimensions(v []*MetricDimension) *CloudWatchAlarmDefinition {
s.Dimensions = v
return s
}
// SetEvaluationPeriods sets the EvaluationPeriods field's value.
func (s *CloudWatchAlarmDefinition) SetEvaluationPeriods(v int64) *CloudWatchAlarmDefinition {
s.EvaluationPeriods = &v
return s
}
// SetMetricName sets the MetricName field's value.
func (s *CloudWatchAlarmDefinition) SetMetricName(v string) *CloudWatchAlarmDefinition {
s.MetricName = &v
return s
}
// SetNamespace sets the Namespace field's value.
func (s *CloudWatchAlarmDefinition) SetNamespace(v string) *CloudWatchAlarmDefinition {
s.Namespace = &v
return s
}
// SetPeriod sets the Period field's value.
func (s *CloudWatchAlarmDefinition) SetPeriod(v int64) *CloudWatchAlarmDefinition {
s.Period = &v
return s
}
// SetStatistic sets the Statistic field's value.
func (s *CloudWatchAlarmDefinition) SetStatistic(v string) *CloudWatchAlarmDefinition {
s.Statistic = &v
return s
}
// SetThreshold sets the Threshold field's value.
func (s *CloudWatchAlarmDefinition) SetThreshold(v float64) *CloudWatchAlarmDefinition {
s.Threshold = &v
return s
}
// SetUnit sets the Unit field's value.
func (s *CloudWatchAlarmDefinition) SetUnit(v string) *CloudWatchAlarmDefinition {
s.Unit = &v
return s
}
// The detailed description of the cluster.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/Cluster
2016-11-19 19:41:01 +01:00
type Cluster struct {
_ struct{} `type:"structure"`
// The applications installed on this cluster.
Applications []*Application `type:"list"`
// An IAM role for automatic scaling policies. The default role is EMR_AutoScaling_DefaultRole.
// The IAM role provides permissions that the automatic scaling feature requires
// to launch and terminate EC2 instances in an instance group.
AutoScalingRole *string `type:"string"`
// Specifies whether the cluster should terminate after completing all steps.
AutoTerminate *bool `type:"boolean"`
// Amazon EMR releases 4.x or later.
//
// The list of Configurations supplied to the EMR cluster.
Configurations []*Configuration `type:"list"`
// Provides information about the EC2 instances in a cluster grouped by category.
// For example, key name, subnet ID, IAM instance profile, and so on.
Ec2InstanceAttributes *Ec2InstanceAttributes `type:"structure"`
// The unique identifier for the cluster.
Id *string `type:"string"`
// The path to the Amazon S3 location where logs for this cluster are stored.
LogUri *string `type:"string"`
// The public DNS name of the master EC2 instance.
MasterPublicDnsName *string `type:"string"`
// The name of the cluster.
Name *string `type:"string"`
// An approximation of the cost of the job flow, represented in m1.small/hours.
// This value is incremented one time for every hour an m1.small instance runs.
// Larger instances are weighted more, so an EC2 instance that is roughly four
// times more expensive would result in the normalized instance hours being
// incremented by four. This result is only an approximation and does not reflect
// the actual billing rate.
NormalizedInstanceHours *int64 `type:"integer"`
// The release label for the Amazon EMR release. For Amazon EMR 3.x and 2.x
// AMIs, use amiVersion instead instead of ReleaseLabel.
ReleaseLabel *string `type:"string"`
// The AMI version requested for this cluster.
RequestedAmiVersion *string `type:"string"`
// The AMI version running on this cluster.
RunningAmiVersion *string `type:"string"`
// The way that individual Amazon EC2 instances terminate when an automatic
// scale-in activity occurs or an instance group is resized. TERMINATE_AT_INSTANCE_HOUR
// indicates that Amazon EMR terminates nodes at the instance-hour boundary,
// regardless of when the request to terminate the instance was submitted. This
// option is only available with Amazon EMR 5.1.0 and later and is the default
// for clusters created using that version. TERMINATE_AT_TASK_COMPLETION indicates
// that Amazon EMR blacklists and drains tasks from nodes before terminating
// the Amazon EC2 instances, regardless of the instance-hour boundary. With
// either behavior, Amazon EMR removes the least active nodes first and blocks
// instance termination if it could lead to HDFS corruption. TERMINATE_AT_TASK_COMPLETION
// is available only in Amazon EMR version 4.1.0 and later, and is the default
// for versions of Amazon EMR earlier than 5.1.0.
ScaleDownBehavior *string `type:"string" enum:"ScaleDownBehavior"`
// The name of the security configuration applied to the cluster.
SecurityConfiguration *string `type:"string"`
// The IAM role that will be assumed by the Amazon EMR service to access AWS
// resources on your behalf.
ServiceRole *string `type:"string"`
// The current status details about the cluster.
Status *ClusterStatus `type:"structure"`
// A list of tags associated with a cluster.
Tags []*Tag `type:"list"`
// Indicates whether Amazon EMR will lock the cluster to prevent the EC2 instances
// from being terminated by an API call or user intervention, or in the event
// of a cluster error.
TerminationProtected *bool `type:"boolean"`
// Indicates whether the job flow is visible to all IAM users of the AWS account
// associated with the job flow. If this value is set to true, all IAM users
// of that AWS account can view and manage the job flow if they have the proper
// policy permissions set. If this value is false, only the IAM user that created
// the cluster can view and manage it. This value can be changed using the SetVisibleToAllUsers
// action.
VisibleToAllUsers *bool `type:"boolean"`
}
// String returns the string representation
func (s Cluster) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Cluster) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetApplications sets the Applications field's value.
func (s *Cluster) SetApplications(v []*Application) *Cluster {
s.Applications = v
return s
}
// SetAutoScalingRole sets the AutoScalingRole field's value.
func (s *Cluster) SetAutoScalingRole(v string) *Cluster {
s.AutoScalingRole = &v
return s
}
// SetAutoTerminate sets the AutoTerminate field's value.
func (s *Cluster) SetAutoTerminate(v bool) *Cluster {
s.AutoTerminate = &v
return s
}
// SetConfigurations sets the Configurations field's value.
func (s *Cluster) SetConfigurations(v []*Configuration) *Cluster {
s.Configurations = v
return s
}
// SetEc2InstanceAttributes sets the Ec2InstanceAttributes field's value.
func (s *Cluster) SetEc2InstanceAttributes(v *Ec2InstanceAttributes) *Cluster {
s.Ec2InstanceAttributes = v
return s
}
// SetId sets the Id field's value.
func (s *Cluster) SetId(v string) *Cluster {
s.Id = &v
return s
}
// SetLogUri sets the LogUri field's value.
func (s *Cluster) SetLogUri(v string) *Cluster {
s.LogUri = &v
return s
}
// SetMasterPublicDnsName sets the MasterPublicDnsName field's value.
func (s *Cluster) SetMasterPublicDnsName(v string) *Cluster {
s.MasterPublicDnsName = &v
return s
}
// SetName sets the Name field's value.
func (s *Cluster) SetName(v string) *Cluster {
s.Name = &v
return s
}
// SetNormalizedInstanceHours sets the NormalizedInstanceHours field's value.
func (s *Cluster) SetNormalizedInstanceHours(v int64) *Cluster {
s.NormalizedInstanceHours = &v
return s
}
// SetReleaseLabel sets the ReleaseLabel field's value.
func (s *Cluster) SetReleaseLabel(v string) *Cluster {
s.ReleaseLabel = &v
return s
}
// SetRequestedAmiVersion sets the RequestedAmiVersion field's value.
func (s *Cluster) SetRequestedAmiVersion(v string) *Cluster {
s.RequestedAmiVersion = &v
return s
}
// SetRunningAmiVersion sets the RunningAmiVersion field's value.
func (s *Cluster) SetRunningAmiVersion(v string) *Cluster {
s.RunningAmiVersion = &v
return s
}
// SetScaleDownBehavior sets the ScaleDownBehavior field's value.
func (s *Cluster) SetScaleDownBehavior(v string) *Cluster {
s.ScaleDownBehavior = &v
return s
}
// SetSecurityConfiguration sets the SecurityConfiguration field's value.
func (s *Cluster) SetSecurityConfiguration(v string) *Cluster {
s.SecurityConfiguration = &v
return s
}
// SetServiceRole sets the ServiceRole field's value.
func (s *Cluster) SetServiceRole(v string) *Cluster {
s.ServiceRole = &v
return s
}
// SetStatus sets the Status field's value.
func (s *Cluster) SetStatus(v *ClusterStatus) *Cluster {
s.Status = v
return s
}
// SetTags sets the Tags field's value.
func (s *Cluster) SetTags(v []*Tag) *Cluster {
s.Tags = v
return s
}
// SetTerminationProtected sets the TerminationProtected field's value.
func (s *Cluster) SetTerminationProtected(v bool) *Cluster {
s.TerminationProtected = &v
return s
}
// SetVisibleToAllUsers sets the VisibleToAllUsers field's value.
func (s *Cluster) SetVisibleToAllUsers(v bool) *Cluster {
s.VisibleToAllUsers = &v
return s
}
// The reason that the cluster changed to its current state.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ClusterStateChangeReason
type ClusterStateChangeReason struct {
_ struct{} `type:"structure"`
// The programmatic code for the state change reason.
Code *string `type:"string" enum:"ClusterStateChangeReasonCode"`
// The descriptive message for the state change reason.
Message *string `type:"string"`
}
// String returns the string representation
func (s ClusterStateChangeReason) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ClusterStateChangeReason) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetCode sets the Code field's value.
func (s *ClusterStateChangeReason) SetCode(v string) *ClusterStateChangeReason {
s.Code = &v
return s
}
// SetMessage sets the Message field's value.
func (s *ClusterStateChangeReason) SetMessage(v string) *ClusterStateChangeReason {
s.Message = &v
return s
}
// The detailed status of the cluster.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ClusterStatus
type ClusterStatus struct {
_ struct{} `type:"structure"`
// The current state of the cluster.
State *string `type:"string" enum:"ClusterState"`
// The reason for the cluster status change.
StateChangeReason *ClusterStateChangeReason `type:"structure"`
// A timeline that represents the status of a cluster over the lifetime of the
// cluster.
Timeline *ClusterTimeline `type:"structure"`
}
// String returns the string representation
func (s ClusterStatus) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ClusterStatus) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetState sets the State field's value.
func (s *ClusterStatus) SetState(v string) *ClusterStatus {
s.State = &v
return s
}
// SetStateChangeReason sets the StateChangeReason field's value.
func (s *ClusterStatus) SetStateChangeReason(v *ClusterStateChangeReason) *ClusterStatus {
s.StateChangeReason = v
return s
}
// SetTimeline sets the Timeline field's value.
func (s *ClusterStatus) SetTimeline(v *ClusterTimeline) *ClusterStatus {
s.Timeline = v
return s
}
// The summary description of the cluster.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ClusterSummary
type ClusterSummary struct {
_ struct{} `type:"structure"`
// The unique identifier for the cluster.
Id *string `type:"string"`
// The name of the cluster.
Name *string `type:"string"`
// An approximation of the cost of the job flow, represented in m1.small/hours.
// This value is incremented one time for every hour an m1.small instance runs.
// Larger instances are weighted more, so an EC2 instance that is roughly four
// times more expensive would result in the normalized instance hours being
// incremented by four. This result is only an approximation and does not reflect
// the actual billing rate.
NormalizedInstanceHours *int64 `type:"integer"`
// The details about the current status of the cluster.
Status *ClusterStatus `type:"structure"`
}
// String returns the string representation
func (s ClusterSummary) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ClusterSummary) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetId sets the Id field's value.
func (s *ClusterSummary) SetId(v string) *ClusterSummary {
s.Id = &v
return s
}
// SetName sets the Name field's value.
func (s *ClusterSummary) SetName(v string) *ClusterSummary {
s.Name = &v
return s
}
// SetNormalizedInstanceHours sets the NormalizedInstanceHours field's value.
func (s *ClusterSummary) SetNormalizedInstanceHours(v int64) *ClusterSummary {
s.NormalizedInstanceHours = &v
return s
}
// SetStatus sets the Status field's value.
func (s *ClusterSummary) SetStatus(v *ClusterStatus) *ClusterSummary {
s.Status = v
return s
}
// Represents the timeline of the cluster's lifecycle.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ClusterTimeline
type ClusterTimeline struct {
_ struct{} `type:"structure"`
// The creation date and time of the cluster.
CreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
// The date and time when the cluster was terminated.
EndDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
// The date and time when the cluster was ready to execute steps.
ReadyDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
}
// String returns the string representation
func (s ClusterTimeline) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ClusterTimeline) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetCreationDateTime sets the CreationDateTime field's value.
func (s *ClusterTimeline) SetCreationDateTime(v time.Time) *ClusterTimeline {
s.CreationDateTime = &v
return s
}
// SetEndDateTime sets the EndDateTime field's value.
func (s *ClusterTimeline) SetEndDateTime(v time.Time) *ClusterTimeline {
s.EndDateTime = &v
return s
}
// SetReadyDateTime sets the ReadyDateTime field's value.
func (s *ClusterTimeline) SetReadyDateTime(v time.Time) *ClusterTimeline {
s.ReadyDateTime = &v
return s
}
// An entity describing an executable that runs on a cluster.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/Command
type Command struct {
_ struct{} `type:"structure"`
// Arguments for Amazon EMR to pass to the command for execution.
Args []*string `type:"list"`
// The name of the command.
Name *string `type:"string"`
// The Amazon S3 location of the command script.
ScriptPath *string `type:"string"`
}
// String returns the string representation
func (s Command) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Command) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetArgs sets the Args field's value.
func (s *Command) SetArgs(v []*string) *Command {
s.Args = v
return s
}
// SetName sets the Name field's value.
func (s *Command) SetName(v string) *Command {
s.Name = &v
return s
}
// SetScriptPath sets the ScriptPath field's value.
func (s *Command) SetScriptPath(v string) *Command {
s.ScriptPath = &v
return s
}
// Amazon EMR releases 4.x or later.
//
2016-11-19 19:41:01 +01:00
// Specifies a hardware and software configuration of the EMR cluster. This
// includes configurations for applications and software bundled with Amazon
// EMR. The Configuration object is a JSON object which is defined by a classification
// and a set of properties. Configurations can be nested, so a configuration
// may have its own Configuration objects listed.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/Configuration
type Configuration struct {
_ struct{} `type:"structure"`
// The classification of a configuration. For more information see, Amazon EMR
// Configurations (http://docs.aws.amazon.com/ElasticMapReduce/latest/API/EmrConfigurations.html).
Classification *string `type:"string"`
// A list of configurations you apply to this configuration object.
Configurations []*Configuration `type:"list"`
// A set of properties supplied to the Configuration object.
Properties map[string]*string `type:"map"`
}
// String returns the string representation
func (s Configuration) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Configuration) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetClassification sets the Classification field's value.
func (s *Configuration) SetClassification(v string) *Configuration {
s.Classification = &v
return s
}
// SetConfigurations sets the Configurations field's value.
func (s *Configuration) SetConfigurations(v []*Configuration) *Configuration {
s.Configurations = v
return s
}
// SetProperties sets the Properties field's value.
func (s *Configuration) SetProperties(v map[string]*string) *Configuration {
s.Properties = v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/CreateSecurityConfigurationInput
type CreateSecurityConfigurationInput struct {
_ struct{} `type:"structure"`
// The name of the security configuration.
2016-10-17 23:21:08 +02:00
//
// Name is a required field
Name *string `type:"string" required:"true"`
// The security configuration details in JSON format.
2016-10-17 23:21:08 +02:00
//
// SecurityConfiguration is a required field
SecurityConfiguration *string `type:"string" required:"true"`
}
// String returns the string representation
func (s CreateSecurityConfigurationInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateSecurityConfigurationInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateSecurityConfigurationInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CreateSecurityConfigurationInput"}
if s.Name == nil {
invalidParams.Add(request.NewErrParamRequired("Name"))
}
if s.SecurityConfiguration == nil {
invalidParams.Add(request.NewErrParamRequired("SecurityConfiguration"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetName sets the Name field's value.
func (s *CreateSecurityConfigurationInput) SetName(v string) *CreateSecurityConfigurationInput {
s.Name = &v
return s
}
// SetSecurityConfiguration sets the SecurityConfiguration field's value.
func (s *CreateSecurityConfigurationInput) SetSecurityConfiguration(v string) *CreateSecurityConfigurationInput {
s.SecurityConfiguration = &v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/CreateSecurityConfigurationOutput
type CreateSecurityConfigurationOutput struct {
_ struct{} `type:"structure"`
// The date and time the security configuration was created.
2016-10-17 23:21:08 +02:00
//
// CreationDateTime is a required field
CreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
// The name of the security configuration.
2016-10-17 23:21:08 +02:00
//
// Name is a required field
Name *string `type:"string" required:"true"`
}
// String returns the string representation
func (s CreateSecurityConfigurationOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateSecurityConfigurationOutput) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetCreationDateTime sets the CreationDateTime field's value.
func (s *CreateSecurityConfigurationOutput) SetCreationDateTime(v time.Time) *CreateSecurityConfigurationOutput {
s.CreationDateTime = &v
return s
}
// SetName sets the Name field's value.
func (s *CreateSecurityConfigurationOutput) SetName(v string) *CreateSecurityConfigurationOutput {
s.Name = &v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/DeleteSecurityConfigurationInput
type DeleteSecurityConfigurationInput struct {
_ struct{} `type:"structure"`
// The name of the security configuration.
2016-10-17 23:21:08 +02:00
//
// Name is a required field
Name *string `type:"string" required:"true"`
}
// String returns the string representation
func (s DeleteSecurityConfigurationInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteSecurityConfigurationInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteSecurityConfigurationInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DeleteSecurityConfigurationInput"}
if s.Name == nil {
invalidParams.Add(request.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetName sets the Name field's value.
func (s *DeleteSecurityConfigurationInput) SetName(v string) *DeleteSecurityConfigurationInput {
s.Name = &v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/DeleteSecurityConfigurationOutput
type DeleteSecurityConfigurationOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DeleteSecurityConfigurationOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteSecurityConfigurationOutput) GoString() string {
return s.String()
}
// This input determines which cluster to describe.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/DescribeClusterInput
type DescribeClusterInput struct {
_ struct{} `type:"structure"`
// The identifier of the cluster to describe.
2016-10-17 23:21:08 +02:00
//
// ClusterId is a required field
ClusterId *string `type:"string" required:"true"`
}
// String returns the string representation
func (s DescribeClusterInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeClusterInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeClusterInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DescribeClusterInput"}
if s.ClusterId == nil {
invalidParams.Add(request.NewErrParamRequired("ClusterId"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetClusterId sets the ClusterId field's value.
func (s *DescribeClusterInput) SetClusterId(v string) *DescribeClusterInput {
s.ClusterId = &v
return s
}
// This output contains the description of the cluster.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/DescribeClusterOutput
type DescribeClusterOutput struct {
_ struct{} `type:"structure"`
// This output contains the details for the requested cluster.
Cluster *Cluster `type:"structure"`
}
// String returns the string representation
func (s DescribeClusterOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeClusterOutput) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetCluster sets the Cluster field's value.
func (s *DescribeClusterOutput) SetCluster(v *Cluster) *DescribeClusterOutput {
s.Cluster = v
return s
}
// The input for the DescribeJobFlows operation.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/DescribeJobFlowsInput
type DescribeJobFlowsInput struct {
_ struct{} `type:"structure"`
// Return only job flows created after this date and time.
CreatedAfter *time.Time `type:"timestamp" timestampFormat:"unix"`
// Return only job flows created before this date and time.
CreatedBefore *time.Time `type:"timestamp" timestampFormat:"unix"`
// Return only job flows whose job flow ID is contained in this list.
JobFlowIds []*string `type:"list"`
// Return only job flows whose state is contained in this list.
JobFlowStates []*string `type:"list"`
}
// String returns the string representation
func (s DescribeJobFlowsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeJobFlowsInput) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetCreatedAfter sets the CreatedAfter field's value.
func (s *DescribeJobFlowsInput) SetCreatedAfter(v time.Time) *DescribeJobFlowsInput {
s.CreatedAfter = &v
return s
}
// SetCreatedBefore sets the CreatedBefore field's value.
func (s *DescribeJobFlowsInput) SetCreatedBefore(v time.Time) *DescribeJobFlowsInput {
s.CreatedBefore = &v
return s
}
// SetJobFlowIds sets the JobFlowIds field's value.
func (s *DescribeJobFlowsInput) SetJobFlowIds(v []*string) *DescribeJobFlowsInput {
s.JobFlowIds = v
return s
}
// SetJobFlowStates sets the JobFlowStates field's value.
func (s *DescribeJobFlowsInput) SetJobFlowStates(v []*string) *DescribeJobFlowsInput {
s.JobFlowStates = v
return s
}
// The output for the DescribeJobFlows operation.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/DescribeJobFlowsOutput
type DescribeJobFlowsOutput struct {
_ struct{} `type:"structure"`
// A list of job flows matching the parameters supplied.
JobFlows []*JobFlowDetail `type:"list"`
}
// String returns the string representation
func (s DescribeJobFlowsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeJobFlowsOutput) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetJobFlows sets the JobFlows field's value.
func (s *DescribeJobFlowsOutput) SetJobFlows(v []*JobFlowDetail) *DescribeJobFlowsOutput {
s.JobFlows = v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/DescribeSecurityConfigurationInput
type DescribeSecurityConfigurationInput struct {
_ struct{} `type:"structure"`
// The name of the security configuration.
2016-10-17 23:21:08 +02:00
//
// Name is a required field
Name *string `type:"string" required:"true"`
}
// String returns the string representation
func (s DescribeSecurityConfigurationInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeSecurityConfigurationInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeSecurityConfigurationInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DescribeSecurityConfigurationInput"}
if s.Name == nil {
invalidParams.Add(request.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetName sets the Name field's value.
func (s *DescribeSecurityConfigurationInput) SetName(v string) *DescribeSecurityConfigurationInput {
s.Name = &v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/DescribeSecurityConfigurationOutput
type DescribeSecurityConfigurationOutput struct {
_ struct{} `type:"structure"`
// The date and time the security configuration was created
CreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
// The name of the security configuration.
Name *string `type:"string"`
// The security configuration details in JSON format.
SecurityConfiguration *string `type:"string"`
}
// String returns the string representation
func (s DescribeSecurityConfigurationOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeSecurityConfigurationOutput) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetCreationDateTime sets the CreationDateTime field's value.
func (s *DescribeSecurityConfigurationOutput) SetCreationDateTime(v time.Time) *DescribeSecurityConfigurationOutput {
s.CreationDateTime = &v
return s
}
// SetName sets the Name field's value.
func (s *DescribeSecurityConfigurationOutput) SetName(v string) *DescribeSecurityConfigurationOutput {
s.Name = &v
return s
}
// SetSecurityConfiguration sets the SecurityConfiguration field's value.
func (s *DescribeSecurityConfigurationOutput) SetSecurityConfiguration(v string) *DescribeSecurityConfigurationOutput {
s.SecurityConfiguration = &v
return s
}
// This input determines which step to describe.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/DescribeStepInput
type DescribeStepInput struct {
_ struct{} `type:"structure"`
// The identifier of the cluster with steps to describe.
2016-10-17 23:21:08 +02:00
//
// ClusterId is a required field
ClusterId *string `type:"string" required:"true"`
// The identifier of the step to describe.
2016-10-17 23:21:08 +02:00
//
// StepId is a required field
StepId *string `type:"string" required:"true"`
}
// String returns the string representation
func (s DescribeStepInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeStepInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeStepInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DescribeStepInput"}
if s.ClusterId == nil {
invalidParams.Add(request.NewErrParamRequired("ClusterId"))
}
if s.StepId == nil {
invalidParams.Add(request.NewErrParamRequired("StepId"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetClusterId sets the ClusterId field's value.
func (s *DescribeStepInput) SetClusterId(v string) *DescribeStepInput {
s.ClusterId = &v
return s
}
// SetStepId sets the StepId field's value.
func (s *DescribeStepInput) SetStepId(v string) *DescribeStepInput {
s.StepId = &v
return s
}
// This output contains the description of the cluster step.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/DescribeStepOutput
type DescribeStepOutput struct {
_ struct{} `type:"structure"`
// The step details for the requested step identifier.
Step *Step `type:"structure"`
}
// String returns the string representation
func (s DescribeStepOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeStepOutput) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetStep sets the Step field's value.
func (s *DescribeStepOutput) SetStep(v *Step) *DescribeStepOutput {
s.Step = v
return s
}
// Configuration of requested EBS block device associated with the instance
// group.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/EbsBlockDevice
type EbsBlockDevice struct {
_ struct{} `type:"structure"`
// The device name that is exposed to the instance, such as /dev/sdh.
Device *string `type:"string"`
2016-11-19 19:41:01 +01:00
// EBS volume specifications such as volume type, IOPS, and size (GiB) that
// will be requested for the EBS volume attached to an EC2 instance in the cluster.
VolumeSpecification *VolumeSpecification `type:"structure"`
}
// String returns the string representation
func (s EbsBlockDevice) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s EbsBlockDevice) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetDevice sets the Device field's value.
func (s *EbsBlockDevice) SetDevice(v string) *EbsBlockDevice {
s.Device = &v
return s
}
// SetVolumeSpecification sets the VolumeSpecification field's value.
func (s *EbsBlockDevice) SetVolumeSpecification(v *VolumeSpecification) *EbsBlockDevice {
s.VolumeSpecification = v
return s
}
// Configuration of requested EBS block device associated with the instance
// group with count of volumes that will be associated to every instance.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/EbsBlockDeviceConfig
type EbsBlockDeviceConfig struct {
_ struct{} `type:"structure"`
2016-11-19 19:41:01 +01:00
// EBS volume specifications such as volume type, IOPS, and size (GiB) that
// will be requested for the EBS volume attached to an EC2 instance in the cluster.
2016-10-17 23:21:08 +02:00
//
// VolumeSpecification is a required field
VolumeSpecification *VolumeSpecification `type:"structure" required:"true"`
2016-11-19 19:41:01 +01:00
// Number of EBS volumes with a specific volume configuration that will be associated
// with every instance in the instance group
VolumesPerInstance *int64 `type:"integer"`
}
// String returns the string representation
func (s EbsBlockDeviceConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s EbsBlockDeviceConfig) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *EbsBlockDeviceConfig) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "EbsBlockDeviceConfig"}
if s.VolumeSpecification == nil {
invalidParams.Add(request.NewErrParamRequired("VolumeSpecification"))
}
if s.VolumeSpecification != nil {
if err := s.VolumeSpecification.Validate(); err != nil {
invalidParams.AddNested("VolumeSpecification", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetVolumeSpecification sets the VolumeSpecification field's value.
func (s *EbsBlockDeviceConfig) SetVolumeSpecification(v *VolumeSpecification) *EbsBlockDeviceConfig {
s.VolumeSpecification = v
return s
}
// SetVolumesPerInstance sets the VolumesPerInstance field's value.
func (s *EbsBlockDeviceConfig) SetVolumesPerInstance(v int64) *EbsBlockDeviceConfig {
s.VolumesPerInstance = &v
return s
}
// The Amazon EBS configuration of a cluster instance.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/EbsConfiguration
type EbsConfiguration struct {
_ struct{} `type:"structure"`
2016-11-19 19:41:01 +01:00
// An array of Amazon EBS volume specifications attached to a cluster instance.
EbsBlockDeviceConfigs []*EbsBlockDeviceConfig `type:"list"`
2016-11-19 19:41:01 +01:00
// Indicates whether an Amazon EBS volume is EBS-optimized.
EbsOptimized *bool `type:"boolean"`
}
// String returns the string representation
func (s EbsConfiguration) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s EbsConfiguration) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *EbsConfiguration) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "EbsConfiguration"}
if s.EbsBlockDeviceConfigs != nil {
for i, v := range s.EbsBlockDeviceConfigs {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "EbsBlockDeviceConfigs", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetEbsBlockDeviceConfigs sets the EbsBlockDeviceConfigs field's value.
func (s *EbsConfiguration) SetEbsBlockDeviceConfigs(v []*EbsBlockDeviceConfig) *EbsConfiguration {
s.EbsBlockDeviceConfigs = v
return s
}
// SetEbsOptimized sets the EbsOptimized field's value.
func (s *EbsConfiguration) SetEbsOptimized(v bool) *EbsConfiguration {
s.EbsOptimized = &v
return s
}
// EBS block device that's attached to an EC2 instance.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/EbsVolume
type EbsVolume struct {
_ struct{} `type:"structure"`
// The device name that is exposed to the instance, such as /dev/sdh.
Device *string `type:"string"`
// The volume identifier of the EBS volume.
VolumeId *string `type:"string"`
}
// String returns the string representation
func (s EbsVolume) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s EbsVolume) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetDevice sets the Device field's value.
func (s *EbsVolume) SetDevice(v string) *EbsVolume {
s.Device = &v
return s
}
// SetVolumeId sets the VolumeId field's value.
func (s *EbsVolume) SetVolumeId(v string) *EbsVolume {
s.VolumeId = &v
return s
}
// Provides information about the EC2 instances in a cluster grouped by category.
// For example, key name, subnet ID, IAM instance profile, and so on.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/Ec2InstanceAttributes
type Ec2InstanceAttributes struct {
_ struct{} `type:"structure"`
// A list of additional Amazon EC2 security group IDs for the master node.
AdditionalMasterSecurityGroups []*string `type:"list"`
// A list of additional Amazon EC2 security group IDs for the slave nodes.
AdditionalSlaveSecurityGroups []*string `type:"list"`
// The Availability Zone in which the cluster will run.
Ec2AvailabilityZone *string `type:"string"`
// The name of the Amazon EC2 key pair to use when connecting with SSH into
// the master node as a user named "hadoop".
Ec2KeyName *string `type:"string"`
// To launch the job flow in Amazon VPC, set this parameter to the identifier
// of the Amazon VPC subnet where you want the job flow to launch. If you do
// not specify this value, the job flow is launched in the normal AWS cloud,
// outside of a VPC.
//
// Amazon VPC currently does not support cluster compute quadruple extra large
// (cc1.4xlarge) instances. Thus, you cannot specify the cc1.4xlarge instance
// type for nodes of a job flow launched in a VPC.
Ec2SubnetId *string `type:"string"`
// The identifier of the Amazon EC2 security group for the master node.
EmrManagedMasterSecurityGroup *string `type:"string"`
// The identifier of the Amazon EC2 security group for the slave nodes.
EmrManagedSlaveSecurityGroup *string `type:"string"`
// The IAM role that was specified when the job flow was launched. The EC2 instances
// of the job flow assume this role.
IamInstanceProfile *string `type:"string"`
// The identifier of the Amazon EC2 security group for the Amazon EMR service
// to access clusters in VPC private subnets.
ServiceAccessSecurityGroup *string `type:"string"`
}
// String returns the string representation
func (s Ec2InstanceAttributes) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Ec2InstanceAttributes) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetAdditionalMasterSecurityGroups sets the AdditionalMasterSecurityGroups field's value.
func (s *Ec2InstanceAttributes) SetAdditionalMasterSecurityGroups(v []*string) *Ec2InstanceAttributes {
s.AdditionalMasterSecurityGroups = v
return s
}
// SetAdditionalSlaveSecurityGroups sets the AdditionalSlaveSecurityGroups field's value.
func (s *Ec2InstanceAttributes) SetAdditionalSlaveSecurityGroups(v []*string) *Ec2InstanceAttributes {
s.AdditionalSlaveSecurityGroups = v
return s
}
// SetEc2AvailabilityZone sets the Ec2AvailabilityZone field's value.
func (s *Ec2InstanceAttributes) SetEc2AvailabilityZone(v string) *Ec2InstanceAttributes {
s.Ec2AvailabilityZone = &v
return s
}
// SetEc2KeyName sets the Ec2KeyName field's value.
func (s *Ec2InstanceAttributes) SetEc2KeyName(v string) *Ec2InstanceAttributes {
s.Ec2KeyName = &v
return s
}
// SetEc2SubnetId sets the Ec2SubnetId field's value.
func (s *Ec2InstanceAttributes) SetEc2SubnetId(v string) *Ec2InstanceAttributes {
s.Ec2SubnetId = &v
return s
}
// SetEmrManagedMasterSecurityGroup sets the EmrManagedMasterSecurityGroup field's value.
func (s *Ec2InstanceAttributes) SetEmrManagedMasterSecurityGroup(v string) *Ec2InstanceAttributes {
s.EmrManagedMasterSecurityGroup = &v
return s
}
// SetEmrManagedSlaveSecurityGroup sets the EmrManagedSlaveSecurityGroup field's value.
func (s *Ec2InstanceAttributes) SetEmrManagedSlaveSecurityGroup(v string) *Ec2InstanceAttributes {
s.EmrManagedSlaveSecurityGroup = &v
return s
}
// SetIamInstanceProfile sets the IamInstanceProfile field's value.
func (s *Ec2InstanceAttributes) SetIamInstanceProfile(v string) *Ec2InstanceAttributes {
s.IamInstanceProfile = &v
return s
}
// SetServiceAccessSecurityGroup sets the ServiceAccessSecurityGroup field's value.
func (s *Ec2InstanceAttributes) SetServiceAccessSecurityGroup(v string) *Ec2InstanceAttributes {
s.ServiceAccessSecurityGroup = &v
return s
}
// The details of the step failure. The service attempts to detect the root
// cause for many common failures.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/FailureDetails
type FailureDetails struct {
_ struct{} `type:"structure"`
// The path to the log file where the step failure root cause was originally
// recorded.
LogFile *string `type:"string"`
// The descriptive message including the error the EMR service has identified
// as the cause of step failure. This is text from an error log that describes
// the root cause of the failure.
Message *string `type:"string"`
// The reason for the step failure. In the case where the service cannot successfully
// determine the root cause of the failure, it returns "Unknown Error" as a
// reason.
Reason *string `type:"string"`
}
// String returns the string representation
func (s FailureDetails) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s FailureDetails) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetLogFile sets the LogFile field's value.
func (s *FailureDetails) SetLogFile(v string) *FailureDetails {
s.LogFile = &v
return s
}
// SetMessage sets the Message field's value.
func (s *FailureDetails) SetMessage(v string) *FailureDetails {
s.Message = &v
return s
}
// SetReason sets the Reason field's value.
func (s *FailureDetails) SetReason(v string) *FailureDetails {
s.Reason = &v
return s
}
// A job flow step consisting of a JAR file whose main function will be executed.
// The main function submits a job for Hadoop to execute and waits for the job
// to finish or fail.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/HadoopJarStepConfig
type HadoopJarStepConfig struct {
_ struct{} `type:"structure"`
// A list of command line arguments passed to the JAR file's main function when
// executed.
Args []*string `type:"list"`
// A path to a JAR file run during the step.
2016-10-17 23:21:08 +02:00
//
// Jar is a required field
Jar *string `type:"string" required:"true"`
// The name of the main class in the specified Java file. If not specified,
// the JAR file should specify a Main-Class in its manifest file.
MainClass *string `type:"string"`
// A list of Java properties that are set when the step runs. You can use these
// properties to pass key value pairs to your main function.
Properties []*KeyValue `type:"list"`
}
// String returns the string representation
func (s HadoopJarStepConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s HadoopJarStepConfig) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *HadoopJarStepConfig) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "HadoopJarStepConfig"}
if s.Jar == nil {
invalidParams.Add(request.NewErrParamRequired("Jar"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetArgs sets the Args field's value.
func (s *HadoopJarStepConfig) SetArgs(v []*string) *HadoopJarStepConfig {
s.Args = v
return s
}
// SetJar sets the Jar field's value.
func (s *HadoopJarStepConfig) SetJar(v string) *HadoopJarStepConfig {
s.Jar = &v
return s
}
// SetMainClass sets the MainClass field's value.
func (s *HadoopJarStepConfig) SetMainClass(v string) *HadoopJarStepConfig {
s.MainClass = &v
return s
}
// SetProperties sets the Properties field's value.
func (s *HadoopJarStepConfig) SetProperties(v []*KeyValue) *HadoopJarStepConfig {
s.Properties = v
return s
}
// A cluster step consisting of a JAR file whose main function will be executed.
// The main function submits a job for Hadoop to execute and waits for the job
// to finish or fail.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/HadoopStepConfig
type HadoopStepConfig struct {
_ struct{} `type:"structure"`
// The list of command line arguments to pass to the JAR file's main function
// for execution.
Args []*string `type:"list"`
// The path to the JAR file that runs during the step.
Jar *string `type:"string"`
// The name of the main class in the specified Java file. If not specified,
// the JAR file should specify a main class in its manifest file.
MainClass *string `type:"string"`
// The list of Java properties that are set when the step runs. You can use
// these properties to pass key value pairs to your main function.
Properties map[string]*string `type:"map"`
}
// String returns the string representation
func (s HadoopStepConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s HadoopStepConfig) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetArgs sets the Args field's value.
func (s *HadoopStepConfig) SetArgs(v []*string) *HadoopStepConfig {
s.Args = v
return s
}
// SetJar sets the Jar field's value.
func (s *HadoopStepConfig) SetJar(v string) *HadoopStepConfig {
s.Jar = &v
return s
}
// SetMainClass sets the MainClass field's value.
func (s *HadoopStepConfig) SetMainClass(v string) *HadoopStepConfig {
s.MainClass = &v
return s
}
// SetProperties sets the Properties field's value.
func (s *HadoopStepConfig) SetProperties(v map[string]*string) *HadoopStepConfig {
s.Properties = v
return s
}
// Represents an EC2 instance provisioned as part of cluster.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/Instance
type Instance struct {
_ struct{} `type:"structure"`
// The list of EBS volumes that are attached to this instance.
EbsVolumes []*EbsVolume `type:"list"`
// The unique identifier of the instance in Amazon EC2.
Ec2InstanceId *string `type:"string"`
// The unique identifier for the instance in Amazon EMR.
Id *string `type:"string"`
// The identifier of the instance group to which this instance belongs.
InstanceGroupId *string `type:"string"`
// The private DNS name of the instance.
PrivateDnsName *string `type:"string"`
// The private IP address of the instance.
PrivateIpAddress *string `type:"string"`
// The public DNS name of the instance.
PublicDnsName *string `type:"string"`
// The public IP address of the instance.
PublicIpAddress *string `type:"string"`
// The current status of the instance.
Status *InstanceStatus `type:"structure"`
}
// String returns the string representation
func (s Instance) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Instance) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetEbsVolumes sets the EbsVolumes field's value.
func (s *Instance) SetEbsVolumes(v []*EbsVolume) *Instance {
s.EbsVolumes = v
return s
}
// SetEc2InstanceId sets the Ec2InstanceId field's value.
func (s *Instance) SetEc2InstanceId(v string) *Instance {
s.Ec2InstanceId = &v
return s
}
// SetId sets the Id field's value.
func (s *Instance) SetId(v string) *Instance {
s.Id = &v
return s
}
// SetInstanceGroupId sets the InstanceGroupId field's value.
func (s *Instance) SetInstanceGroupId(v string) *Instance {
s.InstanceGroupId = &v
return s
}
// SetPrivateDnsName sets the PrivateDnsName field's value.
func (s *Instance) SetPrivateDnsName(v string) *Instance {
s.PrivateDnsName = &v
return s
}
// SetPrivateIpAddress sets the PrivateIpAddress field's value.
func (s *Instance) SetPrivateIpAddress(v string) *Instance {
s.PrivateIpAddress = &v
return s
}
// SetPublicDnsName sets the PublicDnsName field's value.
func (s *Instance) SetPublicDnsName(v string) *Instance {
s.PublicDnsName = &v
return s
}
// SetPublicIpAddress sets the PublicIpAddress field's value.
func (s *Instance) SetPublicIpAddress(v string) *Instance {
s.PublicIpAddress = &v
return s
}
// SetStatus sets the Status field's value.
func (s *Instance) SetStatus(v *InstanceStatus) *Instance {
s.Status = v
return s
}
// This entity represents an instance group, which is a group of instances that
// have common purpose. For example, CORE instance group is used for HDFS.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/InstanceGroup
type InstanceGroup struct {
_ struct{} `type:"structure"`
2016-11-19 19:41:01 +01:00
// An automatic scaling policy for a core instance group or task instance group
// in an Amazon EMR cluster. The automatic scaling policy defines how an instance
// group dynamically adds and terminates EC2 instances in response to the value
// of a CloudWatch metric. See PutAutoScalingPolicy.
AutoScalingPolicy *AutoScalingPolicyDescription `type:"structure"`
// The bid price for each EC2 instance in the instance group when launching
// nodes as Spot Instances, expressed in USD.
BidPrice *string `type:"string"`
// Amazon EMR releases 4.x or later.
//
2016-11-19 19:41:01 +01:00
// The list of configurations supplied for an EMR cluster instance group. You
// can specify a separate configuration for each instance group (master, core,
// and task).
Configurations []*Configuration `type:"list"`
// The EBS block devices that are mapped to this instance group.
EbsBlockDevices []*EbsBlockDevice `type:"list"`
// If the instance group is EBS-optimized. An Amazon EBS-optimized instance
// uses an optimized configuration stack and provides additional, dedicated
// capacity for Amazon EBS I/O.
EbsOptimized *bool `type:"boolean"`
// The identifier of the instance group.
Id *string `type:"string"`
// The type of the instance group. Valid values are MASTER, CORE or TASK.
InstanceGroupType *string `type:"string" enum:"InstanceGroupType"`
// The EC2 instance type for all instances in the instance group.
InstanceType *string `min:"1" type:"string"`
// The marketplace to provision instances for this group. Valid values are ON_DEMAND
// or SPOT.
Market *string `type:"string" enum:"MarketType"`
// The name of the instance group.
Name *string `type:"string"`
// The target number of instances for the instance group.
RequestedInstanceCount *int64 `type:"integer"`
// The number of instances currently running in this instance group.
RunningInstanceCount *int64 `type:"integer"`
// Policy for customizing shrink operations.
ShrinkPolicy *ShrinkPolicy `type:"structure"`
// The current status of the instance group.
Status *InstanceGroupStatus `type:"structure"`
}
// String returns the string representation
func (s InstanceGroup) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s InstanceGroup) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetAutoScalingPolicy sets the AutoScalingPolicy field's value.
func (s *InstanceGroup) SetAutoScalingPolicy(v *AutoScalingPolicyDescription) *InstanceGroup {
s.AutoScalingPolicy = v
return s
}
// SetBidPrice sets the BidPrice field's value.
func (s *InstanceGroup) SetBidPrice(v string) *InstanceGroup {
s.BidPrice = &v
return s
}
// SetConfigurations sets the Configurations field's value.
func (s *InstanceGroup) SetConfigurations(v []*Configuration) *InstanceGroup {
s.Configurations = v
return s
}
// SetEbsBlockDevices sets the EbsBlockDevices field's value.
func (s *InstanceGroup) SetEbsBlockDevices(v []*EbsBlockDevice) *InstanceGroup {
s.EbsBlockDevices = v
return s
}
// SetEbsOptimized sets the EbsOptimized field's value.
func (s *InstanceGroup) SetEbsOptimized(v bool) *InstanceGroup {
s.EbsOptimized = &v
return s
}
// SetId sets the Id field's value.
func (s *InstanceGroup) SetId(v string) *InstanceGroup {
s.Id = &v
return s
}
// SetInstanceGroupType sets the InstanceGroupType field's value.
func (s *InstanceGroup) SetInstanceGroupType(v string) *InstanceGroup {
s.InstanceGroupType = &v
return s
}
// SetInstanceType sets the InstanceType field's value.
func (s *InstanceGroup) SetInstanceType(v string) *InstanceGroup {
s.InstanceType = &v
return s
}
// SetMarket sets the Market field's value.
func (s *InstanceGroup) SetMarket(v string) *InstanceGroup {
s.Market = &v
return s
}
// SetName sets the Name field's value.
func (s *InstanceGroup) SetName(v string) *InstanceGroup {
s.Name = &v
return s
}
// SetRequestedInstanceCount sets the RequestedInstanceCount field's value.
func (s *InstanceGroup) SetRequestedInstanceCount(v int64) *InstanceGroup {
s.RequestedInstanceCount = &v
return s
}
// SetRunningInstanceCount sets the RunningInstanceCount field's value.
func (s *InstanceGroup) SetRunningInstanceCount(v int64) *InstanceGroup {
s.RunningInstanceCount = &v
return s
}
// SetShrinkPolicy sets the ShrinkPolicy field's value.
func (s *InstanceGroup) SetShrinkPolicy(v *ShrinkPolicy) *InstanceGroup {
s.ShrinkPolicy = v
return s
}
// SetStatus sets the Status field's value.
func (s *InstanceGroup) SetStatus(v *InstanceGroupStatus) *InstanceGroup {
s.Status = v
return s
}
// Configuration defining a new instance group.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/InstanceGroupConfig
type InstanceGroupConfig struct {
_ struct{} `type:"structure"`
2016-11-19 19:41:01 +01:00
// An automatic scaling policy for a core instance group or task instance group
// in an Amazon EMR cluster. The automatic scaling policy defines how an instance
// group dynamically adds and terminates EC2 instances in response to the value
// of a CloudWatch metric. See PutAutoScalingPolicy.
AutoScalingPolicy *AutoScalingPolicy `type:"structure"`
// Bid price for each EC2 instance in the instance group when launching nodes
// as Spot Instances, expressed in USD.
BidPrice *string `type:"string"`
// Amazon EMR releases 4.x or later.
//
2016-11-19 19:41:01 +01:00
// The list of configurations supplied for an EMR cluster instance group. You
// can specify a separate configuration for each instance group (master, core,
// and task).
Configurations []*Configuration `type:"list"`
2016-11-19 19:41:01 +01:00
// EBS configurations that will be attached to each EC2 instance in the instance
// group.
EbsConfiguration *EbsConfiguration `type:"structure"`
// Target number of instances for the instance group.
2016-10-17 23:21:08 +02:00
//
// InstanceCount is a required field
InstanceCount *int64 `type:"integer" required:"true"`
// The role of the instance group in the cluster.
2016-10-17 23:21:08 +02:00
//
// InstanceRole is a required field
InstanceRole *string `type:"string" required:"true" enum:"InstanceRoleType"`
2016-11-19 19:41:01 +01:00
// The EC2 instance type for all instances in the instance group.
2016-10-17 23:21:08 +02:00
//
// InstanceType is a required field
InstanceType *string `min:"1" type:"string" required:"true"`
2016-11-19 19:41:01 +01:00
// Market type of the EC2 instances used to create a cluster node.
Market *string `type:"string" enum:"MarketType"`
// Friendly name given to the instance group.
Name *string `type:"string"`
}
// String returns the string representation
func (s InstanceGroupConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s InstanceGroupConfig) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *InstanceGroupConfig) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "InstanceGroupConfig"}
if s.InstanceCount == nil {
invalidParams.Add(request.NewErrParamRequired("InstanceCount"))
}
if s.InstanceRole == nil {
invalidParams.Add(request.NewErrParamRequired("InstanceRole"))
}
if s.InstanceType == nil {
invalidParams.Add(request.NewErrParamRequired("InstanceType"))
}
if s.InstanceType != nil && len(*s.InstanceType) < 1 {
invalidParams.Add(request.NewErrParamMinLen("InstanceType", 1))
}
2016-11-19 19:41:01 +01:00
if s.AutoScalingPolicy != nil {
if err := s.AutoScalingPolicy.Validate(); err != nil {
invalidParams.AddNested("AutoScalingPolicy", err.(request.ErrInvalidParams))
}
}
if s.EbsConfiguration != nil {
if err := s.EbsConfiguration.Validate(); err != nil {
invalidParams.AddNested("EbsConfiguration", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetAutoScalingPolicy sets the AutoScalingPolicy field's value.
func (s *InstanceGroupConfig) SetAutoScalingPolicy(v *AutoScalingPolicy) *InstanceGroupConfig {
s.AutoScalingPolicy = v
return s
}
// SetBidPrice sets the BidPrice field's value.
func (s *InstanceGroupConfig) SetBidPrice(v string) *InstanceGroupConfig {
s.BidPrice = &v
return s
}
// SetConfigurations sets the Configurations field's value.
func (s *InstanceGroupConfig) SetConfigurations(v []*Configuration) *InstanceGroupConfig {
s.Configurations = v
return s
}
// SetEbsConfiguration sets the EbsConfiguration field's value.
func (s *InstanceGroupConfig) SetEbsConfiguration(v *EbsConfiguration) *InstanceGroupConfig {
s.EbsConfiguration = v
return s
}
// SetInstanceCount sets the InstanceCount field's value.
func (s *InstanceGroupConfig) SetInstanceCount(v int64) *InstanceGroupConfig {
s.InstanceCount = &v
return s
}
// SetInstanceRole sets the InstanceRole field's value.
func (s *InstanceGroupConfig) SetInstanceRole(v string) *InstanceGroupConfig {
s.InstanceRole = &v
return s
}
// SetInstanceType sets the InstanceType field's value.
func (s *InstanceGroupConfig) SetInstanceType(v string) *InstanceGroupConfig {
s.InstanceType = &v
return s
}
// SetMarket sets the Market field's value.
func (s *InstanceGroupConfig) SetMarket(v string) *InstanceGroupConfig {
s.Market = &v
return s
}
// SetName sets the Name field's value.
func (s *InstanceGroupConfig) SetName(v string) *InstanceGroupConfig {
s.Name = &v
return s
}
// Detailed information about an instance group.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/InstanceGroupDetail
type InstanceGroupDetail struct {
_ struct{} `type:"structure"`
// Bid price for EC2 Instances when launching nodes as Spot Instances, expressed
// in USD.
BidPrice *string `type:"string"`
// The date/time the instance group was created.
2016-10-17 23:21:08 +02:00
//
// CreationDateTime is a required field
CreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
// The date/time the instance group was terminated.
EndDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
// Unique identifier for the instance group.
InstanceGroupId *string `type:"string"`
// Target number of instances to run in the instance group.
2016-10-17 23:21:08 +02:00
//
// InstanceRequestCount is a required field
InstanceRequestCount *int64 `type:"integer" required:"true"`
// Instance group role in the cluster
2016-10-17 23:21:08 +02:00
//
// InstanceRole is a required field
InstanceRole *string `type:"string" required:"true" enum:"InstanceRoleType"`
// Actual count of running instances.
2016-10-17 23:21:08 +02:00
//
// InstanceRunningCount is a required field
InstanceRunningCount *int64 `type:"integer" required:"true"`
2016-11-19 19:41:01 +01:00
// EC2 instance type.
2016-10-17 23:21:08 +02:00
//
// InstanceType is a required field
InstanceType *string `min:"1" type:"string" required:"true"`
// Details regarding the state of the instance group.
LastStateChangeReason *string `type:"string"`
2016-11-19 19:41:01 +01:00
// Market type of the EC2 instances used to create a cluster node.
2016-10-17 23:21:08 +02:00
//
// Market is a required field
Market *string `type:"string" required:"true" enum:"MarketType"`
// Friendly name for the instance group.
Name *string `type:"string"`
// The date/time the instance group was available to the cluster.
ReadyDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
// The date/time the instance group was started.
StartDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
// State of instance group. The following values are deprecated: STARTING, TERMINATED,
// and FAILED.
2016-10-17 23:21:08 +02:00
//
// State is a required field
State *string `type:"string" required:"true" enum:"InstanceGroupState"`
}
// String returns the string representation
func (s InstanceGroupDetail) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s InstanceGroupDetail) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetBidPrice sets the BidPrice field's value.
func (s *InstanceGroupDetail) SetBidPrice(v string) *InstanceGroupDetail {
s.BidPrice = &v
return s
}
// SetCreationDateTime sets the CreationDateTime field's value.
func (s *InstanceGroupDetail) SetCreationDateTime(v time.Time) *InstanceGroupDetail {
s.CreationDateTime = &v
return s
}
// SetEndDateTime sets the EndDateTime field's value.
func (s *InstanceGroupDetail) SetEndDateTime(v time.Time) *InstanceGroupDetail {
s.EndDateTime = &v
return s
}
// SetInstanceGroupId sets the InstanceGroupId field's value.
func (s *InstanceGroupDetail) SetInstanceGroupId(v string) *InstanceGroupDetail {
s.InstanceGroupId = &v
return s
}
// SetInstanceRequestCount sets the InstanceRequestCount field's value.
func (s *InstanceGroupDetail) SetInstanceRequestCount(v int64) *InstanceGroupDetail {
s.InstanceRequestCount = &v
return s
}
// SetInstanceRole sets the InstanceRole field's value.
func (s *InstanceGroupDetail) SetInstanceRole(v string) *InstanceGroupDetail {
s.InstanceRole = &v
return s
}
// SetInstanceRunningCount sets the InstanceRunningCount field's value.
func (s *InstanceGroupDetail) SetInstanceRunningCount(v int64) *InstanceGroupDetail {
s.InstanceRunningCount = &v
return s
}
// SetInstanceType sets the InstanceType field's value.
func (s *InstanceGroupDetail) SetInstanceType(v string) *InstanceGroupDetail {
s.InstanceType = &v
return s
}
// SetLastStateChangeReason sets the LastStateChangeReason field's value.
func (s *InstanceGroupDetail) SetLastStateChangeReason(v string) *InstanceGroupDetail {
s.LastStateChangeReason = &v
return s
}
// SetMarket sets the Market field's value.
func (s *InstanceGroupDetail) SetMarket(v string) *InstanceGroupDetail {
s.Market = &v
return s
}
// SetName sets the Name field's value.
func (s *InstanceGroupDetail) SetName(v string) *InstanceGroupDetail {
s.Name = &v
return s
}
// SetReadyDateTime sets the ReadyDateTime field's value.
func (s *InstanceGroupDetail) SetReadyDateTime(v time.Time) *InstanceGroupDetail {
s.ReadyDateTime = &v
return s
}
// SetStartDateTime sets the StartDateTime field's value.
func (s *InstanceGroupDetail) SetStartDateTime(v time.Time) *InstanceGroupDetail {
s.StartDateTime = &v
return s
}
// SetState sets the State field's value.
func (s *InstanceGroupDetail) SetState(v string) *InstanceGroupDetail {
s.State = &v
return s
}
// Modify an instance group size.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/InstanceGroupModifyConfig
type InstanceGroupModifyConfig struct {
_ struct{} `type:"structure"`
2016-11-19 19:41:01 +01:00
// The EC2 InstanceIds to terminate. After you terminate the instances, the
// instance group will not return to its original requested size.
EC2InstanceIdsToTerminate []*string `type:"list"`
// Target size for the instance group.
InstanceCount *int64 `type:"integer"`
// Unique ID of the instance group to expand or shrink.
2016-10-17 23:21:08 +02:00
//
// InstanceGroupId is a required field
InstanceGroupId *string `type:"string" required:"true"`
// Policy for customizing shrink operations.
ShrinkPolicy *ShrinkPolicy `type:"structure"`
}
// String returns the string representation
func (s InstanceGroupModifyConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s InstanceGroupModifyConfig) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *InstanceGroupModifyConfig) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "InstanceGroupModifyConfig"}
if s.InstanceGroupId == nil {
invalidParams.Add(request.NewErrParamRequired("InstanceGroupId"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetEC2InstanceIdsToTerminate sets the EC2InstanceIdsToTerminate field's value.
func (s *InstanceGroupModifyConfig) SetEC2InstanceIdsToTerminate(v []*string) *InstanceGroupModifyConfig {
s.EC2InstanceIdsToTerminate = v
return s
}
// SetInstanceCount sets the InstanceCount field's value.
func (s *InstanceGroupModifyConfig) SetInstanceCount(v int64) *InstanceGroupModifyConfig {
s.InstanceCount = &v
return s
}
// SetInstanceGroupId sets the InstanceGroupId field's value.
func (s *InstanceGroupModifyConfig) SetInstanceGroupId(v string) *InstanceGroupModifyConfig {
s.InstanceGroupId = &v
return s
}
// SetShrinkPolicy sets the ShrinkPolicy field's value.
func (s *InstanceGroupModifyConfig) SetShrinkPolicy(v *ShrinkPolicy) *InstanceGroupModifyConfig {
s.ShrinkPolicy = v
return s
}
// The status change reason details for the instance group.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/InstanceGroupStateChangeReason
type InstanceGroupStateChangeReason struct {
_ struct{} `type:"structure"`
// The programmable code for the state change reason.
Code *string `type:"string" enum:"InstanceGroupStateChangeReasonCode"`
// The status change reason description.
Message *string `type:"string"`
}
// String returns the string representation
func (s InstanceGroupStateChangeReason) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s InstanceGroupStateChangeReason) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetCode sets the Code field's value.
func (s *InstanceGroupStateChangeReason) SetCode(v string) *InstanceGroupStateChangeReason {
s.Code = &v
return s
}
// SetMessage sets the Message field's value.
func (s *InstanceGroupStateChangeReason) SetMessage(v string) *InstanceGroupStateChangeReason {
s.Message = &v
return s
}
// The details of the instance group status.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/InstanceGroupStatus
type InstanceGroupStatus struct {
_ struct{} `type:"structure"`
// The current state of the instance group.
State *string `type:"string" enum:"InstanceGroupState"`
// The status change reason details for the instance group.
StateChangeReason *InstanceGroupStateChangeReason `type:"structure"`
// The timeline of the instance group status over time.
Timeline *InstanceGroupTimeline `type:"structure"`
}
// String returns the string representation
func (s InstanceGroupStatus) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s InstanceGroupStatus) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetState sets the State field's value.
func (s *InstanceGroupStatus) SetState(v string) *InstanceGroupStatus {
s.State = &v
return s
}
// SetStateChangeReason sets the StateChangeReason field's value.
func (s *InstanceGroupStatus) SetStateChangeReason(v *InstanceGroupStateChangeReason) *InstanceGroupStatus {
s.StateChangeReason = v
return s
}
// SetTimeline sets the Timeline field's value.
func (s *InstanceGroupStatus) SetTimeline(v *InstanceGroupTimeline) *InstanceGroupStatus {
s.Timeline = v
return s
}
// The timeline of the instance group lifecycle.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/InstanceGroupTimeline
type InstanceGroupTimeline struct {
_ struct{} `type:"structure"`
// The creation date and time of the instance group.
CreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
// The date and time when the instance group terminated.
EndDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
// The date and time when the instance group became ready to perform tasks.
ReadyDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
}
// String returns the string representation
func (s InstanceGroupTimeline) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s InstanceGroupTimeline) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetCreationDateTime sets the CreationDateTime field's value.
func (s *InstanceGroupTimeline) SetCreationDateTime(v time.Time) *InstanceGroupTimeline {
s.CreationDateTime = &v
return s
}
// SetEndDateTime sets the EndDateTime field's value.
func (s *InstanceGroupTimeline) SetEndDateTime(v time.Time) *InstanceGroupTimeline {
s.EndDateTime = &v
return s
}
// SetReadyDateTime sets the ReadyDateTime field's value.
func (s *InstanceGroupTimeline) SetReadyDateTime(v time.Time) *InstanceGroupTimeline {
s.ReadyDateTime = &v
return s
}
// Custom policy for requesting termination protection or termination of specific
// instances when shrinking an instance group.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/InstanceResizePolicy
type InstanceResizePolicy struct {
_ struct{} `type:"structure"`
// Decommissioning timeout override for the specific list of instances to be
// terminated.
InstanceTerminationTimeout *int64 `type:"integer"`
// Specific list of instances to be protected when shrinking an instance group.
InstancesToProtect []*string `type:"list"`
// Specific list of instances to be terminated when shrinking an instance group.
InstancesToTerminate []*string `type:"list"`
}
// String returns the string representation
func (s InstanceResizePolicy) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s InstanceResizePolicy) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetInstanceTerminationTimeout sets the InstanceTerminationTimeout field's value.
func (s *InstanceResizePolicy) SetInstanceTerminationTimeout(v int64) *InstanceResizePolicy {
s.InstanceTerminationTimeout = &v
return s
}
// SetInstancesToProtect sets the InstancesToProtect field's value.
func (s *InstanceResizePolicy) SetInstancesToProtect(v []*string) *InstanceResizePolicy {
s.InstancesToProtect = v
return s
}
// SetInstancesToTerminate sets the InstancesToTerminate field's value.
func (s *InstanceResizePolicy) SetInstancesToTerminate(v []*string) *InstanceResizePolicy {
s.InstancesToTerminate = v
return s
}
// The details of the status change reason for the instance.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/InstanceStateChangeReason
type InstanceStateChangeReason struct {
_ struct{} `type:"structure"`
// The programmable code for the state change reason.
Code *string `type:"string" enum:"InstanceStateChangeReasonCode"`
// The status change reason description.
Message *string `type:"string"`
}
// String returns the string representation
func (s InstanceStateChangeReason) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s InstanceStateChangeReason) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetCode sets the Code field's value.
func (s *InstanceStateChangeReason) SetCode(v string) *InstanceStateChangeReason {
s.Code = &v
return s
}
// SetMessage sets the Message field's value.
func (s *InstanceStateChangeReason) SetMessage(v string) *InstanceStateChangeReason {
s.Message = &v
return s
}
// The instance status details.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/InstanceStatus
type InstanceStatus struct {
_ struct{} `type:"structure"`
// The current state of the instance.
State *string `type:"string" enum:"InstanceState"`
// The details of the status change reason for the instance.
StateChangeReason *InstanceStateChangeReason `type:"structure"`
// The timeline of the instance status over time.
Timeline *InstanceTimeline `type:"structure"`
}
// String returns the string representation
func (s InstanceStatus) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s InstanceStatus) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetState sets the State field's value.
func (s *InstanceStatus) SetState(v string) *InstanceStatus {
s.State = &v
return s
}
// SetStateChangeReason sets the StateChangeReason field's value.
func (s *InstanceStatus) SetStateChangeReason(v *InstanceStateChangeReason) *InstanceStatus {
s.StateChangeReason = v
return s
}
// SetTimeline sets the Timeline field's value.
func (s *InstanceStatus) SetTimeline(v *InstanceTimeline) *InstanceStatus {
s.Timeline = v
return s
}
// The timeline of the instance lifecycle.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/InstanceTimeline
type InstanceTimeline struct {
_ struct{} `type:"structure"`
// The creation date and time of the instance.
CreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
// The date and time when the instance was terminated.
EndDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
// The date and time when the instance was ready to perform tasks.
ReadyDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
}
// String returns the string representation
func (s InstanceTimeline) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s InstanceTimeline) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetCreationDateTime sets the CreationDateTime field's value.
func (s *InstanceTimeline) SetCreationDateTime(v time.Time) *InstanceTimeline {
s.CreationDateTime = &v
return s
}
// SetEndDateTime sets the EndDateTime field's value.
func (s *InstanceTimeline) SetEndDateTime(v time.Time) *InstanceTimeline {
s.EndDateTime = &v
return s
}
// SetReadyDateTime sets the ReadyDateTime field's value.
func (s *InstanceTimeline) SetReadyDateTime(v time.Time) *InstanceTimeline {
s.ReadyDateTime = &v
return s
}
// A description of a job flow.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/JobFlowDetail
type JobFlowDetail struct {
_ struct{} `type:"structure"`
// The version of the AMI used to initialize Amazon EC2 instances in the job
2016-11-19 19:41:01 +01:00
// flow. For a list of AMI versions currently supported by Amazon EMR, see AMI
// Versions Supported in EMR (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/EnvironmentConfig_AMIVersion.html#ami-versions-supported)
// in the Amazon EMR Developer Guide.
AmiVersion *string `type:"string"`
2016-11-19 19:41:01 +01:00
// An IAM role for automatic scaling policies. The default role is EMR_AutoScaling_DefaultRole.
// The IAM role provides a way for the automatic scaling feature to get the
// required permissions it needs to launch and terminate EC2 instances in an
// instance group.
AutoScalingRole *string `type:"string"`
// A list of the bootstrap actions run by the job flow.
BootstrapActions []*BootstrapActionDetail `type:"list"`
// Describes the execution status of the job flow.
2016-10-17 23:21:08 +02:00
//
// ExecutionStatusDetail is a required field
ExecutionStatusDetail *JobFlowExecutionStatusDetail `type:"structure" required:"true"`
// Describes the Amazon EC2 instances of the job flow.
2016-10-17 23:21:08 +02:00
//
// Instances is a required field
Instances *JobFlowInstancesDetail `type:"structure" required:"true"`
// The job flow identifier.
2016-10-17 23:21:08 +02:00
//
// JobFlowId is a required field
JobFlowId *string `type:"string" required:"true"`
// The IAM role that was specified when the job flow was launched. The EC2 instances
// of the job flow assume this role.
JobFlowRole *string `type:"string"`
// The location in Amazon S3 where log files for the job are stored.
LogUri *string `type:"string"`
// The name of the job flow.
2016-10-17 23:21:08 +02:00
//
// Name is a required field
Name *string `type:"string" required:"true"`
2016-11-19 19:41:01 +01:00
// The way that individual Amazon EC2 instances terminate when an automatic
// scale-in activity occurs or an instance group is resized. TERMINATE_AT_INSTANCE_HOUR
// indicates that Amazon EMR terminates nodes at the instance-hour boundary,
// regardless of when the request to terminate the instance was submitted. This
// option is only available with Amazon EMR 5.1.0 and later and is the default
// for clusters created using that version. TERMINATE_AT_TASK_COMPLETION indicates
// that Amazon EMR blacklists and drains tasks from nodes before terminating
// the Amazon EC2 instances, regardless of the instance-hour boundary. With
// either behavior, Amazon EMR removes the least active nodes first and blocks
// instance termination if it could lead to HDFS corruption. TERMINATE_AT_TASK_COMPLETION
// available only in Amazon EMR version 4.1.0 and later, and is the default
// for versions of Amazon EMR earlier than 5.1.0.
ScaleDownBehavior *string `type:"string" enum:"ScaleDownBehavior"`
// The IAM role that will be assumed by the Amazon EMR service to access AWS
// resources on your behalf.
ServiceRole *string `type:"string"`
2016-11-19 19:41:01 +01:00
// A list of steps run by the job flow.
Steps []*StepDetail `type:"list"`
// A list of strings set by third party software when the job flow is launched.
// If you are not using third party software to manage the job flow this value
// is empty.
SupportedProducts []*string `type:"list"`
// Specifies whether the job flow is visible to all IAM users of the AWS account
// associated with the job flow. If this value is set to true, all IAM users
// of that AWS account can view and (if they have the proper policy permissions
// set) manage the job flow. If it is set to false, only the IAM user that created
// the job flow can view and manage it. This value can be changed using the
// SetVisibleToAllUsers action.
VisibleToAllUsers *bool `type:"boolean"`
}
// String returns the string representation
func (s JobFlowDetail) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s JobFlowDetail) GoString() string {
return s.String()
}
// SetAmiVersion sets the AmiVersion field's value.
func (s *JobFlowDetail) SetAmiVersion(v string) *JobFlowDetail {
s.AmiVersion = &v
return s
}
// SetAutoScalingRole sets the AutoScalingRole field's value.
func (s *JobFlowDetail) SetAutoScalingRole(v string) *JobFlowDetail {
s.AutoScalingRole = &v
return s
}
// SetBootstrapActions sets the BootstrapActions field's value.
func (s *JobFlowDetail) SetBootstrapActions(v []*BootstrapActionDetail) *JobFlowDetail {
s.BootstrapActions = v
return s
}
// SetExecutionStatusDetail sets the ExecutionStatusDetail field's value.
func (s *JobFlowDetail) SetExecutionStatusDetail(v *JobFlowExecutionStatusDetail) *JobFlowDetail {
s.ExecutionStatusDetail = v
return s
}
// SetInstances sets the Instances field's value.
func (s *JobFlowDetail) SetInstances(v *JobFlowInstancesDetail) *JobFlowDetail {
s.Instances = v
return s
}
// SetJobFlowId sets the JobFlowId field's value.
func (s *JobFlowDetail) SetJobFlowId(v string) *JobFlowDetail {
s.JobFlowId = &v
return s
}
// SetJobFlowRole sets the JobFlowRole field's value.
func (s *JobFlowDetail) SetJobFlowRole(v string) *JobFlowDetail {
s.JobFlowRole = &v
return s
}
// SetLogUri sets the LogUri field's value.
func (s *JobFlowDetail) SetLogUri(v string) *JobFlowDetail {
s.LogUri = &v
return s
}
// SetName sets the Name field's value.
func (s *JobFlowDetail) SetName(v string) *JobFlowDetail {
s.Name = &v
return s
}
// SetScaleDownBehavior sets the ScaleDownBehavior field's value.
func (s *JobFlowDetail) SetScaleDownBehavior(v string) *JobFlowDetail {
s.ScaleDownBehavior = &v
return s
}
2016-11-19 19:41:01 +01:00
// SetServiceRole sets the ServiceRole field's value.
func (s *JobFlowDetail) SetServiceRole(v string) *JobFlowDetail {
s.ServiceRole = &v
return s
}
2016-11-19 19:41:01 +01:00
// SetSteps sets the Steps field's value.
func (s *JobFlowDetail) SetSteps(v []*StepDetail) *JobFlowDetail {
s.Steps = v
return s
}
2016-11-19 19:41:01 +01:00
// SetSupportedProducts sets the SupportedProducts field's value.
func (s *JobFlowDetail) SetSupportedProducts(v []*string) *JobFlowDetail {
s.SupportedProducts = v
return s
}
2016-11-19 19:41:01 +01:00
// SetVisibleToAllUsers sets the VisibleToAllUsers field's value.
func (s *JobFlowDetail) SetVisibleToAllUsers(v bool) *JobFlowDetail {
s.VisibleToAllUsers = &v
return s
}
// Describes the status of the job flow.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/JobFlowExecutionStatusDetail
type JobFlowExecutionStatusDetail struct {
_ struct{} `type:"structure"`
// The creation date and time of the job flow.
2016-10-17 23:21:08 +02:00
//
// CreationDateTime is a required field
CreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
// The completion date and time of the job flow.
EndDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
// Description of the job flow last changed state.
LastStateChangeReason *string `type:"string"`
// The date and time when the job flow was ready to start running bootstrap
// actions.
ReadyDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
// The start date and time of the job flow.
StartDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
// The state of the job flow.
2016-10-17 23:21:08 +02:00
//
// State is a required field
State *string `type:"string" required:"true" enum:"JobFlowExecutionState"`
}
// String returns the string representation
func (s JobFlowExecutionStatusDetail) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s JobFlowExecutionStatusDetail) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetCreationDateTime sets the CreationDateTime field's value.
func (s *JobFlowExecutionStatusDetail) SetCreationDateTime(v time.Time) *JobFlowExecutionStatusDetail {
s.CreationDateTime = &v
return s
}
// SetEndDateTime sets the EndDateTime field's value.
func (s *JobFlowExecutionStatusDetail) SetEndDateTime(v time.Time) *JobFlowExecutionStatusDetail {
s.EndDateTime = &v
return s
}
// SetLastStateChangeReason sets the LastStateChangeReason field's value.
func (s *JobFlowExecutionStatusDetail) SetLastStateChangeReason(v string) *JobFlowExecutionStatusDetail {
s.LastStateChangeReason = &v
return s
}
// SetReadyDateTime sets the ReadyDateTime field's value.
func (s *JobFlowExecutionStatusDetail) SetReadyDateTime(v time.Time) *JobFlowExecutionStatusDetail {
s.ReadyDateTime = &v
return s
}
// SetStartDateTime sets the StartDateTime field's value.
func (s *JobFlowExecutionStatusDetail) SetStartDateTime(v time.Time) *JobFlowExecutionStatusDetail {
s.StartDateTime = &v
return s
}
// SetState sets the State field's value.
func (s *JobFlowExecutionStatusDetail) SetState(v string) *JobFlowExecutionStatusDetail {
s.State = &v
return s
}
// A description of the Amazon EC2 instance running the job flow. A valid JobFlowInstancesConfig
// must contain at least InstanceGroups, which is the recommended configuration.
// However, a valid alternative is to have MasterInstanceType, SlaveInstanceType,
// and InstanceCount (all three must be present).
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/JobFlowInstancesConfig
type JobFlowInstancesConfig struct {
_ struct{} `type:"structure"`
// A list of additional Amazon EC2 security group IDs for the master node.
AdditionalMasterSecurityGroups []*string `type:"list"`
// A list of additional Amazon EC2 security group IDs for the slave nodes.
AdditionalSlaveSecurityGroups []*string `type:"list"`
2016-11-19 19:41:01 +01:00
// The name of the EC2 key pair that can be used to ssh to the master node as
// the user called "hadoop."
Ec2KeyName *string `type:"string"`
// To launch the job flow in Amazon Virtual Private Cloud (Amazon VPC), set
// this parameter to the identifier of the Amazon VPC subnet where you want
// the job flow to launch. If you do not specify this value, the job flow is
// launched in the normal Amazon Web Services cloud, outside of an Amazon VPC.
//
// Amazon VPC currently does not support cluster compute quadruple extra large
// (cc1.4xlarge) instances. Thus you cannot specify the cc1.4xlarge instance
// type for nodes of a job flow launched in a Amazon VPC.
Ec2SubnetId *string `type:"string"`
// The identifier of the Amazon EC2 security group for the master node.
EmrManagedMasterSecurityGroup *string `type:"string"`
// The identifier of the Amazon EC2 security group for the slave nodes.
EmrManagedSlaveSecurityGroup *string `type:"string"`
// The Hadoop version for the job flow. Valid inputs are "0.18" (deprecated),
// "0.20" (deprecated), "0.20.205" (deprecated), "1.0.3", "2.2.0", or "2.4.0".
// If you do not set this value, the default of 0.18 is used, unless the AmiVersion
// parameter is set in the RunJobFlow call, in which case the default version
// of Hadoop for that AMI version is used.
HadoopVersion *string `type:"string"`
2016-11-19 19:41:01 +01:00
// The number of EC2 instances used to execute the job flow.
InstanceCount *int64 `type:"integer"`
// Configuration for the job flow's instance groups.
InstanceGroups []*InstanceGroupConfig `type:"list"`
// Specifies whether the job flow should be kept alive after completing all
// steps.
KeepJobFlowAliveWhenNoSteps *bool `type:"boolean"`
// The EC2 instance type of the master node.
MasterInstanceType *string `min:"1" type:"string"`
// The Availability Zone the job flow will run in.
Placement *PlacementType `type:"structure"`
// The identifier of the Amazon EC2 security group for the Amazon EMR service
// to access clusters in VPC private subnets.
ServiceAccessSecurityGroup *string `type:"string"`
// The EC2 instance type of the slave nodes.
SlaveInstanceType *string `min:"1" type:"string"`
// Specifies whether to lock the job flow to prevent the Amazon EC2 instances
// from being terminated by API call, user intervention, or in the event of
// a job flow error.
TerminationProtected *bool `type:"boolean"`
}
// String returns the string representation
func (s JobFlowInstancesConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s JobFlowInstancesConfig) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *JobFlowInstancesConfig) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "JobFlowInstancesConfig"}
if s.MasterInstanceType != nil && len(*s.MasterInstanceType) < 1 {
invalidParams.Add(request.NewErrParamMinLen("MasterInstanceType", 1))
}
if s.SlaveInstanceType != nil && len(*s.SlaveInstanceType) < 1 {
invalidParams.Add(request.NewErrParamMinLen("SlaveInstanceType", 1))
}
if s.InstanceGroups != nil {
for i, v := range s.InstanceGroups {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InstanceGroups", i), err.(request.ErrInvalidParams))
}
}
}
if s.Placement != nil {
if err := s.Placement.Validate(); err != nil {
invalidParams.AddNested("Placement", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetAdditionalMasterSecurityGroups sets the AdditionalMasterSecurityGroups field's value.
func (s *JobFlowInstancesConfig) SetAdditionalMasterSecurityGroups(v []*string) *JobFlowInstancesConfig {
s.AdditionalMasterSecurityGroups = v
return s
}
// SetAdditionalSlaveSecurityGroups sets the AdditionalSlaveSecurityGroups field's value.
func (s *JobFlowInstancesConfig) SetAdditionalSlaveSecurityGroups(v []*string) *JobFlowInstancesConfig {
s.AdditionalSlaveSecurityGroups = v
return s
}
// SetEc2KeyName sets the Ec2KeyName field's value.
func (s *JobFlowInstancesConfig) SetEc2KeyName(v string) *JobFlowInstancesConfig {
s.Ec2KeyName = &v
return s
}
// SetEc2SubnetId sets the Ec2SubnetId field's value.
func (s *JobFlowInstancesConfig) SetEc2SubnetId(v string) *JobFlowInstancesConfig {
s.Ec2SubnetId = &v
return s
}
// SetEmrManagedMasterSecurityGroup sets the EmrManagedMasterSecurityGroup field's value.
func (s *JobFlowInstancesConfig) SetEmrManagedMasterSecurityGroup(v string) *JobFlowInstancesConfig {
s.EmrManagedMasterSecurityGroup = &v
return s
}
// SetEmrManagedSlaveSecurityGroup sets the EmrManagedSlaveSecurityGroup field's value.
func (s *JobFlowInstancesConfig) SetEmrManagedSlaveSecurityGroup(v string) *JobFlowInstancesConfig {
s.EmrManagedSlaveSecurityGroup = &v
return s
}
// SetHadoopVersion sets the HadoopVersion field's value.
func (s *JobFlowInstancesConfig) SetHadoopVersion(v string) *JobFlowInstancesConfig {
s.HadoopVersion = &v
return s
}
// SetInstanceCount sets the InstanceCount field's value.
func (s *JobFlowInstancesConfig) SetInstanceCount(v int64) *JobFlowInstancesConfig {
s.InstanceCount = &v
return s
}
// SetInstanceGroups sets the InstanceGroups field's value.
func (s *JobFlowInstancesConfig) SetInstanceGroups(v []*InstanceGroupConfig) *JobFlowInstancesConfig {
s.InstanceGroups = v
return s
}
// SetKeepJobFlowAliveWhenNoSteps sets the KeepJobFlowAliveWhenNoSteps field's value.
func (s *JobFlowInstancesConfig) SetKeepJobFlowAliveWhenNoSteps(v bool) *JobFlowInstancesConfig {
s.KeepJobFlowAliveWhenNoSteps = &v
return s
}
// SetMasterInstanceType sets the MasterInstanceType field's value.
func (s *JobFlowInstancesConfig) SetMasterInstanceType(v string) *JobFlowInstancesConfig {
s.MasterInstanceType = &v
return s
}
// SetPlacement sets the Placement field's value.
func (s *JobFlowInstancesConfig) SetPlacement(v *PlacementType) *JobFlowInstancesConfig {
s.Placement = v
return s
}
// SetServiceAccessSecurityGroup sets the ServiceAccessSecurityGroup field's value.
func (s *JobFlowInstancesConfig) SetServiceAccessSecurityGroup(v string) *JobFlowInstancesConfig {
s.ServiceAccessSecurityGroup = &v
return s
}
// SetSlaveInstanceType sets the SlaveInstanceType field's value.
func (s *JobFlowInstancesConfig) SetSlaveInstanceType(v string) *JobFlowInstancesConfig {
s.SlaveInstanceType = &v
return s
}
// SetTerminationProtected sets the TerminationProtected field's value.
func (s *JobFlowInstancesConfig) SetTerminationProtected(v bool) *JobFlowInstancesConfig {
s.TerminationProtected = &v
return s
}
// Specify the type of Amazon EC2 instances to run the job flow on.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/JobFlowInstancesDetail
type JobFlowInstancesDetail struct {
_ struct{} `type:"structure"`
// The name of an Amazon EC2 key pair that can be used to ssh to the master
// node of job flow.
Ec2KeyName *string `type:"string"`
// For job flows launched within Amazon Virtual Private Cloud, this value specifies
// the identifier of the subnet where the job flow was launched.
Ec2SubnetId *string `type:"string"`
// The Hadoop version for the job flow.
HadoopVersion *string `type:"string"`
// The number of Amazon EC2 instances in the cluster. If the value is 1, the
// same instance serves as both the master and slave node. If the value is greater
// than 1, one instance is the master node and all others are slave nodes.
2016-10-17 23:21:08 +02:00
//
// InstanceCount is a required field
InstanceCount *int64 `type:"integer" required:"true"`
// Details about the job flow's instance groups.
InstanceGroups []*InstanceGroupDetail `type:"list"`
// Specifies whether the job flow should terminate after completing all steps.
KeepJobFlowAliveWhenNoSteps *bool `type:"boolean"`
// The Amazon EC2 instance identifier of the master node.
MasterInstanceId *string `type:"string"`
// The Amazon EC2 master node instance type.
2016-10-17 23:21:08 +02:00
//
// MasterInstanceType is a required field
MasterInstanceType *string `min:"1" type:"string" required:"true"`
// The DNS name of the master node.
MasterPublicDnsName *string `type:"string"`
// An approximation of the cost of the job flow, represented in m1.small/hours.
2016-11-19 19:41:01 +01:00
// This value is incremented one time for every hour that an m1.small runs.
// Larger instances are weighted more, so an Amazon EC2 instance that is roughly
// four times more expensive would result in the normalized instance hours being
// incremented by four. This result is only an approximation and does not reflect
// the actual billing rate.
NormalizedInstanceHours *int64 `type:"integer"`
// The Amazon EC2 Availability Zone for the job flow.
Placement *PlacementType `type:"structure"`
// The Amazon EC2 slave node instance type.
2016-10-17 23:21:08 +02:00
//
// SlaveInstanceType is a required field
SlaveInstanceType *string `min:"1" type:"string" required:"true"`
// Specifies whether the Amazon EC2 instances in the cluster are protected from
// termination by API calls, user intervention, or in the event of a job flow
// error.
TerminationProtected *bool `type:"boolean"`
}
// String returns the string representation
func (s JobFlowInstancesDetail) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s JobFlowInstancesDetail) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetEc2KeyName sets the Ec2KeyName field's value.
func (s *JobFlowInstancesDetail) SetEc2KeyName(v string) *JobFlowInstancesDetail {
s.Ec2KeyName = &v
return s
}
// SetEc2SubnetId sets the Ec2SubnetId field's value.
func (s *JobFlowInstancesDetail) SetEc2SubnetId(v string) *JobFlowInstancesDetail {
s.Ec2SubnetId = &v
return s
}
// SetHadoopVersion sets the HadoopVersion field's value.
func (s *JobFlowInstancesDetail) SetHadoopVersion(v string) *JobFlowInstancesDetail {
s.HadoopVersion = &v
return s
}
// SetInstanceCount sets the InstanceCount field's value.
func (s *JobFlowInstancesDetail) SetInstanceCount(v int64) *JobFlowInstancesDetail {
s.InstanceCount = &v
return s
}
// SetInstanceGroups sets the InstanceGroups field's value.
func (s *JobFlowInstancesDetail) SetInstanceGroups(v []*InstanceGroupDetail) *JobFlowInstancesDetail {
s.InstanceGroups = v
return s
}
// SetKeepJobFlowAliveWhenNoSteps sets the KeepJobFlowAliveWhenNoSteps field's value.
func (s *JobFlowInstancesDetail) SetKeepJobFlowAliveWhenNoSteps(v bool) *JobFlowInstancesDetail {
s.KeepJobFlowAliveWhenNoSteps = &v
return s
}
// SetMasterInstanceId sets the MasterInstanceId field's value.
func (s *JobFlowInstancesDetail) SetMasterInstanceId(v string) *JobFlowInstancesDetail {
s.MasterInstanceId = &v
return s
}
// SetMasterInstanceType sets the MasterInstanceType field's value.
func (s *JobFlowInstancesDetail) SetMasterInstanceType(v string) *JobFlowInstancesDetail {
s.MasterInstanceType = &v
return s
}
// SetMasterPublicDnsName sets the MasterPublicDnsName field's value.
func (s *JobFlowInstancesDetail) SetMasterPublicDnsName(v string) *JobFlowInstancesDetail {
s.MasterPublicDnsName = &v
return s
}
// SetNormalizedInstanceHours sets the NormalizedInstanceHours field's value.
func (s *JobFlowInstancesDetail) SetNormalizedInstanceHours(v int64) *JobFlowInstancesDetail {
s.NormalizedInstanceHours = &v
return s
}
// SetPlacement sets the Placement field's value.
func (s *JobFlowInstancesDetail) SetPlacement(v *PlacementType) *JobFlowInstancesDetail {
s.Placement = v
return s
}
// SetSlaveInstanceType sets the SlaveInstanceType field's value.
func (s *JobFlowInstancesDetail) SetSlaveInstanceType(v string) *JobFlowInstancesDetail {
s.SlaveInstanceType = &v
return s
}
// SetTerminationProtected sets the TerminationProtected field's value.
func (s *JobFlowInstancesDetail) SetTerminationProtected(v bool) *JobFlowInstancesDetail {
s.TerminationProtected = &v
return s
}
// A key value pair.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/KeyValue
type KeyValue struct {
_ struct{} `type:"structure"`
// The unique identifier of a key value pair.
Key *string `type:"string"`
// The value part of the identified key.
Value *string `type:"string"`
}
// String returns the string representation
func (s KeyValue) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s KeyValue) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetKey sets the Key field's value.
func (s *KeyValue) SetKey(v string) *KeyValue {
s.Key = &v
return s
}
// SetValue sets the Value field's value.
func (s *KeyValue) SetValue(v string) *KeyValue {
s.Value = &v
return s
}
// This input determines which bootstrap actions to retrieve.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListBootstrapActionsInput
type ListBootstrapActionsInput struct {
_ struct{} `type:"structure"`
2016-11-19 19:41:01 +01:00
// The cluster identifier for the bootstrap actions to list.
2016-10-17 23:21:08 +02:00
//
// ClusterId is a required field
ClusterId *string `type:"string" required:"true"`
// The pagination token that indicates the next set of results to retrieve.
Marker *string `type:"string"`
}
// String returns the string representation
func (s ListBootstrapActionsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListBootstrapActionsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListBootstrapActionsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListBootstrapActionsInput"}
if s.ClusterId == nil {
invalidParams.Add(request.NewErrParamRequired("ClusterId"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetClusterId sets the ClusterId field's value.
func (s *ListBootstrapActionsInput) SetClusterId(v string) *ListBootstrapActionsInput {
s.ClusterId = &v
return s
}
// SetMarker sets the Marker field's value.
func (s *ListBootstrapActionsInput) SetMarker(v string) *ListBootstrapActionsInput {
s.Marker = &v
return s
}
// This output contains the bootstrap actions detail.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListBootstrapActionsOutput
type ListBootstrapActionsOutput struct {
_ struct{} `type:"structure"`
2016-11-19 19:41:01 +01:00
// The bootstrap actions associated with the cluster.
BootstrapActions []*Command `type:"list"`
// The pagination token that indicates the next set of results to retrieve.
Marker *string `type:"string"`
}
// String returns the string representation
func (s ListBootstrapActionsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListBootstrapActionsOutput) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetBootstrapActions sets the BootstrapActions field's value.
func (s *ListBootstrapActionsOutput) SetBootstrapActions(v []*Command) *ListBootstrapActionsOutput {
s.BootstrapActions = v
return s
}
// SetMarker sets the Marker field's value.
func (s *ListBootstrapActionsOutput) SetMarker(v string) *ListBootstrapActionsOutput {
s.Marker = &v
return s
}
// This input determines how the ListClusters action filters the list of clusters
// that it returns.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListClustersInput
type ListClustersInput struct {
_ struct{} `type:"structure"`
// The cluster state filters to apply when listing clusters.
ClusterStates []*string `type:"list"`
2016-11-19 19:41:01 +01:00
// The creation date and time beginning value filter for listing clusters.
CreatedAfter *time.Time `type:"timestamp" timestampFormat:"unix"`
2016-11-19 19:41:01 +01:00
// The creation date and time end value filter for listing clusters.
CreatedBefore *time.Time `type:"timestamp" timestampFormat:"unix"`
// The pagination token that indicates the next set of results to retrieve.
Marker *string `type:"string"`
}
// String returns the string representation
func (s ListClustersInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListClustersInput) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetClusterStates sets the ClusterStates field's value.
func (s *ListClustersInput) SetClusterStates(v []*string) *ListClustersInput {
s.ClusterStates = v
return s
}
// SetCreatedAfter sets the CreatedAfter field's value.
func (s *ListClustersInput) SetCreatedAfter(v time.Time) *ListClustersInput {
s.CreatedAfter = &v
return s
}
// SetCreatedBefore sets the CreatedBefore field's value.
func (s *ListClustersInput) SetCreatedBefore(v time.Time) *ListClustersInput {
s.CreatedBefore = &v
return s
}
// SetMarker sets the Marker field's value.
func (s *ListClustersInput) SetMarker(v string) *ListClustersInput {
s.Marker = &v
return s
}
// This contains a ClusterSummaryList with the cluster details; for example,
// the cluster IDs, names, and status.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListClustersOutput
type ListClustersOutput struct {
_ struct{} `type:"structure"`
// The list of clusters for the account based on the given filters.
Clusters []*ClusterSummary `type:"list"`
// The pagination token that indicates the next set of results to retrieve.
Marker *string `type:"string"`
}
// String returns the string representation
func (s ListClustersOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListClustersOutput) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetClusters sets the Clusters field's value.
func (s *ListClustersOutput) SetClusters(v []*ClusterSummary) *ListClustersOutput {
s.Clusters = v
return s
}
// SetMarker sets the Marker field's value.
func (s *ListClustersOutput) SetMarker(v string) *ListClustersOutput {
s.Marker = &v
return s
}
// This input determines which instance groups to retrieve.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListInstanceGroupsInput
type ListInstanceGroupsInput struct {
_ struct{} `type:"structure"`
// The identifier of the cluster for which to list the instance groups.
2016-10-17 23:21:08 +02:00
//
// ClusterId is a required field
ClusterId *string `type:"string" required:"true"`
// The pagination token that indicates the next set of results to retrieve.
Marker *string `type:"string"`
}
// String returns the string representation
func (s ListInstanceGroupsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListInstanceGroupsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListInstanceGroupsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListInstanceGroupsInput"}
if s.ClusterId == nil {
invalidParams.Add(request.NewErrParamRequired("ClusterId"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetClusterId sets the ClusterId field's value.
func (s *ListInstanceGroupsInput) SetClusterId(v string) *ListInstanceGroupsInput {
s.ClusterId = &v
return s
}
// SetMarker sets the Marker field's value.
func (s *ListInstanceGroupsInput) SetMarker(v string) *ListInstanceGroupsInput {
s.Marker = &v
return s
}
// This input determines which instance groups to retrieve.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListInstanceGroupsOutput
type ListInstanceGroupsOutput struct {
_ struct{} `type:"structure"`
// The list of instance groups for the cluster and given filters.
InstanceGroups []*InstanceGroup `type:"list"`
// The pagination token that indicates the next set of results to retrieve.
Marker *string `type:"string"`
}
// String returns the string representation
func (s ListInstanceGroupsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListInstanceGroupsOutput) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetInstanceGroups sets the InstanceGroups field's value.
func (s *ListInstanceGroupsOutput) SetInstanceGroups(v []*InstanceGroup) *ListInstanceGroupsOutput {
s.InstanceGroups = v
return s
}
// SetMarker sets the Marker field's value.
func (s *ListInstanceGroupsOutput) SetMarker(v string) *ListInstanceGroupsOutput {
s.Marker = &v
return s
}
// This input determines which instances to list.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListInstancesInput
type ListInstancesInput struct {
_ struct{} `type:"structure"`
// The identifier of the cluster for which to list the instances.
2016-10-17 23:21:08 +02:00
//
// ClusterId is a required field
ClusterId *string `type:"string" required:"true"`
// The identifier of the instance group for which to list the instances.
InstanceGroupId *string `type:"string"`
// The type of instance group for which to list the instances.
InstanceGroupTypes []*string `type:"list"`
// A list of instance states that will filter the instances returned with this
// request.
InstanceStates []*string `type:"list"`
// The pagination token that indicates the next set of results to retrieve.
Marker *string `type:"string"`
}
// String returns the string representation
func (s ListInstancesInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListInstancesInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListInstancesInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListInstancesInput"}
if s.ClusterId == nil {
invalidParams.Add(request.NewErrParamRequired("ClusterId"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetClusterId sets the ClusterId field's value.
func (s *ListInstancesInput) SetClusterId(v string) *ListInstancesInput {
s.ClusterId = &v
return s
}
// SetInstanceGroupId sets the InstanceGroupId field's value.
func (s *ListInstancesInput) SetInstanceGroupId(v string) *ListInstancesInput {
s.InstanceGroupId = &v
return s
}
// SetInstanceGroupTypes sets the InstanceGroupTypes field's value.
func (s *ListInstancesInput) SetInstanceGroupTypes(v []*string) *ListInstancesInput {
s.InstanceGroupTypes = v
return s
}
// SetInstanceStates sets the InstanceStates field's value.
func (s *ListInstancesInput) SetInstanceStates(v []*string) *ListInstancesInput {
s.InstanceStates = v
return s
}
// SetMarker sets the Marker field's value.
func (s *ListInstancesInput) SetMarker(v string) *ListInstancesInput {
s.Marker = &v
return s
}
// This output contains the list of instances.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListInstancesOutput
type ListInstancesOutput struct {
_ struct{} `type:"structure"`
// The list of instances for the cluster and given filters.
Instances []*Instance `type:"list"`
// The pagination token that indicates the next set of results to retrieve.
Marker *string `type:"string"`
}
// String returns the string representation
func (s ListInstancesOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListInstancesOutput) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetInstances sets the Instances field's value.
func (s *ListInstancesOutput) SetInstances(v []*Instance) *ListInstancesOutput {
s.Instances = v
return s
}
// SetMarker sets the Marker field's value.
func (s *ListInstancesOutput) SetMarker(v string) *ListInstancesOutput {
s.Marker = &v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListSecurityConfigurationsInput
type ListSecurityConfigurationsInput struct {
_ struct{} `type:"structure"`
// The pagination token that indicates the set of results to retrieve.
Marker *string `type:"string"`
}
// String returns the string representation
func (s ListSecurityConfigurationsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListSecurityConfigurationsInput) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetMarker sets the Marker field's value.
func (s *ListSecurityConfigurationsInput) SetMarker(v string) *ListSecurityConfigurationsInput {
s.Marker = &v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListSecurityConfigurationsOutput
type ListSecurityConfigurationsOutput struct {
_ struct{} `type:"structure"`
// A pagination token that indicates the next set of results to retrieve. Include
// the marker in the next ListSecurityConfiguration call to retrieve the next
// page of results, if required.
Marker *string `type:"string"`
// The creation date and time, and name, of each security configuration.
SecurityConfigurations []*SecurityConfigurationSummary `type:"list"`
}
// String returns the string representation
func (s ListSecurityConfigurationsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListSecurityConfigurationsOutput) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetMarker sets the Marker field's value.
func (s *ListSecurityConfigurationsOutput) SetMarker(v string) *ListSecurityConfigurationsOutput {
s.Marker = &v
return s
}
// SetSecurityConfigurations sets the SecurityConfigurations field's value.
func (s *ListSecurityConfigurationsOutput) SetSecurityConfigurations(v []*SecurityConfigurationSummary) *ListSecurityConfigurationsOutput {
s.SecurityConfigurations = v
return s
}
// This input determines which steps to list.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListStepsInput
type ListStepsInput struct {
_ struct{} `type:"structure"`
// The identifier of the cluster for which to list the steps.
2016-10-17 23:21:08 +02:00
//
// ClusterId is a required field
ClusterId *string `type:"string" required:"true"`
// The pagination token that indicates the next set of results to retrieve.
Marker *string `type:"string"`
// The filter to limit the step list based on the identifier of the steps.
StepIds []*string `type:"list"`
// The filter to limit the step list based on certain states.
StepStates []*string `type:"list"`
}
// String returns the string representation
func (s ListStepsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListStepsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListStepsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListStepsInput"}
if s.ClusterId == nil {
invalidParams.Add(request.NewErrParamRequired("ClusterId"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetClusterId sets the ClusterId field's value.
func (s *ListStepsInput) SetClusterId(v string) *ListStepsInput {
s.ClusterId = &v
return s
}
// SetMarker sets the Marker field's value.
func (s *ListStepsInput) SetMarker(v string) *ListStepsInput {
s.Marker = &v
return s
}
// SetStepIds sets the StepIds field's value.
func (s *ListStepsInput) SetStepIds(v []*string) *ListStepsInput {
s.StepIds = v
return s
}
// SetStepStates sets the StepStates field's value.
func (s *ListStepsInput) SetStepStates(v []*string) *ListStepsInput {
s.StepStates = v
return s
}
// This output contains the list of steps returned in reverse order. This means
// that the last step is the first element in the list.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListStepsOutput
type ListStepsOutput struct {
_ struct{} `type:"structure"`
// The pagination token that indicates the next set of results to retrieve.
Marker *string `type:"string"`
// The filtered list of steps for the cluster.
Steps []*StepSummary `type:"list"`
}
// String returns the string representation
func (s ListStepsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListStepsOutput) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetMarker sets the Marker field's value.
func (s *ListStepsOutput) SetMarker(v string) *ListStepsOutput {
s.Marker = &v
return s
}
// SetSteps sets the Steps field's value.
func (s *ListStepsOutput) SetSteps(v []*StepSummary) *ListStepsOutput {
s.Steps = v
return s
}
// A CloudWatch dimension, which is specified using a Key (known as a Name in
// CloudWatch), Value pair. By default, Amazon EMR uses one dimension whose
// Key is JobFlowID and Value is a variable representing the cluster ID, which
// is ${emr:cluster_id}. This enables the rule to bootstrap when the cluster
// ID becomes available, and also enables a single automatic scaling policy
// to be reused for multiple clusters and instance groups.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/MetricDimension
2016-11-19 19:41:01 +01:00
type MetricDimension struct {
_ struct{} `type:"structure"`
// The dimension name.
Key *string `type:"string"`
// The dimension value.
Value *string `type:"string"`
}
// String returns the string representation
func (s MetricDimension) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s MetricDimension) GoString() string {
return s.String()
}
// SetKey sets the Key field's value.
func (s *MetricDimension) SetKey(v string) *MetricDimension {
s.Key = &v
return s
}
// SetValue sets the Value field's value.
func (s *MetricDimension) SetValue(v string) *MetricDimension {
s.Value = &v
return s
}
// Change the size of some instance groups.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ModifyInstanceGroupsInput
type ModifyInstanceGroupsInput struct {
_ struct{} `type:"structure"`
2016-11-19 19:41:01 +01:00
// The ID of the cluster to which the instance group belongs.
ClusterId *string `type:"string"`
// Instance groups to change.
InstanceGroups []*InstanceGroupModifyConfig `type:"list"`
}
// String returns the string representation
func (s ModifyInstanceGroupsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ModifyInstanceGroupsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ModifyInstanceGroupsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ModifyInstanceGroupsInput"}
if s.InstanceGroups != nil {
for i, v := range s.InstanceGroups {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InstanceGroups", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetClusterId sets the ClusterId field's value.
func (s *ModifyInstanceGroupsInput) SetClusterId(v string) *ModifyInstanceGroupsInput {
s.ClusterId = &v
return s
}
// SetInstanceGroups sets the InstanceGroups field's value.
func (s *ModifyInstanceGroupsInput) SetInstanceGroups(v []*InstanceGroupModifyConfig) *ModifyInstanceGroupsInput {
s.InstanceGroups = v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ModifyInstanceGroupsOutput
2016-11-19 19:41:01 +01:00
type ModifyInstanceGroupsOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s ModifyInstanceGroupsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ModifyInstanceGroupsOutput) GoString() string {
return s.String()
}
// The Amazon EC2 location for the job flow.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/PlacementType
2016-11-19 19:41:01 +01:00
type PlacementType struct {
_ struct{} `type:"structure"`
// The Amazon EC2 Availability Zone for the job flow.
//
// AvailabilityZone is a required field
AvailabilityZone *string `type:"string" required:"true"`
}
// String returns the string representation
func (s PlacementType) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s PlacementType) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *PlacementType) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "PlacementType"}
if s.AvailabilityZone == nil {
invalidParams.Add(request.NewErrParamRequired("AvailabilityZone"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAvailabilityZone sets the AvailabilityZone field's value.
func (s *PlacementType) SetAvailabilityZone(v string) *PlacementType {
s.AvailabilityZone = &v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/PutAutoScalingPolicyInput
2016-11-19 19:41:01 +01:00
type PutAutoScalingPolicyInput struct {
_ struct{} `type:"structure"`
// Specifies the definition of the automatic scaling policy.
//
// AutoScalingPolicy is a required field
AutoScalingPolicy *AutoScalingPolicy `type:"structure" required:"true"`
// Specifies the ID of a cluster. The instance group to which the automatic
// scaling policy is applied is within this cluster.
//
// ClusterId is a required field
ClusterId *string `type:"string" required:"true"`
// Specifies the ID of the instance group to which the automatic scaling policy
// is applied.
//
// InstanceGroupId is a required field
InstanceGroupId *string `type:"string" required:"true"`
}
// String returns the string representation
func (s PutAutoScalingPolicyInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s PutAutoScalingPolicyInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *PutAutoScalingPolicyInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "PutAutoScalingPolicyInput"}
if s.AutoScalingPolicy == nil {
invalidParams.Add(request.NewErrParamRequired("AutoScalingPolicy"))
}
if s.ClusterId == nil {
invalidParams.Add(request.NewErrParamRequired("ClusterId"))
}
if s.InstanceGroupId == nil {
invalidParams.Add(request.NewErrParamRequired("InstanceGroupId"))
}
if s.AutoScalingPolicy != nil {
if err := s.AutoScalingPolicy.Validate(); err != nil {
invalidParams.AddNested("AutoScalingPolicy", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAutoScalingPolicy sets the AutoScalingPolicy field's value.
func (s *PutAutoScalingPolicyInput) SetAutoScalingPolicy(v *AutoScalingPolicy) *PutAutoScalingPolicyInput {
s.AutoScalingPolicy = v
return s
}
// SetClusterId sets the ClusterId field's value.
func (s *PutAutoScalingPolicyInput) SetClusterId(v string) *PutAutoScalingPolicyInput {
s.ClusterId = &v
return s
}
// SetInstanceGroupId sets the InstanceGroupId field's value.
func (s *PutAutoScalingPolicyInput) SetInstanceGroupId(v string) *PutAutoScalingPolicyInput {
s.InstanceGroupId = &v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/PutAutoScalingPolicyOutput
2016-11-19 19:41:01 +01:00
type PutAutoScalingPolicyOutput struct {
_ struct{} `type:"structure"`
2016-11-19 19:41:01 +01:00
// The automatic scaling policy definition.
AutoScalingPolicy *AutoScalingPolicyDescription `type:"structure"`
// Specifies the ID of a cluster. The instance group to which the automatic
// scaling policy is applied is within this cluster.
ClusterId *string `type:"string"`
// Specifies the ID of the instance group to which the scaling policy is applied.
InstanceGroupId *string `type:"string"`
}
// String returns the string representation
2016-11-19 19:41:01 +01:00
func (s PutAutoScalingPolicyOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
2016-11-19 19:41:01 +01:00
func (s PutAutoScalingPolicyOutput) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetAutoScalingPolicy sets the AutoScalingPolicy field's value.
func (s *PutAutoScalingPolicyOutput) SetAutoScalingPolicy(v *AutoScalingPolicyDescription) *PutAutoScalingPolicyOutput {
s.AutoScalingPolicy = v
return s
}
// SetClusterId sets the ClusterId field's value.
func (s *PutAutoScalingPolicyOutput) SetClusterId(v string) *PutAutoScalingPolicyOutput {
s.ClusterId = &v
return s
}
// SetInstanceGroupId sets the InstanceGroupId field's value.
func (s *PutAutoScalingPolicyOutput) SetInstanceGroupId(v string) *PutAutoScalingPolicyOutput {
s.InstanceGroupId = &v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/RemoveAutoScalingPolicyInput
2016-11-19 19:41:01 +01:00
type RemoveAutoScalingPolicyInput struct {
_ struct{} `type:"structure"`
2016-11-19 19:41:01 +01:00
// Specifies the ID of a cluster. The instance group to which the automatic
// scaling policy is applied is within this cluster.
2016-10-17 23:21:08 +02:00
//
2016-11-19 19:41:01 +01:00
// ClusterId is a required field
ClusterId *string `type:"string" required:"true"`
// Specifies the ID of the instance group to which the scaling policy is applied.
//
// InstanceGroupId is a required field
InstanceGroupId *string `type:"string" required:"true"`
}
// String returns the string representation
2016-11-19 19:41:01 +01:00
func (s RemoveAutoScalingPolicyInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
2016-11-19 19:41:01 +01:00
func (s RemoveAutoScalingPolicyInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
2016-11-19 19:41:01 +01:00
func (s *RemoveAutoScalingPolicyInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "RemoveAutoScalingPolicyInput"}
if s.ClusterId == nil {
invalidParams.Add(request.NewErrParamRequired("ClusterId"))
}
if s.InstanceGroupId == nil {
invalidParams.Add(request.NewErrParamRequired("InstanceGroupId"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetClusterId sets the ClusterId field's value.
func (s *RemoveAutoScalingPolicyInput) SetClusterId(v string) *RemoveAutoScalingPolicyInput {
s.ClusterId = &v
return s
}
// SetInstanceGroupId sets the InstanceGroupId field's value.
func (s *RemoveAutoScalingPolicyInput) SetInstanceGroupId(v string) *RemoveAutoScalingPolicyInput {
s.InstanceGroupId = &v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/RemoveAutoScalingPolicyOutput
2016-11-19 19:41:01 +01:00
type RemoveAutoScalingPolicyOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s RemoveAutoScalingPolicyOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s RemoveAutoScalingPolicyOutput) GoString() string {
return s.String()
}
// This input identifies a cluster and a list of tags to remove.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/RemoveTagsInput
type RemoveTagsInput struct {
_ struct{} `type:"structure"`
// The Amazon EMR resource identifier from which tags will be removed. This
// value must be a cluster identifier.
2016-10-17 23:21:08 +02:00
//
// ResourceId is a required field
ResourceId *string `type:"string" required:"true"`
// A list of tag keys to remove from a resource.
2016-10-17 23:21:08 +02:00
//
// TagKeys is a required field
TagKeys []*string `type:"list" required:"true"`
}
// String returns the string representation
func (s RemoveTagsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s RemoveTagsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *RemoveTagsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "RemoveTagsInput"}
if s.ResourceId == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceId"))
}
if s.TagKeys == nil {
invalidParams.Add(request.NewErrParamRequired("TagKeys"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetResourceId sets the ResourceId field's value.
func (s *RemoveTagsInput) SetResourceId(v string) *RemoveTagsInput {
s.ResourceId = &v
return s
}
// SetTagKeys sets the TagKeys field's value.
func (s *RemoveTagsInput) SetTagKeys(v []*string) *RemoveTagsInput {
s.TagKeys = v
return s
}
// This output indicates the result of removing tags from a resource.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/RemoveTagsOutput
type RemoveTagsOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s RemoveTagsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s RemoveTagsOutput) GoString() string {
return s.String()
}
// Input to the RunJobFlow operation.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/RunJobFlowInput
type RunJobFlowInput struct {
_ struct{} `type:"structure"`
// A JSON string for selecting additional features.
AdditionalInfo *string `type:"string"`
// For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater,
// use ReleaseLabel.
//
2016-11-19 19:41:01 +01:00
// The version of the Amazon Machine Image (AMI) to use when launching Amazon
// EC2 instances in the job flow. The following values are valid:
//
2016-11-19 19:41:01 +01:00
// * The version number of the AMI to use, for example, "2.0."
//
2016-11-19 19:41:01 +01:00
// If the AMI supports multiple versions of Hadoop (for example, AMI 1.0 supports
// both Hadoop 0.18 and 0.20) you can use the JobFlowInstancesConfigHadoopVersion
// parameter to modify the version of Hadoop from the defaults shown above.
//
// For details about the AMI versions currently supported by Amazon Elastic
2016-11-19 19:41:01 +01:00
// MapReduce, see AMI Versions Supported in Elastic MapReduce (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/EnvironmentConfig_AMIVersion.html#ami-versions-supported)
// in the Amazon Elastic MapReduce Developer Guide.
//
// Previously, the EMR AMI version API parameter options allowed you to use
// latest for the latest AMI version rather than specify a numerical value.
// Some regions no longer support this deprecated option as they only have a
// newer release label version of EMR, which requires you to specify an EMR
// release label release (EMR 4.x or later).
AmiVersion *string `type:"string"`
// Amazon EMR releases 4.x or later.
//
2016-11-19 19:41:01 +01:00
// A list of applications for the cluster. Valid values are: "Hadoop", "Hive",
// "Mahout", "Pig", and "Spark." They are case insensitive.
Applications []*Application `type:"list"`
2016-11-19 19:41:01 +01:00
// An IAM role for automatic scaling policies. The default role is EMR_AutoScaling_DefaultRole.
// The IAM role provides permissions that the automatic scaling feature requires
// to launch and terminate EC2 instances in an instance group.
AutoScalingRole *string `type:"string"`
// A list of bootstrap actions that will be run before Hadoop is started on
// the cluster nodes.
BootstrapActions []*BootstrapActionConfig `type:"list"`
// Amazon EMR releases 4.x or later.
//
2016-11-19 19:41:01 +01:00
// The list of configurations supplied for the EMR cluster you are creating.
Configurations []*Configuration `type:"list"`
// A specification of the number and type of Amazon EC2 instances on which to
// run the job flow.
2016-10-17 23:21:08 +02:00
//
// Instances is a required field
Instances *JobFlowInstancesConfig `type:"structure" required:"true"`
// 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 EMR_EC2_DefaultRole.
// In order to use the default role, you must have already created it using
// the CLI or console.
JobFlowRole *string `type:"string"`
// The location in Amazon S3 to write the log files of the job flow. If a value
// is not provided, logs are not created.
LogUri *string `type:"string"`
// The name of the job flow.
2016-10-17 23:21:08 +02:00
//
// Name is a required field
Name *string `type:"string" required:"true"`
// For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater,
// use Applications.
//
2016-11-19 19:41:01 +01:00
// A list of strings that indicates third-party software to use with the job
// flow that accepts a user argument list. EMR accepts and forwards the argument
// list to the corresponding installation script as bootstrap action arguments.
// For more information, see Launch a Job Flow on the MapR Distribution for
// Hadoop (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/emr-mapr.html).
// Currently supported values are:
//
2016-11-19 19:41:01 +01:00
// * "mapr-m3" - launch the cluster using MapR M3 Edition.
//
2016-11-19 19:41:01 +01:00
// * "mapr-m5" - launch the cluster using MapR M5 Edition.
//
2016-11-19 19:41:01 +01:00
// * "mapr" with the user arguments specifying "--edition,m3" or "--edition,m5"
// - launch the job flow using MapR M3 or M5 Edition respectively.
//
2016-11-19 19:41:01 +01:00
// * "mapr-m7" - launch the cluster using MapR M7 Edition.
//
2016-11-19 19:41:01 +01:00
// * "hunk" - launch the cluster with the Hunk Big Data Analtics Platform.
//
2016-11-19 19:41:01 +01:00
// * "hue"- launch the cluster with Hue installed.
//
2016-11-19 19:41:01 +01:00
// * "spark" - launch the cluster with Apache Spark installed.
//
2016-11-19 19:41:01 +01:00
// * "ganglia" - launch the cluster with the Ganglia Monitoring System installed.
NewSupportedProducts []*SupportedProductConfig `type:"list"`
// Amazon EMR releases 4.x or later.
//
2016-11-19 19:41:01 +01:00
// The release label for the Amazon EMR release. For Amazon EMR 3.x and 2.x
// AMIs, use amiVersion instead instead of ReleaseLabel.
ReleaseLabel *string `type:"string"`
2016-11-19 19:41:01 +01:00
// Specifies the way that individual Amazon EC2 instances terminate when an
// automatic scale-in activity occurs or an instance group is resized. TERMINATE_AT_INSTANCE_HOUR
// indicates that Amazon EMR terminates nodes at the instance-hour boundary,
// regardless of when the request to terminate the instance was submitted. This
// option is only available with Amazon EMR 5.1.0 and later and is the default
// for clusters created using that version. TERMINATE_AT_TASK_COMPLETION indicates
// that Amazon EMR blacklists and drains tasks from nodes before terminating
// the Amazon EC2 instances, regardless of the instance-hour boundary. With
// either behavior, Amazon EMR removes the least active nodes first and blocks
// instance termination if it could lead to HDFS corruption. TERMINATE_AT_TASK_COMPLETION
// available only in Amazon EMR version 4.1.0 and later, and is the default
// for versions of Amazon EMR earlier than 5.1.0.
ScaleDownBehavior *string `type:"string" enum:"ScaleDownBehavior"`
// The name of a security configuration to apply to the cluster.
SecurityConfiguration *string `type:"string"`
// The IAM role that will be assumed by the Amazon EMR service to access AWS
// resources on your behalf.
ServiceRole *string `type:"string"`
// A list of steps to be executed by the job flow.
Steps []*StepConfig `type:"list"`
// For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and greater,
// use Applications.
//
2016-11-19 19:41:01 +01:00
// A list of strings that indicates third-party software to use with the job
// flow. For more information, see Use Third Party Applications with Amazon
// EMR (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/emr-supported-products.html).
// Currently supported values are:
//
2016-11-19 19:41:01 +01:00
// * "mapr-m3" - launch the job flow using MapR M3 Edition.
//
2016-11-19 19:41:01 +01:00
// * "mapr-m5" - launch the job flow using MapR M5 Edition.
SupportedProducts []*string `type:"list"`
// A list of tags to associate with a cluster and propagate to Amazon EC2 instances.
Tags []*Tag `type:"list"`
2016-11-19 19:41:01 +01:00
// Whether the job flow is visible to all IAM users of the AWS account associated
// with the job flow. If this value is set to true, all IAM users of that AWS
// account can view and (if they have the proper policy permissions set) manage
// the job flow. If it is set to false, only the IAM user that created the job
// flow can view and manage it.
VisibleToAllUsers *bool `type:"boolean"`
}
// String returns the string representation
func (s RunJobFlowInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s RunJobFlowInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *RunJobFlowInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "RunJobFlowInput"}
if s.Instances == nil {
invalidParams.Add(request.NewErrParamRequired("Instances"))
}
if s.Name == nil {
invalidParams.Add(request.NewErrParamRequired("Name"))
}
if s.BootstrapActions != nil {
for i, v := range s.BootstrapActions {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "BootstrapActions", i), err.(request.ErrInvalidParams))
}
}
}
if s.Instances != nil {
if err := s.Instances.Validate(); err != nil {
invalidParams.AddNested("Instances", err.(request.ErrInvalidParams))
}
}
if s.Steps != nil {
for i, v := range s.Steps {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Steps", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAdditionalInfo sets the AdditionalInfo field's value.
func (s *RunJobFlowInput) SetAdditionalInfo(v string) *RunJobFlowInput {
s.AdditionalInfo = &v
return s
}
// SetAmiVersion sets the AmiVersion field's value.
func (s *RunJobFlowInput) SetAmiVersion(v string) *RunJobFlowInput {
s.AmiVersion = &v
return s
}
// SetApplications sets the Applications field's value.
func (s *RunJobFlowInput) SetApplications(v []*Application) *RunJobFlowInput {
s.Applications = v
return s
}
// SetAutoScalingRole sets the AutoScalingRole field's value.
func (s *RunJobFlowInput) SetAutoScalingRole(v string) *RunJobFlowInput {
s.AutoScalingRole = &v
return s
}
// SetBootstrapActions sets the BootstrapActions field's value.
func (s *RunJobFlowInput) SetBootstrapActions(v []*BootstrapActionConfig) *RunJobFlowInput {
s.BootstrapActions = v
return s
}
// SetConfigurations sets the Configurations field's value.
func (s *RunJobFlowInput) SetConfigurations(v []*Configuration) *RunJobFlowInput {
s.Configurations = v
return s
}
// SetInstances sets the Instances field's value.
func (s *RunJobFlowInput) SetInstances(v *JobFlowInstancesConfig) *RunJobFlowInput {
s.Instances = v
return s
}
// SetJobFlowRole sets the JobFlowRole field's value.
func (s *RunJobFlowInput) SetJobFlowRole(v string) *RunJobFlowInput {
s.JobFlowRole = &v
return s
}
// SetLogUri sets the LogUri field's value.
func (s *RunJobFlowInput) SetLogUri(v string) *RunJobFlowInput {
s.LogUri = &v
return s
}
// SetName sets the Name field's value.
func (s *RunJobFlowInput) SetName(v string) *RunJobFlowInput {
s.Name = &v
return s
}
// SetNewSupportedProducts sets the NewSupportedProducts field's value.
func (s *RunJobFlowInput) SetNewSupportedProducts(v []*SupportedProductConfig) *RunJobFlowInput {
s.NewSupportedProducts = v
return s
}
// SetReleaseLabel sets the ReleaseLabel field's value.
func (s *RunJobFlowInput) SetReleaseLabel(v string) *RunJobFlowInput {
s.ReleaseLabel = &v
return s
}
// SetScaleDownBehavior sets the ScaleDownBehavior field's value.
func (s *RunJobFlowInput) SetScaleDownBehavior(v string) *RunJobFlowInput {
s.ScaleDownBehavior = &v
return s
}
// SetSecurityConfiguration sets the SecurityConfiguration field's value.
func (s *RunJobFlowInput) SetSecurityConfiguration(v string) *RunJobFlowInput {
s.SecurityConfiguration = &v
return s
}
// SetServiceRole sets the ServiceRole field's value.
func (s *RunJobFlowInput) SetServiceRole(v string) *RunJobFlowInput {
s.ServiceRole = &v
return s
}
// SetSteps sets the Steps field's value.
func (s *RunJobFlowInput) SetSteps(v []*StepConfig) *RunJobFlowInput {
s.Steps = v
return s
}
// SetSupportedProducts sets the SupportedProducts field's value.
func (s *RunJobFlowInput) SetSupportedProducts(v []*string) *RunJobFlowInput {
s.SupportedProducts = v
return s
}
// SetTags sets the Tags field's value.
func (s *RunJobFlowInput) SetTags(v []*Tag) *RunJobFlowInput {
s.Tags = v
return s
}
// SetVisibleToAllUsers sets the VisibleToAllUsers field's value.
func (s *RunJobFlowInput) SetVisibleToAllUsers(v bool) *RunJobFlowInput {
s.VisibleToAllUsers = &v
return s
}
// The result of the RunJobFlow operation.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/RunJobFlowOutput
2016-11-19 19:41:01 +01:00
type RunJobFlowOutput struct {
_ struct{} `type:"structure"`
// An unique identifier for the job flow.
JobFlowId *string `type:"string"`
}
// String returns the string representation
func (s RunJobFlowOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s RunJobFlowOutput) GoString() string {
return s.String()
}
// SetJobFlowId sets the JobFlowId field's value.
func (s *RunJobFlowOutput) SetJobFlowId(v string) *RunJobFlowOutput {
s.JobFlowId = &v
return s
}
// The type of adjustment the automatic scaling activity makes when triggered,
// and the periodicity of the adjustment.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ScalingAction
2016-11-19 19:41:01 +01:00
type ScalingAction struct {
_ struct{} `type:"structure"`
// Not available for instance groups. Instance groups use the market type specified
// for the group.
Market *string `type:"string" enum:"MarketType"`
// The type of adjustment the automatic scaling activity makes when triggered,
// and the periodicity of the adjustment.
//
// SimpleScalingPolicyConfiguration is a required field
SimpleScalingPolicyConfiguration *SimpleScalingPolicyConfiguration `type:"structure" required:"true"`
}
// String returns the string representation
func (s ScalingAction) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ScalingAction) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ScalingAction) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ScalingAction"}
if s.SimpleScalingPolicyConfiguration == nil {
invalidParams.Add(request.NewErrParamRequired("SimpleScalingPolicyConfiguration"))
}
if s.SimpleScalingPolicyConfiguration != nil {
if err := s.SimpleScalingPolicyConfiguration.Validate(); err != nil {
invalidParams.AddNested("SimpleScalingPolicyConfiguration", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetMarket sets the Market field's value.
func (s *ScalingAction) SetMarket(v string) *ScalingAction {
s.Market = &v
return s
}
// SetSimpleScalingPolicyConfiguration sets the SimpleScalingPolicyConfiguration field's value.
func (s *ScalingAction) SetSimpleScalingPolicyConfiguration(v *SimpleScalingPolicyConfiguration) *ScalingAction {
s.SimpleScalingPolicyConfiguration = v
return s
}
// The upper and lower EC2 instance limits for an automatic scaling policy.
// Automatic scaling activities triggered by automatic scaling rules will not
// cause an instance group to grow above or below these limits.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ScalingConstraints
2016-11-19 19:41:01 +01:00
type ScalingConstraints struct {
_ struct{} `type:"structure"`
// The upper boundary of EC2 instances in an instance group beyond which scaling
// activities are not allowed to grow. Scale-out activities will not add instances
// beyond this boundary.
//
// MaxCapacity is a required field
MaxCapacity *int64 `type:"integer" required:"true"`
// The lower boundary of EC2 instances in an instance group below which scaling
// activities are not allowed to shrink. Scale-in activities will not terminate
// instances below this boundary.
//
// MinCapacity is a required field
MinCapacity *int64 `type:"integer" required:"true"`
}
// String returns the string representation
func (s ScalingConstraints) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ScalingConstraints) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ScalingConstraints) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ScalingConstraints"}
if s.MaxCapacity == nil {
invalidParams.Add(request.NewErrParamRequired("MaxCapacity"))
}
if s.MinCapacity == nil {
invalidParams.Add(request.NewErrParamRequired("MinCapacity"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetMaxCapacity sets the MaxCapacity field's value.
func (s *ScalingConstraints) SetMaxCapacity(v int64) *ScalingConstraints {
s.MaxCapacity = &v
return s
}
// SetMinCapacity sets the MinCapacity field's value.
func (s *ScalingConstraints) SetMinCapacity(v int64) *ScalingConstraints {
s.MinCapacity = &v
return s
}
// A scale-in or scale-out rule that defines scaling activity, including the
// CloudWatch metric alarm that triggers activity, how EC2 instances are added
// or removed, and the periodicity of adjustments. The automatic scaling policy
// for an instance group can comprise one or more automatic scaling rules.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ScalingRule
2016-11-19 19:41:01 +01:00
type ScalingRule struct {
_ struct{} `type:"structure"`
// The conditions that trigger an automatic scaling activity.
//
// Action is a required field
Action *ScalingAction `type:"structure" required:"true"`
// A friendly, more verbose description of the automatic scaling rule.
Description *string `type:"string"`
// The name used to identify an automatic scaling rule. Rule names must be unique
// within a scaling policy.
//
// Name is a required field
Name *string `type:"string" required:"true"`
// The CloudWatch alarm definition that determines when automatic scaling activity
// is triggered.
//
// Trigger is a required field
Trigger *ScalingTrigger `type:"structure" required:"true"`
}
// String returns the string representation
2016-11-19 19:41:01 +01:00
func (s ScalingRule) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
2016-11-19 19:41:01 +01:00
func (s ScalingRule) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
2016-11-19 19:41:01 +01:00
func (s *ScalingRule) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ScalingRule"}
if s.Action == nil {
invalidParams.Add(request.NewErrParamRequired("Action"))
}
if s.Name == nil {
invalidParams.Add(request.NewErrParamRequired("Name"))
}
2016-11-19 19:41:01 +01:00
if s.Trigger == nil {
invalidParams.Add(request.NewErrParamRequired("Trigger"))
}
2016-11-19 19:41:01 +01:00
if s.Action != nil {
if err := s.Action.Validate(); err != nil {
invalidParams.AddNested("Action", err.(request.ErrInvalidParams))
}
}
2016-11-19 19:41:01 +01:00
if s.Trigger != nil {
if err := s.Trigger.Validate(); err != nil {
invalidParams.AddNested("Trigger", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetAction sets the Action field's value.
func (s *ScalingRule) SetAction(v *ScalingAction) *ScalingRule {
s.Action = v
return s
}
// SetDescription sets the Description field's value.
func (s *ScalingRule) SetDescription(v string) *ScalingRule {
s.Description = &v
return s
}
// SetName sets the Name field's value.
func (s *ScalingRule) SetName(v string) *ScalingRule {
s.Name = &v
return s
}
// SetTrigger sets the Trigger field's value.
func (s *ScalingRule) SetTrigger(v *ScalingTrigger) *ScalingRule {
s.Trigger = v
return s
}
// The conditions that trigger an automatic scaling activity.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ScalingTrigger
2016-11-19 19:41:01 +01:00
type ScalingTrigger struct {
_ struct{} `type:"structure"`
2016-11-19 19:41:01 +01:00
// The definition of a CloudWatch metric alarm. When the defined alarm conditions
// are met along with other trigger parameters, scaling activity begins.
//
// CloudWatchAlarmDefinition is a required field
CloudWatchAlarmDefinition *CloudWatchAlarmDefinition `type:"structure" required:"true"`
}
// String returns the string representation
2016-11-19 19:41:01 +01:00
func (s ScalingTrigger) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
2016-11-19 19:41:01 +01:00
func (s ScalingTrigger) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// Validate inspects the fields of the type to determine if they are valid.
func (s *ScalingTrigger) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ScalingTrigger"}
if s.CloudWatchAlarmDefinition == nil {
invalidParams.Add(request.NewErrParamRequired("CloudWatchAlarmDefinition"))
}
if s.CloudWatchAlarmDefinition != nil {
if err := s.CloudWatchAlarmDefinition.Validate(); err != nil {
invalidParams.AddNested("CloudWatchAlarmDefinition", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetCloudWatchAlarmDefinition sets the CloudWatchAlarmDefinition field's value.
func (s *ScalingTrigger) SetCloudWatchAlarmDefinition(v *CloudWatchAlarmDefinition) *ScalingTrigger {
s.CloudWatchAlarmDefinition = v
return s
}
// Configuration of the script to run during a bootstrap action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ScriptBootstrapActionConfig
type ScriptBootstrapActionConfig struct {
_ struct{} `type:"structure"`
2016-11-19 19:41:01 +01:00
// A list of command line arguments to pass to the bootstrap action script.
Args []*string `type:"list"`
2016-11-19 19:41:01 +01:00
// Location of the script to run during a bootstrap action. Can be either a
// location in Amazon S3 or on a local file system.
//
2016-10-17 23:21:08 +02:00
// Path is a required field
Path *string `type:"string" required:"true"`
}
// String returns the string representation
func (s ScriptBootstrapActionConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ScriptBootstrapActionConfig) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ScriptBootstrapActionConfig) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ScriptBootstrapActionConfig"}
if s.Path == nil {
invalidParams.Add(request.NewErrParamRequired("Path"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetArgs sets the Args field's value.
func (s *ScriptBootstrapActionConfig) SetArgs(v []*string) *ScriptBootstrapActionConfig {
s.Args = v
return s
}
// SetPath sets the Path field's value.
func (s *ScriptBootstrapActionConfig) SetPath(v string) *ScriptBootstrapActionConfig {
s.Path = &v
return s
}
// The creation date and time, and name, of a security configuration.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/SecurityConfigurationSummary
type SecurityConfigurationSummary struct {
_ struct{} `type:"structure"`
// The date and time the security configuration was created.
CreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
// The name of the security configuration.
Name *string `type:"string"`
}
// String returns the string representation
func (s SecurityConfigurationSummary) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SecurityConfigurationSummary) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetCreationDateTime sets the CreationDateTime field's value.
func (s *SecurityConfigurationSummary) SetCreationDateTime(v time.Time) *SecurityConfigurationSummary {
s.CreationDateTime = &v
return s
}
// SetName sets the Name field's value.
func (s *SecurityConfigurationSummary) SetName(v string) *SecurityConfigurationSummary {
s.Name = &v
return s
}
// The input argument to the TerminationProtection operation.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/SetTerminationProtectionInput
type SetTerminationProtectionInput struct {
_ struct{} `type:"structure"`
// A list of strings that uniquely identify the job flows to protect. This identifier
// is returned by RunJobFlow and can also be obtained from DescribeJobFlows
// .
2016-10-17 23:21:08 +02:00
//
// JobFlowIds is a required field
JobFlowIds []*string `type:"list" required:"true"`
// A Boolean that indicates whether to protect the job flow and prevent the
// Amazon EC2 instances in the cluster from shutting down due to API calls,
// user intervention, or job-flow error.
2016-10-17 23:21:08 +02:00
//
// TerminationProtected is a required field
TerminationProtected *bool `type:"boolean" required:"true"`
}
// String returns the string representation
func (s SetTerminationProtectionInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SetTerminationProtectionInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *SetTerminationProtectionInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "SetTerminationProtectionInput"}
if s.JobFlowIds == nil {
invalidParams.Add(request.NewErrParamRequired("JobFlowIds"))
}
if s.TerminationProtected == nil {
invalidParams.Add(request.NewErrParamRequired("TerminationProtected"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetJobFlowIds sets the JobFlowIds field's value.
func (s *SetTerminationProtectionInput) SetJobFlowIds(v []*string) *SetTerminationProtectionInput {
s.JobFlowIds = v
return s
}
// SetTerminationProtected sets the TerminationProtected field's value.
func (s *SetTerminationProtectionInput) SetTerminationProtected(v bool) *SetTerminationProtectionInput {
s.TerminationProtected = &v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/SetTerminationProtectionOutput
type SetTerminationProtectionOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s SetTerminationProtectionOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SetTerminationProtectionOutput) GoString() string {
return s.String()
}
// The input to the SetVisibleToAllUsers action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/SetVisibleToAllUsersInput
type SetVisibleToAllUsersInput struct {
_ struct{} `type:"structure"`
// Identifiers of the job flows to receive the new visibility setting.
2016-10-17 23:21:08 +02:00
//
// JobFlowIds is a required field
JobFlowIds []*string `type:"list" required:"true"`
// Whether the specified job flows are visible to all IAM users of the AWS account
// associated with the job flow. If this value is set to True, all IAM users
// of that AWS account can view and, if they have the proper IAM policy permissions
// set, manage the job flows. If it is set to False, only the IAM user that
// created a job flow can view and manage it.
2016-10-17 23:21:08 +02:00
//
// VisibleToAllUsers is a required field
VisibleToAllUsers *bool `type:"boolean" required:"true"`
}
// String returns the string representation
func (s SetVisibleToAllUsersInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SetVisibleToAllUsersInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *SetVisibleToAllUsersInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "SetVisibleToAllUsersInput"}
if s.JobFlowIds == nil {
invalidParams.Add(request.NewErrParamRequired("JobFlowIds"))
}
if s.VisibleToAllUsers == nil {
invalidParams.Add(request.NewErrParamRequired("VisibleToAllUsers"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetJobFlowIds sets the JobFlowIds field's value.
func (s *SetVisibleToAllUsersInput) SetJobFlowIds(v []*string) *SetVisibleToAllUsersInput {
s.JobFlowIds = v
return s
}
// SetVisibleToAllUsers sets the VisibleToAllUsers field's value.
func (s *SetVisibleToAllUsersInput) SetVisibleToAllUsers(v bool) *SetVisibleToAllUsersInput {
s.VisibleToAllUsers = &v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/SetVisibleToAllUsersOutput
type SetVisibleToAllUsersOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s SetVisibleToAllUsersOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SetVisibleToAllUsersOutput) GoString() string {
return s.String()
}
// Policy for customizing shrink operations. Allows configuration of decommissioning
// timeout and targeted instance shrinking.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ShrinkPolicy
type ShrinkPolicy struct {
_ struct{} `type:"structure"`
// The desired timeout for decommissioning an instance. Overrides the default
// YARN decommissioning timeout.
DecommissionTimeout *int64 `type:"integer"`
// Custom policy for requesting termination protection or termination of specific
// instances when shrinking an instance group.
InstanceResizePolicy *InstanceResizePolicy `type:"structure"`
}
// String returns the string representation
func (s ShrinkPolicy) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ShrinkPolicy) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetDecommissionTimeout sets the DecommissionTimeout field's value.
func (s *ShrinkPolicy) SetDecommissionTimeout(v int64) *ShrinkPolicy {
s.DecommissionTimeout = &v
return s
}
// SetInstanceResizePolicy sets the InstanceResizePolicy field's value.
func (s *ShrinkPolicy) SetInstanceResizePolicy(v *InstanceResizePolicy) *ShrinkPolicy {
s.InstanceResizePolicy = v
return s
}
// An automatic scaling configuration, which describes how the policy adds or
// removes instances, the cooldown period, and the number of EC2 instances that
// will be added each time the CloudWatch metric alarm condition is satisfied.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/SimpleScalingPolicyConfiguration
2016-11-19 19:41:01 +01:00
type SimpleScalingPolicyConfiguration struct {
_ struct{} `type:"structure"`
// The way in which EC2 instances are added (if ScalingAdjustment is a positive
// number) or terminated (if ScalingAdjustment is a negative number) each time
// the scaling activity is triggered. CHANGE_IN_CAPACITY is the default. CHANGE_IN_CAPACITY
// indicates that the EC2 instance count increments or decrements by ScalingAdjustment,
// which should be expressed as an integer. PERCENT_CHANGE_IN_CAPACITY indicates
// the instance count increments or decrements by the percentage specified by
// ScalingAdjustment, which should be expressed as a decimal, for example, 0.20
// indicates an increase in 20% increments of cluster capacity. EXACT_CAPACITY
// indicates the scaling activity results in an instance group with the number
// of EC2 instances specified by ScalingAdjustment, which should be expressed
// as a positive integer.
AdjustmentType *string `type:"string" enum:"AdjustmentType"`
// The amount of time, in seconds, after a scaling activity completes before
// any further trigger-related scaling activities can start. The default value
// is 0.
CoolDown *int64 `type:"integer"`
// The amount by which to scale in or scale out, based on the specified AdjustmentType.
// A positive value adds to the instance group's EC2 instance count while a
// negative number removes instances. If AdjustmentType is set to EXACT_CAPACITY,
// the number should only be a positive integer. If AdjustmentType is set to
// PERCENT_CHANGE_IN_CAPACITY, the value should express the percentage as a
// decimal. For example, -0.20 indicates a decrease in 20% increments of cluster
// capacity.
//
// ScalingAdjustment is a required field
ScalingAdjustment *int64 `type:"integer" required:"true"`
}
// String returns the string representation
func (s SimpleScalingPolicyConfiguration) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SimpleScalingPolicyConfiguration) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *SimpleScalingPolicyConfiguration) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "SimpleScalingPolicyConfiguration"}
if s.ScalingAdjustment == nil {
invalidParams.Add(request.NewErrParamRequired("ScalingAdjustment"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAdjustmentType sets the AdjustmentType field's value.
func (s *SimpleScalingPolicyConfiguration) SetAdjustmentType(v string) *SimpleScalingPolicyConfiguration {
s.AdjustmentType = &v
return s
}
// SetCoolDown sets the CoolDown field's value.
func (s *SimpleScalingPolicyConfiguration) SetCoolDown(v int64) *SimpleScalingPolicyConfiguration {
s.CoolDown = &v
return s
}
// SetScalingAdjustment sets the ScalingAdjustment field's value.
func (s *SimpleScalingPolicyConfiguration) SetScalingAdjustment(v int64) *SimpleScalingPolicyConfiguration {
s.ScalingAdjustment = &v
return s
}
// This represents a step in a cluster.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/Step
type Step struct {
_ struct{} `type:"structure"`
// This specifies what action to take when the cluster step fails. Possible
// values are TERMINATE_CLUSTER, CANCEL_AND_WAIT, and CONTINUE.
ActionOnFailure *string `type:"string" enum:"ActionOnFailure"`
// The Hadoop job configuration of the cluster step.
Config *HadoopStepConfig `type:"structure"`
// The identifier of the cluster step.
Id *string `type:"string"`
// The name of the cluster step.
Name *string `type:"string"`
// The current execution status details of the cluster step.
Status *StepStatus `type:"structure"`
}
// String returns the string representation
func (s Step) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Step) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetActionOnFailure sets the ActionOnFailure field's value.
func (s *Step) SetActionOnFailure(v string) *Step {
s.ActionOnFailure = &v
return s
}
// SetConfig sets the Config field's value.
func (s *Step) SetConfig(v *HadoopStepConfig) *Step {
s.Config = v
return s
}
// SetId sets the Id field's value.
func (s *Step) SetId(v string) *Step {
s.Id = &v
return s
}
// SetName sets the Name field's value.
func (s *Step) SetName(v string) *Step {
s.Name = &v
return s
}
// SetStatus sets the Status field's value.
func (s *Step) SetStatus(v *StepStatus) *Step {
s.Status = v
return s
}
// Specification of a job flow step.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/StepConfig
type StepConfig struct {
_ struct{} `type:"structure"`
// The action to take if the job flow step fails.
ActionOnFailure *string `type:"string" enum:"ActionOnFailure"`
// The JAR file used for the job flow step.
2016-10-17 23:21:08 +02:00
//
// HadoopJarStep is a required field
HadoopJarStep *HadoopJarStepConfig `type:"structure" required:"true"`
// The name of the job flow step.
2016-10-17 23:21:08 +02:00
//
// Name is a required field
Name *string `type:"string" required:"true"`
}
// String returns the string representation
func (s StepConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s StepConfig) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *StepConfig) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "StepConfig"}
if s.HadoopJarStep == nil {
invalidParams.Add(request.NewErrParamRequired("HadoopJarStep"))
}
if s.Name == nil {
invalidParams.Add(request.NewErrParamRequired("Name"))
}
if s.HadoopJarStep != nil {
if err := s.HadoopJarStep.Validate(); err != nil {
invalidParams.AddNested("HadoopJarStep", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetActionOnFailure sets the ActionOnFailure field's value.
func (s *StepConfig) SetActionOnFailure(v string) *StepConfig {
s.ActionOnFailure = &v
return s
}
// SetHadoopJarStep sets the HadoopJarStep field's value.
func (s *StepConfig) SetHadoopJarStep(v *HadoopJarStepConfig) *StepConfig {
s.HadoopJarStep = v
return s
}
// SetName sets the Name field's value.
func (s *StepConfig) SetName(v string) *StepConfig {
s.Name = &v
return s
}
// Combines the execution state and configuration of a step.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/StepDetail
type StepDetail struct {
_ struct{} `type:"structure"`
// The description of the step status.
2016-10-17 23:21:08 +02:00
//
// ExecutionStatusDetail is a required field
ExecutionStatusDetail *StepExecutionStatusDetail `type:"structure" required:"true"`
// The step configuration.
2016-10-17 23:21:08 +02:00
//
// StepConfig is a required field
StepConfig *StepConfig `type:"structure" required:"true"`
}
// String returns the string representation
func (s StepDetail) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s StepDetail) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetExecutionStatusDetail sets the ExecutionStatusDetail field's value.
func (s *StepDetail) SetExecutionStatusDetail(v *StepExecutionStatusDetail) *StepDetail {
s.ExecutionStatusDetail = v
return s
}
// SetStepConfig sets the StepConfig field's value.
func (s *StepDetail) SetStepConfig(v *StepConfig) *StepDetail {
s.StepConfig = v
return s
}
// The execution state of a step.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/StepExecutionStatusDetail
type StepExecutionStatusDetail struct {
_ struct{} `type:"structure"`
// The creation date and time of the step.
2016-10-17 23:21:08 +02:00
//
// CreationDateTime is a required field
CreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
// The completion date and time of the step.
EndDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
// A description of the step's current state.
LastStateChangeReason *string `type:"string"`
// The start date and time of the step.
StartDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
// The state of the job flow step.
2016-10-17 23:21:08 +02:00
//
// State is a required field
State *string `type:"string" required:"true" enum:"StepExecutionState"`
}
// String returns the string representation
func (s StepExecutionStatusDetail) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s StepExecutionStatusDetail) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetCreationDateTime sets the CreationDateTime field's value.
func (s *StepExecutionStatusDetail) SetCreationDateTime(v time.Time) *StepExecutionStatusDetail {
s.CreationDateTime = &v
return s
}
// SetEndDateTime sets the EndDateTime field's value.
func (s *StepExecutionStatusDetail) SetEndDateTime(v time.Time) *StepExecutionStatusDetail {
s.EndDateTime = &v
return s
}
// SetLastStateChangeReason sets the LastStateChangeReason field's value.
func (s *StepExecutionStatusDetail) SetLastStateChangeReason(v string) *StepExecutionStatusDetail {
s.LastStateChangeReason = &v
return s
}
// SetStartDateTime sets the StartDateTime field's value.
func (s *StepExecutionStatusDetail) SetStartDateTime(v time.Time) *StepExecutionStatusDetail {
s.StartDateTime = &v
return s
}
// SetState sets the State field's value.
func (s *StepExecutionStatusDetail) SetState(v string) *StepExecutionStatusDetail {
s.State = &v
return s
}
// The details of the step state change reason.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/StepStateChangeReason
type StepStateChangeReason struct {
_ struct{} `type:"structure"`
// The programmable code for the state change reason. Note: Currently, the service
// provides no code for the state change.
Code *string `type:"string" enum:"StepStateChangeReasonCode"`
// The descriptive message for the state change reason.
Message *string `type:"string"`
}
// String returns the string representation
func (s StepStateChangeReason) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s StepStateChangeReason) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetCode sets the Code field's value.
func (s *StepStateChangeReason) SetCode(v string) *StepStateChangeReason {
s.Code = &v
return s
}
// SetMessage sets the Message field's value.
func (s *StepStateChangeReason) SetMessage(v string) *StepStateChangeReason {
s.Message = &v
return s
}
// The execution status details of the cluster step.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/StepStatus
type StepStatus struct {
_ struct{} `type:"structure"`
// The details for the step failure including reason, message, and log file
// path where the root cause was identified.
FailureDetails *FailureDetails `type:"structure"`
// The execution state of the cluster step.
State *string `type:"string" enum:"StepState"`
// The reason for the step execution status change.
StateChangeReason *StepStateChangeReason `type:"structure"`
// The timeline of the cluster step status over time.
Timeline *StepTimeline `type:"structure"`
}
// String returns the string representation
func (s StepStatus) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s StepStatus) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetFailureDetails sets the FailureDetails field's value.
func (s *StepStatus) SetFailureDetails(v *FailureDetails) *StepStatus {
s.FailureDetails = v
return s
}
// SetState sets the State field's value.
func (s *StepStatus) SetState(v string) *StepStatus {
s.State = &v
return s
}
// SetStateChangeReason sets the StateChangeReason field's value.
func (s *StepStatus) SetStateChangeReason(v *StepStateChangeReason) *StepStatus {
s.StateChangeReason = v
return s
}
// SetTimeline sets the Timeline field's value.
func (s *StepStatus) SetTimeline(v *StepTimeline) *StepStatus {
s.Timeline = v
return s
}
// The summary of the cluster step.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/StepSummary
type StepSummary struct {
_ struct{} `type:"structure"`
// This specifies what action to take when the cluster step fails. Possible
// values are TERMINATE_CLUSTER, CANCEL_AND_WAIT, and CONTINUE.
ActionOnFailure *string `type:"string" enum:"ActionOnFailure"`
// The Hadoop job configuration of the cluster step.
Config *HadoopStepConfig `type:"structure"`
// The identifier of the cluster step.
Id *string `type:"string"`
// The name of the cluster step.
Name *string `type:"string"`
// The current execution status details of the cluster step.
Status *StepStatus `type:"structure"`
}
// String returns the string representation
func (s StepSummary) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s StepSummary) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetActionOnFailure sets the ActionOnFailure field's value.
func (s *StepSummary) SetActionOnFailure(v string) *StepSummary {
s.ActionOnFailure = &v
return s
}
// SetConfig sets the Config field's value.
func (s *StepSummary) SetConfig(v *HadoopStepConfig) *StepSummary {
s.Config = v
return s
}
// SetId sets the Id field's value.
func (s *StepSummary) SetId(v string) *StepSummary {
s.Id = &v
return s
}
// SetName sets the Name field's value.
func (s *StepSummary) SetName(v string) *StepSummary {
s.Name = &v
return s
}
// SetStatus sets the Status field's value.
func (s *StepSummary) SetStatus(v *StepStatus) *StepSummary {
s.Status = v
return s
}
// The timeline of the cluster step lifecycle.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/StepTimeline
type StepTimeline struct {
_ struct{} `type:"structure"`
// The date and time when the cluster step was created.
CreationDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
// The date and time when the cluster step execution completed or failed.
EndDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
// The date and time when the cluster step execution started.
StartDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
}
// String returns the string representation
func (s StepTimeline) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s StepTimeline) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetCreationDateTime sets the CreationDateTime field's value.
func (s *StepTimeline) SetCreationDateTime(v time.Time) *StepTimeline {
s.CreationDateTime = &v
return s
}
// SetEndDateTime sets the EndDateTime field's value.
func (s *StepTimeline) SetEndDateTime(v time.Time) *StepTimeline {
s.EndDateTime = &v
return s
}
// SetStartDateTime sets the StartDateTime field's value.
func (s *StepTimeline) SetStartDateTime(v time.Time) *StepTimeline {
s.StartDateTime = &v
return s
}
// The list of supported product configurations which allow user-supplied arguments.
// EMR accepts these arguments and forwards them to the corresponding installation
// script as bootstrap action arguments.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/SupportedProductConfig
type SupportedProductConfig struct {
_ struct{} `type:"structure"`
// The list of user-supplied arguments.
Args []*string `type:"list"`
// The name of the product configuration.
Name *string `type:"string"`
}
// String returns the string representation
func (s SupportedProductConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SupportedProductConfig) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetArgs sets the Args field's value.
func (s *SupportedProductConfig) SetArgs(v []*string) *SupportedProductConfig {
s.Args = v
return s
}
// SetName sets the Name field's value.
func (s *SupportedProductConfig) SetName(v string) *SupportedProductConfig {
s.Name = &v
return s
}
// A key/value pair containing user-defined metadata that you can associate
// with an Amazon EMR resource. Tags make it easier to associate clusters in
2016-11-19 19:41:01 +01:00
// various ways, such as grouping clusters to track your Amazon EMR resource
// allocation costs. For more information, see Tagging Amazon EMR Resources
// (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/emr-plan-tags.html).
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/Tag
type Tag struct {
_ struct{} `type:"structure"`
// A user-defined key, which is the minimum required information for a valid
// tag. For more information, see Tagging Amazon EMR Resources (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/emr-plan-tags.html).
Key *string `type:"string"`
// A user-defined value, which is optional in a tag. For more information, see
// Tagging Amazon EMR Resources (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/emr-plan-tags.html).
Value *string `type:"string"`
}
// String returns the string representation
func (s Tag) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Tag) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// SetKey sets the Key field's value.
func (s *Tag) SetKey(v string) *Tag {
s.Key = &v
return s
}
// SetValue sets the Value field's value.
func (s *Tag) SetValue(v string) *Tag {
s.Value = &v
return s
}
// Input to the TerminateJobFlows operation.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/TerminateJobFlowsInput
type TerminateJobFlowsInput struct {
_ struct{} `type:"structure"`
// A list of job flows to be shutdown.
2016-10-17 23:21:08 +02:00
//
// JobFlowIds is a required field
JobFlowIds []*string `type:"list" required:"true"`
}
// String returns the string representation
func (s TerminateJobFlowsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s TerminateJobFlowsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *TerminateJobFlowsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "TerminateJobFlowsInput"}
if s.JobFlowIds == nil {
invalidParams.Add(request.NewErrParamRequired("JobFlowIds"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetJobFlowIds sets the JobFlowIds field's value.
func (s *TerminateJobFlowsInput) SetJobFlowIds(v []*string) *TerminateJobFlowsInput {
s.JobFlowIds = v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/TerminateJobFlowsOutput
type TerminateJobFlowsOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s TerminateJobFlowsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s TerminateJobFlowsOutput) GoString() string {
return s.String()
}
2016-11-19 19:41:01 +01:00
// EBS volume specifications such as volume type, IOPS, and size (GiB) that
// will be requested for the EBS volume attached to an EC2 instance in the cluster.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/VolumeSpecification
type VolumeSpecification struct {
_ struct{} `type:"structure"`
// The number of I/O operations per second (IOPS) that the volume supports.
Iops *int64 `type:"integer"`
// The volume size, in gibibytes (GiB). This can be a number from 1 - 1024.
// If the volume type is EBS-optimized, the minimum value is 10.
2016-10-17 23:21:08 +02:00
//
// SizeInGB is a required field
SizeInGB *int64 `type:"integer" required:"true"`
// The volume type. Volume types supported are gp2, io1, standard.
2016-10-17 23:21:08 +02:00
//
// VolumeType is a required field
VolumeType *string `type:"string" required:"true"`
}
// String returns the string representation
func (s VolumeSpecification) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s VolumeSpecification) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *VolumeSpecification) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "VolumeSpecification"}
if s.SizeInGB == nil {
invalidParams.Add(request.NewErrParamRequired("SizeInGB"))
}
if s.VolumeType == nil {
invalidParams.Add(request.NewErrParamRequired("VolumeType"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
2016-11-19 19:41:01 +01:00
// SetIops sets the Iops field's value.
func (s *VolumeSpecification) SetIops(v int64) *VolumeSpecification {
s.Iops = &v
return s
}
// SetSizeInGB sets the SizeInGB field's value.
func (s *VolumeSpecification) SetSizeInGB(v int64) *VolumeSpecification {
s.SizeInGB = &v
return s
}
// SetVolumeType sets the VolumeType field's value.
func (s *VolumeSpecification) SetVolumeType(v string) *VolumeSpecification {
s.VolumeType = &v
return s
}
const (
2016-10-17 23:21:08 +02:00
// ActionOnFailureTerminateJobFlow is a ActionOnFailure enum value
ActionOnFailureTerminateJobFlow = "TERMINATE_JOB_FLOW"
2016-10-17 23:21:08 +02:00
// ActionOnFailureTerminateCluster is a ActionOnFailure enum value
ActionOnFailureTerminateCluster = "TERMINATE_CLUSTER"
2016-10-17 23:21:08 +02:00
// ActionOnFailureCancelAndWait is a ActionOnFailure enum value
ActionOnFailureCancelAndWait = "CANCEL_AND_WAIT"
2016-10-17 23:21:08 +02:00
// ActionOnFailureContinue is a ActionOnFailure enum value
ActionOnFailureContinue = "CONTINUE"
)
2016-11-19 19:41:01 +01:00
const (
// AdjustmentTypeChangeInCapacity is a AdjustmentType enum value
AdjustmentTypeChangeInCapacity = "CHANGE_IN_CAPACITY"
// AdjustmentTypePercentChangeInCapacity is a AdjustmentType enum value
AdjustmentTypePercentChangeInCapacity = "PERCENT_CHANGE_IN_CAPACITY"
// AdjustmentTypeExactCapacity is a AdjustmentType enum value
AdjustmentTypeExactCapacity = "EXACT_CAPACITY"
)
const (
// AutoScalingPolicyStatePending is a AutoScalingPolicyState enum value
AutoScalingPolicyStatePending = "PENDING"
// AutoScalingPolicyStateAttaching is a AutoScalingPolicyState enum value
AutoScalingPolicyStateAttaching = "ATTACHING"
// AutoScalingPolicyStateAttached is a AutoScalingPolicyState enum value
AutoScalingPolicyStateAttached = "ATTACHED"
// AutoScalingPolicyStateDetaching is a AutoScalingPolicyState enum value
AutoScalingPolicyStateDetaching = "DETACHING"
// AutoScalingPolicyStateDetached is a AutoScalingPolicyState enum value
AutoScalingPolicyStateDetached = "DETACHED"
// AutoScalingPolicyStateFailed is a AutoScalingPolicyState enum value
AutoScalingPolicyStateFailed = "FAILED"
)
const (
// AutoScalingPolicyStateChangeReasonCodeUserRequest is a AutoScalingPolicyStateChangeReasonCode enum value
AutoScalingPolicyStateChangeReasonCodeUserRequest = "USER_REQUEST"
// AutoScalingPolicyStateChangeReasonCodeProvisionFailure is a AutoScalingPolicyStateChangeReasonCode enum value
AutoScalingPolicyStateChangeReasonCodeProvisionFailure = "PROVISION_FAILURE"
// AutoScalingPolicyStateChangeReasonCodeCleanupFailure is a AutoScalingPolicyStateChangeReasonCode enum value
AutoScalingPolicyStateChangeReasonCodeCleanupFailure = "CLEANUP_FAILURE"
)
const (
// CancelStepsRequestStatusSubmitted is a CancelStepsRequestStatus enum value
CancelStepsRequestStatusSubmitted = "SUBMITTED"
// CancelStepsRequestStatusFailed is a CancelStepsRequestStatus enum value
CancelStepsRequestStatusFailed = "FAILED"
)
const (
2016-10-17 23:21:08 +02:00
// ClusterStateStarting is a ClusterState enum value
ClusterStateStarting = "STARTING"
2016-10-17 23:21:08 +02:00
// ClusterStateBootstrapping is a ClusterState enum value
ClusterStateBootstrapping = "BOOTSTRAPPING"
2016-10-17 23:21:08 +02:00
// ClusterStateRunning is a ClusterState enum value
ClusterStateRunning = "RUNNING"
2016-10-17 23:21:08 +02:00
// ClusterStateWaiting is a ClusterState enum value
ClusterStateWaiting = "WAITING"
2016-10-17 23:21:08 +02:00
// ClusterStateTerminating is a ClusterState enum value
ClusterStateTerminating = "TERMINATING"
2016-10-17 23:21:08 +02:00
// ClusterStateTerminated is a ClusterState enum value
ClusterStateTerminated = "TERMINATED"
2016-10-17 23:21:08 +02:00
// ClusterStateTerminatedWithErrors is a ClusterState enum value
ClusterStateTerminatedWithErrors = "TERMINATED_WITH_ERRORS"
)
const (
2016-10-17 23:21:08 +02:00
// ClusterStateChangeReasonCodeInternalError is a ClusterStateChangeReasonCode enum value
ClusterStateChangeReasonCodeInternalError = "INTERNAL_ERROR"
2016-10-17 23:21:08 +02:00
// ClusterStateChangeReasonCodeValidationError is a ClusterStateChangeReasonCode enum value
ClusterStateChangeReasonCodeValidationError = "VALIDATION_ERROR"
2016-10-17 23:21:08 +02:00
// ClusterStateChangeReasonCodeInstanceFailure is a ClusterStateChangeReasonCode enum value
ClusterStateChangeReasonCodeInstanceFailure = "INSTANCE_FAILURE"
2016-10-17 23:21:08 +02:00
// ClusterStateChangeReasonCodeBootstrapFailure is a ClusterStateChangeReasonCode enum value
ClusterStateChangeReasonCodeBootstrapFailure = "BOOTSTRAP_FAILURE"
2016-10-17 23:21:08 +02:00
// ClusterStateChangeReasonCodeUserRequest is a ClusterStateChangeReasonCode enum value
ClusterStateChangeReasonCodeUserRequest = "USER_REQUEST"
2016-10-17 23:21:08 +02:00
// ClusterStateChangeReasonCodeStepFailure is a ClusterStateChangeReasonCode enum value
ClusterStateChangeReasonCodeStepFailure = "STEP_FAILURE"
2016-10-17 23:21:08 +02:00
// ClusterStateChangeReasonCodeAllStepsCompleted is a ClusterStateChangeReasonCode enum value
ClusterStateChangeReasonCodeAllStepsCompleted = "ALL_STEPS_COMPLETED"
)
2016-11-19 19:41:01 +01:00
const (
// ComparisonOperatorGreaterThanOrEqual is a ComparisonOperator enum value
ComparisonOperatorGreaterThanOrEqual = "GREATER_THAN_OR_EQUAL"
// ComparisonOperatorGreaterThan is a ComparisonOperator enum value
ComparisonOperatorGreaterThan = "GREATER_THAN"
// ComparisonOperatorLessThan is a ComparisonOperator enum value
ComparisonOperatorLessThan = "LESS_THAN"
// ComparisonOperatorLessThanOrEqual is a ComparisonOperator enum value
ComparisonOperatorLessThanOrEqual = "LESS_THAN_OR_EQUAL"
)
const (
2016-10-17 23:21:08 +02:00
// InstanceGroupStateProvisioning is a InstanceGroupState enum value
InstanceGroupStateProvisioning = "PROVISIONING"
2016-10-17 23:21:08 +02:00
// InstanceGroupStateBootstrapping is a InstanceGroupState enum value
InstanceGroupStateBootstrapping = "BOOTSTRAPPING"
2016-10-17 23:21:08 +02:00
// InstanceGroupStateRunning is a InstanceGroupState enum value
InstanceGroupStateRunning = "RUNNING"
2016-10-17 23:21:08 +02:00
// InstanceGroupStateResizing is a InstanceGroupState enum value
InstanceGroupStateResizing = "RESIZING"
2016-10-17 23:21:08 +02:00
// InstanceGroupStateSuspended is a InstanceGroupState enum value
InstanceGroupStateSuspended = "SUSPENDED"
2016-10-17 23:21:08 +02:00
// InstanceGroupStateTerminating is a InstanceGroupState enum value
InstanceGroupStateTerminating = "TERMINATING"
2016-10-17 23:21:08 +02:00
// InstanceGroupStateTerminated is a InstanceGroupState enum value
InstanceGroupStateTerminated = "TERMINATED"
2016-10-17 23:21:08 +02:00
// InstanceGroupStateArrested is a InstanceGroupState enum value
InstanceGroupStateArrested = "ARRESTED"
2016-10-17 23:21:08 +02:00
// InstanceGroupStateShuttingDown is a InstanceGroupState enum value
InstanceGroupStateShuttingDown = "SHUTTING_DOWN"
2016-10-17 23:21:08 +02:00
// InstanceGroupStateEnded is a InstanceGroupState enum value
InstanceGroupStateEnded = "ENDED"
)
const (
2016-10-17 23:21:08 +02:00
// InstanceGroupStateChangeReasonCodeInternalError is a InstanceGroupStateChangeReasonCode enum value
InstanceGroupStateChangeReasonCodeInternalError = "INTERNAL_ERROR"
2016-10-17 23:21:08 +02:00
// InstanceGroupStateChangeReasonCodeValidationError is a InstanceGroupStateChangeReasonCode enum value
InstanceGroupStateChangeReasonCodeValidationError = "VALIDATION_ERROR"
2016-10-17 23:21:08 +02:00
// InstanceGroupStateChangeReasonCodeInstanceFailure is a InstanceGroupStateChangeReasonCode enum value
InstanceGroupStateChangeReasonCodeInstanceFailure = "INSTANCE_FAILURE"
2016-10-17 23:21:08 +02:00
// InstanceGroupStateChangeReasonCodeClusterTerminated is a InstanceGroupStateChangeReasonCode enum value
InstanceGroupStateChangeReasonCodeClusterTerminated = "CLUSTER_TERMINATED"
)
const (
2016-10-17 23:21:08 +02:00
// InstanceGroupTypeMaster is a InstanceGroupType enum value
InstanceGroupTypeMaster = "MASTER"
2016-10-17 23:21:08 +02:00
// InstanceGroupTypeCore is a InstanceGroupType enum value
InstanceGroupTypeCore = "CORE"
2016-10-17 23:21:08 +02:00
// InstanceGroupTypeTask is a InstanceGroupType enum value
InstanceGroupTypeTask = "TASK"
)
const (
2016-10-17 23:21:08 +02:00
// InstanceRoleTypeMaster is a InstanceRoleType enum value
InstanceRoleTypeMaster = "MASTER"
2016-10-17 23:21:08 +02:00
// InstanceRoleTypeCore is a InstanceRoleType enum value
InstanceRoleTypeCore = "CORE"
2016-10-17 23:21:08 +02:00
// InstanceRoleTypeTask is a InstanceRoleType enum value
InstanceRoleTypeTask = "TASK"
)
const (
2016-10-17 23:21:08 +02:00
// InstanceStateAwaitingFulfillment is a InstanceState enum value
InstanceStateAwaitingFulfillment = "AWAITING_FULFILLMENT"
2016-10-17 23:21:08 +02:00
// InstanceStateProvisioning is a InstanceState enum value
InstanceStateProvisioning = "PROVISIONING"
2016-10-17 23:21:08 +02:00
// InstanceStateBootstrapping is a InstanceState enum value
InstanceStateBootstrapping = "BOOTSTRAPPING"
2016-10-17 23:21:08 +02:00
// InstanceStateRunning is a InstanceState enum value
InstanceStateRunning = "RUNNING"
2016-10-17 23:21:08 +02:00
// InstanceStateTerminated is a InstanceState enum value
InstanceStateTerminated = "TERMINATED"
)
const (
2016-10-17 23:21:08 +02:00
// InstanceStateChangeReasonCodeInternalError is a InstanceStateChangeReasonCode enum value
InstanceStateChangeReasonCodeInternalError = "INTERNAL_ERROR"
2016-10-17 23:21:08 +02:00
// InstanceStateChangeReasonCodeValidationError is a InstanceStateChangeReasonCode enum value
InstanceStateChangeReasonCodeValidationError = "VALIDATION_ERROR"
2016-10-17 23:21:08 +02:00
// InstanceStateChangeReasonCodeInstanceFailure is a InstanceStateChangeReasonCode enum value
InstanceStateChangeReasonCodeInstanceFailure = "INSTANCE_FAILURE"
2016-10-17 23:21:08 +02:00
// InstanceStateChangeReasonCodeBootstrapFailure is a InstanceStateChangeReasonCode enum value
InstanceStateChangeReasonCodeBootstrapFailure = "BOOTSTRAP_FAILURE"
2016-10-17 23:21:08 +02:00
// InstanceStateChangeReasonCodeClusterTerminated is a InstanceStateChangeReasonCode enum value
InstanceStateChangeReasonCodeClusterTerminated = "CLUSTER_TERMINATED"
)
// The type of instance.
const (
2016-10-17 23:21:08 +02:00
// JobFlowExecutionStateStarting is a JobFlowExecutionState enum value
JobFlowExecutionStateStarting = "STARTING"
2016-10-17 23:21:08 +02:00
// JobFlowExecutionStateBootstrapping is a JobFlowExecutionState enum value
JobFlowExecutionStateBootstrapping = "BOOTSTRAPPING"
2016-10-17 23:21:08 +02:00
// JobFlowExecutionStateRunning is a JobFlowExecutionState enum value
JobFlowExecutionStateRunning = "RUNNING"
2016-10-17 23:21:08 +02:00
// JobFlowExecutionStateWaiting is a JobFlowExecutionState enum value
JobFlowExecutionStateWaiting = "WAITING"
2016-10-17 23:21:08 +02:00
// JobFlowExecutionStateShuttingDown is a JobFlowExecutionState enum value
JobFlowExecutionStateShuttingDown = "SHUTTING_DOWN"
2016-10-17 23:21:08 +02:00
// JobFlowExecutionStateTerminated is a JobFlowExecutionState enum value
JobFlowExecutionStateTerminated = "TERMINATED"
2016-10-17 23:21:08 +02:00
// JobFlowExecutionStateCompleted is a JobFlowExecutionState enum value
JobFlowExecutionStateCompleted = "COMPLETED"
2016-10-17 23:21:08 +02:00
// JobFlowExecutionStateFailed is a JobFlowExecutionState enum value
JobFlowExecutionStateFailed = "FAILED"
)
const (
2016-10-17 23:21:08 +02:00
// MarketTypeOnDemand is a MarketType enum value
MarketTypeOnDemand = "ON_DEMAND"
2016-10-17 23:21:08 +02:00
// MarketTypeSpot is a MarketType enum value
MarketTypeSpot = "SPOT"
)
2016-11-19 19:41:01 +01:00
const (
// ScaleDownBehaviorTerminateAtInstanceHour is a ScaleDownBehavior enum value
ScaleDownBehaviorTerminateAtInstanceHour = "TERMINATE_AT_INSTANCE_HOUR"
// ScaleDownBehaviorTerminateAtTaskCompletion is a ScaleDownBehavior enum value
ScaleDownBehaviorTerminateAtTaskCompletion = "TERMINATE_AT_TASK_COMPLETION"
)
const (
// StatisticSampleCount is a Statistic enum value
StatisticSampleCount = "SAMPLE_COUNT"
// StatisticAverage is a Statistic enum value
StatisticAverage = "AVERAGE"
// StatisticSum is a Statistic enum value
StatisticSum = "SUM"
// StatisticMinimum is a Statistic enum value
StatisticMinimum = "MINIMUM"
// StatisticMaximum is a Statistic enum value
StatisticMaximum = "MAXIMUM"
)
const (
2016-10-17 23:21:08 +02:00
// StepExecutionStatePending is a StepExecutionState enum value
StepExecutionStatePending = "PENDING"
2016-10-17 23:21:08 +02:00
// StepExecutionStateRunning is a StepExecutionState enum value
StepExecutionStateRunning = "RUNNING"
2016-10-17 23:21:08 +02:00
// StepExecutionStateContinue is a StepExecutionState enum value
StepExecutionStateContinue = "CONTINUE"
2016-10-17 23:21:08 +02:00
// StepExecutionStateCompleted is a StepExecutionState enum value
StepExecutionStateCompleted = "COMPLETED"
2016-10-17 23:21:08 +02:00
// StepExecutionStateCancelled is a StepExecutionState enum value
StepExecutionStateCancelled = "CANCELLED"
2016-10-17 23:21:08 +02:00
// StepExecutionStateFailed is a StepExecutionState enum value
StepExecutionStateFailed = "FAILED"
2016-10-17 23:21:08 +02:00
// StepExecutionStateInterrupted is a StepExecutionState enum value
StepExecutionStateInterrupted = "INTERRUPTED"
)
const (
2016-10-17 23:21:08 +02:00
// StepStatePending is a StepState enum value
StepStatePending = "PENDING"
2016-10-17 23:21:08 +02:00
2016-11-19 19:41:01 +01:00
// StepStateCancelPending is a StepState enum value
StepStateCancelPending = "CANCEL_PENDING"
2016-10-17 23:21:08 +02:00
// StepStateRunning is a StepState enum value
StepStateRunning = "RUNNING"
2016-10-17 23:21:08 +02:00
// StepStateCompleted is a StepState enum value
StepStateCompleted = "COMPLETED"
2016-10-17 23:21:08 +02:00
// StepStateCancelled is a StepState enum value
StepStateCancelled = "CANCELLED"
2016-10-17 23:21:08 +02:00
// StepStateFailed is a StepState enum value
StepStateFailed = "FAILED"
2016-10-17 23:21:08 +02:00
// StepStateInterrupted is a StepState enum value
StepStateInterrupted = "INTERRUPTED"
)
const (
2016-10-17 23:21:08 +02:00
// StepStateChangeReasonCodeNone is a StepStateChangeReasonCode enum value
StepStateChangeReasonCodeNone = "NONE"
)
2016-11-19 19:41:01 +01:00
const (
// UnitNone is a Unit enum value
UnitNone = "NONE"
// UnitSeconds is a Unit enum value
UnitSeconds = "SECONDS"
// UnitMicroSeconds is a Unit enum value
UnitMicroSeconds = "MICRO_SECONDS"
// UnitMilliSeconds is a Unit enum value
UnitMilliSeconds = "MILLI_SECONDS"
// UnitBytes is a Unit enum value
UnitBytes = "BYTES"
// UnitKiloBytes is a Unit enum value
UnitKiloBytes = "KILO_BYTES"
// UnitMegaBytes is a Unit enum value
UnitMegaBytes = "MEGA_BYTES"
// UnitGigaBytes is a Unit enum value
UnitGigaBytes = "GIGA_BYTES"
// UnitTeraBytes is a Unit enum value
UnitTeraBytes = "TERA_BYTES"
// UnitBits is a Unit enum value
UnitBits = "BITS"
// UnitKiloBits is a Unit enum value
UnitKiloBits = "KILO_BITS"
// UnitMegaBits is a Unit enum value
UnitMegaBits = "MEGA_BITS"
// UnitGigaBits is a Unit enum value
UnitGigaBits = "GIGA_BITS"
// UnitTeraBits is a Unit enum value
UnitTeraBits = "TERA_BITS"
// UnitPercent is a Unit enum value
UnitPercent = "PERCENT"
// UnitCount is a Unit enum value
UnitCount = "COUNT"
// UnitBytesPerSecond is a Unit enum value
UnitBytesPerSecond = "BYTES_PER_SECOND"
// UnitKiloBytesPerSecond is a Unit enum value
UnitKiloBytesPerSecond = "KILO_BYTES_PER_SECOND"
// UnitMegaBytesPerSecond is a Unit enum value
UnitMegaBytesPerSecond = "MEGA_BYTES_PER_SECOND"
// UnitGigaBytesPerSecond is a Unit enum value
UnitGigaBytesPerSecond = "GIGA_BYTES_PER_SECOND"
// UnitTeraBytesPerSecond is a Unit enum value
UnitTeraBytesPerSecond = "TERA_BYTES_PER_SECOND"
// UnitBitsPerSecond is a Unit enum value
UnitBitsPerSecond = "BITS_PER_SECOND"
// UnitKiloBitsPerSecond is a Unit enum value
UnitKiloBitsPerSecond = "KILO_BITS_PER_SECOND"
// UnitMegaBitsPerSecond is a Unit enum value
UnitMegaBitsPerSecond = "MEGA_BITS_PER_SECOND"
// UnitGigaBitsPerSecond is a Unit enum value
UnitGigaBitsPerSecond = "GIGA_BITS_PER_SECOND"
// UnitTeraBitsPerSecond is a Unit enum value
UnitTeraBitsPerSecond = "TERA_BITS_PER_SECOND"
// UnitCountPerSecond is a Unit enum value
UnitCountPerSecond = "COUNT_PER_SECOND"
)