Upgrade AWS SDK to the latest version

This commit is contained in:
Andrey Smirnov
2017-09-28 17:57:05 +03:00
parent 9a767b7631
commit 182c21e38c
1096 changed files with 309697 additions and 132612 deletions
+178 -180
View File
@@ -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 elastictranscoder provides a client for Amazon Elastic Transcoder.
package elastictranscoder
import (
@@ -15,19 +14,18 @@ const opCancelJob = "CancelJob"
// CancelJobRequest generates a "aws/request.Request" representing the
// client's request for the CancelJob 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 CancelJob 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 CancelJob method directly
// instead.
// See CancelJob for more information on using the CancelJob
// 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 CancelJobRequest method.
// req, resp := client.CancelJobRequest(params)
@@ -114,19 +112,18 @@ const opCreateJob = "CreateJob"
// CreateJobRequest generates a "aws/request.Request" representing the
// client's request for the CreateJob 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 CreateJob 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 CreateJob method directly
// instead.
// See CreateJob for more information on using the CreateJob
// 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 CreateJobRequest method.
// req, resp := client.CreateJobRequest(params)
@@ -215,19 +212,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)
@@ -310,19 +306,18 @@ const opCreatePreset = "CreatePreset"
// CreatePresetRequest generates a "aws/request.Request" representing the
// client's request for the CreatePreset 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 CreatePreset 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 CreatePreset method directly
// instead.
// See CreatePreset for more information on using the CreatePreset
// 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 CreatePresetRequest method.
// req, resp := client.CreatePresetRequest(params)
@@ -414,19 +409,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)
@@ -513,19 +507,18 @@ const opDeletePreset = "DeletePreset"
// DeletePresetRequest generates a "aws/request.Request" representing the
// client's request for the DeletePreset 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 DeletePreset 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 DeletePreset method directly
// instead.
// See DeletePreset for more information on using the DeletePreset
// 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 DeletePresetRequest method.
// req, resp := client.DeletePresetRequest(params)
@@ -606,19 +599,18 @@ const opListJobsByPipeline = "ListJobsByPipeline"
// ListJobsByPipelineRequest generates a "aws/request.Request" representing the
// client's request for the ListJobsByPipeline 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 ListJobsByPipeline 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 ListJobsByPipeline method directly
// instead.
// See ListJobsByPipeline for more information on using the ListJobsByPipeline
// 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 ListJobsByPipelineRequest method.
// req, resp := client.ListJobsByPipelineRequest(params)
@@ -734,8 +726,12 @@ func (c *ElasticTranscoder) ListJobsByPipelinePages(input *ListJobsByPipelineInp
func (c *ElasticTranscoder) ListJobsByPipelinePagesWithContext(ctx aws.Context, input *ListJobsByPipelineInput, fn func(*ListJobsByPipelineOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
inCpy := *input
req, _ := c.ListJobsByPipelineRequest(&inCpy)
var inCpy *ListJobsByPipelineInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.ListJobsByPipelineRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
@@ -753,19 +749,18 @@ const opListJobsByStatus = "ListJobsByStatus"
// ListJobsByStatusRequest generates a "aws/request.Request" representing the
// client's request for the ListJobsByStatus 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 ListJobsByStatus 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 ListJobsByStatus method directly
// instead.
// See ListJobsByStatus for more information on using the ListJobsByStatus
// 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 ListJobsByStatusRequest method.
// req, resp := client.ListJobsByStatusRequest(params)
@@ -879,8 +874,12 @@ func (c *ElasticTranscoder) ListJobsByStatusPages(input *ListJobsByStatusInput,
func (c *ElasticTranscoder) ListJobsByStatusPagesWithContext(ctx aws.Context, input *ListJobsByStatusInput, fn func(*ListJobsByStatusOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
inCpy := *input
req, _ := c.ListJobsByStatusRequest(&inCpy)
var inCpy *ListJobsByStatusInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.ListJobsByStatusRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
@@ -898,19 +897,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)
@@ -1018,8 +1016,12 @@ func (c *ElasticTranscoder) ListPipelinesPages(input *ListPipelinesInput, fn fun
func (c *ElasticTranscoder) 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
@@ -1037,19 +1039,18 @@ const opListPresets = "ListPresets"
// ListPresetsRequest generates a "aws/request.Request" representing the
// client's request for the ListPresets 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 ListPresets 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 ListPresets method directly
// instead.
// See ListPresets for more information on using the ListPresets
// 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 ListPresetsRequest method.
// req, resp := client.ListPresetsRequest(params)
@@ -1157,8 +1158,12 @@ func (c *ElasticTranscoder) ListPresetsPages(input *ListPresetsInput, fn func(*L
func (c *ElasticTranscoder) ListPresetsPagesWithContext(ctx aws.Context, input *ListPresetsInput, fn func(*ListPresetsOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
inCpy := *input
req, _ := c.ListPresetsRequest(&inCpy)
var inCpy *ListPresetsInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.ListPresetsRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
@@ -1176,19 +1181,18 @@ const opReadJob = "ReadJob"
// ReadJobRequest generates a "aws/request.Request" representing the
// client's request for the ReadJob 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 ReadJob 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 ReadJob method directly
// instead.
// See ReadJob for more information on using the ReadJob
// 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 ReadJobRequest method.
// req, resp := client.ReadJobRequest(params)
@@ -1267,19 +1271,18 @@ const opReadPipeline = "ReadPipeline"
// ReadPipelineRequest generates a "aws/request.Request" representing the
// client's request for the ReadPipeline 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 ReadPipeline 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 ReadPipeline method directly
// instead.
// See ReadPipeline for more information on using the ReadPipeline
// 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 ReadPipelineRequest method.
// req, resp := client.ReadPipelineRequest(params)
@@ -1358,19 +1361,18 @@ const opReadPreset = "ReadPreset"
// ReadPresetRequest generates a "aws/request.Request" representing the
// client's request for the ReadPreset 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 ReadPreset 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 ReadPreset method directly
// instead.
// See ReadPreset for more information on using the ReadPreset
// 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 ReadPresetRequest method.
// req, resp := client.ReadPresetRequest(params)
@@ -1449,19 +1451,18 @@ const opTestRole = "TestRole"
// TestRoleRequest generates a "aws/request.Request" representing the
// client's request for the TestRole 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 TestRole 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 TestRole method directly
// instead.
// See TestRole for more information on using the TestRole
// 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 TestRoleRequest method.
// req, resp := client.TestRoleRequest(params)
@@ -1549,19 +1550,18 @@ const opUpdatePipeline = "UpdatePipeline"
// UpdatePipelineRequest generates a "aws/request.Request" representing the
// client's request for the UpdatePipeline 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 UpdatePipeline 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 UpdatePipeline method directly
// instead.
// See UpdatePipeline for more information on using the UpdatePipeline
// 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 UpdatePipelineRequest method.
// req, resp := client.UpdatePipelineRequest(params)
@@ -1649,19 +1649,18 @@ const opUpdatePipelineNotifications = "UpdatePipelineNotifications"
// UpdatePipelineNotificationsRequest generates a "aws/request.Request" representing the
// client's request for the UpdatePipelineNotifications 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 UpdatePipelineNotifications 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 UpdatePipelineNotifications method directly
// instead.
// See UpdatePipelineNotifications for more information on using the UpdatePipelineNotifications
// 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 UpdatePipelineNotificationsRequest method.
// req, resp := client.UpdatePipelineNotificationsRequest(params)
@@ -1748,19 +1747,18 @@ const opUpdatePipelineStatus = "UpdatePipelineStatus"
// UpdatePipelineStatusRequest generates a "aws/request.Request" representing the
// client's request for the UpdatePipelineStatus 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 UpdatePipelineStatus 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 UpdatePipelineStatus method directly
// instead.
// See UpdatePipelineStatus for more information on using the UpdatePipelineStatus
// 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 UpdatePipelineStatusRequest method.
// req, resp := client.UpdatePipelineStatusRequest(params)
+26
View File
@@ -0,0 +1,26 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package elastictranscoder provides the client and types for making API
// requests to Amazon Elastic Transcoder.
//
// The AWS Elastic Transcoder Service.
//
// See elastictranscoder package documentation for more information.
// https://docs.aws.amazon.com/sdk-for-go/api/service/elastictranscoder/
//
// Using the Client
//
// To Amazon Elastic Transcoder 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 Amazon Elastic Transcoder client ElasticTranscoder for more
// information on creating client for this service.
// https://docs.aws.amazon.com/sdk-for-go/api/service/elastictranscoder/#New
package elastictranscoder
@@ -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 elastictranscoderiface provides an interface to enable mocking the Amazon Elastic Transcoder 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
// // Amazon Elastic Transcoder.
+1 -1
View File
@@ -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 elastictranscoder
@@ -1,839 +0,0 @@
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
package elastictranscoder_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/elastictranscoder"
)
var _ time.Duration
var _ bytes.Buffer
func ExampleElasticTranscoder_CancelJob() {
sess := session.Must(session.NewSession())
svc := elastictranscoder.New(sess)
params := &elastictranscoder.CancelJobInput{
Id: aws.String("Id"), // Required
}
resp, err := svc.CancelJob(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 ExampleElasticTranscoder_CreateJob() {
sess := session.Must(session.NewSession())
svc := elastictranscoder.New(sess)
params := &elastictranscoder.CreateJobInput{
PipelineId: aws.String("Id"), // Required
Input: &elastictranscoder.JobInput{
AspectRatio: aws.String("AspectRatio"),
Container: aws.String("JobContainer"),
DetectedProperties: &elastictranscoder.DetectedProperties{
DurationMillis: aws.Int64(1),
FileSize: aws.Int64(1),
FrameRate: aws.String("FloatString"),
Height: aws.Int64(1),
Width: aws.Int64(1),
},
Encryption: &elastictranscoder.Encryption{
InitializationVector: aws.String("ZeroTo255String"),
Key: aws.String("Base64EncodedString"),
KeyMd5: aws.String("Base64EncodedString"),
Mode: aws.String("EncryptionMode"),
},
FrameRate: aws.String("FrameRate"),
InputCaptions: &elastictranscoder.InputCaptions{
CaptionSources: []*elastictranscoder.CaptionSource{
{ // Required
Encryption: &elastictranscoder.Encryption{
InitializationVector: aws.String("ZeroTo255String"),
Key: aws.String("Base64EncodedString"),
KeyMd5: aws.String("Base64EncodedString"),
Mode: aws.String("EncryptionMode"),
},
Key: aws.String("LongKey"),
Label: aws.String("Name"),
Language: aws.String("Key"),
TimeOffset: aws.String("TimeOffset"),
},
// More values...
},
MergePolicy: aws.String("CaptionMergePolicy"),
},
Interlaced: aws.String("Interlaced"),
Key: aws.String("LongKey"),
Resolution: aws.String("Resolution"),
TimeSpan: &elastictranscoder.TimeSpan{
Duration: aws.String("Time"),
StartTime: aws.String("Time"),
},
},
Inputs: []*elastictranscoder.JobInput{
{ // Required
AspectRatio: aws.String("AspectRatio"),
Container: aws.String("JobContainer"),
DetectedProperties: &elastictranscoder.DetectedProperties{
DurationMillis: aws.Int64(1),
FileSize: aws.Int64(1),
FrameRate: aws.String("FloatString"),
Height: aws.Int64(1),
Width: aws.Int64(1),
},
Encryption: &elastictranscoder.Encryption{
InitializationVector: aws.String("ZeroTo255String"),
Key: aws.String("Base64EncodedString"),
KeyMd5: aws.String("Base64EncodedString"),
Mode: aws.String("EncryptionMode"),
},
FrameRate: aws.String("FrameRate"),
InputCaptions: &elastictranscoder.InputCaptions{
CaptionSources: []*elastictranscoder.CaptionSource{
{ // Required
Encryption: &elastictranscoder.Encryption{
InitializationVector: aws.String("ZeroTo255String"),
Key: aws.String("Base64EncodedString"),
KeyMd5: aws.String("Base64EncodedString"),
Mode: aws.String("EncryptionMode"),
},
Key: aws.String("LongKey"),
Label: aws.String("Name"),
Language: aws.String("Key"),
TimeOffset: aws.String("TimeOffset"),
},
// More values...
},
MergePolicy: aws.String("CaptionMergePolicy"),
},
Interlaced: aws.String("Interlaced"),
Key: aws.String("LongKey"),
Resolution: aws.String("Resolution"),
TimeSpan: &elastictranscoder.TimeSpan{
Duration: aws.String("Time"),
StartTime: aws.String("Time"),
},
},
// More values...
},
Output: &elastictranscoder.CreateJobOutput{
AlbumArt: &elastictranscoder.JobAlbumArt{
Artwork: []*elastictranscoder.Artwork{
{ // Required
AlbumArtFormat: aws.String("JpgOrPng"),
Encryption: &elastictranscoder.Encryption{
InitializationVector: aws.String("ZeroTo255String"),
Key: aws.String("Base64EncodedString"),
KeyMd5: aws.String("Base64EncodedString"),
Mode: aws.String("EncryptionMode"),
},
InputKey: aws.String("WatermarkKey"),
MaxHeight: aws.String("DigitsOrAuto"),
MaxWidth: aws.String("DigitsOrAuto"),
PaddingPolicy: aws.String("PaddingPolicy"),
SizingPolicy: aws.String("SizingPolicy"),
},
// More values...
},
MergePolicy: aws.String("MergePolicy"),
},
Captions: &elastictranscoder.Captions{
CaptionFormats: []*elastictranscoder.CaptionFormat{
{ // Required
Encryption: &elastictranscoder.Encryption{
InitializationVector: aws.String("ZeroTo255String"),
Key: aws.String("Base64EncodedString"),
KeyMd5: aws.String("Base64EncodedString"),
Mode: aws.String("EncryptionMode"),
},
Format: aws.String("CaptionFormatFormat"),
Pattern: aws.String("CaptionFormatPattern"),
},
// More values...
},
CaptionSources: []*elastictranscoder.CaptionSource{
{ // Required
Encryption: &elastictranscoder.Encryption{
InitializationVector: aws.String("ZeroTo255String"),
Key: aws.String("Base64EncodedString"),
KeyMd5: aws.String("Base64EncodedString"),
Mode: aws.String("EncryptionMode"),
},
Key: aws.String("LongKey"),
Label: aws.String("Name"),
Language: aws.String("Key"),
TimeOffset: aws.String("TimeOffset"),
},
// More values...
},
MergePolicy: aws.String("CaptionMergePolicy"),
},
Composition: []*elastictranscoder.Clip{
{ // Required
TimeSpan: &elastictranscoder.TimeSpan{
Duration: aws.String("Time"),
StartTime: aws.String("Time"),
},
},
// More values...
},
Encryption: &elastictranscoder.Encryption{
InitializationVector: aws.String("ZeroTo255String"),
Key: aws.String("Base64EncodedString"),
KeyMd5: aws.String("Base64EncodedString"),
Mode: aws.String("EncryptionMode"),
},
Key: aws.String("Key"),
PresetId: aws.String("Id"),
Rotate: aws.String("Rotate"),
SegmentDuration: aws.String("FloatString"),
ThumbnailEncryption: &elastictranscoder.Encryption{
InitializationVector: aws.String("ZeroTo255String"),
Key: aws.String("Base64EncodedString"),
KeyMd5: aws.String("Base64EncodedString"),
Mode: aws.String("EncryptionMode"),
},
ThumbnailPattern: aws.String("ThumbnailPattern"),
Watermarks: []*elastictranscoder.JobWatermark{
{ // Required
Encryption: &elastictranscoder.Encryption{
InitializationVector: aws.String("ZeroTo255String"),
Key: aws.String("Base64EncodedString"),
KeyMd5: aws.String("Base64EncodedString"),
Mode: aws.String("EncryptionMode"),
},
InputKey: aws.String("WatermarkKey"),
PresetWatermarkId: aws.String("PresetWatermarkId"),
},
// More values...
},
},
OutputKeyPrefix: aws.String("Key"),
Outputs: []*elastictranscoder.CreateJobOutput{
{ // Required
AlbumArt: &elastictranscoder.JobAlbumArt{
Artwork: []*elastictranscoder.Artwork{
{ // Required
AlbumArtFormat: aws.String("JpgOrPng"),
Encryption: &elastictranscoder.Encryption{
InitializationVector: aws.String("ZeroTo255String"),
Key: aws.String("Base64EncodedString"),
KeyMd5: aws.String("Base64EncodedString"),
Mode: aws.String("EncryptionMode"),
},
InputKey: aws.String("WatermarkKey"),
MaxHeight: aws.String("DigitsOrAuto"),
MaxWidth: aws.String("DigitsOrAuto"),
PaddingPolicy: aws.String("PaddingPolicy"),
SizingPolicy: aws.String("SizingPolicy"),
},
// More values...
},
MergePolicy: aws.String("MergePolicy"),
},
Captions: &elastictranscoder.Captions{
CaptionFormats: []*elastictranscoder.CaptionFormat{
{ // Required
Encryption: &elastictranscoder.Encryption{
InitializationVector: aws.String("ZeroTo255String"),
Key: aws.String("Base64EncodedString"),
KeyMd5: aws.String("Base64EncodedString"),
Mode: aws.String("EncryptionMode"),
},
Format: aws.String("CaptionFormatFormat"),
Pattern: aws.String("CaptionFormatPattern"),
},
// More values...
},
CaptionSources: []*elastictranscoder.CaptionSource{
{ // Required
Encryption: &elastictranscoder.Encryption{
InitializationVector: aws.String("ZeroTo255String"),
Key: aws.String("Base64EncodedString"),
KeyMd5: aws.String("Base64EncodedString"),
Mode: aws.String("EncryptionMode"),
},
Key: aws.String("LongKey"),
Label: aws.String("Name"),
Language: aws.String("Key"),
TimeOffset: aws.String("TimeOffset"),
},
// More values...
},
MergePolicy: aws.String("CaptionMergePolicy"),
},
Composition: []*elastictranscoder.Clip{
{ // Required
TimeSpan: &elastictranscoder.TimeSpan{
Duration: aws.String("Time"),
StartTime: aws.String("Time"),
},
},
// More values...
},
Encryption: &elastictranscoder.Encryption{
InitializationVector: aws.String("ZeroTo255String"),
Key: aws.String("Base64EncodedString"),
KeyMd5: aws.String("Base64EncodedString"),
Mode: aws.String("EncryptionMode"),
},
Key: aws.String("Key"),
PresetId: aws.String("Id"),
Rotate: aws.String("Rotate"),
SegmentDuration: aws.String("FloatString"),
ThumbnailEncryption: &elastictranscoder.Encryption{
InitializationVector: aws.String("ZeroTo255String"),
Key: aws.String("Base64EncodedString"),
KeyMd5: aws.String("Base64EncodedString"),
Mode: aws.String("EncryptionMode"),
},
ThumbnailPattern: aws.String("ThumbnailPattern"),
Watermarks: []*elastictranscoder.JobWatermark{
{ // Required
Encryption: &elastictranscoder.Encryption{
InitializationVector: aws.String("ZeroTo255String"),
Key: aws.String("Base64EncodedString"),
KeyMd5: aws.String("Base64EncodedString"),
Mode: aws.String("EncryptionMode"),
},
InputKey: aws.String("WatermarkKey"),
PresetWatermarkId: aws.String("PresetWatermarkId"),
},
// More values...
},
},
// More values...
},
Playlists: []*elastictranscoder.CreateJobPlaylist{
{ // Required
Format: aws.String("PlaylistFormat"),
HlsContentProtection: &elastictranscoder.HlsContentProtection{
InitializationVector: aws.String("ZeroTo255String"),
Key: aws.String("Base64EncodedString"),
KeyMd5: aws.String("Base64EncodedString"),
KeyStoragePolicy: aws.String("KeyStoragePolicy"),
LicenseAcquisitionUrl: aws.String("ZeroTo512String"),
Method: aws.String("HlsContentProtectionMethod"),
},
Name: aws.String("Filename"),
OutputKeys: []*string{
aws.String("Key"), // Required
// More values...
},
PlayReadyDrm: &elastictranscoder.PlayReadyDrm{
Format: aws.String("PlayReadyDrmFormatString"),
InitializationVector: aws.String("ZeroTo255String"),
Key: aws.String("NonEmptyBase64EncodedString"),
KeyId: aws.String("KeyIdGuid"),
KeyMd5: aws.String("NonEmptyBase64EncodedString"),
LicenseAcquisitionUrl: aws.String("OneTo512String"),
},
},
// More values...
},
UserMetadata: map[string]*string{
"Key": aws.String("String"), // Required
// More values...
},
}
resp, err := svc.CreateJob(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 ExampleElasticTranscoder_CreatePipeline() {
sess := session.Must(session.NewSession())
svc := elastictranscoder.New(sess)
params := &elastictranscoder.CreatePipelineInput{
InputBucket: aws.String("BucketName"), // Required
Name: aws.String("Name"), // Required
Role: aws.String("Role"), // Required
AwsKmsKeyArn: aws.String("KeyArn"),
ContentConfig: &elastictranscoder.PipelineOutputConfig{
Bucket: aws.String("BucketName"),
Permissions: []*elastictranscoder.Permission{
{ // Required
Access: []*string{
aws.String("AccessControl"), // Required
// More values...
},
Grantee: aws.String("Grantee"),
GranteeType: aws.String("GranteeType"),
},
// More values...
},
StorageClass: aws.String("StorageClass"),
},
Notifications: &elastictranscoder.Notifications{
Completed: aws.String("SnsTopic"),
Error: aws.String("SnsTopic"),
Progressing: aws.String("SnsTopic"),
Warning: aws.String("SnsTopic"),
},
OutputBucket: aws.String("BucketName"),
ThumbnailConfig: &elastictranscoder.PipelineOutputConfig{
Bucket: aws.String("BucketName"),
Permissions: []*elastictranscoder.Permission{
{ // Required
Access: []*string{
aws.String("AccessControl"), // Required
// More values...
},
Grantee: aws.String("Grantee"),
GranteeType: aws.String("GranteeType"),
},
// More values...
},
StorageClass: aws.String("StorageClass"),
},
}
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 ExampleElasticTranscoder_CreatePreset() {
sess := session.Must(session.NewSession())
svc := elastictranscoder.New(sess)
params := &elastictranscoder.CreatePresetInput{
Container: aws.String("PresetContainer"), // Required
Name: aws.String("Name"), // Required
Audio: &elastictranscoder.AudioParameters{
AudioPackingMode: aws.String("AudioPackingMode"),
BitRate: aws.String("AudioBitRate"),
Channels: aws.String("AudioChannels"),
Codec: aws.String("AudioCodec"),
CodecOptions: &elastictranscoder.AudioCodecOptions{
BitDepth: aws.String("AudioBitDepth"),
BitOrder: aws.String("AudioBitOrder"),
Profile: aws.String("AudioCodecProfile"),
Signed: aws.String("AudioSigned"),
},
SampleRate: aws.String("AudioSampleRate"),
},
Description: aws.String("Description"),
Thumbnails: &elastictranscoder.Thumbnails{
AspectRatio: aws.String("AspectRatio"),
Format: aws.String("JpgOrPng"),
Interval: aws.String("Digits"),
MaxHeight: aws.String("DigitsOrAuto"),
MaxWidth: aws.String("DigitsOrAuto"),
PaddingPolicy: aws.String("PaddingPolicy"),
Resolution: aws.String("ThumbnailResolution"),
SizingPolicy: aws.String("SizingPolicy"),
},
Video: &elastictranscoder.VideoParameters{
AspectRatio: aws.String("AspectRatio"),
BitRate: aws.String("VideoBitRate"),
Codec: aws.String("VideoCodec"),
CodecOptions: map[string]*string{
"Key": aws.String("CodecOption"), // Required
// More values...
},
DisplayAspectRatio: aws.String("AspectRatio"),
FixedGOP: aws.String("FixedGOP"),
FrameRate: aws.String("FrameRate"),
KeyframesMaxDist: aws.String("KeyframesMaxDist"),
MaxFrameRate: aws.String("MaxFrameRate"),
MaxHeight: aws.String("DigitsOrAuto"),
MaxWidth: aws.String("DigitsOrAuto"),
PaddingPolicy: aws.String("PaddingPolicy"),
Resolution: aws.String("Resolution"),
SizingPolicy: aws.String("SizingPolicy"),
Watermarks: []*elastictranscoder.PresetWatermark{
{ // Required
HorizontalAlign: aws.String("HorizontalAlign"),
HorizontalOffset: aws.String("PixelsOrPercent"),
Id: aws.String("PresetWatermarkId"),
MaxHeight: aws.String("PixelsOrPercent"),
MaxWidth: aws.String("PixelsOrPercent"),
Opacity: aws.String("Opacity"),
SizingPolicy: aws.String("WatermarkSizingPolicy"),
Target: aws.String("Target"),
VerticalAlign: aws.String("VerticalAlign"),
VerticalOffset: aws.String("PixelsOrPercent"),
},
// More values...
},
},
}
resp, err := svc.CreatePreset(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 ExampleElasticTranscoder_DeletePipeline() {
sess := session.Must(session.NewSession())
svc := elastictranscoder.New(sess)
params := &elastictranscoder.DeletePipelineInput{
Id: 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 ExampleElasticTranscoder_DeletePreset() {
sess := session.Must(session.NewSession())
svc := elastictranscoder.New(sess)
params := &elastictranscoder.DeletePresetInput{
Id: aws.String("Id"), // Required
}
resp, err := svc.DeletePreset(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 ExampleElasticTranscoder_ListJobsByPipeline() {
sess := session.Must(session.NewSession())
svc := elastictranscoder.New(sess)
params := &elastictranscoder.ListJobsByPipelineInput{
PipelineId: aws.String("Id"), // Required
Ascending: aws.String("Ascending"),
PageToken: aws.String("Id"),
}
resp, err := svc.ListJobsByPipeline(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 ExampleElasticTranscoder_ListJobsByStatus() {
sess := session.Must(session.NewSession())
svc := elastictranscoder.New(sess)
params := &elastictranscoder.ListJobsByStatusInput{
Status: aws.String("JobStatus"), // Required
Ascending: aws.String("Ascending"),
PageToken: aws.String("Id"),
}
resp, err := svc.ListJobsByStatus(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 ExampleElasticTranscoder_ListPipelines() {
sess := session.Must(session.NewSession())
svc := elastictranscoder.New(sess)
params := &elastictranscoder.ListPipelinesInput{
Ascending: aws.String("Ascending"),
PageToken: aws.String("Id"),
}
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 ExampleElasticTranscoder_ListPresets() {
sess := session.Must(session.NewSession())
svc := elastictranscoder.New(sess)
params := &elastictranscoder.ListPresetsInput{
Ascending: aws.String("Ascending"),
PageToken: aws.String("Id"),
}
resp, err := svc.ListPresets(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 ExampleElasticTranscoder_ReadJob() {
sess := session.Must(session.NewSession())
svc := elastictranscoder.New(sess)
params := &elastictranscoder.ReadJobInput{
Id: aws.String("Id"), // Required
}
resp, err := svc.ReadJob(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 ExampleElasticTranscoder_ReadPipeline() {
sess := session.Must(session.NewSession())
svc := elastictranscoder.New(sess)
params := &elastictranscoder.ReadPipelineInput{
Id: aws.String("Id"), // Required
}
resp, err := svc.ReadPipeline(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 ExampleElasticTranscoder_ReadPreset() {
sess := session.Must(session.NewSession())
svc := elastictranscoder.New(sess)
params := &elastictranscoder.ReadPresetInput{
Id: aws.String("Id"), // Required
}
resp, err := svc.ReadPreset(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 ExampleElasticTranscoder_TestRole() {
sess := session.Must(session.NewSession())
svc := elastictranscoder.New(sess)
params := &elastictranscoder.TestRoleInput{
InputBucket: aws.String("BucketName"), // Required
OutputBucket: aws.String("BucketName"), // Required
Role: aws.String("Role"), // Required
Topics: []*string{ // Required
aws.String("SnsTopic"), // Required
// More values...
},
}
resp, err := svc.TestRole(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 ExampleElasticTranscoder_UpdatePipeline() {
sess := session.Must(session.NewSession())
svc := elastictranscoder.New(sess)
params := &elastictranscoder.UpdatePipelineInput{
Id: aws.String("Id"), // Required
AwsKmsKeyArn: aws.String("KeyArn"),
ContentConfig: &elastictranscoder.PipelineOutputConfig{
Bucket: aws.String("BucketName"),
Permissions: []*elastictranscoder.Permission{
{ // Required
Access: []*string{
aws.String("AccessControl"), // Required
// More values...
},
Grantee: aws.String("Grantee"),
GranteeType: aws.String("GranteeType"),
},
// More values...
},
StorageClass: aws.String("StorageClass"),
},
InputBucket: aws.String("BucketName"),
Name: aws.String("Name"),
Notifications: &elastictranscoder.Notifications{
Completed: aws.String("SnsTopic"),
Error: aws.String("SnsTopic"),
Progressing: aws.String("SnsTopic"),
Warning: aws.String("SnsTopic"),
},
Role: aws.String("Role"),
ThumbnailConfig: &elastictranscoder.PipelineOutputConfig{
Bucket: aws.String("BucketName"),
Permissions: []*elastictranscoder.Permission{
{ // Required
Access: []*string{
aws.String("AccessControl"), // Required
// More values...
},
Grantee: aws.String("Grantee"),
GranteeType: aws.String("GranteeType"),
},
// More values...
},
StorageClass: aws.String("StorageClass"),
},
}
resp, err := svc.UpdatePipeline(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 ExampleElasticTranscoder_UpdatePipelineNotifications() {
sess := session.Must(session.NewSession())
svc := elastictranscoder.New(sess)
params := &elastictranscoder.UpdatePipelineNotificationsInput{
Id: aws.String("Id"), // Required
Notifications: &elastictranscoder.Notifications{ // Required
Completed: aws.String("SnsTopic"),
Error: aws.String("SnsTopic"),
Progressing: aws.String("SnsTopic"),
Warning: aws.String("SnsTopic"),
},
}
resp, err := svc.UpdatePipelineNotifications(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 ExampleElasticTranscoder_UpdatePipelineStatus() {
sess := session.Must(session.NewSession())
svc := elastictranscoder.New(sess)
params := &elastictranscoder.UpdatePipelineStatusInput{
Id: aws.String("Id"), // Required
Status: aws.String("PipelineStatus"), // Required
}
resp, err := svc.UpdatePipelineStatus(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)
}
+7 -4
View File
@@ -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 elastictranscoder
@@ -11,9 +11,12 @@ import (
"github.com/aws/aws-sdk-go/private/protocol/restjson"
)
// The AWS Elastic Transcoder 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.
// ElasticTranscoder provides the API operation methods for making requests to
// Amazon Elastic Transcoder. See this package's package overview docs
// for details on the service.
//
// ElasticTranscoder methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type ElasticTranscoder struct {
*client.Client
}
+8 -3
View File
@@ -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 elastictranscoder
@@ -11,7 +11,7 @@ import (
// WaitUntilJobComplete uses the Amazon Elastic Transcoder API operation
// ReadJob to wait for a condition to be met before returning.
// If the condition is not meet within the max attempt window an error will
// If the condition is not met within the max attempt window, an error will
// be returned.
func (c *ElasticTranscoder) WaitUntilJobComplete(input *ReadJobInput) error {
return c.WaitUntilJobCompleteWithContext(aws.BackgroundContext(), input)
@@ -49,7 +49,12 @@ func (c *ElasticTranscoder) WaitUntilJobCompleteWithContext(ctx aws.Context, inp
},
Logger: c.Config.Logger,
NewRequest: func(opts []request.Option) (*request.Request, error) {
req, _ := c.ReadJobRequest(input)
var inCpy *ReadJobInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.ReadJobRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil