mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-31 04:30:44 +00:00
Upgrade AWS SDK to the latest version
This commit is contained in:
+190
-198
@@ -1,6 +1,5 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package datapipeline provides a client for AWS Data Pipeline.
|
||||
package datapipeline
|
||||
|
||||
import (
|
||||
@@ -18,19 +17,18 @@ const opActivatePipeline = "ActivatePipeline"
|
||||
|
||||
// ActivatePipelineRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ActivatePipeline operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See ActivatePipeline for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ActivatePipeline method directly
|
||||
// instead.
|
||||
// See ActivatePipeline for more information on using the ActivatePipeline
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ActivatePipelineRequest method.
|
||||
// req, resp := client.ActivatePipelineRequest(params)
|
||||
@@ -117,19 +115,18 @@ const opAddTags = "AddTags"
|
||||
|
||||
// AddTagsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the AddTags operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See AddTags for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the AddTags method directly
|
||||
// instead.
|
||||
// See AddTags for more information on using the AddTags
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the AddTagsRequest method.
|
||||
// req, resp := client.AddTagsRequest(params)
|
||||
@@ -209,19 +206,18 @@ const opCreatePipeline = "CreatePipeline"
|
||||
|
||||
// CreatePipelineRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CreatePipeline operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See CreatePipeline for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CreatePipeline method directly
|
||||
// instead.
|
||||
// See CreatePipeline for more information on using the CreatePipeline
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CreatePipelineRequest method.
|
||||
// req, resp := client.CreatePipelineRequest(params)
|
||||
@@ -295,19 +291,18 @@ const opDeactivatePipeline = "DeactivatePipeline"
|
||||
|
||||
// DeactivatePipelineRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeactivatePipeline operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DeactivatePipeline for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeactivatePipeline method directly
|
||||
// instead.
|
||||
// See DeactivatePipeline for more information on using the DeactivatePipeline
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeactivatePipelineRequest method.
|
||||
// req, resp := client.DeactivatePipelineRequest(params)
|
||||
@@ -392,19 +387,18 @@ const opDeletePipeline = "DeletePipeline"
|
||||
|
||||
// DeletePipelineRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeletePipeline operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DeletePipeline for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeletePipeline method directly
|
||||
// instead.
|
||||
// See DeletePipeline for more information on using the DeletePipeline
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeletePipelineRequest method.
|
||||
// req, resp := client.DeletePipelineRequest(params)
|
||||
@@ -490,19 +484,18 @@ const opDescribeObjects = "DescribeObjects"
|
||||
|
||||
// DescribeObjectsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeObjects operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeObjects for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeObjects method directly
|
||||
// instead.
|
||||
// See DescribeObjects for more information on using the DescribeObjects
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeObjectsRequest method.
|
||||
// req, resp := client.DescribeObjectsRequest(params)
|
||||
@@ -617,8 +610,12 @@ func (c *DataPipeline) DescribeObjectsPages(input *DescribeObjectsInput, fn func
|
||||
func (c *DataPipeline) DescribeObjectsPagesWithContext(ctx aws.Context, input *DescribeObjectsInput, fn func(*DescribeObjectsOutput, bool) bool, opts ...request.Option) error {
|
||||
p := request.Pagination{
|
||||
NewRequest: func() (*request.Request, error) {
|
||||
inCpy := *input
|
||||
req, _ := c.DescribeObjectsRequest(&inCpy)
|
||||
var inCpy *DescribeObjectsInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.DescribeObjectsRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
@@ -636,19 +633,18 @@ const opDescribePipelines = "DescribePipelines"
|
||||
|
||||
// DescribePipelinesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribePipelines operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribePipelines for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribePipelines method directly
|
||||
// instead.
|
||||
// See DescribePipelines for more information on using the DescribePipelines
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribePipelinesRequest method.
|
||||
// req, resp := client.DescribePipelinesRequest(params)
|
||||
@@ -736,19 +732,18 @@ const opEvaluateExpression = "EvaluateExpression"
|
||||
|
||||
// EvaluateExpressionRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the EvaluateExpression operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See EvaluateExpression for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the EvaluateExpression method directly
|
||||
// instead.
|
||||
// See EvaluateExpression for more information on using the EvaluateExpression
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the EvaluateExpressionRequest method.
|
||||
// req, resp := client.EvaluateExpressionRequest(params)
|
||||
@@ -833,19 +828,18 @@ const opGetPipelineDefinition = "GetPipelineDefinition"
|
||||
|
||||
// GetPipelineDefinitionRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetPipelineDefinition operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See GetPipelineDefinition for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the GetPipelineDefinition method directly
|
||||
// instead.
|
||||
// See GetPipelineDefinition for more information on using the GetPipelineDefinition
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the GetPipelineDefinitionRequest method.
|
||||
// req, resp := client.GetPipelineDefinitionRequest(params)
|
||||
@@ -926,19 +920,18 @@ const opListPipelines = "ListPipelines"
|
||||
|
||||
// ListPipelinesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListPipelines operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See ListPipelines for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListPipelines method directly
|
||||
// instead.
|
||||
// See ListPipelines for more information on using the ListPipelines
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListPipelinesRequest method.
|
||||
// req, resp := client.ListPipelinesRequest(params)
|
||||
@@ -1045,8 +1038,12 @@ func (c *DataPipeline) ListPipelinesPages(input *ListPipelinesInput, fn func(*Li
|
||||
func (c *DataPipeline) ListPipelinesPagesWithContext(ctx aws.Context, input *ListPipelinesInput, fn func(*ListPipelinesOutput, bool) bool, opts ...request.Option) error {
|
||||
p := request.Pagination{
|
||||
NewRequest: func() (*request.Request, error) {
|
||||
inCpy := *input
|
||||
req, _ := c.ListPipelinesRequest(&inCpy)
|
||||
var inCpy *ListPipelinesInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.ListPipelinesRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
@@ -1064,19 +1061,18 @@ const opPollForTask = "PollForTask"
|
||||
|
||||
// PollForTaskRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the PollForTask operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See PollForTask for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the PollForTask method directly
|
||||
// instead.
|
||||
// See PollForTask for more information on using the PollForTask
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the PollForTaskRequest method.
|
||||
// req, resp := client.PollForTaskRequest(params)
|
||||
@@ -1165,19 +1161,18 @@ const opPutPipelineDefinition = "PutPipelineDefinition"
|
||||
|
||||
// PutPipelineDefinitionRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the PutPipelineDefinition operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See PutPipelineDefinition for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the PutPipelineDefinition method directly
|
||||
// instead.
|
||||
// See PutPipelineDefinition for more information on using the PutPipelineDefinition
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the PutPipelineDefinitionRequest method.
|
||||
// req, resp := client.PutPipelineDefinitionRequest(params)
|
||||
@@ -1270,19 +1265,18 @@ const opQueryObjects = "QueryObjects"
|
||||
|
||||
// QueryObjectsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the QueryObjects operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See QueryObjects for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the QueryObjects method directly
|
||||
// instead.
|
||||
// See QueryObjects for more information on using the QueryObjects
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the QueryObjectsRequest method.
|
||||
// req, resp := client.QueryObjectsRequest(params)
|
||||
@@ -1396,8 +1390,12 @@ func (c *DataPipeline) QueryObjectsPages(input *QueryObjectsInput, fn func(*Quer
|
||||
func (c *DataPipeline) QueryObjectsPagesWithContext(ctx aws.Context, input *QueryObjectsInput, fn func(*QueryObjectsOutput, bool) bool, opts ...request.Option) error {
|
||||
p := request.Pagination{
|
||||
NewRequest: func() (*request.Request, error) {
|
||||
inCpy := *input
|
||||
req, _ := c.QueryObjectsRequest(&inCpy)
|
||||
var inCpy *QueryObjectsInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.QueryObjectsRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
@@ -1415,19 +1413,18 @@ const opRemoveTags = "RemoveTags"
|
||||
|
||||
// RemoveTagsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the RemoveTags operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See RemoveTags for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the RemoveTags method directly
|
||||
// instead.
|
||||
// See RemoveTags for more information on using the RemoveTags
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the RemoveTagsRequest method.
|
||||
// req, resp := client.RemoveTagsRequest(params)
|
||||
@@ -1507,19 +1504,18 @@ const opReportTaskProgress = "ReportTaskProgress"
|
||||
|
||||
// ReportTaskProgressRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ReportTaskProgress operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See ReportTaskProgress for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ReportTaskProgress method directly
|
||||
// instead.
|
||||
// See ReportTaskProgress for more information on using the ReportTaskProgress
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ReportTaskProgressRequest method.
|
||||
// req, resp := client.ReportTaskProgressRequest(params)
|
||||
@@ -1613,19 +1609,18 @@ const opReportTaskRunnerHeartbeat = "ReportTaskRunnerHeartbeat"
|
||||
|
||||
// ReportTaskRunnerHeartbeatRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ReportTaskRunnerHeartbeat operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See ReportTaskRunnerHeartbeat for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ReportTaskRunnerHeartbeat method directly
|
||||
// instead.
|
||||
// See ReportTaskRunnerHeartbeat for more information on using the ReportTaskRunnerHeartbeat
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ReportTaskRunnerHeartbeatRequest method.
|
||||
// req, resp := client.ReportTaskRunnerHeartbeatRequest(params)
|
||||
@@ -1702,19 +1697,18 @@ const opSetStatus = "SetStatus"
|
||||
|
||||
// SetStatusRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the SetStatus operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See SetStatus for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the SetStatus method directly
|
||||
// instead.
|
||||
// See SetStatus for more information on using the SetStatus
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the SetStatusRequest method.
|
||||
// req, resp := client.SetStatusRequest(params)
|
||||
@@ -1800,19 +1794,18 @@ const opSetTaskStatus = "SetTaskStatus"
|
||||
|
||||
// SetTaskStatusRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the SetTaskStatus operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See SetTaskStatus for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the SetTaskStatus method directly
|
||||
// instead.
|
||||
// See SetTaskStatus for more information on using the SetTaskStatus
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the SetTaskStatusRequest method.
|
||||
// req, resp := client.SetTaskStatusRequest(params)
|
||||
@@ -1899,19 +1892,18 @@ const opValidatePipelineDefinition = "ValidatePipelineDefinition"
|
||||
|
||||
// ValidatePipelineDefinitionRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ValidatePipelineDefinition operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See ValidatePipelineDefinition for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ValidatePipelineDefinition method directly
|
||||
// instead.
|
||||
// See ValidatePipelineDefinition for more information on using the ValidatePipelineDefinition
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ValidatePipelineDefinitionRequest method.
|
||||
// req, resp := client.ValidatePipelineDefinitionRequest(params)
|
||||
|
||||
Generated
Vendored
+2
-2
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package datapipelineiface provides an interface to enable mocking the AWS Data Pipeline service client
|
||||
// for testing your code.
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
//
|
||||
// The best way to use this interface is so the SDK's service client's calls
|
||||
// can be stubbed out for unit testing your code with the SDK without needing
|
||||
// to inject custom request handlers into the the SDK's request pipeline.
|
||||
// to inject custom request handlers into the SDK's request pipeline.
|
||||
//
|
||||
// // myFunc uses an SDK service client to make a request to
|
||||
// // AWS Data Pipeline.
|
||||
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package datapipeline provides the client and types for making API
|
||||
// requests to AWS Data Pipeline.
|
||||
//
|
||||
// AWS Data Pipeline configures and manages a data-driven workflow called a
|
||||
// pipeline. AWS Data Pipeline handles the details of scheduling and ensuring
|
||||
// that data dependencies are met so that your application can focus on processing
|
||||
// the data.
|
||||
//
|
||||
// AWS Data Pipeline provides a JAR implementation of a task runner called AWS
|
||||
// Data Pipeline Task Runner. AWS Data Pipeline Task Runner provides logic for
|
||||
// common data management scenarios, such as performing database queries and
|
||||
// running data analysis using Amazon Elastic MapReduce (Amazon EMR). You can
|
||||
// use AWS Data Pipeline Task Runner as your task runner, or you can write your
|
||||
// own task runner to provide custom data management.
|
||||
//
|
||||
// AWS Data Pipeline implements two main sets of functionality. Use the first
|
||||
// set to create a pipeline and define data sources, schedules, dependencies,
|
||||
// and the transforms to be performed on the data. Use the second set in your
|
||||
// task runner application to receive the next task ready for processing. The
|
||||
// logic for performing the task, such as querying the data, running data analysis,
|
||||
// or converting the data from one format to another, is contained within the
|
||||
// task runner. The task runner performs the task assigned to it by the web
|
||||
// service, reporting progress to the web service as it does so. When the task
|
||||
// is done, the task runner reports the final success or failure of the task
|
||||
// to the web service.
|
||||
//
|
||||
// See https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29 for more information on this service.
|
||||
//
|
||||
// See datapipeline package documentation for more information.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/datapipeline/
|
||||
//
|
||||
// Using the Client
|
||||
//
|
||||
// To AWS Data Pipeline with the SDK use the New function to create
|
||||
// a new service client. With that client you can make API requests to the service.
|
||||
// These clients are safe to use concurrently.
|
||||
//
|
||||
// See the SDK's documentation for more information on how to use the SDK.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/
|
||||
//
|
||||
// See aws.Config documentation for more information on configuring SDK clients.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
|
||||
//
|
||||
// See the AWS Data Pipeline client DataPipeline for more
|
||||
// information on creating client for this service.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/datapipeline/#New
|
||||
package datapipeline
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package datapipeline
|
||||
|
||||
|
||||
-568
@@ -1,568 +0,0 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
|
||||
package datapipeline_test
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/session"
|
||||
"github.com/aws/aws-sdk-go/service/datapipeline"
|
||||
)
|
||||
|
||||
var _ time.Duration
|
||||
var _ bytes.Buffer
|
||||
|
||||
func ExampleDataPipeline_ActivatePipeline() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := datapipeline.New(sess)
|
||||
|
||||
params := &datapipeline.ActivatePipelineInput{
|
||||
PipelineId: aws.String("id"), // Required
|
||||
ParameterValues: []*datapipeline.ParameterValue{
|
||||
{ // Required
|
||||
Id: aws.String("fieldNameString"), // Required
|
||||
StringValue: aws.String("fieldStringValue"), // Required
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
StartTimestamp: aws.Time(time.Now()),
|
||||
}
|
||||
resp, err := svc.ActivatePipeline(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleDataPipeline_AddTags() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := datapipeline.New(sess)
|
||||
|
||||
params := &datapipeline.AddTagsInput{
|
||||
PipelineId: aws.String("id"), // Required
|
||||
Tags: []*datapipeline.Tag{ // Required
|
||||
{ // Required
|
||||
Key: aws.String("tagKey"), // Required
|
||||
Value: aws.String("tagValue"), // Required
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.AddTags(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleDataPipeline_CreatePipeline() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := datapipeline.New(sess)
|
||||
|
||||
params := &datapipeline.CreatePipelineInput{
|
||||
Name: aws.String("id"), // Required
|
||||
UniqueId: aws.String("id"), // Required
|
||||
Description: aws.String("string"),
|
||||
Tags: []*datapipeline.Tag{
|
||||
{ // Required
|
||||
Key: aws.String("tagKey"), // Required
|
||||
Value: aws.String("tagValue"), // Required
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.CreatePipeline(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleDataPipeline_DeactivatePipeline() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := datapipeline.New(sess)
|
||||
|
||||
params := &datapipeline.DeactivatePipelineInput{
|
||||
PipelineId: aws.String("id"), // Required
|
||||
CancelActive: aws.Bool(true),
|
||||
}
|
||||
resp, err := svc.DeactivatePipeline(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleDataPipeline_DeletePipeline() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := datapipeline.New(sess)
|
||||
|
||||
params := &datapipeline.DeletePipelineInput{
|
||||
PipelineId: aws.String("id"), // Required
|
||||
}
|
||||
resp, err := svc.DeletePipeline(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleDataPipeline_DescribeObjects() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := datapipeline.New(sess)
|
||||
|
||||
params := &datapipeline.DescribeObjectsInput{
|
||||
ObjectIds: []*string{ // Required
|
||||
aws.String("id"), // Required
|
||||
// More values...
|
||||
},
|
||||
PipelineId: aws.String("id"), // Required
|
||||
EvaluateExpressions: aws.Bool(true),
|
||||
Marker: aws.String("string"),
|
||||
}
|
||||
resp, err := svc.DescribeObjects(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleDataPipeline_DescribePipelines() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := datapipeline.New(sess)
|
||||
|
||||
params := &datapipeline.DescribePipelinesInput{
|
||||
PipelineIds: []*string{ // Required
|
||||
aws.String("id"), // Required
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.DescribePipelines(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleDataPipeline_EvaluateExpression() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := datapipeline.New(sess)
|
||||
|
||||
params := &datapipeline.EvaluateExpressionInput{
|
||||
Expression: aws.String("longString"), // Required
|
||||
ObjectId: aws.String("id"), // Required
|
||||
PipelineId: aws.String("id"), // Required
|
||||
}
|
||||
resp, err := svc.EvaluateExpression(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleDataPipeline_GetPipelineDefinition() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := datapipeline.New(sess)
|
||||
|
||||
params := &datapipeline.GetPipelineDefinitionInput{
|
||||
PipelineId: aws.String("id"), // Required
|
||||
Version: aws.String("string"),
|
||||
}
|
||||
resp, err := svc.GetPipelineDefinition(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleDataPipeline_ListPipelines() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := datapipeline.New(sess)
|
||||
|
||||
params := &datapipeline.ListPipelinesInput{
|
||||
Marker: aws.String("string"),
|
||||
}
|
||||
resp, err := svc.ListPipelines(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleDataPipeline_PollForTask() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := datapipeline.New(sess)
|
||||
|
||||
params := &datapipeline.PollForTaskInput{
|
||||
WorkerGroup: aws.String("string"), // Required
|
||||
Hostname: aws.String("id"),
|
||||
InstanceIdentity: &datapipeline.InstanceIdentity{
|
||||
Document: aws.String("string"),
|
||||
Signature: aws.String("string"),
|
||||
},
|
||||
}
|
||||
resp, err := svc.PollForTask(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleDataPipeline_PutPipelineDefinition() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := datapipeline.New(sess)
|
||||
|
||||
params := &datapipeline.PutPipelineDefinitionInput{
|
||||
PipelineId: aws.String("id"), // Required
|
||||
PipelineObjects: []*datapipeline.PipelineObject{ // Required
|
||||
{ // Required
|
||||
Fields: []*datapipeline.Field{ // Required
|
||||
{ // Required
|
||||
Key: aws.String("fieldNameString"), // Required
|
||||
RefValue: aws.String("fieldNameString"),
|
||||
StringValue: aws.String("fieldStringValue"),
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
Id: aws.String("id"), // Required
|
||||
Name: aws.String("id"), // Required
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
ParameterObjects: []*datapipeline.ParameterObject{
|
||||
{ // Required
|
||||
Attributes: []*datapipeline.ParameterAttribute{ // Required
|
||||
{ // Required
|
||||
Key: aws.String("attributeNameString"), // Required
|
||||
StringValue: aws.String("attributeValueString"), // Required
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
Id: aws.String("fieldNameString"), // Required
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
ParameterValues: []*datapipeline.ParameterValue{
|
||||
{ // Required
|
||||
Id: aws.String("fieldNameString"), // Required
|
||||
StringValue: aws.String("fieldStringValue"), // Required
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.PutPipelineDefinition(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleDataPipeline_QueryObjects() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := datapipeline.New(sess)
|
||||
|
||||
params := &datapipeline.QueryObjectsInput{
|
||||
PipelineId: aws.String("id"), // Required
|
||||
Sphere: aws.String("string"), // Required
|
||||
Limit: aws.Int64(1),
|
||||
Marker: aws.String("string"),
|
||||
Query: &datapipeline.Query{
|
||||
Selectors: []*datapipeline.Selector{
|
||||
{ // Required
|
||||
FieldName: aws.String("string"),
|
||||
Operator: &datapipeline.Operator{
|
||||
Type: aws.String("OperatorType"),
|
||||
Values: []*string{
|
||||
aws.String("string"), // Required
|
||||
// More values...
|
||||
},
|
||||
},
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
},
|
||||
}
|
||||
resp, err := svc.QueryObjects(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleDataPipeline_RemoveTags() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := datapipeline.New(sess)
|
||||
|
||||
params := &datapipeline.RemoveTagsInput{
|
||||
PipelineId: aws.String("id"), // Required
|
||||
TagKeys: []*string{ // Required
|
||||
aws.String("string"), // Required
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.RemoveTags(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleDataPipeline_ReportTaskProgress() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := datapipeline.New(sess)
|
||||
|
||||
params := &datapipeline.ReportTaskProgressInput{
|
||||
TaskId: aws.String("taskId"), // Required
|
||||
Fields: []*datapipeline.Field{
|
||||
{ // Required
|
||||
Key: aws.String("fieldNameString"), // Required
|
||||
RefValue: aws.String("fieldNameString"),
|
||||
StringValue: aws.String("fieldStringValue"),
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.ReportTaskProgress(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleDataPipeline_ReportTaskRunnerHeartbeat() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := datapipeline.New(sess)
|
||||
|
||||
params := &datapipeline.ReportTaskRunnerHeartbeatInput{
|
||||
TaskrunnerId: aws.String("id"), // Required
|
||||
Hostname: aws.String("id"),
|
||||
WorkerGroup: aws.String("string"),
|
||||
}
|
||||
resp, err := svc.ReportTaskRunnerHeartbeat(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleDataPipeline_SetStatus() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := datapipeline.New(sess)
|
||||
|
||||
params := &datapipeline.SetStatusInput{
|
||||
ObjectIds: []*string{ // Required
|
||||
aws.String("id"), // Required
|
||||
// More values...
|
||||
},
|
||||
PipelineId: aws.String("id"), // Required
|
||||
Status: aws.String("string"), // Required
|
||||
}
|
||||
resp, err := svc.SetStatus(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleDataPipeline_SetTaskStatus() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := datapipeline.New(sess)
|
||||
|
||||
params := &datapipeline.SetTaskStatusInput{
|
||||
TaskId: aws.String("taskId"), // Required
|
||||
TaskStatus: aws.String("TaskStatus"), // Required
|
||||
ErrorId: aws.String("string"),
|
||||
ErrorMessage: aws.String("errorMessage"),
|
||||
ErrorStackTrace: aws.String("string"),
|
||||
}
|
||||
resp, err := svc.SetTaskStatus(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleDataPipeline_ValidatePipelineDefinition() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := datapipeline.New(sess)
|
||||
|
||||
params := &datapipeline.ValidatePipelineDefinitionInput{
|
||||
PipelineId: aws.String("id"), // Required
|
||||
PipelineObjects: []*datapipeline.PipelineObject{ // Required
|
||||
{ // Required
|
||||
Fields: []*datapipeline.Field{ // Required
|
||||
{ // Required
|
||||
Key: aws.String("fieldNameString"), // Required
|
||||
RefValue: aws.String("fieldNameString"),
|
||||
StringValue: aws.String("fieldStringValue"),
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
Id: aws.String("id"), // Required
|
||||
Name: aws.String("id"), // Required
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
ParameterObjects: []*datapipeline.ParameterObject{
|
||||
{ // Required
|
||||
Attributes: []*datapipeline.ParameterAttribute{ // Required
|
||||
{ // Required
|
||||
Key: aws.String("attributeNameString"), // Required
|
||||
StringValue: aws.String("attributeValueString"), // Required
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
Id: aws.String("fieldNameString"), // Required
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
ParameterValues: []*datapipeline.ParameterValue{
|
||||
{ // Required
|
||||
Id: aws.String("fieldNameString"), // Required
|
||||
StringValue: aws.String("fieldStringValue"), // Required
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.ValidatePipelineDefinition(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
+6
-25
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package datapipeline
|
||||
|
||||
@@ -11,31 +11,12 @@ import (
|
||||
"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
|
||||
)
|
||||
|
||||
// AWS Data Pipeline configures and manages a data-driven workflow called a
|
||||
// pipeline. AWS Data Pipeline handles the details of scheduling and ensuring
|
||||
// that data dependencies are met so that your application can focus on processing
|
||||
// the data.
|
||||
// DataPipeline provides the API operation methods for making requests to
|
||||
// AWS Data Pipeline. See this package's package overview docs
|
||||
// for details on the service.
|
||||
//
|
||||
// AWS Data Pipeline provides a JAR implementation of a task runner called AWS
|
||||
// Data Pipeline Task Runner. AWS Data Pipeline Task Runner provides logic for
|
||||
// common data management scenarios, such as performing database queries and
|
||||
// running data analysis using Amazon Elastic MapReduce (Amazon EMR). You can
|
||||
// use AWS Data Pipeline Task Runner as your task runner, or you can write your
|
||||
// own task runner to provide custom data management.
|
||||
//
|
||||
// AWS Data Pipeline implements two main sets of functionality. Use the first
|
||||
// set to create a pipeline and define data sources, schedules, dependencies,
|
||||
// and the transforms to be performed on the data. Use the second set in your
|
||||
// task runner application to receive the next task ready for processing. The
|
||||
// logic for performing the task, such as querying the data, running data analysis,
|
||||
// or converting the data from one format to another, is contained within the
|
||||
// task runner. The task runner performs the task assigned to it by the web
|
||||
// service, reporting progress to the web service as it does so. When the task
|
||||
// is done, the task runner reports the final success or failure of the task
|
||||
// to the web service.
|
||||
// The service client's operations are safe to be used concurrently.
|
||||
// It is not safe to mutate any of the client's properties though.
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29
|
||||
// DataPipeline methods are safe to use concurrently. It is not safe to
|
||||
// modify mutate any of the struct's properties though.
|
||||
type DataPipeline struct {
|
||||
*client.Client
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user