AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

PollForTaskInput

import "github.com/aws/aws-sdk-go/service/datapipeline"

type PollForTaskInput struct { Hostname *string `locationName:"hostname" min:"1" type:"string"` InstanceIdentity *InstanceIdentity `locationName:"instanceIdentity" type:"structure"` WorkerGroup *string `locationName:"workerGroup" type:"string" required:"true"` }

Contains the parameters for PollForTask.

Hostname

Type: *string

The public DNS name of the calling task runner.

InstanceIdentity

Identity information for the EC2 instance that is hosting the task runner. You can get this value by calling a metadata URI from the EC2 instance. For more information, see Instance Metadata (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AESDG-chapter-instancedata.html) in the Amazon Elastic Compute Cloud User Guide. Passing in this value proves that your task runner is running on an EC2 instance, and ensures the proper AWS Data Pipeline service charges are applied to your pipeline.

WorkerGroup

Type: *string

The type of task the task runner is configured to accept and process. The worker group is set as a field on objects in the pipeline when they are created. You can only specify a single value for workerGroup in the call to PollForTask. There are no wildcard values permitted in workerGroup; the string must be an exact, case-sensitive, match.

WorkerGroup is a required field

Method

GoString

func (s PollForTaskInput) GoString() string

GoString returns the string representation

SetHostname

func (s *PollForTaskInput) SetHostname(v string) *PollForTaskInput

SetHostname sets the Hostname field's value.

SetInstanceIdentity

func (s *PollForTaskInput) SetInstanceIdentity(v *InstanceIdentity) *PollForTaskInput

SetInstanceIdentity sets the InstanceIdentity field's value.

SetWorkerGroup

func (s *PollForTaskInput) SetWorkerGroup(v string) *PollForTaskInput

SetWorkerGroup sets the WorkerGroup field's value.

String

func (s PollForTaskInput) String() string

String returns the string representation

Validate

func (s *PollForTaskInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: