3 Star 1 Fork 0

Gitee 极速下载 / aws-sdk-go

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/aws/aws-sdk-go
克隆/下载
api.go 80.42 KB
一键复制 编辑 原始数据 按行查看 历史
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
// Package datapipeline provides a client for AWS Data Pipeline.
package datapipeline
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 opActivatePipeline = "ActivatePipeline"
// ActivatePipelineRequest generates a request for the ActivatePipeline operation.
func (c *DataPipeline) ActivatePipelineRequest(input *ActivatePipelineInput) (req *request.Request, output *ActivatePipelineOutput) {
op := &request.Operation{
Name: opActivatePipeline,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ActivatePipelineInput{}
}
req = c.newRequest(op, input, output)
output = &ActivatePipelineOutput{}
req.Data = output
return
}
// Validates the specified pipeline and starts processing pipeline tasks. If
// the pipeline does not pass validation, activation fails.
//
// If you need to pause the pipeline to investigate an issue with a component,
// such as a data source or script, call DeactivatePipeline.
//
// To activate a finished pipeline, modify the end date for the pipeline and
// then activate it.
func (c *DataPipeline) ActivatePipeline(input *ActivatePipelineInput) (*ActivatePipelineOutput, error) {
req, out := c.ActivatePipelineRequest(input)
err := req.Send()
return out, err
}
const opAddTags = "AddTags"
// AddTagsRequest generates a request for the AddTags operation.
func (c *DataPipeline) AddTagsRequest(input *AddTagsInput) (req *request.Request, output *AddTagsOutput) {
op := &request.Operation{
Name: opAddTags,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &AddTagsInput{}
}
req = c.newRequest(op, input, output)
output = &AddTagsOutput{}
req.Data = output
return
}
// Adds or modifies tags for the specified pipeline.
func (c *DataPipeline) AddTags(input *AddTagsInput) (*AddTagsOutput, error) {
req, out := c.AddTagsRequest(input)
err := req.Send()
return out, err
}
const opCreatePipeline = "CreatePipeline"
// CreatePipelineRequest generates a request for the CreatePipeline operation.
func (c *DataPipeline) CreatePipelineRequest(input *CreatePipelineInput) (req *request.Request, output *CreatePipelineOutput) {
op := &request.Operation{
Name: opCreatePipeline,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CreatePipelineInput{}
}
req = c.newRequest(op, input, output)
output = &CreatePipelineOutput{}
req.Data = output
return
}
// Creates a new, empty pipeline. Use PutPipelineDefinition to populate the
// pipeline.
func (c *DataPipeline) CreatePipeline(input *CreatePipelineInput) (*CreatePipelineOutput, error) {
req, out := c.CreatePipelineRequest(input)
err := req.Send()
return out, err
}
const opDeactivatePipeline = "DeactivatePipeline"
// DeactivatePipelineRequest generates a request for the DeactivatePipeline operation.
func (c *DataPipeline) DeactivatePipelineRequest(input *DeactivatePipelineInput) (req *request.Request, output *DeactivatePipelineOutput) {
op := &request.Operation{
Name: opDeactivatePipeline,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeactivatePipelineInput{}
}
req = c.newRequest(op, input, output)
output = &DeactivatePipelineOutput{}
req.Data = output
return
}
// Deactivates the specified running pipeline. The pipeline is set to the DEACTIVATING
// state until the deactivation process completes.
//
// To resume a deactivated pipeline, use ActivatePipeline. By default, the
// pipeline resumes from the last completed execution. Optionally, you can specify
// the date and time to resume the pipeline.
func (c *DataPipeline) DeactivatePipeline(input *DeactivatePipelineInput) (*DeactivatePipelineOutput, error) {
req, out := c.DeactivatePipelineRequest(input)
err := req.Send()
return out, err
}
const opDeletePipeline = "DeletePipeline"
// DeletePipelineRequest generates a request for the DeletePipeline operation.
func (c *DataPipeline) DeletePipelineRequest(input *DeletePipelineInput) (req *request.Request, output *DeletePipelineOutput) {
op := &request.Operation{
Name: opDeletePipeline,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeletePipelineInput{}
}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output = &DeletePipelineOutput{}
req.Data = output
return
}
// Deletes a pipeline, its pipeline definition, and its run history. AWS Data
// Pipeline attempts to cancel instances associated with the pipeline that are
// currently being processed by task runners.
//
// Deleting a pipeline cannot be undone. You cannot query or restore a deleted
// pipeline. To temporarily pause a pipeline instead of deleting it, call SetStatus
// with the status set to PAUSE on individual components. Components that are
// paused by SetStatus can be resumed.
func (c *DataPipeline) DeletePipeline(input *DeletePipelineInput) (*DeletePipelineOutput, error) {
req, out := c.DeletePipelineRequest(input)
err := req.Send()
return out, err
}
const opDescribeObjects = "DescribeObjects"
// DescribeObjectsRequest generates a request for the DescribeObjects operation.
func (c *DataPipeline) DescribeObjectsRequest(input *DescribeObjectsInput) (req *request.Request, output *DescribeObjectsOutput) {
op := &request.Operation{
Name: opDescribeObjects,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &request.Paginator{
InputTokens: []string{"marker"},
OutputTokens: []string{"marker"},
LimitToken: "",
TruncationToken: "hasMoreResults",
},
}
if input == nil {
input = &DescribeObjectsInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeObjectsOutput{}
req.Data = output
return
}
// Gets the object definitions for a set of objects associated with the pipeline.
// Object definitions are composed of a set of fields that define the properties
// of the object.
func (c *DataPipeline) DescribeObjects(input *DescribeObjectsInput) (*DescribeObjectsOutput, error) {
req, out := c.DescribeObjectsRequest(input)
err := req.Send()
return out, err
}
func (c *DataPipeline) DescribeObjectsPages(input *DescribeObjectsInput, fn func(p *DescribeObjectsOutput, lastPage bool) (shouldContinue bool)) error {
page, _ := c.DescribeObjectsRequest(input)
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
return page.EachPage(func(p interface{}, lastPage bool) bool {
return fn(p.(*DescribeObjectsOutput), lastPage)
})
}
const opDescribePipelines = "DescribePipelines"
// DescribePipelinesRequest generates a request for the DescribePipelines operation.
func (c *DataPipeline) DescribePipelinesRequest(input *DescribePipelinesInput) (req *request.Request, output *DescribePipelinesOutput) {
op := &request.Operation{
Name: opDescribePipelines,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribePipelinesInput{}
}
req = c.newRequest(op, input, output)
output = &DescribePipelinesOutput{}
req.Data = output
return
}
// Retrieves metadata about one or more pipelines. The information retrieved
// includes the name of the pipeline, the pipeline identifier, its current state,
// and the user account that owns the pipeline. Using account credentials, you
// can retrieve metadata about pipelines that you or your IAM users have created.
// If you are using an IAM user account, you can retrieve metadata about only
// those pipelines for which you have read permissions.
//
// To retrieve the full pipeline definition instead of metadata about the pipeline,
// call GetPipelineDefinition.
func (c *DataPipeline) DescribePipelines(input *DescribePipelinesInput) (*DescribePipelinesOutput, error) {
req, out := c.DescribePipelinesRequest(input)
err := req.Send()
return out, err
}
const opEvaluateExpression = "EvaluateExpression"
// EvaluateExpressionRequest generates a request for the EvaluateExpression operation.
func (c *DataPipeline) EvaluateExpressionRequest(input *EvaluateExpressionInput) (req *request.Request, output *EvaluateExpressionOutput) {
op := &request.Operation{
Name: opEvaluateExpression,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &EvaluateExpressionInput{}
}
req = c.newRequest(op, input, output)
output = &EvaluateExpressionOutput{}
req.Data = output
return
}
// Task runners call EvaluateExpression to evaluate a string in the context
// of the specified object. For example, a task runner can evaluate SQL queries
// stored in Amazon S3.
func (c *DataPipeline) EvaluateExpression(input *EvaluateExpressionInput) (*EvaluateExpressionOutput, error) {
req, out := c.EvaluateExpressionRequest(input)
err := req.Send()
return out, err
}
const opGetPipelineDefinition = "GetPipelineDefinition"
// GetPipelineDefinitionRequest generates a request for the GetPipelineDefinition operation.
func (c *DataPipeline) GetPipelineDefinitionRequest(input *GetPipelineDefinitionInput) (req *request.Request, output *GetPipelineDefinitionOutput) {
op := &request.Operation{
Name: opGetPipelineDefinition,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &GetPipelineDefinitionInput{}
}
req = c.newRequest(op, input, output)
output = &GetPipelineDefinitionOutput{}
req.Data = output
return
}
// Gets the definition of the specified pipeline. You can call GetPipelineDefinition
// to retrieve the pipeline definition that you provided using PutPipelineDefinition.
func (c *DataPipeline) GetPipelineDefinition(input *GetPipelineDefinitionInput) (*GetPipelineDefinitionOutput, error) {
req, out := c.GetPipelineDefinitionRequest(input)
err := req.Send()
return out, err
}
const opListPipelines = "ListPipelines"
// ListPipelinesRequest generates a request for the ListPipelines operation.
func (c *DataPipeline) ListPipelinesRequest(input *ListPipelinesInput) (req *request.Request, output *ListPipelinesOutput) {
op := &request.Operation{
Name: opListPipelines,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &request.Paginator{
InputTokens: []string{"marker"},
OutputTokens: []string{"marker"},
LimitToken: "",
TruncationToken: "hasMoreResults",
},
}
if input == nil {
input = &ListPipelinesInput{}
}
req = c.newRequest(op, input, output)
output = &ListPipelinesOutput{}
req.Data = output
return
}
// Lists the pipeline identifiers for all active pipelines that you have permission
// to access.
func (c *DataPipeline) ListPipelines(input *ListPipelinesInput) (*ListPipelinesOutput, error) {
req, out := c.ListPipelinesRequest(input)
err := req.Send()
return out, err
}
func (c *DataPipeline) ListPipelinesPages(input *ListPipelinesInput, fn func(p *ListPipelinesOutput, lastPage bool) (shouldContinue bool)) error {
page, _ := c.ListPipelinesRequest(input)
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
return page.EachPage(func(p interface{}, lastPage bool) bool {
return fn(p.(*ListPipelinesOutput), lastPage)
})
}
const opPollForTask = "PollForTask"
// PollForTaskRequest generates a request for the PollForTask operation.
func (c *DataPipeline) PollForTaskRequest(input *PollForTaskInput) (req *request.Request, output *PollForTaskOutput) {
op := &request.Operation{
Name: opPollForTask,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &PollForTaskInput{}
}
req = c.newRequest(op, input, output)
output = &PollForTaskOutput{}
req.Data = output
return
}
// Task runners call PollForTask to receive a task to perform from AWS Data
// Pipeline. The task runner specifies which tasks it can perform by setting
// a value for the workerGroup parameter. The task returned can come from any
// of the pipelines that match the workerGroup value passed in by the task runner
// and that was launched using the IAM user credentials specified by the task
// runner.
//
// If tasks are ready in the work queue, PollForTask returns a response immediately.
// If no tasks are available in the queue, PollForTask uses long-polling and
// holds on to a poll connection for up to a 90 seconds, during which time the
// first newly scheduled task is handed to the task runner. To accomodate this,
// set the socket timeout in your task runner to 90 seconds. The task runner
// should not call PollForTask again on the same workerGroup until it receives
// a response, and this can take up to 90 seconds.
func (c *DataPipeline) PollForTask(input *PollForTaskInput) (*PollForTaskOutput, error) {
req, out := c.PollForTaskRequest(input)
err := req.Send()
return out, err
}
const opPutPipelineDefinition = "PutPipelineDefinition"
// PutPipelineDefinitionRequest generates a request for the PutPipelineDefinition operation.
func (c *DataPipeline) PutPipelineDefinitionRequest(input *PutPipelineDefinitionInput) (req *request.Request, output *PutPipelineDefinitionOutput) {
op := &request.Operation{
Name: opPutPipelineDefinition,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &PutPipelineDefinitionInput{}
}
req = c.newRequest(op, input, output)
output = &PutPipelineDefinitionOutput{}
req.Data = output
return
}
// Adds tasks, schedules, and preconditions to the specified pipeline. You can
// use PutPipelineDefinition to populate a new pipeline.
//
// PutPipelineDefinition also validates the configuration as it adds it to
// the pipeline. Changes to the pipeline are saved unless one of the following
// three validation errors exists in the pipeline.
//
// An object is missing a name or identifier field. A string or reference
// field is empty. The number of objects in the pipeline exceeds the maximum
// allowed objects. The pipeline is in a FINISHED state. Pipeline object definitions
// are passed to the PutPipelineDefinition action and returned by the GetPipelineDefinition
// action.
func (c *DataPipeline) PutPipelineDefinition(input *PutPipelineDefinitionInput) (*PutPipelineDefinitionOutput, error) {
req, out := c.PutPipelineDefinitionRequest(input)
err := req.Send()
return out, err
}
const opQueryObjects = "QueryObjects"
// QueryObjectsRequest generates a request for the QueryObjects operation.
func (c *DataPipeline) QueryObjectsRequest(input *QueryObjectsInput) (req *request.Request, output *QueryObjectsOutput) {
op := &request.Operation{
Name: opQueryObjects,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &request.Paginator{
InputTokens: []string{"marker"},
OutputTokens: []string{"marker"},
LimitToken: "limit",
TruncationToken: "hasMoreResults",
},
}
if input == nil {
input = &QueryObjectsInput{}
}
req = c.newRequest(op, input, output)
output = &QueryObjectsOutput{}
req.Data = output
return
}
// Queries the specified pipeline for the names of objects that match the specified
// set of conditions.
func (c *DataPipeline) QueryObjects(input *QueryObjectsInput) (*QueryObjectsOutput, error) {
req, out := c.QueryObjectsRequest(input)
err := req.Send()
return out, err
}
func (c *DataPipeline) QueryObjectsPages(input *QueryObjectsInput, fn func(p *QueryObjectsOutput, lastPage bool) (shouldContinue bool)) error {
page, _ := c.QueryObjectsRequest(input)
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
return page.EachPage(func(p interface{}, lastPage bool) bool {
return fn(p.(*QueryObjectsOutput), lastPage)
})
}
const opRemoveTags = "RemoveTags"
// RemoveTagsRequest generates a request for the RemoveTags operation.
func (c *DataPipeline) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Request, output *RemoveTagsOutput) {
op := &request.Operation{
Name: opRemoveTags,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &RemoveTagsInput{}
}
req = c.newRequest(op, input, output)
output = &RemoveTagsOutput{}
req.Data = output
return
}
// Removes existing tags from the specified pipeline.
func (c *DataPipeline) RemoveTags(input *RemoveTagsInput) (*RemoveTagsOutput, error) {
req, out := c.RemoveTagsRequest(input)
err := req.Send()
return out, err
}
const opReportTaskProgress = "ReportTaskProgress"
// ReportTaskProgressRequest generates a request for the ReportTaskProgress operation.
func (c *DataPipeline) ReportTaskProgressRequest(input *ReportTaskProgressInput) (req *request.Request, output *ReportTaskProgressOutput) {
op := &request.Operation{
Name: opReportTaskProgress,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ReportTaskProgressInput{}
}
req = c.newRequest(op, input, output)
output = &ReportTaskProgressOutput{}
req.Data = output
return
}
// Task runners call ReportTaskProgress when assigned a task to acknowledge
// that it has the task. If the web service does not receive this acknowledgement
// within 2 minutes, it assigns the task in a subsequent PollForTask call. After
// this initial acknowledgement, the task runner only needs to report progress
// every 15 minutes to maintain its ownership of the task. You can change this
// reporting time from 15 minutes by specifying a reportProgressTimeout field
// in your pipeline.
//
// If a task runner does not report its status after 5 minutes, AWS Data Pipeline
// assumes that the task runner is unable to process the task and reassigns
// the task in a subsequent response to PollForTask. Task runners should call
// ReportTaskProgress every 60 seconds.
func (c *DataPipeline) ReportTaskProgress(input *ReportTaskProgressInput) (*ReportTaskProgressOutput, error) {
req, out := c.ReportTaskProgressRequest(input)
err := req.Send()
return out, err
}
const opReportTaskRunnerHeartbeat = "ReportTaskRunnerHeartbeat"
// ReportTaskRunnerHeartbeatRequest generates a request for the ReportTaskRunnerHeartbeat operation.
func (c *DataPipeline) ReportTaskRunnerHeartbeatRequest(input *ReportTaskRunnerHeartbeatInput) (req *request.Request, output *ReportTaskRunnerHeartbeatOutput) {
op := &request.Operation{
Name: opReportTaskRunnerHeartbeat,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ReportTaskRunnerHeartbeatInput{}
}
req = c.newRequest(op, input, output)
output = &ReportTaskRunnerHeartbeatOutput{}
req.Data = output
return
}
// Task runners call ReportTaskRunnerHeartbeat every 15 minutes to indicate
// that they are operational. If the AWS Data Pipeline Task Runner is launched
// on a resource managed by AWS Data Pipeline, the web service can use this
// call to detect when the task runner application has failed and restart a
// new instance.
func (c *DataPipeline) ReportTaskRunnerHeartbeat(input *ReportTaskRunnerHeartbeatInput) (*ReportTaskRunnerHeartbeatOutput, error) {
req, out := c.ReportTaskRunnerHeartbeatRequest(input)
err := req.Send()
return out, err
}
const opSetStatus = "SetStatus"
// SetStatusRequest generates a request for the SetStatus operation.
func (c *DataPipeline) SetStatusRequest(input *SetStatusInput) (req *request.Request, output *SetStatusOutput) {
op := &request.Operation{
Name: opSetStatus,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &SetStatusInput{}
}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output = &SetStatusOutput{}
req.Data = output
return
}
// Requests that the status of the specified physical or logical pipeline objects
// be updated in the specified pipeline. This update might not occur immediately,
// but is eventually consistent. The status that can be set depends on the type
// of object (for example, DataNode or Activity). You cannot perform this operation
// on FINISHED pipelines and attempting to do so returns InvalidRequestException.
func (c *DataPipeline) SetStatus(input *SetStatusInput) (*SetStatusOutput, error) {
req, out := c.SetStatusRequest(input)
err := req.Send()
return out, err
}
const opSetTaskStatus = "SetTaskStatus"
// SetTaskStatusRequest generates a request for the SetTaskStatus operation.
func (c *DataPipeline) SetTaskStatusRequest(input *SetTaskStatusInput) (req *request.Request, output *SetTaskStatusOutput) {
op := &request.Operation{
Name: opSetTaskStatus,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &SetTaskStatusInput{}
}
req = c.newRequest(op, input, output)
output = &SetTaskStatusOutput{}
req.Data = output
return
}
// Task runners call SetTaskStatus to notify AWS Data Pipeline that a task is
// completed and provide information about the final status. A task runner makes
// this call regardless of whether the task was sucessful. A task runner does
// not need to call SetTaskStatus for tasks that are canceled by the web service
// during a call to ReportTaskProgress.
func (c *DataPipeline) SetTaskStatus(input *SetTaskStatusInput) (*SetTaskStatusOutput, error) {
req, out := c.SetTaskStatusRequest(input)
err := req.Send()
return out, err
}
const opValidatePipelineDefinition = "ValidatePipelineDefinition"
// ValidatePipelineDefinitionRequest generates a request for the ValidatePipelineDefinition operation.
func (c *DataPipeline) ValidatePipelineDefinitionRequest(input *ValidatePipelineDefinitionInput) (req *request.Request, output *ValidatePipelineDefinitionOutput) {
op := &request.Operation{
Name: opValidatePipelineDefinition,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ValidatePipelineDefinitionInput{}
}
req = c.newRequest(op, input, output)
output = &ValidatePipelineDefinitionOutput{}
req.Data = output
return
}
// Validates the specified pipeline definition to ensure that it is well formed
// and can be run without error.
func (c *DataPipeline) ValidatePipelineDefinition(input *ValidatePipelineDefinitionInput) (*ValidatePipelineDefinitionOutput, error) {
req, out := c.ValidatePipelineDefinitionRequest(input)
err := req.Send()
return out, err
}
// Contains the parameters for ActivatePipeline.
type ActivatePipelineInput struct {
_ struct{} `type:"structure"`
// A list of parameter values to pass to the pipeline at activation.
ParameterValues []*ParameterValue `locationName:"parameterValues" type:"list"`
// The ID of the pipeline.
PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
// The date and time to resume the pipeline. By default, the pipeline resumes
// from the last completed execution.
StartTimestamp *time.Time `locationName:"startTimestamp" type:"timestamp" timestampFormat:"unix"`
}
// String returns the string representation
func (s ActivatePipelineInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ActivatePipelineInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ActivatePipelineInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ActivatePipelineInput"}
if s.PipelineId == nil {
invalidParams.Add(request.NewErrParamRequired("PipelineId"))
}
if s.PipelineId != nil && len(*s.PipelineId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
}
if s.ParameterValues != nil {
for i, v := range s.ParameterValues {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ParameterValues", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// Contains the output of ActivatePipeline.
type ActivatePipelineOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s ActivatePipelineOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ActivatePipelineOutput) GoString() string {
return s.String()
}
// Contains the parameters for AddTags.
type AddTagsInput struct {
_ struct{} `type:"structure"`
// The ID of the pipeline.
PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
// The tags to add, as key/value pairs.
Tags []*Tag `locationName:"tags" 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.PipelineId == nil {
invalidParams.Add(request.NewErrParamRequired("PipelineId"))
}
if s.PipelineId != nil && len(*s.PipelineId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
}
if s.Tags == nil {
invalidParams.Add(request.NewErrParamRequired("Tags"))
}
if s.Tags != nil {
for i, v := range s.Tags {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// Contains the output of AddTags.
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()
}
// Contains the parameters for CreatePipeline.
type CreatePipelineInput struct {
_ struct{} `type:"structure"`
// The description for the pipeline.
Description *string `locationName:"description" type:"string"`
// The name for the pipeline. You can use the same name for multiple pipelines
// associated with your AWS account, because AWS Data Pipeline assigns each
// pipeline a unique pipeline identifier.
Name *string `locationName:"name" min:"1" type:"string" required:"true"`
// A list of tags to associate with the pipeline at creation. Tags let you control
// access to pipelines. For more information, see Controlling User Access to
// Pipelines (http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-control-access.html)
// in the AWS Data Pipeline Developer Guide.
Tags []*Tag `locationName:"tags" type:"list"`
// A unique identifier. This identifier is not the same as the pipeline identifier
// assigned by AWS Data Pipeline. You are responsible for defining the format
// and ensuring the uniqueness of this identifier. You use this parameter to
// ensure idempotency during repeated calls to CreatePipeline. For example,
// if the first call to CreatePipeline does not succeed, you can pass in the
// same unique identifier and pipeline name combination on a subsequent call
// to CreatePipeline. CreatePipeline ensures that if a pipeline already exists
// with the same name and unique identifier, a new pipeline is not created.
// Instead, you'll receive the pipeline identifier from the previous attempt.
// The uniqueness of the name and unique identifier combination is scoped to
// the AWS account or IAM user credentials.
UniqueId *string `locationName:"uniqueId" min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s CreatePipelineInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreatePipelineInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CreatePipelineInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CreatePipelineInput"}
if s.Name == nil {
invalidParams.Add(request.NewErrParamRequired("Name"))
}
if s.Name != nil && len(*s.Name) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Name", 1))
}
if s.UniqueId == nil {
invalidParams.Add(request.NewErrParamRequired("UniqueId"))
}
if s.UniqueId != nil && len(*s.UniqueId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("UniqueId", 1))
}
if s.Tags != nil {
for i, v := range s.Tags {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// Contains the output of CreatePipeline.
type CreatePipelineOutput struct {
_ struct{} `type:"structure"`
// The ID that AWS Data Pipeline assigns the newly created pipeline. For example,
// df-06372391ZG65EXAMPLE.
PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s CreatePipelineOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreatePipelineOutput) GoString() string {
return s.String()
}
// Contains the parameters for DeactivatePipeline.
type DeactivatePipelineInput struct {
_ struct{} `type:"structure"`
// Indicates whether to cancel any running objects. The default is true, which
// sets the state of any running objects to CANCELED. If this value is false,
// the pipeline is deactivated after all running objects finish.
CancelActive *bool `locationName:"cancelActive" type:"boolean"`
// The ID of the pipeline.
PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s DeactivatePipelineInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeactivatePipelineInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DeactivatePipelineInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DeactivatePipelineInput"}
if s.PipelineId == nil {
invalidParams.Add(request.NewErrParamRequired("PipelineId"))
}
if s.PipelineId != nil && len(*s.PipelineId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// Contains the output of DeactivatePipeline.
type DeactivatePipelineOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DeactivatePipelineOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeactivatePipelineOutput) GoString() string {
return s.String()
}
// Contains the parameters for DeletePipeline.
type DeletePipelineInput struct {
_ struct{} `type:"structure"`
// The ID of the pipeline.
PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s DeletePipelineInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeletePipelineInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DeletePipelineInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DeletePipelineInput"}
if s.PipelineId == nil {
invalidParams.Add(request.NewErrParamRequired("PipelineId"))
}
if s.PipelineId != nil && len(*s.PipelineId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
type DeletePipelineOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DeletePipelineOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeletePipelineOutput) GoString() string {
return s.String()
}
// Contains the parameters for DescribeObjects.
type DescribeObjectsInput struct {
_ struct{} `type:"structure"`
// Indicates whether any expressions in the object should be evaluated when
// the object descriptions are returned.
EvaluateExpressions *bool `locationName:"evaluateExpressions" type:"boolean"`
// The starting point for the results to be returned. For the first call, this
// value should be empty. As long as there are more results, continue to call
// DescribeObjects with the marker value from the previous call to retrieve
// the next set of results.
Marker *string `locationName:"marker" type:"string"`
// The IDs of the pipeline objects that contain the definitions to be described.
// You can pass as many as 25 identifiers in a single call to DescribeObjects.
ObjectIds []*string `locationName:"objectIds" type:"list" required:"true"`
// The ID of the pipeline that contains the object definitions.
PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s DescribeObjectsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeObjectsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeObjectsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DescribeObjectsInput"}
if s.ObjectIds == nil {
invalidParams.Add(request.NewErrParamRequired("ObjectIds"))
}
if s.PipelineId == nil {
invalidParams.Add(request.NewErrParamRequired("PipelineId"))
}
if s.PipelineId != nil && len(*s.PipelineId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// Contains the output of DescribeObjects.
type DescribeObjectsOutput struct {
_ struct{} `type:"structure"`
// Indicates whether there are more results to return.
HasMoreResults *bool `locationName:"hasMoreResults" type:"boolean"`
// The starting point for the next page of results. To view the next page of
// results, call DescribeObjects again with this marker value. If the value
// is null, there are no more results.
Marker *string `locationName:"marker" type:"string"`
// An array of object definitions.
PipelineObjects []*PipelineObject `locationName:"pipelineObjects" type:"list" required:"true"`
}
// String returns the string representation
func (s DescribeObjectsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeObjectsOutput) GoString() string {
return s.String()
}
// Contains the parameters for DescribePipelines.
type DescribePipelinesInput struct {
_ struct{} `type:"structure"`
// The IDs of the pipelines to describe. You can pass as many as 25 identifiers
// in a single call. To obtain pipeline IDs, call ListPipelines.
PipelineIds []*string `locationName:"pipelineIds" type:"list" required:"true"`
}
// String returns the string representation
func (s DescribePipelinesInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribePipelinesInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribePipelinesInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DescribePipelinesInput"}
if s.PipelineIds == nil {
invalidParams.Add(request.NewErrParamRequired("PipelineIds"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// Contains the output of DescribePipelines.
type DescribePipelinesOutput struct {
_ struct{} `type:"structure"`
// An array of descriptions for the specified pipelines.
PipelineDescriptionList []*PipelineDescription `locationName:"pipelineDescriptionList" type:"list" required:"true"`
}
// String returns the string representation
func (s DescribePipelinesOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribePipelinesOutput) GoString() string {
return s.String()
}
// Contains the parameters for EvaluateExpression.
type EvaluateExpressionInput struct {
_ struct{} `type:"structure"`
// The expression to evaluate.
Expression *string `locationName:"expression" type:"string" required:"true"`
// The ID of the object.
ObjectId *string `locationName:"objectId" min:"1" type:"string" required:"true"`
// The ID of the pipeline.
PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s EvaluateExpressionInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s EvaluateExpressionInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *EvaluateExpressionInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "EvaluateExpressionInput"}
if s.Expression == nil {
invalidParams.Add(request.NewErrParamRequired("Expression"))
}
if s.ObjectId == nil {
invalidParams.Add(request.NewErrParamRequired("ObjectId"))
}
if s.ObjectId != nil && len(*s.ObjectId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ObjectId", 1))
}
if s.PipelineId == nil {
invalidParams.Add(request.NewErrParamRequired("PipelineId"))
}
if s.PipelineId != nil && len(*s.PipelineId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// Contains the output of EvaluateExpression.
type EvaluateExpressionOutput struct {
_ struct{} `type:"structure"`
// The evaluated expression.
EvaluatedExpression *string `locationName:"evaluatedExpression" type:"string" required:"true"`
}
// String returns the string representation
func (s EvaluateExpressionOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s EvaluateExpressionOutput) GoString() string {
return s.String()
}
// A key-value pair that describes a property of a pipeline object. The value
// is specified as either a string value (StringValue) or a reference to another
// object (RefValue) but not as both.
type Field struct {
_ struct{} `type:"structure"`
// The field identifier.
Key *string `locationName:"key" min:"1" type:"string" required:"true"`
// The field value, expressed as the identifier of another object.
RefValue *string `locationName:"refValue" min:"1" type:"string"`
// The field value, expressed as a String.
StringValue *string `locationName:"stringValue" type:"string"`
}
// String returns the string representation
func (s Field) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Field) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *Field) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "Field"}
if s.Key == nil {
invalidParams.Add(request.NewErrParamRequired("Key"))
}
if s.Key != nil && len(*s.Key) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Key", 1))
}
if s.RefValue != nil && len(*s.RefValue) < 1 {
invalidParams.Add(request.NewErrParamMinLen("RefValue", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// Contains the parameters for GetPipelineDefinition.
type GetPipelineDefinitionInput struct {
_ struct{} `type:"structure"`
// The ID of the pipeline.
PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
// The version of the pipeline definition to retrieve. Set this parameter to
// latest (default) to use the last definition saved to the pipeline or active
// to use the last definition that was activated.
Version *string `locationName:"version" type:"string"`
}
// String returns the string representation
func (s GetPipelineDefinitionInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetPipelineDefinitionInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *GetPipelineDefinitionInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "GetPipelineDefinitionInput"}
if s.PipelineId == nil {
invalidParams.Add(request.NewErrParamRequired("PipelineId"))
}
if s.PipelineId != nil && len(*s.PipelineId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// Contains the output of GetPipelineDefinition.
type GetPipelineDefinitionOutput struct {
_ struct{} `type:"structure"`
// The parameter objects used in the pipeline definition.
ParameterObjects []*ParameterObject `locationName:"parameterObjects" type:"list"`
// The parameter values used in the pipeline definition.
ParameterValues []*ParameterValue `locationName:"parameterValues" type:"list"`
// The objects defined in the pipeline.
PipelineObjects []*PipelineObject `locationName:"pipelineObjects" type:"list"`
}
// String returns the string representation
func (s GetPipelineDefinitionOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetPipelineDefinitionOutput) GoString() string {
return s.String()
}
// 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 (http://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.
type InstanceIdentity struct {
_ struct{} `type:"structure"`
// A description of an EC2 instance that is generated when the instance is launched
// and exposed to the instance via the instance metadata service in the form
// of a JSON representation of an object.
Document *string `locationName:"document" type:"string"`
// A signature which can be used to verify the accuracy and authenticity of
// the information provided in the instance identity document.
Signature *string `locationName:"signature" type:"string"`
}
// String returns the string representation
func (s InstanceIdentity) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s InstanceIdentity) GoString() string {
return s.String()
}
// Contains the parameters for ListPipelines.
type ListPipelinesInput struct {
_ struct{} `type:"structure"`
// The starting point for the results to be returned. For the first call, this
// value should be empty. As long as there are more results, continue to call
// ListPipelines with the marker value from the previous call to retrieve the
// next set of results.
Marker *string `locationName:"marker" type:"string"`
}
// String returns the string representation
func (s ListPipelinesInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListPipelinesInput) GoString() string {
return s.String()
}
// Contains the output of ListPipelines.
type ListPipelinesOutput struct {
_ struct{} `type:"structure"`
// Indicates whether there are more results that can be obtained by a subsequent
// call.
HasMoreResults *bool `locationName:"hasMoreResults" type:"boolean"`
// The starting point for the next page of results. To view the next page of
// results, call ListPipelinesOutput again with this marker value. If the value
// is null, there are no more results.
Marker *string `locationName:"marker" type:"string"`
// The pipeline identifiers. If you require additional information about the
// pipelines, you can use these identifiers to call DescribePipelines and GetPipelineDefinition.
PipelineIdList []*PipelineIdName `locationName:"pipelineIdList" type:"list" required:"true"`
}
// String returns the string representation
func (s ListPipelinesOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListPipelinesOutput) GoString() string {
return s.String()
}
// Contains a logical operation for comparing the value of a field with a specified
// value.
type Operator struct {
_ struct{} `type:"structure"`
// The logical operation to be performed: equal (EQ), equal reference (REF_EQ),
// less than or equal (LE), greater than or equal (GE), or between (BETWEEN).
// Equal reference (REF_EQ) can be used only with reference fields. The other
// comparison types can be used only with String fields. The comparison types
// you can use apply only to certain object fields, as detailed below.
//
// The comparison operators EQ and REF_EQ act on the following fields:
//
// name @sphere parent @componentParent @instanceParent @status @scheduledStartTime
// @scheduledEndTime @actualStartTime @actualEndTime The comparison operators
// GE, LE, and BETWEEN act on the following fields:
//
// @scheduledStartTime @scheduledEndTime @actualStartTime @actualEndTime
// Note that fields beginning with the at sign (@) are read-only and set by
// the web service. When you name fields, you should choose names containing
// only alpha-numeric values, as symbols may be reserved by AWS Data Pipeline.
// User-defined fields that you add to a pipeline should prefix their name with
// the string "my".
Type *string `locationName:"type" type:"string" enum:"OperatorType"`
// The value that the actual field value will be compared with.
Values []*string `locationName:"values" type:"list"`
}
// String returns the string representation
func (s Operator) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Operator) GoString() string {
return s.String()
}
// The attributes allowed or specified with a parameter object.
type ParameterAttribute struct {
_ struct{} `type:"structure"`
// The field identifier.
Key *string `locationName:"key" min:"1" type:"string" required:"true"`
// The field value, expressed as a String.
StringValue *string `locationName:"stringValue" type:"string" required:"true"`
}
// String returns the string representation
func (s ParameterAttribute) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ParameterAttribute) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ParameterAttribute) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ParameterAttribute"}
if s.Key == nil {
invalidParams.Add(request.NewErrParamRequired("Key"))
}
if s.Key != nil && len(*s.Key) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Key", 1))
}
if s.StringValue == nil {
invalidParams.Add(request.NewErrParamRequired("StringValue"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// Contains information about a parameter object.
type ParameterObject struct {
_ struct{} `type:"structure"`
// The attributes of the parameter object.
Attributes []*ParameterAttribute `locationName:"attributes" type:"list" required:"true"`
// The ID of the parameter object.
Id *string `locationName:"id" min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s ParameterObject) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ParameterObject) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ParameterObject) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ParameterObject"}
if s.Attributes == nil {
invalidParams.Add(request.NewErrParamRequired("Attributes"))
}
if s.Id == nil {
invalidParams.Add(request.NewErrParamRequired("Id"))
}
if s.Id != nil && len(*s.Id) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Id", 1))
}
if s.Attributes != nil {
for i, v := range s.Attributes {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Attributes", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// A value or list of parameter values.
type ParameterValue struct {
_ struct{} `type:"structure"`
// The ID of the parameter value.
Id *string `locationName:"id" min:"1" type:"string" required:"true"`
// The field value, expressed as a String.
StringValue *string `locationName:"stringValue" type:"string" required:"true"`
}
// String returns the string representation
func (s ParameterValue) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ParameterValue) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ParameterValue) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ParameterValue"}
if s.Id == nil {
invalidParams.Add(request.NewErrParamRequired("Id"))
}
if s.Id != nil && len(*s.Id) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Id", 1))
}
if s.StringValue == nil {
invalidParams.Add(request.NewErrParamRequired("StringValue"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// Contains pipeline metadata.
type PipelineDescription struct {
_ struct{} `type:"structure"`
// Description of the pipeline.
Description *string `locationName:"description" type:"string"`
// A list of read-only fields that contain metadata about the pipeline: @userId,
// @accountId, and @pipelineState.
Fields []*Field `locationName:"fields" type:"list" required:"true"`
// The name of the pipeline.
Name *string `locationName:"name" min:"1" type:"string" required:"true"`
// The pipeline identifier that was assigned by AWS Data Pipeline. This is a
// string of the form df-297EG78HU43EEXAMPLE.
PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
// A list of tags to associated with a pipeline. Tags let you control access
// to pipelines. For more information, see Controlling User Access to Pipelines
// (http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-control-access.html)
// in the AWS Data Pipeline Developer Guide.
Tags []*Tag `locationName:"tags" type:"list"`
}
// String returns the string representation
func (s PipelineDescription) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s PipelineDescription) GoString() string {
return s.String()
}
// Contains the name and identifier of a pipeline.
type PipelineIdName struct {
_ struct{} `type:"structure"`
// The ID of the pipeline that was assigned by AWS Data Pipeline. This is a
// string of the form df-297EG78HU43EEXAMPLE.
Id *string `locationName:"id" min:"1" type:"string"`
// The name of the pipeline.
Name *string `locationName:"name" min:"1" type:"string"`
}
// String returns the string representation
func (s PipelineIdName) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s PipelineIdName) GoString() string {
return s.String()
}
// Contains information about a pipeline object. This can be a logical, physical,
// or physical attempt pipeline object. The complete set of components of a
// pipeline defines the pipeline.
type PipelineObject struct {
_ struct{} `type:"structure"`
// Key-value pairs that define the properties of the object.
Fields []*Field `locationName:"fields" type:"list" required:"true"`
// The ID of the object.
Id *string `locationName:"id" min:"1" type:"string" required:"true"`
// The name of the object.
Name *string `locationName:"name" min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s PipelineObject) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s PipelineObject) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *PipelineObject) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "PipelineObject"}
if s.Fields == nil {
invalidParams.Add(request.NewErrParamRequired("Fields"))
}
if s.Id == nil {
invalidParams.Add(request.NewErrParamRequired("Id"))
}
if s.Id != nil && len(*s.Id) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Id", 1))
}
if s.Name == nil {
invalidParams.Add(request.NewErrParamRequired("Name"))
}
if s.Name != nil && len(*s.Name) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Name", 1))
}
if s.Fields != nil {
for i, v := range s.Fields {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Fields", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// Contains the parameters for PollForTask.
type PollForTaskInput struct {
_ struct{} `type:"structure"`
// The public DNS name of the calling task runner.
Hostname *string `locationName:"hostname" min:"1" type:"string"`
// Identity information for the EC2 instance that is hosting the task runner.
// You can get this value from the instance using http://169.254.169.254/latest/meta-data/instance-id.
// For more information, see Instance Metadata (http://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.
InstanceIdentity *InstanceIdentity `locationName:"instanceIdentity" type:"structure"`
// 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 *string `locationName:"workerGroup" type:"string" required:"true"`
}
// String returns the string representation
func (s PollForTaskInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s PollForTaskInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *PollForTaskInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "PollForTaskInput"}
if s.Hostname != nil && len(*s.Hostname) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Hostname", 1))
}
if s.WorkerGroup == nil {
invalidParams.Add(request.NewErrParamRequired("WorkerGroup"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// Contains the output of PollForTask.
type PollForTaskOutput struct {
_ struct{} `type:"structure"`
// The information needed to complete the task that is being assigned to the
// task runner. One of the fields returned in this object is taskId, which contains
// an identifier for the task being assigned. The calling task runner uses taskId
// in subsequent calls to ReportTaskProgress and SetTaskStatus.
TaskObject *TaskObject `locationName:"taskObject" type:"structure"`
}
// String returns the string representation
func (s PollForTaskOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s PollForTaskOutput) GoString() string {
return s.String()
}
// Contains the parameters for PutPipelineDefinition.
type PutPipelineDefinitionInput struct {
_ struct{} `type:"structure"`
// The parameter objects used with the pipeline.
ParameterObjects []*ParameterObject `locationName:"parameterObjects" type:"list"`
// The parameter values used with the pipeline.
ParameterValues []*ParameterValue `locationName:"parameterValues" type:"list"`
// The ID of the pipeline.
PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
// The objects that define the pipeline. These objects overwrite the existing
// pipeline definition.
PipelineObjects []*PipelineObject `locationName:"pipelineObjects" type:"list" required:"true"`
}
// String returns the string representation
func (s PutPipelineDefinitionInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s PutPipelineDefinitionInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *PutPipelineDefinitionInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "PutPipelineDefinitionInput"}
if s.PipelineId == nil {
invalidParams.Add(request.NewErrParamRequired("PipelineId"))
}
if s.PipelineId != nil && len(*s.PipelineId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
}
if s.PipelineObjects == nil {
invalidParams.Add(request.NewErrParamRequired("PipelineObjects"))
}
if s.ParameterObjects != nil {
for i, v := range s.ParameterObjects {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ParameterObjects", i), err.(request.ErrInvalidParams))
}
}
}
if s.ParameterValues != nil {
for i, v := range s.ParameterValues {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ParameterValues", i), err.(request.ErrInvalidParams))
}
}
}
if s.PipelineObjects != nil {
for i, v := range s.PipelineObjects {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PipelineObjects", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// Contains the output of PutPipelineDefinition.
type PutPipelineDefinitionOutput struct {
_ struct{} `type:"structure"`
// Indicates whether there were validation errors, and the pipeline definition
// is stored but cannot be activated until you correct the pipeline and call
// PutPipelineDefinition to commit the corrected pipeline.
Errored *bool `locationName:"errored" type:"boolean" required:"true"`
// The validation errors that are associated with the objects defined in pipelineObjects.
ValidationErrors []*ValidationError `locationName:"validationErrors" type:"list"`
// The validation warnings that are associated with the objects defined in pipelineObjects.
ValidationWarnings []*ValidationWarning `locationName:"validationWarnings" type:"list"`
}
// String returns the string representation
func (s PutPipelineDefinitionOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s PutPipelineDefinitionOutput) GoString() string {
return s.String()
}
// Defines the query to run against an object.
type Query struct {
_ struct{} `type:"structure"`
// List of selectors that define the query. An object must satisfy all of the
// selectors to match the query.
Selectors []*Selector `locationName:"selectors" type:"list"`
}
// String returns the string representation
func (s Query) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Query) GoString() string {
return s.String()
}
// Contains the parameters for QueryObjects.
type QueryObjectsInput struct {
_ struct{} `type:"structure"`
// The maximum number of object names that QueryObjects will return in a single
// call. The default value is 100.
Limit *int64 `locationName:"limit" type:"integer"`
// The starting point for the results to be returned. For the first call, this
// value should be empty. As long as there are more results, continue to call
// QueryObjects with the marker value from the previous call to retrieve the
// next set of results.
Marker *string `locationName:"marker" type:"string"`
// The ID of the pipeline.
PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
// The query that defines the objects to be returned. The Query object can contain
// a maximum of ten selectors. The conditions in the query are limited to top-level
// String fields in the object. These filters can be applied to components,
// instances, and attempts.
Query *Query `locationName:"query" type:"structure"`
// Indicates whether the query applies to components or instances. The possible
// values are: COMPONENT, INSTANCE, and ATTEMPT.
Sphere *string `locationName:"sphere" type:"string" required:"true"`
}
// String returns the string representation
func (s QueryObjectsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s QueryObjectsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *QueryObjectsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "QueryObjectsInput"}
if s.PipelineId == nil {
invalidParams.Add(request.NewErrParamRequired("PipelineId"))
}
if s.PipelineId != nil && len(*s.PipelineId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
}
if s.Sphere == nil {
invalidParams.Add(request.NewErrParamRequired("Sphere"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// Contains the output of QueryObjects.
type QueryObjectsOutput struct {
_ struct{} `type:"structure"`
// Indicates whether there are more results that can be obtained by a subsequent
// call.
HasMoreResults *bool `locationName:"hasMoreResults" type:"boolean"`
// The identifiers that match the query selectors.
Ids []*string `locationName:"ids" type:"list"`
// The starting point for the next page of results. To view the next page of
// results, call QueryObjects again with this marker value. If the value is
// null, there are no more results.
Marker *string `locationName:"marker" type:"string"`
}
// String returns the string representation
func (s QueryObjectsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s QueryObjectsOutput) GoString() string {
return s.String()
}
// Contains the parameters for RemoveTags.
type RemoveTagsInput struct {
_ struct{} `type:"structure"`
// The ID of the pipeline.
PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
// The keys of the tags to remove.
TagKeys []*string `locationName:"tagKeys" 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.PipelineId == nil {
invalidParams.Add(request.NewErrParamRequired("PipelineId"))
}
if s.PipelineId != nil && len(*s.PipelineId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
}
if s.TagKeys == nil {
invalidParams.Add(request.NewErrParamRequired("TagKeys"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// Contains the output of RemoveTags.
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()
}
// Contains the parameters for ReportTaskProgress.
type ReportTaskProgressInput struct {
_ struct{} `type:"structure"`
// Key-value pairs that define the properties of the ReportTaskProgressInput
// object.
Fields []*Field `locationName:"fields" type:"list"`
// The ID of the task assigned to the task runner. This value is provided in
// the response for PollForTask.
TaskId *string `locationName:"taskId" min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s ReportTaskProgressInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ReportTaskProgressInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ReportTaskProgressInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ReportTaskProgressInput"}
if s.TaskId == nil {
invalidParams.Add(request.NewErrParamRequired("TaskId"))
}
if s.TaskId != nil && len(*s.TaskId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("TaskId", 1))
}
if s.Fields != nil {
for i, v := range s.Fields {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Fields", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// Contains the output of ReportTaskProgress.
type ReportTaskProgressOutput struct {
_ struct{} `type:"structure"`
// If true, the calling task runner should cancel processing of the task. The
// task runner does not need to call SetTaskStatus for canceled tasks.
Canceled *bool `locationName:"canceled" type:"boolean" required:"true"`
}
// String returns the string representation
func (s ReportTaskProgressOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ReportTaskProgressOutput) GoString() string {
return s.String()
}
// Contains the parameters for ReportTaskRunnerHeartbeat.
type ReportTaskRunnerHeartbeatInput struct {
_ struct{} `type:"structure"`
// The public DNS name of the task runner.
Hostname *string `locationName:"hostname" min:"1" type:"string"`
// The ID of the task runner. This value should be unique across your AWS account.
// In the case of AWS Data Pipeline Task Runner launched on a resource managed
// by AWS Data Pipeline, the web service provides a unique identifier when it
// launches the application. If you have written a custom task runner, you should
// assign a unique identifier for the task runner.
TaskrunnerId *string `locationName:"taskrunnerId" min:"1" type:"string" required:"true"`
// 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. There are no wildcard
// values permitted in workerGroup; the string must be an exact, case-sensitive,
// match.
WorkerGroup *string `locationName:"workerGroup" type:"string"`
}
// String returns the string representation
func (s ReportTaskRunnerHeartbeatInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ReportTaskRunnerHeartbeatInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ReportTaskRunnerHeartbeatInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ReportTaskRunnerHeartbeatInput"}
if s.Hostname != nil && len(*s.Hostname) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Hostname", 1))
}
if s.TaskrunnerId == nil {
invalidParams.Add(request.NewErrParamRequired("TaskrunnerId"))
}
if s.TaskrunnerId != nil && len(*s.TaskrunnerId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("TaskrunnerId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// Contains the output of ReportTaskRunnerHeartbeat.
type ReportTaskRunnerHeartbeatOutput struct {
_ struct{} `type:"structure"`
// Indicates whether the calling task runner should terminate.
Terminate *bool `locationName:"terminate" type:"boolean" required:"true"`
}
// String returns the string representation
func (s ReportTaskRunnerHeartbeatOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ReportTaskRunnerHeartbeatOutput) GoString() string {
return s.String()
}
// A comparision that is used to determine whether a query should return this
// object.
type Selector struct {
_ struct{} `type:"structure"`
// The name of the field that the operator will be applied to. The field name
// is the "key" portion of the field definition in the pipeline definition syntax
// that is used by the AWS Data Pipeline API. If the field is not set on the
// object, the condition fails.
FieldName *string `locationName:"fieldName" type:"string"`
// Contains a logical operation for comparing the value of a field with a specified
// value.
Operator *Operator `locationName:"operator" type:"structure"`
}
// String returns the string representation
func (s Selector) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Selector) GoString() string {
return s.String()
}
// Contains the parameters for SetStatus.
type SetStatusInput struct {
_ struct{} `type:"structure"`
// The IDs of the objects. The corresponding objects can be either physical
// or components, but not a mix of both types.
ObjectIds []*string `locationName:"objectIds" type:"list" required:"true"`
// The ID of the pipeline that contains the objects.
PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
// The status to be set on all the objects specified in objectIds. For components,
// use PAUSE or RESUME. For instances, use TRY_CANCEL, RERUN, or MARK_FINISHED.
Status *string `locationName:"status" type:"string" required:"true"`
}
// String returns the string representation
func (s SetStatusInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SetStatusInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *SetStatusInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "SetStatusInput"}
if s.ObjectIds == nil {
invalidParams.Add(request.NewErrParamRequired("ObjectIds"))
}
if s.PipelineId == nil {
invalidParams.Add(request.NewErrParamRequired("PipelineId"))
}
if s.PipelineId != nil && len(*s.PipelineId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
}
if s.Status == nil {
invalidParams.Add(request.NewErrParamRequired("Status"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
type SetStatusOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s SetStatusOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SetStatusOutput) GoString() string {
return s.String()
}
// Contains the parameters for SetTaskStatus.
type SetTaskStatusInput struct {
_ struct{} `type:"structure"`
// If an error occurred during the task, this value specifies the error code.
// This value is set on the physical attempt object. It is used to display error
// information to the user. It should not start with string "Service_" which
// is reserved by the system.
ErrorId *string `locationName:"errorId" type:"string"`
// If an error occurred during the task, this value specifies a text description
// of the error. This value is set on the physical attempt object. It is used
// to display error information to the user. The web service does not parse
// this value.
ErrorMessage *string `locationName:"errorMessage" type:"string"`
// If an error occurred during the task, this value specifies the stack trace
// associated with the error. This value is set on the physical attempt object.
// It is used to display error information to the user. The web service does
// not parse this value.
ErrorStackTrace *string `locationName:"errorStackTrace" type:"string"`
// The ID of the task assigned to the task runner. This value is provided in
// the response for PollForTask.
TaskId *string `locationName:"taskId" min:"1" type:"string" required:"true"`
// If FINISHED, the task successfully completed. If FAILED, the task ended unsuccessfully.
// Preconditions use false.
TaskStatus *string `locationName:"taskStatus" type:"string" required:"true" enum:"TaskStatus"`
}
// String returns the string representation
func (s SetTaskStatusInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SetTaskStatusInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *SetTaskStatusInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "SetTaskStatusInput"}
if s.TaskId == nil {
invalidParams.Add(request.NewErrParamRequired("TaskId"))
}
if s.TaskId != nil && len(*s.TaskId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("TaskId", 1))
}
if s.TaskStatus == nil {
invalidParams.Add(request.NewErrParamRequired("TaskStatus"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// Contains the output of SetTaskStatus.
type SetTaskStatusOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s SetTaskStatusOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SetTaskStatusOutput) GoString() string {
return s.String()
}
// Tags are key/value pairs defined by a user and associated with a pipeline
// to control access. AWS Data Pipeline allows you to associate ten tags per
// pipeline. For more information, see Controlling User Access to Pipelines
// (http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-control-access.html)
// in the AWS Data Pipeline Developer Guide.
type Tag struct {
_ struct{} `type:"structure"`
// The key name of a tag defined by a user. For more information, see Controlling
// User Access to Pipelines (http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-control-access.html)
// in the AWS Data Pipeline Developer Guide.
Key *string `locationName:"key" min:"1" type:"string" required:"true"`
// The optional value portion of a tag defined by a user. For more information,
// see Controlling User Access to Pipelines (http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-control-access.html)
// in the AWS Data Pipeline Developer Guide.
Value *string `locationName:"value" type:"string" required:"true"`
}
// 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()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *Tag) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "Tag"}
if s.Key == nil {
invalidParams.Add(request.NewErrParamRequired("Key"))
}
if s.Key != nil && len(*s.Key) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Key", 1))
}
if s.Value == nil {
invalidParams.Add(request.NewErrParamRequired("Value"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// Contains information about a pipeline task that is assigned to a task runner.
type TaskObject struct {
_ struct{} `type:"structure"`
// The ID of the pipeline task attempt object. AWS Data Pipeline uses this value
// to track how many times a task is attempted.
AttemptId *string `locationName:"attemptId" min:"1" type:"string"`
// Connection information for the location where the task runner will publish
// the output of the task.
Objects map[string]*PipelineObject `locationName:"objects" type:"map"`
// The ID of the pipeline that provided the task.
PipelineId *string `locationName:"pipelineId" min:"1" type:"string"`
// An internal identifier for the task. This ID is passed to the SetTaskStatus
// and ReportTaskProgress actions.
TaskId *string `locationName:"taskId" min:"1" type:"string"`
}
// String returns the string representation
func (s TaskObject) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s TaskObject) GoString() string {
return s.String()
}
// Contains the parameters for ValidatePipelineDefinition.
type ValidatePipelineDefinitionInput struct {
_ struct{} `type:"structure"`
// The parameter objects used with the pipeline.
ParameterObjects []*ParameterObject `locationName:"parameterObjects" type:"list"`
// The parameter values used with the pipeline.
ParameterValues []*ParameterValue `locationName:"parameterValues" type:"list"`
// The ID of the pipeline.
PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
// The objects that define the pipeline changes to validate against the pipeline.
PipelineObjects []*PipelineObject `locationName:"pipelineObjects" type:"list" required:"true"`
}
// String returns the string representation
func (s ValidatePipelineDefinitionInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ValidatePipelineDefinitionInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ValidatePipelineDefinitionInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ValidatePipelineDefinitionInput"}
if s.PipelineId == nil {
invalidParams.Add(request.NewErrParamRequired("PipelineId"))
}
if s.PipelineId != nil && len(*s.PipelineId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
}
if s.PipelineObjects == nil {
invalidParams.Add(request.NewErrParamRequired("PipelineObjects"))
}
if s.ParameterObjects != nil {
for i, v := range s.ParameterObjects {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ParameterObjects", i), err.(request.ErrInvalidParams))
}
}
}
if s.ParameterValues != nil {
for i, v := range s.ParameterValues {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ParameterValues", i), err.(request.ErrInvalidParams))
}
}
}
if s.PipelineObjects != nil {
for i, v := range s.PipelineObjects {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PipelineObjects", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// Contains the output of ValidatePipelineDefinition.
type ValidatePipelineDefinitionOutput struct {
_ struct{} `type:"structure"`
// Indicates whether there were validation errors.
Errored *bool `locationName:"errored" type:"boolean" required:"true"`
// Any validation errors that were found.
ValidationErrors []*ValidationError `locationName:"validationErrors" type:"list"`
// Any validation warnings that were found.
ValidationWarnings []*ValidationWarning `locationName:"validationWarnings" type:"list"`
}
// String returns the string representation
func (s ValidatePipelineDefinitionOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ValidatePipelineDefinitionOutput) GoString() string {
return s.String()
}
// Defines a validation error. Validation errors prevent pipeline activation.
// The set of validation errors that can be returned are defined by AWS Data
// Pipeline.
type ValidationError struct {
_ struct{} `type:"structure"`
// A description of the validation error.
Errors []*string `locationName:"errors" type:"list"`
// The identifier of the object that contains the validation error.
Id *string `locationName:"id" min:"1" type:"string"`
}
// String returns the string representation
func (s ValidationError) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ValidationError) GoString() string {
return s.String()
}
// Defines a validation warning. Validation warnings do not prevent pipeline
// activation. The set of validation warnings that can be returned are defined
// by AWS Data Pipeline.
type ValidationWarning struct {
_ struct{} `type:"structure"`
// The identifier of the object that contains the validation warning.
Id *string `locationName:"id" min:"1" type:"string"`
// A description of the validation warning.
Warnings []*string `locationName:"warnings" type:"list"`
}
// String returns the string representation
func (s ValidationWarning) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ValidationWarning) GoString() string {
return s.String()
}
const (
// @enum OperatorType
OperatorTypeEq = "EQ"
// @enum OperatorType
OperatorTypeRefEq = "REF_EQ"
// @enum OperatorType
OperatorTypeLe = "LE"
// @enum OperatorType
OperatorTypeGe = "GE"
// @enum OperatorType
OperatorTypeBetween = "BETWEEN"
)
const (
// @enum TaskStatus
TaskStatusFinished = "FINISHED"
// @enum TaskStatus
TaskStatusFailed = "FAILED"
// @enum TaskStatus
TaskStatusFalse = "FALSE"
)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors/aws-sdk-go.git
git@gitee.com:mirrors/aws-sdk-go.git
mirrors
aws-sdk-go
aws-sdk-go
v1.2.0

搜索帮助

344bd9b3 5694891 D2dac590 5694891