emr

package module
v0.26.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2020 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const ServiceAPIVersion = "2009-03-31"
View Source
const ServiceID = "EMR"

Variables

This section is empty.

Functions

func AddResolveEndpointMiddleware

func AddResolveEndpointMiddleware(stack *middleware.Stack, options ResolveEndpointMiddlewareOptions)

func NewDefaultEndpointResolver

func NewDefaultEndpointResolver() *internalendpoints.Resolver

NewDefaultEndpointResolver constructs a new service endpoint resolver

func RemoveResolveEndpointMiddleware

func RemoveResolveEndpointMiddleware(stack *middleware.Stack) error

Types

type AddInstanceFleetInput

type AddInstanceFleetInput struct {
	// Specifies the configuration of the instance fleet.
	InstanceFleet *types.InstanceFleetConfig
	// The unique identifier of the cluster.
	ClusterId *string
}

type AddInstanceFleetOutput

type AddInstanceFleetOutput struct {
	// The Amazon Resource Name of the cluster.
	ClusterArn *string
	// The unique identifier of the cluster.
	ClusterId *string
	// The unique identifier of the instance fleet.
	InstanceFleetId *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type AddInstanceGroupsInput

type AddInstanceGroupsInput struct {
	// Job flow in which to add the instance groups.
	JobFlowId *string
	// Instance groups to add.
	InstanceGroups []*types.InstanceGroupConfig
}

Input to an AddInstanceGroups call.

type AddInstanceGroupsOutput

type AddInstanceGroupsOutput struct {
	// The job flow ID in which the instance groups are added.
	JobFlowId *string
	// Instance group IDs of the newly created instance groups.
	InstanceGroupIds []*string
	// The Amazon Resource Name of the cluster.
	ClusterArn *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

Output from an AddInstanceGroups call.

type AddJobFlowStepsInput

type AddJobFlowStepsInput struct {
	// A string that uniquely identifies the job flow. This identifier is returned by
	// RunJobFlow () and can also be obtained from ListClusters ().
	JobFlowId *string
	// A list of StepConfig () to be executed by the job flow.
	Steps []*types.StepConfig
}

The input argument to the AddJobFlowSteps () operation.

type AddJobFlowStepsOutput

type AddJobFlowStepsOutput struct {
	// The identifiers of the list of steps added to the job flow.
	StepIds []*string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

The output for the AddJobFlowSteps () operation.

type AddTagsInput

type AddTagsInput struct {
	// 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.
	Tags []*types.Tag
	// The Amazon EMR resource identifier to which tags will be added. This value must
	// be a cluster identifier.
	ResourceId *string
}

This input identifies a cluster and a list of tags to attach.

type AddTagsOutput

type AddTagsOutput struct {
	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

This output indicates the result of adding tags to a resource.

type CancelStepsInput

type CancelStepsInput struct {
	// The ClusterID for which specified steps will be canceled. Use RunJobFlow () and
	// ListClusters () to get ClusterIDs.
	ClusterId *string
	// The list of StepIDs to cancel. Use ListSteps () to get steps and their states
	// for the specified cluster.
	StepIds []*string
	// The option to choose for cancelling RUNNING steps. By default, the value is
	// SEND_INTERRUPT.
	StepCancellationOption types.StepCancellationOption
}

The input argument to the CancelSteps () operation.

type CancelStepsOutput

type CancelStepsOutput struct {
	// A list of CancelStepsInfo (), which shows the status of specified cancel
	// requests for each StepID specified.
	CancelStepsInfoList []*types.CancelStepsInfo

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

The output for the CancelSteps () operation.

type Client

type Client struct {
	// contains filtered or unexported fields
}

Amazon EMR is a web service that makes it easy to process large amounts of data efficiently. Amazon EMR uses Hadoop processing combined with several AWS products to do tasks such as web indexing, data mining, log file analysis, machine learning, scientific simulation, and data warehousing.

func New

func New(options Options, optFns ...func(*Options)) *Client

New returns an initialized Client based on the functional options. Provide additional functional options to further configure the behavior of the client, such as changing the client's endpoint or adding custom middleware behavior.

func NewFromConfig

func NewFromConfig(cfg aws.Config, optFns ...func(*Options)) *Client

NewFromConfig returns a new client from the provided config.

func (*Client) AddInstanceFleet

func (c *Client) AddInstanceFleet(ctx context.Context, params *AddInstanceFleetInput, optFns ...func(*Options)) (*AddInstanceFleetOutput, error)

Adds an instance fleet to a running cluster. The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x.

func (*Client) AddInstanceGroups

func (c *Client) AddInstanceGroups(ctx context.Context, params *AddInstanceGroupsInput, optFns ...func(*Options)) (*AddInstanceGroupsOutput, error)

Adds one or more instance groups to a running cluster.

func (*Client) AddJobFlowSteps

func (c *Client) AddJobFlowSteps(ctx context.Context, params *AddJobFlowStepsInput, optFns ...func(*Options)) (*AddJobFlowStepsOutput, error)

AddJobFlowSteps adds new steps to a running cluster. A maximum of 256 steps are allowed in each job flow. If your cluster 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 SSH 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 on how to do this, see Add More than 256 Steps to a Cluster (https://docs.aws.amazon.com/emr/latest/ManagementGuide/AddMoreThan256Steps.html) in the Amazon EMR Management Guide. A step specifies the location of a JAR file stored either on the master node of the cluster 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. 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 cluster that is in one of the following states: STARTING, BOOTSTRAPPING, RUNNING, or WAITING.

func (*Client) AddTags

func (c *Client) AddTags(ctx context.Context, params *AddTagsInput, optFns ...func(*Options)) (*AddTagsOutput, error)

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 Tag Clusters (https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-tags.html).

func (*Client) CancelSteps

func (c *Client) CancelSteps(ctx context.Context, params *CancelStepsInput, optFns ...func(*Options)) (*CancelStepsOutput, error)

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.

func (*Client) CreateSecurityConfiguration

func (c *Client) CreateSecurityConfiguration(ctx context.Context, params *CreateSecurityConfigurationInput, optFns ...func(*Options)) (*CreateSecurityConfigurationOutput, error)

Creates a security configuration, which is stored in the service and can be specified when a cluster is created.

func (*Client) DeleteSecurityConfiguration

func (c *Client) DeleteSecurityConfiguration(ctx context.Context, params *DeleteSecurityConfigurationInput, optFns ...func(*Options)) (*DeleteSecurityConfigurationOutput, error)

Deletes a security configuration.

func (*Client) DescribeCluster

func (c *Client) DescribeCluster(ctx context.Context, params *DescribeClusterInput, optFns ...func(*Options)) (*DescribeClusterOutput, error)

Provides cluster-level details including status, hardware and software configuration, VPC settings, and so on.

func (*Client) DescribeJobFlows

func (c *Client) DescribeJobFlows(ctx context.Context, params *DescribeJobFlowsInput, optFns ...func(*Options)) (*DescribeJobFlowsOutput, error)

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:

  • Job flows created and

completed in the last two weeks

  • Job flows created within the last two

months that are in one of the following states: RUNNING, WAITING, SHUTTING_DOWN, STARTING

Amazon EMR can return a maximum of 512 job flow descriptions.

func (*Client) DescribeSecurityConfiguration

func (c *Client) DescribeSecurityConfiguration(ctx context.Context, params *DescribeSecurityConfigurationInput, optFns ...func(*Options)) (*DescribeSecurityConfigurationOutput, error)

Provides the details of a security configuration by returning the configuration JSON.

func (*Client) DescribeStep

func (c *Client) DescribeStep(ctx context.Context, params *DescribeStepInput, optFns ...func(*Options)) (*DescribeStepOutput, error)

Provides more detail about the cluster step.

func (*Client) GetBlockPublicAccessConfiguration

func (c *Client) GetBlockPublicAccessConfiguration(ctx context.Context, params *GetBlockPublicAccessConfigurationInput, optFns ...func(*Options)) (*GetBlockPublicAccessConfigurationOutput, error)

Returns the Amazon EMR block public access configuration for your AWS account in the current Region. For more information see Configure Block Public Access for Amazon EMR (https://docs.aws.amazon.com/emr/latest/ManagementGuide/configure-block-public-access.html) in the Amazon EMR Management Guide.

func (*Client) GetManagedScalingPolicy

func (c *Client) GetManagedScalingPolicy(ctx context.Context, params *GetManagedScalingPolicyInput, optFns ...func(*Options)) (*GetManagedScalingPolicyOutput, error)

Fetches the attached managed scaling policy for an Amazon EMR cluster.

func (*Client) ListBootstrapActions

func (c *Client) ListBootstrapActions(ctx context.Context, params *ListBootstrapActionsInput, optFns ...func(*Options)) (*ListBootstrapActionsOutput, error)

Provides information about the bootstrap actions associated with a cluster.

func (*Client) ListClusters

func (c *Client) ListClusters(ctx context.Context, params *ListClustersInput, optFns ...func(*Options)) (*ListClustersOutput, error)

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.

func (*Client) ListInstanceFleets

func (c *Client) ListInstanceFleets(ctx context.Context, params *ListInstanceFleetsInput, optFns ...func(*Options)) (*ListInstanceFleetsOutput, error)

Lists all available details about the instance fleets in a cluster. The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.

func (*Client) ListInstanceGroups

func (c *Client) ListInstanceGroups(ctx context.Context, params *ListInstanceGroupsInput, optFns ...func(*Options)) (*ListInstanceGroupsOutput, error)

Provides all available details about the instance groups in a cluster.

func (*Client) ListInstances

func (c *Client) ListInstances(ctx context.Context, params *ListInstancesInput, optFns ...func(*Options)) (*ListInstancesOutput, error)

Provides information for all active EC2 instances and EC2 instances terminated in the last 30 days, up to a maximum of 2,000. EC2 instances in any of the following states are considered active: AWAITING_FULFILLMENT, PROVISIONING, BOOTSTRAPPING, RUNNING.

func (*Client) ListSecurityConfigurations

func (c *Client) ListSecurityConfigurations(ctx context.Context, params *ListSecurityConfigurationsInput, optFns ...func(*Options)) (*ListSecurityConfigurationsOutput, error)

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.

func (*Client) ListSteps

func (c *Client) ListSteps(ctx context.Context, params *ListStepsInput, optFns ...func(*Options)) (*ListStepsOutput, error)

Provides a list of steps for the cluster in reverse order unless you specify stepIds with the request of filter by StepStates. You can specify a maximum of ten stepIDs.

func (*Client) ModifyCluster

func (c *Client) ModifyCluster(ctx context.Context, params *ModifyClusterInput, optFns ...func(*Options)) (*ModifyClusterOutput, error)

Modifies the number of steps that can be executed concurrently for the cluster specified using ClusterID.

func (*Client) ModifyInstanceFleet

func (c *Client) ModifyInstanceFleet(ctx context.Context, params *ModifyInstanceFleetInput, optFns ...func(*Options)) (*ModifyInstanceFleetOutput, error)

Modifies the target On-Demand and target Spot capacities for the instance fleet with the specified InstanceFleetID within the cluster specified using ClusterID. The call either succeeds or fails atomically. The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.

func (*Client) ModifyInstanceGroups

func (c *Client) ModifyInstanceGroups(ctx context.Context, params *ModifyInstanceGroupsInput, optFns ...func(*Options)) (*ModifyInstanceGroupsOutput, error)

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.

func (*Client) PutAutoScalingPolicy

func (c *Client) PutAutoScalingPolicy(ctx context.Context, params *PutAutoScalingPolicyInput, optFns ...func(*Options)) (*PutAutoScalingPolicyOutput, error)

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.

func (*Client) PutBlockPublicAccessConfiguration

func (c *Client) PutBlockPublicAccessConfiguration(ctx context.Context, params *PutBlockPublicAccessConfigurationInput, optFns ...func(*Options)) (*PutBlockPublicAccessConfigurationOutput, error)

Creates or updates an Amazon EMR block public access configuration for your AWS account in the current Region. For more information see Configure Block Public Access for Amazon EMR (https://docs.aws.amazon.com/emr/latest/ManagementGuide/configure-block-public-access.html) in the Amazon EMR Management Guide.

func (*Client) PutManagedScalingPolicy

func (c *Client) PutManagedScalingPolicy(ctx context.Context, params *PutManagedScalingPolicyInput, optFns ...func(*Options)) (*PutManagedScalingPolicyOutput, error)

Creates or updates a managed scaling policy for an Amazon EMR cluster. The managed scaling policy defines the limits for resources, such as EC2 instances that can be added or terminated from a cluster. The policy only applies to the core and task nodes. The master node cannot be scaled after initial configuration.

func (*Client) RemoveAutoScalingPolicy

func (c *Client) RemoveAutoScalingPolicy(ctx context.Context, params *RemoveAutoScalingPolicyInput, optFns ...func(*Options)) (*RemoveAutoScalingPolicyOutput, error)

Removes an automatic scaling policy from a specified instance group within an EMR cluster.

func (*Client) RemoveManagedScalingPolicy

func (c *Client) RemoveManagedScalingPolicy(ctx context.Context, params *RemoveManagedScalingPolicyInput, optFns ...func(*Options)) (*RemoveManagedScalingPolicyOutput, error)

Removes a managed scaling policy from a specified EMR cluster.

func (*Client) RemoveTags

func (c *Client) RemoveTags(ctx context.Context, params *RemoveTagsInput, optFns ...func(*Options)) (*RemoveTagsOutput, error)

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 Tag Clusters (https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-tags.html). The following example removes the stack tag with value Prod from a cluster:

func (*Client) RunJobFlow

func (c *Client) RunJobFlow(ctx context.Context, params *RunJobFlowInput, optFns ...func(*Options)) (*RunJobFlowOutput, error)

RunJobFlow creates and starts running a new cluster (job flow). The cluster runs the steps specified. After the steps complete, the cluster stops and the HDFS partition is lost. To prevent loss of data, configure the last step of the job flow to store results in Amazon S3. If the JobFlowInstancesConfig ()KeepJobFlowAliveWhenNoSteps parameter is set to TRUE, the cluster transitions to the WAITING state rather than shutting down after the steps have completed. <p>For additional protection, you can set the <a>JobFlowInstancesConfig</a> <code>TerminationProtected</code> parameter to <code>TRUE</code> to lock the cluster and prevent it from being terminated by API call, user intervention, or in the event of a job flow error.</p> <p>A maximum of 256 steps are allowed in each job flow.</p> <p>If your cluster 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 on how to do this, see <a href="https://docs.aws.amazon.com/emr/latest/ManagementGuide/AddMoreThan256Steps.html">Add More than 256 Steps to a Cluster</a> in the <i>Amazon EMR Management Guide</i>.</p> <p>For long running clusters, we recommend that you periodically store your results.</p> <note> <p>The instance fleets configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions. The RunJobFlow request can contain InstanceFleets parameters or InstanceGroups parameters, but not both.</p> </note>

func (*Client) SetTerminationProtection

func (c *Client) SetTerminationProtection(ctx context.Context, params *SetTerminationProtectionInput, optFns ...func(*Options)) (*SetTerminationProtectionOutput, error)

SetTerminationProtection locks a cluster (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 cluster is similar to calling the Amazon EC2 DisableAPITermination API on all EC2 instances in a cluster. SetTerminationProtection is used to prevent accidental termination of a cluster and to ensure that in the event of an error, the instances persist so that you can recover any data stored in their ephemeral instance storage. <p> To terminate a cluster that has been locked by setting <code>SetTerminationProtection</code> to <code>true</code>, you must first unlock the job flow by a subsequent call to <code>SetTerminationProtection</code> in which you set the value to <code>false</code>. </p> <p> For more information, see<a href="https://docs.aws.amazon.com/emr/latest/ManagementGuide/UsingEMR_TerminationProtection.html">Managing Cluster Termination</a> in the <i>Amazon EMR Management Guide</i>. </p>

func (*Client) SetVisibleToAllUsers

func (c *Client) SetVisibleToAllUsers(ctx context.Context, params *SetVisibleToAllUsersInput, optFns ...func(*Options)) (*SetVisibleToAllUsersOutput, error)

Sets the Cluster$VisibleToAllUsers () value, which determines whether the cluster is visible to all IAM users of the AWS account associated with the cluster. Only the IAM user who created the cluster or the AWS account root user can call this action. The default value, true, indicates that all IAM users in the AWS account can perform cluster actions if they have the proper IAM policy permissions. If set to false, only the IAM user that created the cluster can perform actions. This action works on running clusters. You can override the default true setting when you create a cluster by using the VisibleToAllUsers parameter with RunJobFlow.

func (*Client) TerminateJobFlows

func (c *Client) TerminateJobFlows(ctx context.Context, params *TerminateJobFlowsInput, optFns ...func(*Options)) (*TerminateJobFlowsOutput, error)

TerminateJobFlows shuts a list of clusters (job flows) down. When a job flow is shut down, any step not yet completed is canceled and the EC2 instances on which the cluster is running are stopped. Any log files not already saved are uploaded to Amazon S3 if a LogUri was specified when the cluster was created. The maximum number of clusters allowed is 10. The call to TerminateJobFlows is asynchronous. Depending on the configuration of the cluster, it may take up to 1-5 minutes for the cluster to completely terminate and release allocated resources, such as Amazon EC2 instances.

type CreateSecurityConfigurationInput

type CreateSecurityConfigurationInput struct {
	// The security configuration details in JSON format. For JSON parameters and
	// examples, see Use Security Configurations to Set Up Cluster Security
	// (https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-security-configurations.html)
	// in the Amazon EMR Management Guide.
	SecurityConfiguration *string
	// The name of the security configuration.
	Name *string
}

type CreateSecurityConfigurationOutput

type CreateSecurityConfigurationOutput struct {
	// The date and time the security configuration was created.
	CreationDateTime *time.Time
	// The name of the security configuration.
	Name *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type DeleteSecurityConfigurationInput

type DeleteSecurityConfigurationInput struct {
	// The name of the security configuration.
	Name *string
}

type DeleteSecurityConfigurationOutput

type DeleteSecurityConfigurationOutput struct {
	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type DescribeClusterInput

type DescribeClusterInput struct {
	// The identifier of the cluster to describe.
	ClusterId *string
}

This input determines which cluster to describe.

type DescribeClusterOutput

type DescribeClusterOutput struct {
	// This output contains the details for the requested cluster.
	Cluster *types.Cluster

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

This output contains the description of the cluster.

type DescribeJobFlowsInput

type DescribeJobFlowsInput struct {
	// Return only job flows whose state is contained in this list.
	JobFlowStates []types.JobFlowExecutionState
	// Return only job flows created before this date and time.
	CreatedBefore *time.Time
	// Return only job flows whose job flow ID is contained in this list.
	JobFlowIds []*string
	// Return only job flows created after this date and time.
	CreatedAfter *time.Time
}

The input for the DescribeJobFlows () operation.

type DescribeJobFlowsOutput

type DescribeJobFlowsOutput struct {
	// A list of job flows matching the parameters supplied.
	JobFlows []*types.JobFlowDetail

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

The output for the DescribeJobFlows () operation.

type DescribeSecurityConfigurationInput

type DescribeSecurityConfigurationInput struct {
	// The name of the security configuration.
	Name *string
}

type DescribeSecurityConfigurationOutput

type DescribeSecurityConfigurationOutput struct {
	// The name of the security configuration.
	Name *string
	// The security configuration details in JSON format.
	SecurityConfiguration *string
	// The date and time the security configuration was created
	CreationDateTime *time.Time

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type DescribeStepInput

type DescribeStepInput struct {
	// The identifier of the step to describe.
	StepId *string
	// The identifier of the cluster with steps to describe.
	ClusterId *string
}

This input determines which step to describe.

type DescribeStepOutput

type DescribeStepOutput struct {
	// The step details for the requested step identifier.
	Step *types.Step

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

This output contains the description of the cluster step.

type EndpointResolver

type EndpointResolver interface {
	ResolveEndpoint(region string, options ResolverOptions) (aws.Endpoint, error)
}

EndpointResolver interface for resolving service endpoints.

func WithEndpointResolver

func WithEndpointResolver(awsResolver aws.EndpointResolver, fallbackResolver EndpointResolver) EndpointResolver

WithEndpointResolver returns an EndpointResolver that first delegates endpoint resolution to the awsResolver. If awsResolver returns aws.EndpointNotFoundError error, the resolver will use the the provided fallbackResolver for resolution. awsResolver and fallbackResolver must not be nil

type EndpointResolverFunc

type EndpointResolverFunc func(region string, options ResolverOptions) (aws.Endpoint, error)

EndpointResolverFunc is a helper utility that wraps a function so it satisfies the EndpointResolver interface. This is useful when you want to add additional endpoint resolving logic, or stub out specific endpoints with custom values.

func (EndpointResolverFunc) ResolveEndpoint

func (fn EndpointResolverFunc) ResolveEndpoint(region string, options ResolverOptions) (endpoint aws.Endpoint, err error)

type GetBlockPublicAccessConfigurationInput

type GetBlockPublicAccessConfigurationInput struct {
}

type GetBlockPublicAccessConfigurationOutput

type GetBlockPublicAccessConfigurationOutput struct {
	// Properties that describe the AWS principal that created the
	// BlockPublicAccessConfiguration using the PutBlockPublicAccessConfiguration
	// action as well as the date and time that the configuration was created. Each
	// time a configuration for block public access is updated, Amazon EMR updates this
	// metadata.
	BlockPublicAccessConfigurationMetadata *types.BlockPublicAccessConfigurationMetadata
	// A configuration for Amazon EMR block public access. The configuration applies to
	// all clusters created in your account for the current Region. The configuration
	// specifies whether block public access is enabled. If block public access is
	// enabled, security groups associated with the cluster cannot have rules that
	// allow inbound traffic from 0.0.0.0/0 or ::/0 on a port, unless the port is
	// specified as an exception using PermittedPublicSecurityGroupRuleRanges in the
	// BlockPublicAccessConfiguration. By default, Port 22 (SSH) is an exception, and
	// public access is allowed on this port. You can change this by updating the block
	// public access configuration to remove the exception. For accounts that created
	// clusters in a Region before November 25, 2019, block public access is disabled
	// by default in that Region. To use this feature, you must manually enable and
	// configure it. For accounts that did not create an EMR cluster in a Region before
	// this date, block public access is enabled by default in that Region.
	BlockPublicAccessConfiguration *types.BlockPublicAccessConfiguration

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type GetManagedScalingPolicyInput

type GetManagedScalingPolicyInput struct {
	// Specifies the ID of the cluster for which the managed scaling policy will be
	// fetched.
	ClusterId *string
}

type GetManagedScalingPolicyOutput

type GetManagedScalingPolicyOutput struct {
	// Specifies the managed scaling policy that is attached to an Amazon EMR cluster.
	ManagedScalingPolicy *types.ManagedScalingPolicy

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type HTTPClient

type HTTPClient interface {
	Do(*http.Request) (*http.Response, error)
}

type HTTPSignerV4

type HTTPSignerV4 interface {
	SignHTTP(ctx context.Context, credentials aws.Credentials, r *http.Request, payloadHash string, service string, region string, signingTime time.Time) error
}

type ListBootstrapActionsInput

type ListBootstrapActionsInput struct {
	// The pagination token that indicates the next set of results to retrieve.
	Marker *string
	// The cluster identifier for the bootstrap actions to list.
	ClusterId *string
}

This input determines which bootstrap actions to retrieve.

type ListBootstrapActionsOutput

type ListBootstrapActionsOutput struct {
	// The pagination token that indicates the next set of results to retrieve.
	Marker *string
	// The bootstrap actions associated with the cluster.
	BootstrapActions []*types.Command

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

This output contains the bootstrap actions detail.

type ListClustersInput

type ListClustersInput struct {
	// The creation date and time beginning value filter for listing clusters.
	CreatedAfter *time.Time
	// The creation date and time end value filter for listing clusters.
	CreatedBefore *time.Time
	// The pagination token that indicates the next set of results to retrieve.
	Marker *string
	// The cluster state filters to apply when listing clusters.
	ClusterStates []types.ClusterState
}

This input determines how the ListClusters action filters the list of clusters that it returns.

type ListClustersOutput

type ListClustersOutput struct {
	// The pagination token that indicates the next set of results to retrieve.
	Marker *string
	// The list of clusters for the account based on the given filters.
	Clusters []*types.ClusterSummary

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

This contains a ClusterSummaryList with the cluster details; for example, the cluster IDs, names, and status.

type ListInstanceFleetsInput

type ListInstanceFleetsInput struct {
	// The pagination token that indicates the next set of results to retrieve.
	Marker *string
	// The unique identifier of the cluster.
	ClusterId *string
}

type ListInstanceFleetsOutput

type ListInstanceFleetsOutput struct {
	// The list of instance fleets for the cluster and given filters.
	InstanceFleets []*types.InstanceFleet
	// The pagination token that indicates the next set of results to retrieve.
	Marker *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type ListInstanceGroupsInput

type ListInstanceGroupsInput struct {
	// The pagination token that indicates the next set of results to retrieve.
	Marker *string
	// The identifier of the cluster for which to list the instance groups.
	ClusterId *string
}

This input determines which instance groups to retrieve.

type ListInstanceGroupsOutput

type ListInstanceGroupsOutput struct {
	// The pagination token that indicates the next set of results to retrieve.
	Marker *string
	// The list of instance groups for the cluster and given filters.
	InstanceGroups []*types.InstanceGroup

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

This input determines which instance groups to retrieve.

type ListInstancesInput

type ListInstancesInput struct {
	// The node type of the instance fleet. For example MASTER, CORE, or TASK.
	InstanceFleetType types.InstanceFleetType
	// The pagination token that indicates the next set of results to retrieve.
	Marker *string
	// The type of instance group for which to list the instances.
	InstanceGroupTypes []types.InstanceGroupType
	// The identifier of the instance group for which to list the instances.
	InstanceGroupId *string
	// A list of instance states that will filter the instances returned with this
	// request.
	InstanceStates []types.InstanceState
	// The identifier of the cluster for which to list the instances.
	ClusterId *string
	// The unique identifier of the instance fleet.
	InstanceFleetId *string
}

This input determines which instances to list.

type ListInstancesOutput

type ListInstancesOutput struct {
	// The list of instances for the cluster and given filters.
	Instances []*types.Instance
	// The pagination token that indicates the next set of results to retrieve.
	Marker *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

This output contains the list of instances.

type ListSecurityConfigurationsInput

type ListSecurityConfigurationsInput struct {
	// The pagination token that indicates the set of results to retrieve.
	Marker *string
}

type ListSecurityConfigurationsOutput

type ListSecurityConfigurationsOutput struct {
	// The creation date and time, and name, of each security configuration.
	SecurityConfigurations []*types.SecurityConfigurationSummary
	// 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

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type ListStepsInput

type ListStepsInput struct {
	// The pagination token that indicates the next set of results to retrieve.
	Marker *string
	// The filter to limit the step list based on certain states.
	StepStates []types.StepState
	// The identifier of the cluster for which to list the steps.
	ClusterId *string
	// The filter to limit the step list based on the identifier of the steps. You can
	// specify a maximum of ten Step IDs. The character constraint applies to the
	// overall length of the array.
	StepIds []*string
}

This input determines which steps to list.

type ListStepsOutput

type ListStepsOutput struct {
	// The filtered list of steps for the cluster.
	Steps []*types.StepSummary
	// The pagination token that indicates the next set of results to retrieve.
	Marker *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

This output contains the list of steps returned in reverse order. This means that the last step is the first element in the list.

type ModifyClusterInput

type ModifyClusterInput struct {
	// The unique identifier of the cluster.
	ClusterId *string
	// The number of steps that can be executed concurrently. You can specify a maximum
	// of 256 steps.
	StepConcurrencyLevel *int32
}

type ModifyClusterOutput

type ModifyClusterOutput struct {
	// The number of steps that can be executed concurrently.
	StepConcurrencyLevel *int32

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type ModifyInstanceFleetInput

type ModifyInstanceFleetInput struct {
	// The unique identifier of the cluster.
	ClusterId *string
	// The unique identifier of the instance fleet.
	InstanceFleet *types.InstanceFleetModifyConfig
}

type ModifyInstanceFleetOutput

type ModifyInstanceFleetOutput struct {
	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type ModifyInstanceGroupsInput

type ModifyInstanceGroupsInput struct {
	// The ID of the cluster to which the instance group belongs.
	ClusterId *string
	// Instance groups to change.
	InstanceGroups []*types.InstanceGroupModifyConfig
}

Change the size of some instance groups.

type ModifyInstanceGroupsOutput

type ModifyInstanceGroupsOutput struct {
	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type Options

type Options struct {
	// Set of options to modify how an operation is invoked. These apply to all
	// operations invoked for this client. Use functional options on operation call to
	// modify this list for per operation behavior.
	APIOptions []func(*middleware.Stack) error

	// The credentials object to use when signing requests.
	Credentials aws.CredentialsProvider

	// The endpoint options to be used when attempting to resolve an endpoint.
	EndpointOptions ResolverOptions

	// The service endpoint resolver.
	EndpointResolver EndpointResolver

	// Signature Version 4 (SigV4) Signer
	HTTPSignerV4 HTTPSignerV4

	// The region to send requests to. (Required)
	Region string

	// Retryer guides how HTTP requests should be retried in case of recoverable
	// failures. When nil the API client will use a default retryer.
	Retryer retry.Retryer

	// The HTTP client to invoke API calls with. Defaults to client's default HTTP
	// implementation if nil.
	HTTPClient HTTPClient
}

func (Options) Copy

func (o Options) Copy() Options

Copy creates a clone where the APIOptions list is deep copied.

func (Options) GetCredentials

func (o Options) GetCredentials() aws.CredentialsProvider

func (Options) GetEndpointOptions

func (o Options) GetEndpointOptions() ResolverOptions

func (Options) GetEndpointResolver

func (o Options) GetEndpointResolver() EndpointResolver

func (Options) GetHTTPSignerV4

func (o Options) GetHTTPSignerV4() HTTPSignerV4

func (Options) GetRegion

func (o Options) GetRegion() string

func (Options) GetRetryer

func (o Options) GetRetryer() retry.Retryer

type PutAutoScalingPolicyInput

type PutAutoScalingPolicyInput struct {
	// Specifies the ID of the instance group to which the automatic scaling policy is
	// applied.
	InstanceGroupId *string
	// Specifies the ID of a cluster. The instance group to which the automatic scaling
	// policy is applied is within this cluster.
	ClusterId *string
	// Specifies the definition of the automatic scaling policy.
	AutoScalingPolicy *types.AutoScalingPolicy
}

type PutAutoScalingPolicyOutput

type PutAutoScalingPolicyOutput struct {
	// Specifies the ID of a cluster. The instance group to which the automatic scaling
	// policy is applied is within this cluster.
	ClusterId *string
	// Specifies the ID of the instance group to which the scaling policy is applied.
	InstanceGroupId *string
	// The Amazon Resource Name of the cluster.
	ClusterArn *string
	// The automatic scaling policy definition.
	AutoScalingPolicy *types.AutoScalingPolicyDescription

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type PutBlockPublicAccessConfigurationInput

type PutBlockPublicAccessConfigurationInput struct {
	// A configuration for Amazon EMR block public access. The configuration applies to
	// all clusters created in your account for the current Region. The configuration
	// specifies whether block public access is enabled. If block public access is
	// enabled, security groups associated with the cluster cannot have rules that
	// allow inbound traffic from 0.0.0.0/0 or ::/0 on a port, unless the port is
	// specified as an exception using PermittedPublicSecurityGroupRuleRanges in the
	// BlockPublicAccessConfiguration. By default, Port 22 (SSH) is an exception, and
	// public access is allowed on this port. You can change this by updating
	// BlockPublicSecurityGroupRules to remove the exception. For accounts that created
	// clusters in a Region before November 25, 2019, block public access is disabled
	// by default in that Region. To use this feature, you must manually enable and
	// configure it. For accounts that did not create an EMR cluster in a Region before
	// this date, block public access is enabled by default in that Region.
	BlockPublicAccessConfiguration *types.BlockPublicAccessConfiguration
}

type PutBlockPublicAccessConfigurationOutput

type PutBlockPublicAccessConfigurationOutput struct {
	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type PutManagedScalingPolicyInput

type PutManagedScalingPolicyInput struct {
	// Specifies the constraints for the managed scaling policy.
	ManagedScalingPolicy *types.ManagedScalingPolicy
	// Specifies the ID of an EMR cluster where the managed scaling policy is attached.
	ClusterId *string
}

type PutManagedScalingPolicyOutput

type PutManagedScalingPolicyOutput struct {
	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type RemoveAutoScalingPolicyInput

type RemoveAutoScalingPolicyInput struct {
	// Specifies the ID of a cluster. The instance group to which the automatic scaling
	// policy is applied is within this cluster.
	ClusterId *string
	// Specifies the ID of the instance group to which the scaling policy is applied.
	InstanceGroupId *string
}

type RemoveAutoScalingPolicyOutput

type RemoveAutoScalingPolicyOutput struct {
	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type RemoveManagedScalingPolicyInput

type RemoveManagedScalingPolicyInput struct {
	// Specifies the ID of the cluster from which the managed scaling policy will be
	// removed.
	ClusterId *string
}

type RemoveManagedScalingPolicyOutput

type RemoveManagedScalingPolicyOutput struct {
	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type RemoveTagsInput

type RemoveTagsInput struct {
	// The Amazon EMR resource identifier from which tags will be removed. This value
	// must be a cluster identifier.
	ResourceId *string
	// A list of tag keys to remove from a resource.
	TagKeys []*string
}

This input identifies a cluster and a list of tags to remove.

type RemoveTagsOutput

type RemoveTagsOutput struct {
	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

This output indicates the result of removing tags from a resource.

type ResolveEndpoint

type ResolveEndpoint struct {
	Resolver EndpointResolver
	Options  ResolverOptions
}

func (*ResolveEndpoint) HandleSerialize

func (*ResolveEndpoint) ID

func (*ResolveEndpoint) ID() string

type ResolveEndpointMiddlewareOptions

type ResolveEndpointMiddlewareOptions interface {
	GetEndpointResolver() EndpointResolver
	GetEndpointOptions() ResolverOptions
}

type ResolverOptions

type ResolverOptions = internalendpoints.Options

ResolverOptions is the service endpoint resolver options

type RunJobFlowInput

type RunJobFlowInput struct {
	// The AWS KMS customer master key (CMK) used for encrypting log files. If a value
	// is not provided, the logs will remain encrypted by AES-256. This attribute is
	// only available with EMR version 5.30.0 and later, excluding EMR 6.0.0.
	LogEncryptionKmsKeyId *string
	// Attributes for Kerberos configuration when Kerberos authentication is enabled
	// using a security configuration. For more information see Use Kerberos
	// Authentication
	// (https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-kerberos.html) in
	// the EMR Management Guide.
	KerberosAttributes *types.KerberosAttributes
	// A JSON string for selecting additional features.
	AdditionalInfo *string
	// Available only in Amazon EMR version 5.7.0 and later. The ID of a custom Amazon
	// EBS-backed Linux AMI. If specified, Amazon EMR uses this AMI when it launches
	// cluster EC2 instances. For more information about custom AMIs in Amazon EMR, see
	// Using a Custom AMI
	// (https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-custom-ami.html) in
	// the Amazon EMR Management Guide. If omitted, the cluster uses the base Linux AMI
	// for the ReleaseLabel specified. For Amazon EMR versions 2.x and 3.x, use
	// AmiVersion instead. For information about creating a custom AMI, see Creating an
	// Amazon EBS-Backed Linux AMI
	// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-ebs.html)
	// in the Amazon Elastic Compute Cloud User Guide for Linux Instances. For
	// information about finding an AMI ID, see Finding a Linux AMI
	// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/finding-an-ami.html).
	CustomAmiId *string
	// 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
	// Applies to Amazon EMR releases 4.0 and later. A case-insensitive list of
	// applications for Amazon EMR to install and configure when launching the cluster.
	// For a list of applications available for each Amazon EMR release version, see
	// the Amazon EMR Release Guide
	// (https://docs.aws.amazon.com/emr/latest/ReleaseGuide/).
	Applications []*types.Application
	// 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 types.ScaleDownBehavior
	// Applies only to Amazon EMR AMI versions 3.x and 2.x. For Amazon EMR releases 4.0
	// and later, ReleaseLabel is used. To specify a custom AMI, use CustomAmiID.
	AmiVersion *string
	// A list of tags to associate with a cluster and propagate to Amazon EC2
	// instances.
	Tags []*types.Tag
	// The IAM role that will be assumed by the Amazon EMR service to access AWS
	// resources on your behalf.
	ServiceRole *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
	// The specified managed scaling policy for an Amazon EMR cluster.
	ManagedScalingPolicy *types.ManagedScalingPolicy
	// For Amazon EMR releases 4.0 and later. The list of configurations supplied for
	// the EMR cluster you are creating.
	Configurations []*types.Configuration
	// The Amazon EMR release label, which determines the version of open-source
	// application packages installed on the cluster. Release labels are in the form
	// emr-x.x.x, where x.x.x is an Amazon EMR release version such as emr-5.14.0. For
	// more information about Amazon EMR release versions and included application
	// versions and features, see https://docs.aws.amazon.com/emr/latest/ReleaseGuide/
	// (https://docs.aws.amazon.com/emr/latest/ReleaseGuide/). The release label
	// applies only to Amazon EMR releases version 4.0 and later. Earlier versions use
	// AmiVersion.
	ReleaseLabel *string
	// For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and later, use
	// Applications. A list of strings that indicates third-party software to use. For
	// more information, see the Amazon EMR Developer Guide
	// (https://docs.aws.amazon.com/emr/latest/DeveloperGuide/emr-dg.pdf). Currently
	// supported values are:
	//
	//     * "mapr-m3" - launch the job flow using MapR M3
	// Edition.
	//
	//     * "mapr-m5" - launch the job flow using MapR M5 Edition.
	SupportedProducts []*string
	// A list of steps to run.
	Steps []*types.StepConfig
	// A list of bootstrap actions to run before Hadoop starts on the cluster nodes.
	BootstrapActions []*types.BootstrapActionConfig
	// The name of the job flow.
	Name *string
	// Specifies the number of steps that can be executed concurrently. The default
	// value is 1. The maximum value is 256.
	StepConcurrencyLevel *int32
	// The size, in GiB, of the EBS root device volume of the Linux AMI that is used
	// for each EC2 instance. Available in Amazon EMR version 4.x and later.
	EbsRootVolumeSize *int32
	// A specification of the number and type of Amazon EC2 instances.
	Instances *types.JobFlowInstancesConfig
	// A value of true indicates that all IAM users in the AWS account can perform
	// cluster actions if they have the proper IAM policy permissions. This is the
	// default. A value of false indicates that only the IAM user who created the
	// cluster can perform actions.
	VisibleToAllUsers *bool
	// For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and later, use
	// Applications. 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" in the Amazon EMR Developer Guide
	// (https://docs.aws.amazon.com/emr/latest/DeveloperGuide/emr-dg.pdf). Supported
	// values are:
	//
	//     * "mapr-m3" - launch the cluster using MapR M3 Edition.
	//
	//     *
	// "mapr-m5" - launch the cluster using MapR M5 Edition.
	//
	//     * "mapr" with the
	// user arguments specifying "--edition,m3" or "--edition,m5" - launch the job flow
	// using MapR M3 or M5 Edition respectively.
	//
	//     * "mapr-m7" - launch the cluster
	// using MapR M7 Edition.
	//
	//     * "hunk" - launch the cluster with the Hunk Big Data
	// Analtics Platform.
	//
	//     * "hue"- launch the cluster with Hue installed.
	//
	//     *
	// "spark" - launch the cluster with Apache Spark installed.
	//
	//     * "ganglia" -
	// launch the cluster with the Ganglia Monitoring System installed.
	NewSupportedProducts []*types.SupportedProductConfig
	// The name of a security configuration to apply to the cluster.
	SecurityConfiguration *string
	// 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
	// Applies only when CustomAmiID is used. Specifies which updates from the Amazon
	// Linux AMI package repositories to apply automatically when the instance boots
	// using the AMI. If omitted, the default is SECURITY, which indicates that only
	// security updates are applied. If NONE is specified, no updates are applied, and
	// all updates must be applied manually.
	RepoUpgradeOnBoot types.RepoUpgradeOnBoot
}

Input to the RunJobFlow () operation.

type RunJobFlowOutput

type RunJobFlowOutput struct {
	// The Amazon Resource Name of the cluster.
	ClusterArn *string
	// An unique identifier for the job flow.
	JobFlowId *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

The result of the RunJobFlow () operation.

type SetTerminationProtectionInput

type SetTerminationProtectionInput struct {
	// A Boolean that indicates whether to protect the cluster and prevent the Amazon
	// EC2 instances in the cluster from shutting down due to API calls, user
	// intervention, or job-flow error.
	TerminationProtected *bool
	// A list of strings that uniquely identify the clusters to protect. This
	// identifier is returned by RunJobFlow () and can also be obtained from
	// DescribeJobFlows () .
	JobFlowIds []*string
}

The input argument to the TerminationProtection () operation.

type SetTerminationProtectionOutput

type SetTerminationProtectionOutput struct {
	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type SetVisibleToAllUsersInput

type SetVisibleToAllUsersInput struct {
	// The unique identifier of the job flow (cluster).
	JobFlowIds []*string
	// A value of true indicates that all IAM users in the AWS account can perform
	// cluster actions if they have the proper IAM policy permissions. This is the
	// default. A value of false indicates that only the IAM user who created the
	// cluster can perform actions.
	VisibleToAllUsers *bool
}

The input to the SetVisibleToAllUsers action.

type SetVisibleToAllUsersOutput

type SetVisibleToAllUsersOutput struct {
	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type TerminateJobFlowsInput

type TerminateJobFlowsInput struct {
	// A list of job flows to be shutdown.
	JobFlowIds []*string
}

Input to the TerminateJobFlows () operation.

type TerminateJobFlowsOutput

type TerminateJobFlowsOutput struct {
	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL