rclone/vendor/github.com/aws/aws-sdk-go/service/mediapackage/api.go
2018-03-19 15:51:38 +00:00

3208 lines
102 KiB
Go

// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package mediapackage
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awsutil"
"github.com/aws/aws-sdk-go/aws/request"
)
const opCreateChannel = "CreateChannel"
// CreateChannelRequest generates a "aws/request.Request" representing the
// client's request for the CreateChannel operation. The "output" return
// value will be populated with the request's response once the request complets
// successfuly.
//
// 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.
//
// See CreateChannel for more information on using the CreateChannel
// 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.
//
//
// // Example sending a request using the CreateChannelRequest method.
// req, resp := client.CreateChannelRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/CreateChannel
func (c *MediaPackage) CreateChannelRequest(input *CreateChannelInput) (req *request.Request, output *CreateChannelOutput) {
op := &request.Operation{
Name: opCreateChannel,
HTTPMethod: "POST",
HTTPPath: "/channels",
}
if input == nil {
input = &CreateChannelInput{}
}
output = &CreateChannelOutput{}
req = c.newRequest(op, input, output)
return
}
// CreateChannel API operation for AWS Elemental MediaPackage.
//
// Creates a new Channel.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Elemental MediaPackage's
// API operation CreateChannel for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnprocessableEntityException "UnprocessableEntityException"
//
// * ErrCodeInternalServerErrorException "InternalServerErrorException"
//
// * ErrCodeForbiddenException "ForbiddenException"
//
// * ErrCodeNotFoundException "NotFoundException"
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
//
// * ErrCodeTooManyRequestsException "TooManyRequestsException"
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/CreateChannel
func (c *MediaPackage) CreateChannel(input *CreateChannelInput) (*CreateChannelOutput, error) {
req, out := c.CreateChannelRequest(input)
return out, req.Send()
}
// CreateChannelWithContext is the same as CreateChannel with the addition of
// the ability to pass a context and additional request options.
//
// See CreateChannel for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *MediaPackage) CreateChannelWithContext(ctx aws.Context, input *CreateChannelInput, opts ...request.Option) (*CreateChannelOutput, error) {
req, out := c.CreateChannelRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opCreateOriginEndpoint = "CreateOriginEndpoint"
// CreateOriginEndpointRequest generates a "aws/request.Request" representing the
// client's request for the CreateOriginEndpoint operation. The "output" return
// value will be populated with the request's response once the request complets
// successfuly.
//
// 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.
//
// See CreateOriginEndpoint for more information on using the CreateOriginEndpoint
// 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.
//
//
// // Example sending a request using the CreateOriginEndpointRequest method.
// req, resp := client.CreateOriginEndpointRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/CreateOriginEndpoint
func (c *MediaPackage) CreateOriginEndpointRequest(input *CreateOriginEndpointInput) (req *request.Request, output *CreateOriginEndpointOutput) {
op := &request.Operation{
Name: opCreateOriginEndpoint,
HTTPMethod: "POST",
HTTPPath: "/origin_endpoints",
}
if input == nil {
input = &CreateOriginEndpointInput{}
}
output = &CreateOriginEndpointOutput{}
req = c.newRequest(op, input, output)
return
}
// CreateOriginEndpoint API operation for AWS Elemental MediaPackage.
//
// Creates a new OriginEndpoint record.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Elemental MediaPackage's
// API operation CreateOriginEndpoint for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnprocessableEntityException "UnprocessableEntityException"
//
// * ErrCodeInternalServerErrorException "InternalServerErrorException"
//
// * ErrCodeForbiddenException "ForbiddenException"
//
// * ErrCodeNotFoundException "NotFoundException"
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
//
// * ErrCodeTooManyRequestsException "TooManyRequestsException"
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/CreateOriginEndpoint
func (c *MediaPackage) CreateOriginEndpoint(input *CreateOriginEndpointInput) (*CreateOriginEndpointOutput, error) {
req, out := c.CreateOriginEndpointRequest(input)
return out, req.Send()
}
// CreateOriginEndpointWithContext is the same as CreateOriginEndpoint with the addition of
// the ability to pass a context and additional request options.
//
// See CreateOriginEndpoint for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *MediaPackage) CreateOriginEndpointWithContext(ctx aws.Context, input *CreateOriginEndpointInput, opts ...request.Option) (*CreateOriginEndpointOutput, error) {
req, out := c.CreateOriginEndpointRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeleteChannel = "DeleteChannel"
// DeleteChannelRequest generates a "aws/request.Request" representing the
// client's request for the DeleteChannel operation. The "output" return
// value will be populated with the request's response once the request complets
// successfuly.
//
// 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.
//
// See DeleteChannel for more information on using the DeleteChannel
// 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.
//
//
// // Example sending a request using the DeleteChannelRequest method.
// req, resp := client.DeleteChannelRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/DeleteChannel
func (c *MediaPackage) DeleteChannelRequest(input *DeleteChannelInput) (req *request.Request, output *DeleteChannelOutput) {
op := &request.Operation{
Name: opDeleteChannel,
HTTPMethod: "DELETE",
HTTPPath: "/channels/{id}",
}
if input == nil {
input = &DeleteChannelInput{}
}
output = &DeleteChannelOutput{}
req = c.newRequest(op, input, output)
return
}
// DeleteChannel API operation for AWS Elemental MediaPackage.
//
// Deletes an existing Channel.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Elemental MediaPackage's
// API operation DeleteChannel for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnprocessableEntityException "UnprocessableEntityException"
//
// * ErrCodeInternalServerErrorException "InternalServerErrorException"
//
// * ErrCodeForbiddenException "ForbiddenException"
//
// * ErrCodeNotFoundException "NotFoundException"
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
//
// * ErrCodeTooManyRequestsException "TooManyRequestsException"
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/DeleteChannel
func (c *MediaPackage) DeleteChannel(input *DeleteChannelInput) (*DeleteChannelOutput, error) {
req, out := c.DeleteChannelRequest(input)
return out, req.Send()
}
// DeleteChannelWithContext is the same as DeleteChannel with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteChannel for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *MediaPackage) DeleteChannelWithContext(ctx aws.Context, input *DeleteChannelInput, opts ...request.Option) (*DeleteChannelOutput, error) {
req, out := c.DeleteChannelRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeleteOriginEndpoint = "DeleteOriginEndpoint"
// DeleteOriginEndpointRequest generates a "aws/request.Request" representing the
// client's request for the DeleteOriginEndpoint operation. The "output" return
// value will be populated with the request's response once the request complets
// successfuly.
//
// 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.
//
// See DeleteOriginEndpoint for more information on using the DeleteOriginEndpoint
// 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.
//
//
// // Example sending a request using the DeleteOriginEndpointRequest method.
// req, resp := client.DeleteOriginEndpointRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/DeleteOriginEndpoint
func (c *MediaPackage) DeleteOriginEndpointRequest(input *DeleteOriginEndpointInput) (req *request.Request, output *DeleteOriginEndpointOutput) {
op := &request.Operation{
Name: opDeleteOriginEndpoint,
HTTPMethod: "DELETE",
HTTPPath: "/origin_endpoints/{id}",
}
if input == nil {
input = &DeleteOriginEndpointInput{}
}
output = &DeleteOriginEndpointOutput{}
req = c.newRequest(op, input, output)
return
}
// DeleteOriginEndpoint API operation for AWS Elemental MediaPackage.
//
// Deletes an existing OriginEndpoint.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Elemental MediaPackage's
// API operation DeleteOriginEndpoint for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnprocessableEntityException "UnprocessableEntityException"
//
// * ErrCodeInternalServerErrorException "InternalServerErrorException"
//
// * ErrCodeForbiddenException "ForbiddenException"
//
// * ErrCodeNotFoundException "NotFoundException"
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
//
// * ErrCodeTooManyRequestsException "TooManyRequestsException"
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/DeleteOriginEndpoint
func (c *MediaPackage) DeleteOriginEndpoint(input *DeleteOriginEndpointInput) (*DeleteOriginEndpointOutput, error) {
req, out := c.DeleteOriginEndpointRequest(input)
return out, req.Send()
}
// DeleteOriginEndpointWithContext is the same as DeleteOriginEndpoint with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteOriginEndpoint for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *MediaPackage) DeleteOriginEndpointWithContext(ctx aws.Context, input *DeleteOriginEndpointInput, opts ...request.Option) (*DeleteOriginEndpointOutput, error) {
req, out := c.DeleteOriginEndpointRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDescribeChannel = "DescribeChannel"
// DescribeChannelRequest generates a "aws/request.Request" representing the
// client's request for the DescribeChannel operation. The "output" return
// value will be populated with the request's response once the request complets
// successfuly.
//
// 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.
//
// See DescribeChannel for more information on using the DescribeChannel
// 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.
//
//
// // Example sending a request using the DescribeChannelRequest method.
// req, resp := client.DescribeChannelRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/DescribeChannel
func (c *MediaPackage) DescribeChannelRequest(input *DescribeChannelInput) (req *request.Request, output *DescribeChannelOutput) {
op := &request.Operation{
Name: opDescribeChannel,
HTTPMethod: "GET",
HTTPPath: "/channels/{id}",
}
if input == nil {
input = &DescribeChannelInput{}
}
output = &DescribeChannelOutput{}
req = c.newRequest(op, input, output)
return
}
// DescribeChannel API operation for AWS Elemental MediaPackage.
//
// Gets details about a Channel.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Elemental MediaPackage's
// API operation DescribeChannel for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnprocessableEntityException "UnprocessableEntityException"
//
// * ErrCodeInternalServerErrorException "InternalServerErrorException"
//
// * ErrCodeForbiddenException "ForbiddenException"
//
// * ErrCodeNotFoundException "NotFoundException"
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
//
// * ErrCodeTooManyRequestsException "TooManyRequestsException"
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/DescribeChannel
func (c *MediaPackage) DescribeChannel(input *DescribeChannelInput) (*DescribeChannelOutput, error) {
req, out := c.DescribeChannelRequest(input)
return out, req.Send()
}
// DescribeChannelWithContext is the same as DescribeChannel with the addition of
// the ability to pass a context and additional request options.
//
// See DescribeChannel for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *MediaPackage) DescribeChannelWithContext(ctx aws.Context, input *DescribeChannelInput, opts ...request.Option) (*DescribeChannelOutput, error) {
req, out := c.DescribeChannelRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDescribeOriginEndpoint = "DescribeOriginEndpoint"
// DescribeOriginEndpointRequest generates a "aws/request.Request" representing the
// client's request for the DescribeOriginEndpoint operation. The "output" return
// value will be populated with the request's response once the request complets
// successfuly.
//
// 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.
//
// See DescribeOriginEndpoint for more information on using the DescribeOriginEndpoint
// 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.
//
//
// // Example sending a request using the DescribeOriginEndpointRequest method.
// req, resp := client.DescribeOriginEndpointRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/DescribeOriginEndpoint
func (c *MediaPackage) DescribeOriginEndpointRequest(input *DescribeOriginEndpointInput) (req *request.Request, output *DescribeOriginEndpointOutput) {
op := &request.Operation{
Name: opDescribeOriginEndpoint,
HTTPMethod: "GET",
HTTPPath: "/origin_endpoints/{id}",
}
if input == nil {
input = &DescribeOriginEndpointInput{}
}
output = &DescribeOriginEndpointOutput{}
req = c.newRequest(op, input, output)
return
}
// DescribeOriginEndpoint API operation for AWS Elemental MediaPackage.
//
// Gets details about an existing OriginEndpoint.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Elemental MediaPackage's
// API operation DescribeOriginEndpoint for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnprocessableEntityException "UnprocessableEntityException"
//
// * ErrCodeInternalServerErrorException "InternalServerErrorException"
//
// * ErrCodeForbiddenException "ForbiddenException"
//
// * ErrCodeNotFoundException "NotFoundException"
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
//
// * ErrCodeTooManyRequestsException "TooManyRequestsException"
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/DescribeOriginEndpoint
func (c *MediaPackage) DescribeOriginEndpoint(input *DescribeOriginEndpointInput) (*DescribeOriginEndpointOutput, error) {
req, out := c.DescribeOriginEndpointRequest(input)
return out, req.Send()
}
// DescribeOriginEndpointWithContext is the same as DescribeOriginEndpoint with the addition of
// the ability to pass a context and additional request options.
//
// See DescribeOriginEndpoint for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *MediaPackage) DescribeOriginEndpointWithContext(ctx aws.Context, input *DescribeOriginEndpointInput, opts ...request.Option) (*DescribeOriginEndpointOutput, error) {
req, out := c.DescribeOriginEndpointRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opListChannels = "ListChannels"
// ListChannelsRequest generates a "aws/request.Request" representing the
// client's request for the ListChannels operation. The "output" return
// value will be populated with the request's response once the request complets
// successfuly.
//
// 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.
//
// See ListChannels for more information on using the ListChannels
// 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.
//
//
// // Example sending a request using the ListChannelsRequest method.
// req, resp := client.ListChannelsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/ListChannels
func (c *MediaPackage) ListChannelsRequest(input *ListChannelsInput) (req *request.Request, output *ListChannelsOutput) {
op := &request.Operation{
Name: opListChannels,
HTTPMethod: "GET",
HTTPPath: "/channels",
Paginator: &request.Paginator{
InputTokens: []string{"NextToken"},
OutputTokens: []string{"NextToken"},
LimitToken: "MaxResults",
TruncationToken: "",
},
}
if input == nil {
input = &ListChannelsInput{}
}
output = &ListChannelsOutput{}
req = c.newRequest(op, input, output)
return
}
// ListChannels API operation for AWS Elemental MediaPackage.
//
// Returns a collection of Channels.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Elemental MediaPackage's
// API operation ListChannels for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnprocessableEntityException "UnprocessableEntityException"
//
// * ErrCodeInternalServerErrorException "InternalServerErrorException"
//
// * ErrCodeForbiddenException "ForbiddenException"
//
// * ErrCodeNotFoundException "NotFoundException"
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
//
// * ErrCodeTooManyRequestsException "TooManyRequestsException"
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/ListChannels
func (c *MediaPackage) ListChannels(input *ListChannelsInput) (*ListChannelsOutput, error) {
req, out := c.ListChannelsRequest(input)
return out, req.Send()
}
// ListChannelsWithContext is the same as ListChannels with the addition of
// the ability to pass a context and additional request options.
//
// See ListChannels for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *MediaPackage) ListChannelsWithContext(ctx aws.Context, input *ListChannelsInput, opts ...request.Option) (*ListChannelsOutput, error) {
req, out := c.ListChannelsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// ListChannelsPages iterates over the pages of a ListChannels operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See ListChannels method for more information on how to use this operation.
//
// Note: This operation can generate multiple requests to a service.
//
// // Example iterating over at most 3 pages of a ListChannels operation.
// pageNum := 0
// err := client.ListChannelsPages(params,
// func(page *ListChannelsOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
func (c *MediaPackage) ListChannelsPages(input *ListChannelsInput, fn func(*ListChannelsOutput, bool) bool) error {
return c.ListChannelsPagesWithContext(aws.BackgroundContext(), input, fn)
}
// ListChannelsPagesWithContext same as ListChannelsPages except
// it takes a Context and allows setting request options on the pages.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *MediaPackage) ListChannelsPagesWithContext(ctx aws.Context, input *ListChannelsInput, fn func(*ListChannelsOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
var inCpy *ListChannelsInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.ListChannelsRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
},
}
cont := true
for p.Next() && cont {
cont = fn(p.Page().(*ListChannelsOutput), !p.HasNextPage())
}
return p.Err()
}
const opListOriginEndpoints = "ListOriginEndpoints"
// ListOriginEndpointsRequest generates a "aws/request.Request" representing the
// client's request for the ListOriginEndpoints operation. The "output" return
// value will be populated with the request's response once the request complets
// successfuly.
//
// 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.
//
// See ListOriginEndpoints for more information on using the ListOriginEndpoints
// 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.
//
//
// // Example sending a request using the ListOriginEndpointsRequest method.
// req, resp := client.ListOriginEndpointsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/ListOriginEndpoints
func (c *MediaPackage) ListOriginEndpointsRequest(input *ListOriginEndpointsInput) (req *request.Request, output *ListOriginEndpointsOutput) {
op := &request.Operation{
Name: opListOriginEndpoints,
HTTPMethod: "GET",
HTTPPath: "/origin_endpoints",
Paginator: &request.Paginator{
InputTokens: []string{"NextToken"},
OutputTokens: []string{"NextToken"},
LimitToken: "MaxResults",
TruncationToken: "",
},
}
if input == nil {
input = &ListOriginEndpointsInput{}
}
output = &ListOriginEndpointsOutput{}
req = c.newRequest(op, input, output)
return
}
// ListOriginEndpoints API operation for AWS Elemental MediaPackage.
//
// Returns a collection of OriginEndpoint records.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Elemental MediaPackage's
// API operation ListOriginEndpoints for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnprocessableEntityException "UnprocessableEntityException"
//
// * ErrCodeInternalServerErrorException "InternalServerErrorException"
//
// * ErrCodeForbiddenException "ForbiddenException"
//
// * ErrCodeNotFoundException "NotFoundException"
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
//
// * ErrCodeTooManyRequestsException "TooManyRequestsException"
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/ListOriginEndpoints
func (c *MediaPackage) ListOriginEndpoints(input *ListOriginEndpointsInput) (*ListOriginEndpointsOutput, error) {
req, out := c.ListOriginEndpointsRequest(input)
return out, req.Send()
}
// ListOriginEndpointsWithContext is the same as ListOriginEndpoints with the addition of
// the ability to pass a context and additional request options.
//
// See ListOriginEndpoints for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *MediaPackage) ListOriginEndpointsWithContext(ctx aws.Context, input *ListOriginEndpointsInput, opts ...request.Option) (*ListOriginEndpointsOutput, error) {
req, out := c.ListOriginEndpointsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// ListOriginEndpointsPages iterates over the pages of a ListOriginEndpoints operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See ListOriginEndpoints method for more information on how to use this operation.
//
// Note: This operation can generate multiple requests to a service.
//
// // Example iterating over at most 3 pages of a ListOriginEndpoints operation.
// pageNum := 0
// err := client.ListOriginEndpointsPages(params,
// func(page *ListOriginEndpointsOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
func (c *MediaPackage) ListOriginEndpointsPages(input *ListOriginEndpointsInput, fn func(*ListOriginEndpointsOutput, bool) bool) error {
return c.ListOriginEndpointsPagesWithContext(aws.BackgroundContext(), input, fn)
}
// ListOriginEndpointsPagesWithContext same as ListOriginEndpointsPages except
// it takes a Context and allows setting request options on the pages.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *MediaPackage) ListOriginEndpointsPagesWithContext(ctx aws.Context, input *ListOriginEndpointsInput, fn func(*ListOriginEndpointsOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
var inCpy *ListOriginEndpointsInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.ListOriginEndpointsRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
},
}
cont := true
for p.Next() && cont {
cont = fn(p.Page().(*ListOriginEndpointsOutput), !p.HasNextPage())
}
return p.Err()
}
const opRotateChannelCredentials = "RotateChannelCredentials"
// RotateChannelCredentialsRequest generates a "aws/request.Request" representing the
// client's request for the RotateChannelCredentials operation. The "output" return
// value will be populated with the request's response once the request complets
// successfuly.
//
// 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.
//
// See RotateChannelCredentials for more information on using the RotateChannelCredentials
// 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.
//
//
// // Example sending a request using the RotateChannelCredentialsRequest method.
// req, resp := client.RotateChannelCredentialsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/RotateChannelCredentials
func (c *MediaPackage) RotateChannelCredentialsRequest(input *RotateChannelCredentialsInput) (req *request.Request, output *RotateChannelCredentialsOutput) {
op := &request.Operation{
Name: opRotateChannelCredentials,
HTTPMethod: "PUT",
HTTPPath: "/channels/{id}/credentials",
}
if input == nil {
input = &RotateChannelCredentialsInput{}
}
output = &RotateChannelCredentialsOutput{}
req = c.newRequest(op, input, output)
return
}
// RotateChannelCredentials API operation for AWS Elemental MediaPackage.
//
// Changes the Channel ingest username and password.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Elemental MediaPackage's
// API operation RotateChannelCredentials for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnprocessableEntityException "UnprocessableEntityException"
//
// * ErrCodeInternalServerErrorException "InternalServerErrorException"
//
// * ErrCodeForbiddenException "ForbiddenException"
//
// * ErrCodeNotFoundException "NotFoundException"
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
//
// * ErrCodeTooManyRequestsException "TooManyRequestsException"
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/RotateChannelCredentials
func (c *MediaPackage) RotateChannelCredentials(input *RotateChannelCredentialsInput) (*RotateChannelCredentialsOutput, error) {
req, out := c.RotateChannelCredentialsRequest(input)
return out, req.Send()
}
// RotateChannelCredentialsWithContext is the same as RotateChannelCredentials with the addition of
// the ability to pass a context and additional request options.
//
// See RotateChannelCredentials for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *MediaPackage) RotateChannelCredentialsWithContext(ctx aws.Context, input *RotateChannelCredentialsInput, opts ...request.Option) (*RotateChannelCredentialsOutput, error) {
req, out := c.RotateChannelCredentialsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opUpdateChannel = "UpdateChannel"
// UpdateChannelRequest generates a "aws/request.Request" representing the
// client's request for the UpdateChannel operation. The "output" return
// value will be populated with the request's response once the request complets
// successfuly.
//
// 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.
//
// See UpdateChannel for more information on using the UpdateChannel
// 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.
//
//
// // Example sending a request using the UpdateChannelRequest method.
// req, resp := client.UpdateChannelRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/UpdateChannel
func (c *MediaPackage) UpdateChannelRequest(input *UpdateChannelInput) (req *request.Request, output *UpdateChannelOutput) {
op := &request.Operation{
Name: opUpdateChannel,
HTTPMethod: "PUT",
HTTPPath: "/channels/{id}",
}
if input == nil {
input = &UpdateChannelInput{}
}
output = &UpdateChannelOutput{}
req = c.newRequest(op, input, output)
return
}
// UpdateChannel API operation for AWS Elemental MediaPackage.
//
// Updates an existing Channel.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Elemental MediaPackage's
// API operation UpdateChannel for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnprocessableEntityException "UnprocessableEntityException"
//
// * ErrCodeInternalServerErrorException "InternalServerErrorException"
//
// * ErrCodeForbiddenException "ForbiddenException"
//
// * ErrCodeNotFoundException "NotFoundException"
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
//
// * ErrCodeTooManyRequestsException "TooManyRequestsException"
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/UpdateChannel
func (c *MediaPackage) UpdateChannel(input *UpdateChannelInput) (*UpdateChannelOutput, error) {
req, out := c.UpdateChannelRequest(input)
return out, req.Send()
}
// UpdateChannelWithContext is the same as UpdateChannel with the addition of
// the ability to pass a context and additional request options.
//
// See UpdateChannel for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *MediaPackage) UpdateChannelWithContext(ctx aws.Context, input *UpdateChannelInput, opts ...request.Option) (*UpdateChannelOutput, error) {
req, out := c.UpdateChannelRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opUpdateOriginEndpoint = "UpdateOriginEndpoint"
// UpdateOriginEndpointRequest generates a "aws/request.Request" representing the
// client's request for the UpdateOriginEndpoint operation. The "output" return
// value will be populated with the request's response once the request complets
// successfuly.
//
// 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.
//
// See UpdateOriginEndpoint for more information on using the UpdateOriginEndpoint
// 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.
//
//
// // Example sending a request using the UpdateOriginEndpointRequest method.
// req, resp := client.UpdateOriginEndpointRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/UpdateOriginEndpoint
func (c *MediaPackage) UpdateOriginEndpointRequest(input *UpdateOriginEndpointInput) (req *request.Request, output *UpdateOriginEndpointOutput) {
op := &request.Operation{
Name: opUpdateOriginEndpoint,
HTTPMethod: "PUT",
HTTPPath: "/origin_endpoints/{id}",
}
if input == nil {
input = &UpdateOriginEndpointInput{}
}
output = &UpdateOriginEndpointOutput{}
req = c.newRequest(op, input, output)
return
}
// UpdateOriginEndpoint API operation for AWS Elemental MediaPackage.
//
// Updates an existing OriginEndpoint.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Elemental MediaPackage's
// API operation UpdateOriginEndpoint for usage and error information.
//
// Returned Error Codes:
// * ErrCodeUnprocessableEntityException "UnprocessableEntityException"
//
// * ErrCodeInternalServerErrorException "InternalServerErrorException"
//
// * ErrCodeForbiddenException "ForbiddenException"
//
// * ErrCodeNotFoundException "NotFoundException"
//
// * ErrCodeServiceUnavailableException "ServiceUnavailableException"
//
// * ErrCodeTooManyRequestsException "TooManyRequestsException"
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/UpdateOriginEndpoint
func (c *MediaPackage) UpdateOriginEndpoint(input *UpdateOriginEndpointInput) (*UpdateOriginEndpointOutput, error) {
req, out := c.UpdateOriginEndpointRequest(input)
return out, req.Send()
}
// UpdateOriginEndpointWithContext is the same as UpdateOriginEndpoint with the addition of
// the ability to pass a context and additional request options.
//
// See UpdateOriginEndpoint for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *MediaPackage) UpdateOriginEndpointWithContext(ctx aws.Context, input *UpdateOriginEndpointInput, opts ...request.Option) (*UpdateOriginEndpointOutput, error) {
req, out := c.UpdateOriginEndpointRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// A Channel resource configuration.
type Channel struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (ARN) assigned to the Channel.
Arn *string `locationName:"arn" type:"string"`
// A short text description of the Channel.
Description *string `locationName:"description" type:"string"`
// An HTTP Live Streaming (HLS) ingest resource configuration.
HlsIngest *HlsIngest `locationName:"hlsIngest" type:"structure"`
// The ID of the Channel.
Id *string `locationName:"id" type:"string"`
}
// String returns the string representation
func (s Channel) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Channel) GoString() string {
return s.String()
}
// SetArn sets the Arn field's value.
func (s *Channel) SetArn(v string) *Channel {
s.Arn = &v
return s
}
// SetDescription sets the Description field's value.
func (s *Channel) SetDescription(v string) *Channel {
s.Description = &v
return s
}
// SetHlsIngest sets the HlsIngest field's value.
func (s *Channel) SetHlsIngest(v *HlsIngest) *Channel {
s.HlsIngest = v
return s
}
// SetId sets the Id field's value.
func (s *Channel) SetId(v string) *Channel {
s.Id = &v
return s
}
type CreateChannelInput struct {
_ struct{} `type:"structure"`
Description *string `locationName:"description" type:"string"`
// Id is a required field
Id *string `locationName:"id" type:"string" required:"true"`
}
// String returns the string representation
func (s CreateChannelInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateChannelInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateChannelInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CreateChannelInput"}
if s.Id == nil {
invalidParams.Add(request.NewErrParamRequired("Id"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetDescription sets the Description field's value.
func (s *CreateChannelInput) SetDescription(v string) *CreateChannelInput {
s.Description = &v
return s
}
// SetId sets the Id field's value.
func (s *CreateChannelInput) SetId(v string) *CreateChannelInput {
s.Id = &v
return s
}
type CreateChannelOutput struct {
_ struct{} `type:"structure"`
Arn *string `locationName:"arn" type:"string"`
Description *string `locationName:"description" type:"string"`
// An HTTP Live Streaming (HLS) ingest resource configuration.
HlsIngest *HlsIngest `locationName:"hlsIngest" type:"structure"`
Id *string `locationName:"id" type:"string"`
}
// String returns the string representation
func (s CreateChannelOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateChannelOutput) GoString() string {
return s.String()
}
// SetArn sets the Arn field's value.
func (s *CreateChannelOutput) SetArn(v string) *CreateChannelOutput {
s.Arn = &v
return s
}
// SetDescription sets the Description field's value.
func (s *CreateChannelOutput) SetDescription(v string) *CreateChannelOutput {
s.Description = &v
return s
}
// SetHlsIngest sets the HlsIngest field's value.
func (s *CreateChannelOutput) SetHlsIngest(v *HlsIngest) *CreateChannelOutput {
s.HlsIngest = v
return s
}
// SetId sets the Id field's value.
func (s *CreateChannelOutput) SetId(v string) *CreateChannelOutput {
s.Id = &v
return s
}
type CreateOriginEndpointInput struct {
_ struct{} `type:"structure"`
// ChannelId is a required field
ChannelId *string `locationName:"channelId" type:"string" required:"true"`
// A Dynamic Adaptive Streaming over HTTP (DASH) packaging configuration.
DashPackage *DashPackage `locationName:"dashPackage" type:"structure"`
Description *string `locationName:"description" type:"string"`
// An HTTP Live Streaming (HLS) packaging configuration.
HlsPackage *HlsPackage `locationName:"hlsPackage" type:"structure"`
// Id is a required field
Id *string `locationName:"id" type:"string" required:"true"`
ManifestName *string `locationName:"manifestName" type:"string"`
// A Microsoft Smooth Streaming (MSS) packaging configuration.
MssPackage *MssPackage `locationName:"mssPackage" type:"structure"`
StartoverWindowSeconds *int64 `locationName:"startoverWindowSeconds" type:"integer"`
TimeDelaySeconds *int64 `locationName:"timeDelaySeconds" type:"integer"`
Whitelist []*string `locationName:"whitelist" type:"list"`
}
// String returns the string representation
func (s CreateOriginEndpointInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateOriginEndpointInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateOriginEndpointInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CreateOriginEndpointInput"}
if s.ChannelId == nil {
invalidParams.Add(request.NewErrParamRequired("ChannelId"))
}
if s.Id == nil {
invalidParams.Add(request.NewErrParamRequired("Id"))
}
if s.DashPackage != nil {
if err := s.DashPackage.Validate(); err != nil {
invalidParams.AddNested("DashPackage", err.(request.ErrInvalidParams))
}
}
if s.HlsPackage != nil {
if err := s.HlsPackage.Validate(); err != nil {
invalidParams.AddNested("HlsPackage", err.(request.ErrInvalidParams))
}
}
if s.MssPackage != nil {
if err := s.MssPackage.Validate(); err != nil {
invalidParams.AddNested("MssPackage", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetChannelId sets the ChannelId field's value.
func (s *CreateOriginEndpointInput) SetChannelId(v string) *CreateOriginEndpointInput {
s.ChannelId = &v
return s
}
// SetDashPackage sets the DashPackage field's value.
func (s *CreateOriginEndpointInput) SetDashPackage(v *DashPackage) *CreateOriginEndpointInput {
s.DashPackage = v
return s
}
// SetDescription sets the Description field's value.
func (s *CreateOriginEndpointInput) SetDescription(v string) *CreateOriginEndpointInput {
s.Description = &v
return s
}
// SetHlsPackage sets the HlsPackage field's value.
func (s *CreateOriginEndpointInput) SetHlsPackage(v *HlsPackage) *CreateOriginEndpointInput {
s.HlsPackage = v
return s
}
// SetId sets the Id field's value.
func (s *CreateOriginEndpointInput) SetId(v string) *CreateOriginEndpointInput {
s.Id = &v
return s
}
// SetManifestName sets the ManifestName field's value.
func (s *CreateOriginEndpointInput) SetManifestName(v string) *CreateOriginEndpointInput {
s.ManifestName = &v
return s
}
// SetMssPackage sets the MssPackage field's value.
func (s *CreateOriginEndpointInput) SetMssPackage(v *MssPackage) *CreateOriginEndpointInput {
s.MssPackage = v
return s
}
// SetStartoverWindowSeconds sets the StartoverWindowSeconds field's value.
func (s *CreateOriginEndpointInput) SetStartoverWindowSeconds(v int64) *CreateOriginEndpointInput {
s.StartoverWindowSeconds = &v
return s
}
// SetTimeDelaySeconds sets the TimeDelaySeconds field's value.
func (s *CreateOriginEndpointInput) SetTimeDelaySeconds(v int64) *CreateOriginEndpointInput {
s.TimeDelaySeconds = &v
return s
}
// SetWhitelist sets the Whitelist field's value.
func (s *CreateOriginEndpointInput) SetWhitelist(v []*string) *CreateOriginEndpointInput {
s.Whitelist = v
return s
}
type CreateOriginEndpointOutput struct {
_ struct{} `type:"structure"`
Arn *string `locationName:"arn" type:"string"`
ChannelId *string `locationName:"channelId" type:"string"`
// A Dynamic Adaptive Streaming over HTTP (DASH) packaging configuration.
DashPackage *DashPackage `locationName:"dashPackage" type:"structure"`
Description *string `locationName:"description" type:"string"`
// An HTTP Live Streaming (HLS) packaging configuration.
HlsPackage *HlsPackage `locationName:"hlsPackage" type:"structure"`
Id *string `locationName:"id" type:"string"`
ManifestName *string `locationName:"manifestName" type:"string"`
// A Microsoft Smooth Streaming (MSS) packaging configuration.
MssPackage *MssPackage `locationName:"mssPackage" type:"structure"`
StartoverWindowSeconds *int64 `locationName:"startoverWindowSeconds" type:"integer"`
TimeDelaySeconds *int64 `locationName:"timeDelaySeconds" type:"integer"`
Url *string `locationName:"url" type:"string"`
Whitelist []*string `locationName:"whitelist" type:"list"`
}
// String returns the string representation
func (s CreateOriginEndpointOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateOriginEndpointOutput) GoString() string {
return s.String()
}
// SetArn sets the Arn field's value.
func (s *CreateOriginEndpointOutput) SetArn(v string) *CreateOriginEndpointOutput {
s.Arn = &v
return s
}
// SetChannelId sets the ChannelId field's value.
func (s *CreateOriginEndpointOutput) SetChannelId(v string) *CreateOriginEndpointOutput {
s.ChannelId = &v
return s
}
// SetDashPackage sets the DashPackage field's value.
func (s *CreateOriginEndpointOutput) SetDashPackage(v *DashPackage) *CreateOriginEndpointOutput {
s.DashPackage = v
return s
}
// SetDescription sets the Description field's value.
func (s *CreateOriginEndpointOutput) SetDescription(v string) *CreateOriginEndpointOutput {
s.Description = &v
return s
}
// SetHlsPackage sets the HlsPackage field's value.
func (s *CreateOriginEndpointOutput) SetHlsPackage(v *HlsPackage) *CreateOriginEndpointOutput {
s.HlsPackage = v
return s
}
// SetId sets the Id field's value.
func (s *CreateOriginEndpointOutput) SetId(v string) *CreateOriginEndpointOutput {
s.Id = &v
return s
}
// SetManifestName sets the ManifestName field's value.
func (s *CreateOriginEndpointOutput) SetManifestName(v string) *CreateOriginEndpointOutput {
s.ManifestName = &v
return s
}
// SetMssPackage sets the MssPackage field's value.
func (s *CreateOriginEndpointOutput) SetMssPackage(v *MssPackage) *CreateOriginEndpointOutput {
s.MssPackage = v
return s
}
// SetStartoverWindowSeconds sets the StartoverWindowSeconds field's value.
func (s *CreateOriginEndpointOutput) SetStartoverWindowSeconds(v int64) *CreateOriginEndpointOutput {
s.StartoverWindowSeconds = &v
return s
}
// SetTimeDelaySeconds sets the TimeDelaySeconds field's value.
func (s *CreateOriginEndpointOutput) SetTimeDelaySeconds(v int64) *CreateOriginEndpointOutput {
s.TimeDelaySeconds = &v
return s
}
// SetUrl sets the Url field's value.
func (s *CreateOriginEndpointOutput) SetUrl(v string) *CreateOriginEndpointOutput {
s.Url = &v
return s
}
// SetWhitelist sets the Whitelist field's value.
func (s *CreateOriginEndpointOutput) SetWhitelist(v []*string) *CreateOriginEndpointOutput {
s.Whitelist = v
return s
}
// A Dynamic Adaptive Streaming over HTTP (DASH) encryption configuration.
type DashEncryption struct {
_ struct{} `type:"structure"`
// Time (in seconds) between each encryption key rotation.
KeyRotationIntervalSeconds *int64 `locationName:"keyRotationIntervalSeconds" type:"integer"`
// A configuration for accessing an external Secure Packager and Encoder Key
// Exchange (SPEKE) service that will provide encryption keys.
//
// SpekeKeyProvider is a required field
SpekeKeyProvider *SpekeKeyProvider `locationName:"spekeKeyProvider" type:"structure" required:"true"`
}
// String returns the string representation
func (s DashEncryption) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DashEncryption) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DashEncryption) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DashEncryption"}
if s.SpekeKeyProvider == nil {
invalidParams.Add(request.NewErrParamRequired("SpekeKeyProvider"))
}
if s.SpekeKeyProvider != nil {
if err := s.SpekeKeyProvider.Validate(); err != nil {
invalidParams.AddNested("SpekeKeyProvider", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetKeyRotationIntervalSeconds sets the KeyRotationIntervalSeconds field's value.
func (s *DashEncryption) SetKeyRotationIntervalSeconds(v int64) *DashEncryption {
s.KeyRotationIntervalSeconds = &v
return s
}
// SetSpekeKeyProvider sets the SpekeKeyProvider field's value.
func (s *DashEncryption) SetSpekeKeyProvider(v *SpekeKeyProvider) *DashEncryption {
s.SpekeKeyProvider = v
return s
}
// A Dynamic Adaptive Streaming over HTTP (DASH) packaging configuration.
type DashPackage struct {
_ struct{} `type:"structure"`
// A Dynamic Adaptive Streaming over HTTP (DASH) encryption configuration.
Encryption *DashEncryption `locationName:"encryption" type:"structure"`
// Time window (in seconds) contained in each manifest.
ManifestWindowSeconds *int64 `locationName:"manifestWindowSeconds" type:"integer"`
// Minimum duration (in seconds) that a player will buffer media before starting
// the presentation.
MinBufferTimeSeconds *int64 `locationName:"minBufferTimeSeconds" type:"integer"`
// Minimum duration (in seconds) between potential changes to the Dynamic Adaptive
// Streaming over HTTP (DASH) Media Presentation Description (MPD).
MinUpdatePeriodSeconds *int64 `locationName:"minUpdatePeriodSeconds" type:"integer"`
// The Dynamic Adaptive Streaming over HTTP (DASH) profile type. When set to
// "HBBTV_1_5", HbbTV 1.5 compliant output is enabled.
Profile *string `locationName:"profile" type:"string" enum:"Profile"`
// Duration (in seconds) of each segment. Actual segments will berounded to
// the nearest multiple of the source segment duration.
SegmentDurationSeconds *int64 `locationName:"segmentDurationSeconds" type:"integer"`
// A StreamSelection configuration.
StreamSelection *StreamSelection `locationName:"streamSelection" type:"structure"`
// Duration (in seconds) to delay live content before presentation.
SuggestedPresentationDelaySeconds *int64 `locationName:"suggestedPresentationDelaySeconds" type:"integer"`
}
// String returns the string representation
func (s DashPackage) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DashPackage) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DashPackage) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DashPackage"}
if s.Encryption != nil {
if err := s.Encryption.Validate(); err != nil {
invalidParams.AddNested("Encryption", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetEncryption sets the Encryption field's value.
func (s *DashPackage) SetEncryption(v *DashEncryption) *DashPackage {
s.Encryption = v
return s
}
// SetManifestWindowSeconds sets the ManifestWindowSeconds field's value.
func (s *DashPackage) SetManifestWindowSeconds(v int64) *DashPackage {
s.ManifestWindowSeconds = &v
return s
}
// SetMinBufferTimeSeconds sets the MinBufferTimeSeconds field's value.
func (s *DashPackage) SetMinBufferTimeSeconds(v int64) *DashPackage {
s.MinBufferTimeSeconds = &v
return s
}
// SetMinUpdatePeriodSeconds sets the MinUpdatePeriodSeconds field's value.
func (s *DashPackage) SetMinUpdatePeriodSeconds(v int64) *DashPackage {
s.MinUpdatePeriodSeconds = &v
return s
}
// SetProfile sets the Profile field's value.
func (s *DashPackage) SetProfile(v string) *DashPackage {
s.Profile = &v
return s
}
// SetSegmentDurationSeconds sets the SegmentDurationSeconds field's value.
func (s *DashPackage) SetSegmentDurationSeconds(v int64) *DashPackage {
s.SegmentDurationSeconds = &v
return s
}
// SetStreamSelection sets the StreamSelection field's value.
func (s *DashPackage) SetStreamSelection(v *StreamSelection) *DashPackage {
s.StreamSelection = v
return s
}
// SetSuggestedPresentationDelaySeconds sets the SuggestedPresentationDelaySeconds field's value.
func (s *DashPackage) SetSuggestedPresentationDelaySeconds(v int64) *DashPackage {
s.SuggestedPresentationDelaySeconds = &v
return s
}
type DeleteChannelInput struct {
_ struct{} `type:"structure"`
// Id is a required field
Id *string `location:"uri" locationName:"id" type:"string" required:"true"`
}
// String returns the string representation
func (s DeleteChannelInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteChannelInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteChannelInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DeleteChannelInput"}
if s.Id == nil {
invalidParams.Add(request.NewErrParamRequired("Id"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetId sets the Id field's value.
func (s *DeleteChannelInput) SetId(v string) *DeleteChannelInput {
s.Id = &v
return s
}
type DeleteChannelOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DeleteChannelOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteChannelOutput) GoString() string {
return s.String()
}
type DeleteOriginEndpointInput struct {
_ struct{} `type:"structure"`
// Id is a required field
Id *string `location:"uri" locationName:"id" type:"string" required:"true"`
}
// String returns the string representation
func (s DeleteOriginEndpointInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteOriginEndpointInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteOriginEndpointInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DeleteOriginEndpointInput"}
if s.Id == nil {
invalidParams.Add(request.NewErrParamRequired("Id"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetId sets the Id field's value.
func (s *DeleteOriginEndpointInput) SetId(v string) *DeleteOriginEndpointInput {
s.Id = &v
return s
}
type DeleteOriginEndpointOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DeleteOriginEndpointOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteOriginEndpointOutput) GoString() string {
return s.String()
}
type DescribeChannelInput struct {
_ struct{} `type:"structure"`
// Id is a required field
Id *string `location:"uri" locationName:"id" type:"string" required:"true"`
}
// String returns the string representation
func (s DescribeChannelInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeChannelInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeChannelInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DescribeChannelInput"}
if s.Id == nil {
invalidParams.Add(request.NewErrParamRequired("Id"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetId sets the Id field's value.
func (s *DescribeChannelInput) SetId(v string) *DescribeChannelInput {
s.Id = &v
return s
}
type DescribeChannelOutput struct {
_ struct{} `type:"structure"`
Arn *string `locationName:"arn" type:"string"`
Description *string `locationName:"description" type:"string"`
// An HTTP Live Streaming (HLS) ingest resource configuration.
HlsIngest *HlsIngest `locationName:"hlsIngest" type:"structure"`
Id *string `locationName:"id" type:"string"`
}
// String returns the string representation
func (s DescribeChannelOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeChannelOutput) GoString() string {
return s.String()
}
// SetArn sets the Arn field's value.
func (s *DescribeChannelOutput) SetArn(v string) *DescribeChannelOutput {
s.Arn = &v
return s
}
// SetDescription sets the Description field's value.
func (s *DescribeChannelOutput) SetDescription(v string) *DescribeChannelOutput {
s.Description = &v
return s
}
// SetHlsIngest sets the HlsIngest field's value.
func (s *DescribeChannelOutput) SetHlsIngest(v *HlsIngest) *DescribeChannelOutput {
s.HlsIngest = v
return s
}
// SetId sets the Id field's value.
func (s *DescribeChannelOutput) SetId(v string) *DescribeChannelOutput {
s.Id = &v
return s
}
type DescribeOriginEndpointInput struct {
_ struct{} `type:"structure"`
// Id is a required field
Id *string `location:"uri" locationName:"id" type:"string" required:"true"`
}
// String returns the string representation
func (s DescribeOriginEndpointInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeOriginEndpointInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeOriginEndpointInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DescribeOriginEndpointInput"}
if s.Id == nil {
invalidParams.Add(request.NewErrParamRequired("Id"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetId sets the Id field's value.
func (s *DescribeOriginEndpointInput) SetId(v string) *DescribeOriginEndpointInput {
s.Id = &v
return s
}
type DescribeOriginEndpointOutput struct {
_ struct{} `type:"structure"`
Arn *string `locationName:"arn" type:"string"`
ChannelId *string `locationName:"channelId" type:"string"`
// A Dynamic Adaptive Streaming over HTTP (DASH) packaging configuration.
DashPackage *DashPackage `locationName:"dashPackage" type:"structure"`
Description *string `locationName:"description" type:"string"`
// An HTTP Live Streaming (HLS) packaging configuration.
HlsPackage *HlsPackage `locationName:"hlsPackage" type:"structure"`
Id *string `locationName:"id" type:"string"`
ManifestName *string `locationName:"manifestName" type:"string"`
// A Microsoft Smooth Streaming (MSS) packaging configuration.
MssPackage *MssPackage `locationName:"mssPackage" type:"structure"`
StartoverWindowSeconds *int64 `locationName:"startoverWindowSeconds" type:"integer"`
TimeDelaySeconds *int64 `locationName:"timeDelaySeconds" type:"integer"`
Url *string `locationName:"url" type:"string"`
Whitelist []*string `locationName:"whitelist" type:"list"`
}
// String returns the string representation
func (s DescribeOriginEndpointOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeOriginEndpointOutput) GoString() string {
return s.String()
}
// SetArn sets the Arn field's value.
func (s *DescribeOriginEndpointOutput) SetArn(v string) *DescribeOriginEndpointOutput {
s.Arn = &v
return s
}
// SetChannelId sets the ChannelId field's value.
func (s *DescribeOriginEndpointOutput) SetChannelId(v string) *DescribeOriginEndpointOutput {
s.ChannelId = &v
return s
}
// SetDashPackage sets the DashPackage field's value.
func (s *DescribeOriginEndpointOutput) SetDashPackage(v *DashPackage) *DescribeOriginEndpointOutput {
s.DashPackage = v
return s
}
// SetDescription sets the Description field's value.
func (s *DescribeOriginEndpointOutput) SetDescription(v string) *DescribeOriginEndpointOutput {
s.Description = &v
return s
}
// SetHlsPackage sets the HlsPackage field's value.
func (s *DescribeOriginEndpointOutput) SetHlsPackage(v *HlsPackage) *DescribeOriginEndpointOutput {
s.HlsPackage = v
return s
}
// SetId sets the Id field's value.
func (s *DescribeOriginEndpointOutput) SetId(v string) *DescribeOriginEndpointOutput {
s.Id = &v
return s
}
// SetManifestName sets the ManifestName field's value.
func (s *DescribeOriginEndpointOutput) SetManifestName(v string) *DescribeOriginEndpointOutput {
s.ManifestName = &v
return s
}
// SetMssPackage sets the MssPackage field's value.
func (s *DescribeOriginEndpointOutput) SetMssPackage(v *MssPackage) *DescribeOriginEndpointOutput {
s.MssPackage = v
return s
}
// SetStartoverWindowSeconds sets the StartoverWindowSeconds field's value.
func (s *DescribeOriginEndpointOutput) SetStartoverWindowSeconds(v int64) *DescribeOriginEndpointOutput {
s.StartoverWindowSeconds = &v
return s
}
// SetTimeDelaySeconds sets the TimeDelaySeconds field's value.
func (s *DescribeOriginEndpointOutput) SetTimeDelaySeconds(v int64) *DescribeOriginEndpointOutput {
s.TimeDelaySeconds = &v
return s
}
// SetUrl sets the Url field's value.
func (s *DescribeOriginEndpointOutput) SetUrl(v string) *DescribeOriginEndpointOutput {
s.Url = &v
return s
}
// SetWhitelist sets the Whitelist field's value.
func (s *DescribeOriginEndpointOutput) SetWhitelist(v []*string) *DescribeOriginEndpointOutput {
s.Whitelist = v
return s
}
// An HTTP Live Streaming (HLS) encryption configuration.
type HlsEncryption struct {
_ struct{} `type:"structure"`
// A constant initialization vector for encryption (optional).When not specified
// the initialization vector will be periodically rotated.
ConstantInitializationVector *string `locationName:"constantInitializationVector" type:"string"`
// The encryption method to use.
EncryptionMethod *string `locationName:"encryptionMethod" type:"string" enum:"EncryptionMethod"`
// Interval (in seconds) between each encryption key rotation.
KeyRotationIntervalSeconds *int64 `locationName:"keyRotationIntervalSeconds" type:"integer"`
// When enabled, the EXT-X-KEY tag will be repeated in output manifests.
RepeatExtXKey *bool `locationName:"repeatExtXKey" type:"boolean"`
// A configuration for accessing an external Secure Packager and Encoder Key
// Exchange (SPEKE) service that will provide encryption keys.
//
// SpekeKeyProvider is a required field
SpekeKeyProvider *SpekeKeyProvider `locationName:"spekeKeyProvider" type:"structure" required:"true"`
}
// String returns the string representation
func (s HlsEncryption) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s HlsEncryption) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *HlsEncryption) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "HlsEncryption"}
if s.SpekeKeyProvider == nil {
invalidParams.Add(request.NewErrParamRequired("SpekeKeyProvider"))
}
if s.SpekeKeyProvider != nil {
if err := s.SpekeKeyProvider.Validate(); err != nil {
invalidParams.AddNested("SpekeKeyProvider", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetConstantInitializationVector sets the ConstantInitializationVector field's value.
func (s *HlsEncryption) SetConstantInitializationVector(v string) *HlsEncryption {
s.ConstantInitializationVector = &v
return s
}
// SetEncryptionMethod sets the EncryptionMethod field's value.
func (s *HlsEncryption) SetEncryptionMethod(v string) *HlsEncryption {
s.EncryptionMethod = &v
return s
}
// SetKeyRotationIntervalSeconds sets the KeyRotationIntervalSeconds field's value.
func (s *HlsEncryption) SetKeyRotationIntervalSeconds(v int64) *HlsEncryption {
s.KeyRotationIntervalSeconds = &v
return s
}
// SetRepeatExtXKey sets the RepeatExtXKey field's value.
func (s *HlsEncryption) SetRepeatExtXKey(v bool) *HlsEncryption {
s.RepeatExtXKey = &v
return s
}
// SetSpekeKeyProvider sets the SpekeKeyProvider field's value.
func (s *HlsEncryption) SetSpekeKeyProvider(v *SpekeKeyProvider) *HlsEncryption {
s.SpekeKeyProvider = v
return s
}
// An HTTP Live Streaming (HLS) ingest resource configuration.
type HlsIngest struct {
_ struct{} `type:"structure"`
// A list of endpoints to which the source stream should be sent.
IngestEndpoints []*IngestEndpoint `locationName:"ingestEndpoints" type:"list"`
}
// String returns the string representation
func (s HlsIngest) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s HlsIngest) GoString() string {
return s.String()
}
// SetIngestEndpoints sets the IngestEndpoints field's value.
func (s *HlsIngest) SetIngestEndpoints(v []*IngestEndpoint) *HlsIngest {
s.IngestEndpoints = v
return s
}
// An HTTP Live Streaming (HLS) packaging configuration.
type HlsPackage struct {
_ struct{} `type:"structure"`
// This setting controls how ad markers are included in the packaged OriginEndpoint."NONE"
// will omit all SCTE-35 ad markers from the output."PASSTHROUGH" causes the
// manifest to contain a copy of the SCTE-35 admarkers (comments) taken directly
// from the input HTTP Live Streaming (HLS) manifest."SCTE35_ENHANCED" generates
// ad markers and blackout tags based on SCTE-35messages in the input source.
AdMarkers *string `locationName:"adMarkers" type:"string" enum:"AdMarkers"`
// An HTTP Live Streaming (HLS) encryption configuration.
Encryption *HlsEncryption `locationName:"encryption" type:"structure"`
// When enabled, an I-Frame only stream will be included in the output.
IncludeIframeOnlyStream *bool `locationName:"includeIframeOnlyStream" type:"boolean"`
// The HTTP Live Streaming (HLS) playlist type.When either "EVENT" or "VOD"
// is specified, a corresponding EXT-X-PLAYLIST-TYPEentry will be included in
// the media playlist.
PlaylistType *string `locationName:"playlistType" type:"string" enum:"PlaylistType"`
// Time window (in seconds) contained in each parent manifest.
PlaylistWindowSeconds *int64 `locationName:"playlistWindowSeconds" type:"integer"`
// The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME taginserted
// into manifests. Additionally, when an interval is specifiedID3Timed Metadata
// messages will be generated every 5 seconds using the ingest time of the content.If
// the interval is not specified, or set to 0, thenno EXT-X-PROGRAM-DATE-TIME
// tags will be inserted into manifests and noID3Timed Metadata messages will
// be generated. Note that irrespectiveof this parameter, if any ID3 Timed Metadata
// is found in HTTP Live Streaming (HLS) input,it will be passed through to
// HLS output.
ProgramDateTimeIntervalSeconds *int64 `locationName:"programDateTimeIntervalSeconds" type:"integer"`
// Duration (in seconds) of each fragment. Actual fragments will berounded to
// the nearest multiple of the source fragment duration.
SegmentDurationSeconds *int64 `locationName:"segmentDurationSeconds" type:"integer"`
// A StreamSelection configuration.
StreamSelection *StreamSelection `locationName:"streamSelection" type:"structure"`
// When enabled, audio streams will be placed in rendition groups in the output.
UseAudioRenditionGroup *bool `locationName:"useAudioRenditionGroup" type:"boolean"`
}
// String returns the string representation
func (s HlsPackage) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s HlsPackage) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *HlsPackage) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "HlsPackage"}
if s.Encryption != nil {
if err := s.Encryption.Validate(); err != nil {
invalidParams.AddNested("Encryption", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAdMarkers sets the AdMarkers field's value.
func (s *HlsPackage) SetAdMarkers(v string) *HlsPackage {
s.AdMarkers = &v
return s
}
// SetEncryption sets the Encryption field's value.
func (s *HlsPackage) SetEncryption(v *HlsEncryption) *HlsPackage {
s.Encryption = v
return s
}
// SetIncludeIframeOnlyStream sets the IncludeIframeOnlyStream field's value.
func (s *HlsPackage) SetIncludeIframeOnlyStream(v bool) *HlsPackage {
s.IncludeIframeOnlyStream = &v
return s
}
// SetPlaylistType sets the PlaylistType field's value.
func (s *HlsPackage) SetPlaylistType(v string) *HlsPackage {
s.PlaylistType = &v
return s
}
// SetPlaylistWindowSeconds sets the PlaylistWindowSeconds field's value.
func (s *HlsPackage) SetPlaylistWindowSeconds(v int64) *HlsPackage {
s.PlaylistWindowSeconds = &v
return s
}
// SetProgramDateTimeIntervalSeconds sets the ProgramDateTimeIntervalSeconds field's value.
func (s *HlsPackage) SetProgramDateTimeIntervalSeconds(v int64) *HlsPackage {
s.ProgramDateTimeIntervalSeconds = &v
return s
}
// SetSegmentDurationSeconds sets the SegmentDurationSeconds field's value.
func (s *HlsPackage) SetSegmentDurationSeconds(v int64) *HlsPackage {
s.SegmentDurationSeconds = &v
return s
}
// SetStreamSelection sets the StreamSelection field's value.
func (s *HlsPackage) SetStreamSelection(v *StreamSelection) *HlsPackage {
s.StreamSelection = v
return s
}
// SetUseAudioRenditionGroup sets the UseAudioRenditionGroup field's value.
func (s *HlsPackage) SetUseAudioRenditionGroup(v bool) *HlsPackage {
s.UseAudioRenditionGroup = &v
return s
}
// An endpoint for ingesting source content for a Channel.
type IngestEndpoint struct {
_ struct{} `type:"structure"`
// The system generated password for ingest authentication.
Password *string `locationName:"password" type:"string"`
// The ingest URL to which the source stream should be sent.
Url *string `locationName:"url" type:"string"`
// The system generated username for ingest authentication.
Username *string `locationName:"username" type:"string"`
}
// String returns the string representation
func (s IngestEndpoint) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s IngestEndpoint) GoString() string {
return s.String()
}
// SetPassword sets the Password field's value.
func (s *IngestEndpoint) SetPassword(v string) *IngestEndpoint {
s.Password = &v
return s
}
// SetUrl sets the Url field's value.
func (s *IngestEndpoint) SetUrl(v string) *IngestEndpoint {
s.Url = &v
return s
}
// SetUsername sets the Username field's value.
func (s *IngestEndpoint) SetUsername(v string) *IngestEndpoint {
s.Username = &v
return s
}
type ListChannelsInput struct {
_ struct{} `type:"structure"`
MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
}
// String returns the string representation
func (s ListChannelsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListChannelsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListChannelsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListChannelsInput"}
if s.MaxResults != nil && *s.MaxResults < 1 {
invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetMaxResults sets the MaxResults field's value.
func (s *ListChannelsInput) SetMaxResults(v int64) *ListChannelsInput {
s.MaxResults = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListChannelsInput) SetNextToken(v string) *ListChannelsInput {
s.NextToken = &v
return s
}
type ListChannelsOutput struct {
_ struct{} `type:"structure"`
Channels []*Channel `locationName:"channels" type:"list"`
NextToken *string `locationName:"nextToken" type:"string"`
}
// String returns the string representation
func (s ListChannelsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListChannelsOutput) GoString() string {
return s.String()
}
// SetChannels sets the Channels field's value.
func (s *ListChannelsOutput) SetChannels(v []*Channel) *ListChannelsOutput {
s.Channels = v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListChannelsOutput) SetNextToken(v string) *ListChannelsOutput {
s.NextToken = &v
return s
}
type ListOriginEndpointsInput struct {
_ struct{} `type:"structure"`
ChannelId *string `location:"querystring" locationName:"channelId" type:"string"`
MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
}
// String returns the string representation
func (s ListOriginEndpointsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListOriginEndpointsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListOriginEndpointsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListOriginEndpointsInput"}
if s.MaxResults != nil && *s.MaxResults < 1 {
invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetChannelId sets the ChannelId field's value.
func (s *ListOriginEndpointsInput) SetChannelId(v string) *ListOriginEndpointsInput {
s.ChannelId = &v
return s
}
// SetMaxResults sets the MaxResults field's value.
func (s *ListOriginEndpointsInput) SetMaxResults(v int64) *ListOriginEndpointsInput {
s.MaxResults = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListOriginEndpointsInput) SetNextToken(v string) *ListOriginEndpointsInput {
s.NextToken = &v
return s
}
type ListOriginEndpointsOutput struct {
_ struct{} `type:"structure"`
NextToken *string `locationName:"nextToken" type:"string"`
OriginEndpoints []*OriginEndpoint `locationName:"originEndpoints" type:"list"`
}
// String returns the string representation
func (s ListOriginEndpointsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListOriginEndpointsOutput) GoString() string {
return s.String()
}
// SetNextToken sets the NextToken field's value.
func (s *ListOriginEndpointsOutput) SetNextToken(v string) *ListOriginEndpointsOutput {
s.NextToken = &v
return s
}
// SetOriginEndpoints sets the OriginEndpoints field's value.
func (s *ListOriginEndpointsOutput) SetOriginEndpoints(v []*OriginEndpoint) *ListOriginEndpointsOutput {
s.OriginEndpoints = v
return s
}
// A Microsoft Smooth Streaming (MSS) encryption configuration.
type MssEncryption struct {
_ struct{} `type:"structure"`
// A configuration for accessing an external Secure Packager and Encoder Key
// Exchange (SPEKE) service that will provide encryption keys.
//
// SpekeKeyProvider is a required field
SpekeKeyProvider *SpekeKeyProvider `locationName:"spekeKeyProvider" type:"structure" required:"true"`
}
// String returns the string representation
func (s MssEncryption) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s MssEncryption) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *MssEncryption) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "MssEncryption"}
if s.SpekeKeyProvider == nil {
invalidParams.Add(request.NewErrParamRequired("SpekeKeyProvider"))
}
if s.SpekeKeyProvider != nil {
if err := s.SpekeKeyProvider.Validate(); err != nil {
invalidParams.AddNested("SpekeKeyProvider", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetSpekeKeyProvider sets the SpekeKeyProvider field's value.
func (s *MssEncryption) SetSpekeKeyProvider(v *SpekeKeyProvider) *MssEncryption {
s.SpekeKeyProvider = v
return s
}
// A Microsoft Smooth Streaming (MSS) packaging configuration.
type MssPackage struct {
_ struct{} `type:"structure"`
// A Microsoft Smooth Streaming (MSS) encryption configuration.
Encryption *MssEncryption `locationName:"encryption" type:"structure"`
// The time window (in seconds) contained in each manifest.
ManifestWindowSeconds *int64 `locationName:"manifestWindowSeconds" type:"integer"`
// The duration (in seconds) of each segment.
SegmentDurationSeconds *int64 `locationName:"segmentDurationSeconds" type:"integer"`
// A StreamSelection configuration.
StreamSelection *StreamSelection `locationName:"streamSelection" type:"structure"`
}
// String returns the string representation
func (s MssPackage) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s MssPackage) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *MssPackage) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "MssPackage"}
if s.Encryption != nil {
if err := s.Encryption.Validate(); err != nil {
invalidParams.AddNested("Encryption", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetEncryption sets the Encryption field's value.
func (s *MssPackage) SetEncryption(v *MssEncryption) *MssPackage {
s.Encryption = v
return s
}
// SetManifestWindowSeconds sets the ManifestWindowSeconds field's value.
func (s *MssPackage) SetManifestWindowSeconds(v int64) *MssPackage {
s.ManifestWindowSeconds = &v
return s
}
// SetSegmentDurationSeconds sets the SegmentDurationSeconds field's value.
func (s *MssPackage) SetSegmentDurationSeconds(v int64) *MssPackage {
s.SegmentDurationSeconds = &v
return s
}
// SetStreamSelection sets the StreamSelection field's value.
func (s *MssPackage) SetStreamSelection(v *StreamSelection) *MssPackage {
s.StreamSelection = v
return s
}
// An OriginEndpoint resource configuration.
type OriginEndpoint struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (ARN) assigned to the OriginEndpoint.
Arn *string `locationName:"arn" type:"string"`
// The ID of the Channel the OriginEndpoint is associated with.
ChannelId *string `locationName:"channelId" type:"string"`
// A Dynamic Adaptive Streaming over HTTP (DASH) packaging configuration.
DashPackage *DashPackage `locationName:"dashPackage" type:"structure"`
// A short text description of the OriginEndpoint.
Description *string `locationName:"description" type:"string"`
// An HTTP Live Streaming (HLS) packaging configuration.
HlsPackage *HlsPackage `locationName:"hlsPackage" type:"structure"`
// The ID of the OriginEndpoint.
Id *string `locationName:"id" type:"string"`
// A short string appended to the end of the OriginEndpoint URL.
ManifestName *string `locationName:"manifestName" type:"string"`
// A Microsoft Smooth Streaming (MSS) packaging configuration.
MssPackage *MssPackage `locationName:"mssPackage" type:"structure"`
// Maximum duration (seconds) of content to retain for startover playback.If
// not specified, startover playback will be disabled for the OriginEndpoint.
StartoverWindowSeconds *int64 `locationName:"startoverWindowSeconds" type:"integer"`
// Amount of delay (seconds) to enforce on the playback of live content.If not
// specified, there will be no time delay in effect for the OriginEndpoint.
TimeDelaySeconds *int64 `locationName:"timeDelaySeconds" type:"integer"`
// The URL of the packaged OriginEndpoint for consumption.
Url *string `locationName:"url" type:"string"`
// A list of source IP CIDR blocks that will be allowed to access the OriginEndpoint.
Whitelist []*string `locationName:"whitelist" type:"list"`
}
// String returns the string representation
func (s OriginEndpoint) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s OriginEndpoint) GoString() string {
return s.String()
}
// SetArn sets the Arn field's value.
func (s *OriginEndpoint) SetArn(v string) *OriginEndpoint {
s.Arn = &v
return s
}
// SetChannelId sets the ChannelId field's value.
func (s *OriginEndpoint) SetChannelId(v string) *OriginEndpoint {
s.ChannelId = &v
return s
}
// SetDashPackage sets the DashPackage field's value.
func (s *OriginEndpoint) SetDashPackage(v *DashPackage) *OriginEndpoint {
s.DashPackage = v
return s
}
// SetDescription sets the Description field's value.
func (s *OriginEndpoint) SetDescription(v string) *OriginEndpoint {
s.Description = &v
return s
}
// SetHlsPackage sets the HlsPackage field's value.
func (s *OriginEndpoint) SetHlsPackage(v *HlsPackage) *OriginEndpoint {
s.HlsPackage = v
return s
}
// SetId sets the Id field's value.
func (s *OriginEndpoint) SetId(v string) *OriginEndpoint {
s.Id = &v
return s
}
// SetManifestName sets the ManifestName field's value.
func (s *OriginEndpoint) SetManifestName(v string) *OriginEndpoint {
s.ManifestName = &v
return s
}
// SetMssPackage sets the MssPackage field's value.
func (s *OriginEndpoint) SetMssPackage(v *MssPackage) *OriginEndpoint {
s.MssPackage = v
return s
}
// SetStartoverWindowSeconds sets the StartoverWindowSeconds field's value.
func (s *OriginEndpoint) SetStartoverWindowSeconds(v int64) *OriginEndpoint {
s.StartoverWindowSeconds = &v
return s
}
// SetTimeDelaySeconds sets the TimeDelaySeconds field's value.
func (s *OriginEndpoint) SetTimeDelaySeconds(v int64) *OriginEndpoint {
s.TimeDelaySeconds = &v
return s
}
// SetUrl sets the Url field's value.
func (s *OriginEndpoint) SetUrl(v string) *OriginEndpoint {
s.Url = &v
return s
}
// SetWhitelist sets the Whitelist field's value.
func (s *OriginEndpoint) SetWhitelist(v []*string) *OriginEndpoint {
s.Whitelist = v
return s
}
type RotateChannelCredentialsInput struct {
_ struct{} `type:"structure"`
// Id is a required field
Id *string `location:"uri" locationName:"id" type:"string" required:"true"`
}
// String returns the string representation
func (s RotateChannelCredentialsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s RotateChannelCredentialsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *RotateChannelCredentialsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "RotateChannelCredentialsInput"}
if s.Id == nil {
invalidParams.Add(request.NewErrParamRequired("Id"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetId sets the Id field's value.
func (s *RotateChannelCredentialsInput) SetId(v string) *RotateChannelCredentialsInput {
s.Id = &v
return s
}
type RotateChannelCredentialsOutput struct {
_ struct{} `type:"structure"`
Arn *string `locationName:"arn" type:"string"`
Description *string `locationName:"description" type:"string"`
// An HTTP Live Streaming (HLS) ingest resource configuration.
HlsIngest *HlsIngest `locationName:"hlsIngest" type:"structure"`
Id *string `locationName:"id" type:"string"`
}
// String returns the string representation
func (s RotateChannelCredentialsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s RotateChannelCredentialsOutput) GoString() string {
return s.String()
}
// SetArn sets the Arn field's value.
func (s *RotateChannelCredentialsOutput) SetArn(v string) *RotateChannelCredentialsOutput {
s.Arn = &v
return s
}
// SetDescription sets the Description field's value.
func (s *RotateChannelCredentialsOutput) SetDescription(v string) *RotateChannelCredentialsOutput {
s.Description = &v
return s
}
// SetHlsIngest sets the HlsIngest field's value.
func (s *RotateChannelCredentialsOutput) SetHlsIngest(v *HlsIngest) *RotateChannelCredentialsOutput {
s.HlsIngest = v
return s
}
// SetId sets the Id field's value.
func (s *RotateChannelCredentialsOutput) SetId(v string) *RotateChannelCredentialsOutput {
s.Id = &v
return s
}
// A configuration for accessing an external Secure Packager and Encoder Key
// Exchange (SPEKE) service that will provide encryption keys.
type SpekeKeyProvider struct {
_ struct{} `type:"structure"`
// The resource ID to include in key requests.
//
// ResourceId is a required field
ResourceId *string `locationName:"resourceId" type:"string" required:"true"`
// An Amazon Resource Name (ARN) of an IAM role that AWS ElementalMediaPackage
// will assume when accessing the key provider service.
//
// RoleArn is a required field
RoleArn *string `locationName:"roleArn" type:"string" required:"true"`
// The system IDs to include in key requests.
//
// SystemIds is a required field
SystemIds []*string `locationName:"systemIds" type:"list" required:"true"`
// The URL of the external key provider service.
//
// Url is a required field
Url *string `locationName:"url" type:"string" required:"true"`
}
// String returns the string representation
func (s SpekeKeyProvider) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SpekeKeyProvider) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *SpekeKeyProvider) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "SpekeKeyProvider"}
if s.ResourceId == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceId"))
}
if s.RoleArn == nil {
invalidParams.Add(request.NewErrParamRequired("RoleArn"))
}
if s.SystemIds == nil {
invalidParams.Add(request.NewErrParamRequired("SystemIds"))
}
if s.Url == nil {
invalidParams.Add(request.NewErrParamRequired("Url"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetResourceId sets the ResourceId field's value.
func (s *SpekeKeyProvider) SetResourceId(v string) *SpekeKeyProvider {
s.ResourceId = &v
return s
}
// SetRoleArn sets the RoleArn field's value.
func (s *SpekeKeyProvider) SetRoleArn(v string) *SpekeKeyProvider {
s.RoleArn = &v
return s
}
// SetSystemIds sets the SystemIds field's value.
func (s *SpekeKeyProvider) SetSystemIds(v []*string) *SpekeKeyProvider {
s.SystemIds = v
return s
}
// SetUrl sets the Url field's value.
func (s *SpekeKeyProvider) SetUrl(v string) *SpekeKeyProvider {
s.Url = &v
return s
}
// A StreamSelection configuration.
type StreamSelection struct {
_ struct{} `type:"structure"`
// The maximum video bitrate (bps) to include in output.
MaxVideoBitsPerSecond *int64 `locationName:"maxVideoBitsPerSecond" type:"integer"`
// The minimum video bitrate (bps) to include in output.
MinVideoBitsPerSecond *int64 `locationName:"minVideoBitsPerSecond" type:"integer"`
// A directive that determines the order of streams in the output.
StreamOrder *string `locationName:"streamOrder" type:"string" enum:"StreamOrder"`
}
// String returns the string representation
func (s StreamSelection) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s StreamSelection) GoString() string {
return s.String()
}
// SetMaxVideoBitsPerSecond sets the MaxVideoBitsPerSecond field's value.
func (s *StreamSelection) SetMaxVideoBitsPerSecond(v int64) *StreamSelection {
s.MaxVideoBitsPerSecond = &v
return s
}
// SetMinVideoBitsPerSecond sets the MinVideoBitsPerSecond field's value.
func (s *StreamSelection) SetMinVideoBitsPerSecond(v int64) *StreamSelection {
s.MinVideoBitsPerSecond = &v
return s
}
// SetStreamOrder sets the StreamOrder field's value.
func (s *StreamSelection) SetStreamOrder(v string) *StreamSelection {
s.StreamOrder = &v
return s
}
type UpdateChannelInput struct {
_ struct{} `type:"structure"`
Description *string `locationName:"description" type:"string"`
// Id is a required field
Id *string `location:"uri" locationName:"id" type:"string" required:"true"`
}
// String returns the string representation
func (s UpdateChannelInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateChannelInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *UpdateChannelInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "UpdateChannelInput"}
if s.Id == nil {
invalidParams.Add(request.NewErrParamRequired("Id"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetDescription sets the Description field's value.
func (s *UpdateChannelInput) SetDescription(v string) *UpdateChannelInput {
s.Description = &v
return s
}
// SetId sets the Id field's value.
func (s *UpdateChannelInput) SetId(v string) *UpdateChannelInput {
s.Id = &v
return s
}
type UpdateChannelOutput struct {
_ struct{} `type:"structure"`
Arn *string `locationName:"arn" type:"string"`
Description *string `locationName:"description" type:"string"`
// An HTTP Live Streaming (HLS) ingest resource configuration.
HlsIngest *HlsIngest `locationName:"hlsIngest" type:"structure"`
Id *string `locationName:"id" type:"string"`
}
// String returns the string representation
func (s UpdateChannelOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateChannelOutput) GoString() string {
return s.String()
}
// SetArn sets the Arn field's value.
func (s *UpdateChannelOutput) SetArn(v string) *UpdateChannelOutput {
s.Arn = &v
return s
}
// SetDescription sets the Description field's value.
func (s *UpdateChannelOutput) SetDescription(v string) *UpdateChannelOutput {
s.Description = &v
return s
}
// SetHlsIngest sets the HlsIngest field's value.
func (s *UpdateChannelOutput) SetHlsIngest(v *HlsIngest) *UpdateChannelOutput {
s.HlsIngest = v
return s
}
// SetId sets the Id field's value.
func (s *UpdateChannelOutput) SetId(v string) *UpdateChannelOutput {
s.Id = &v
return s
}
type UpdateOriginEndpointInput struct {
_ struct{} `type:"structure"`
// A Dynamic Adaptive Streaming over HTTP (DASH) packaging configuration.
DashPackage *DashPackage `locationName:"dashPackage" type:"structure"`
Description *string `locationName:"description" type:"string"`
// An HTTP Live Streaming (HLS) packaging configuration.
HlsPackage *HlsPackage `locationName:"hlsPackage" type:"structure"`
// Id is a required field
Id *string `location:"uri" locationName:"id" type:"string" required:"true"`
ManifestName *string `locationName:"manifestName" type:"string"`
// A Microsoft Smooth Streaming (MSS) packaging configuration.
MssPackage *MssPackage `locationName:"mssPackage" type:"structure"`
StartoverWindowSeconds *int64 `locationName:"startoverWindowSeconds" type:"integer"`
TimeDelaySeconds *int64 `locationName:"timeDelaySeconds" type:"integer"`
Whitelist []*string `locationName:"whitelist" type:"list"`
}
// String returns the string representation
func (s UpdateOriginEndpointInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateOriginEndpointInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *UpdateOriginEndpointInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "UpdateOriginEndpointInput"}
if s.Id == nil {
invalidParams.Add(request.NewErrParamRequired("Id"))
}
if s.DashPackage != nil {
if err := s.DashPackage.Validate(); err != nil {
invalidParams.AddNested("DashPackage", err.(request.ErrInvalidParams))
}
}
if s.HlsPackage != nil {
if err := s.HlsPackage.Validate(); err != nil {
invalidParams.AddNested("HlsPackage", err.(request.ErrInvalidParams))
}
}
if s.MssPackage != nil {
if err := s.MssPackage.Validate(); err != nil {
invalidParams.AddNested("MssPackage", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetDashPackage sets the DashPackage field's value.
func (s *UpdateOriginEndpointInput) SetDashPackage(v *DashPackage) *UpdateOriginEndpointInput {
s.DashPackage = v
return s
}
// SetDescription sets the Description field's value.
func (s *UpdateOriginEndpointInput) SetDescription(v string) *UpdateOriginEndpointInput {
s.Description = &v
return s
}
// SetHlsPackage sets the HlsPackage field's value.
func (s *UpdateOriginEndpointInput) SetHlsPackage(v *HlsPackage) *UpdateOriginEndpointInput {
s.HlsPackage = v
return s
}
// SetId sets the Id field's value.
func (s *UpdateOriginEndpointInput) SetId(v string) *UpdateOriginEndpointInput {
s.Id = &v
return s
}
// SetManifestName sets the ManifestName field's value.
func (s *UpdateOriginEndpointInput) SetManifestName(v string) *UpdateOriginEndpointInput {
s.ManifestName = &v
return s
}
// SetMssPackage sets the MssPackage field's value.
func (s *UpdateOriginEndpointInput) SetMssPackage(v *MssPackage) *UpdateOriginEndpointInput {
s.MssPackage = v
return s
}
// SetStartoverWindowSeconds sets the StartoverWindowSeconds field's value.
func (s *UpdateOriginEndpointInput) SetStartoverWindowSeconds(v int64) *UpdateOriginEndpointInput {
s.StartoverWindowSeconds = &v
return s
}
// SetTimeDelaySeconds sets the TimeDelaySeconds field's value.
func (s *UpdateOriginEndpointInput) SetTimeDelaySeconds(v int64) *UpdateOriginEndpointInput {
s.TimeDelaySeconds = &v
return s
}
// SetWhitelist sets the Whitelist field's value.
func (s *UpdateOriginEndpointInput) SetWhitelist(v []*string) *UpdateOriginEndpointInput {
s.Whitelist = v
return s
}
type UpdateOriginEndpointOutput struct {
_ struct{} `type:"structure"`
Arn *string `locationName:"arn" type:"string"`
ChannelId *string `locationName:"channelId" type:"string"`
// A Dynamic Adaptive Streaming over HTTP (DASH) packaging configuration.
DashPackage *DashPackage `locationName:"dashPackage" type:"structure"`
Description *string `locationName:"description" type:"string"`
// An HTTP Live Streaming (HLS) packaging configuration.
HlsPackage *HlsPackage `locationName:"hlsPackage" type:"structure"`
Id *string `locationName:"id" type:"string"`
ManifestName *string `locationName:"manifestName" type:"string"`
// A Microsoft Smooth Streaming (MSS) packaging configuration.
MssPackage *MssPackage `locationName:"mssPackage" type:"structure"`
StartoverWindowSeconds *int64 `locationName:"startoverWindowSeconds" type:"integer"`
TimeDelaySeconds *int64 `locationName:"timeDelaySeconds" type:"integer"`
Url *string `locationName:"url" type:"string"`
Whitelist []*string `locationName:"whitelist" type:"list"`
}
// String returns the string representation
func (s UpdateOriginEndpointOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateOriginEndpointOutput) GoString() string {
return s.String()
}
// SetArn sets the Arn field's value.
func (s *UpdateOriginEndpointOutput) SetArn(v string) *UpdateOriginEndpointOutput {
s.Arn = &v
return s
}
// SetChannelId sets the ChannelId field's value.
func (s *UpdateOriginEndpointOutput) SetChannelId(v string) *UpdateOriginEndpointOutput {
s.ChannelId = &v
return s
}
// SetDashPackage sets the DashPackage field's value.
func (s *UpdateOriginEndpointOutput) SetDashPackage(v *DashPackage) *UpdateOriginEndpointOutput {
s.DashPackage = v
return s
}
// SetDescription sets the Description field's value.
func (s *UpdateOriginEndpointOutput) SetDescription(v string) *UpdateOriginEndpointOutput {
s.Description = &v
return s
}
// SetHlsPackage sets the HlsPackage field's value.
func (s *UpdateOriginEndpointOutput) SetHlsPackage(v *HlsPackage) *UpdateOriginEndpointOutput {
s.HlsPackage = v
return s
}
// SetId sets the Id field's value.
func (s *UpdateOriginEndpointOutput) SetId(v string) *UpdateOriginEndpointOutput {
s.Id = &v
return s
}
// SetManifestName sets the ManifestName field's value.
func (s *UpdateOriginEndpointOutput) SetManifestName(v string) *UpdateOriginEndpointOutput {
s.ManifestName = &v
return s
}
// SetMssPackage sets the MssPackage field's value.
func (s *UpdateOriginEndpointOutput) SetMssPackage(v *MssPackage) *UpdateOriginEndpointOutput {
s.MssPackage = v
return s
}
// SetStartoverWindowSeconds sets the StartoverWindowSeconds field's value.
func (s *UpdateOriginEndpointOutput) SetStartoverWindowSeconds(v int64) *UpdateOriginEndpointOutput {
s.StartoverWindowSeconds = &v
return s
}
// SetTimeDelaySeconds sets the TimeDelaySeconds field's value.
func (s *UpdateOriginEndpointOutput) SetTimeDelaySeconds(v int64) *UpdateOriginEndpointOutput {
s.TimeDelaySeconds = &v
return s
}
// SetUrl sets the Url field's value.
func (s *UpdateOriginEndpointOutput) SetUrl(v string) *UpdateOriginEndpointOutput {
s.Url = &v
return s
}
// SetWhitelist sets the Whitelist field's value.
func (s *UpdateOriginEndpointOutput) SetWhitelist(v []*string) *UpdateOriginEndpointOutput {
s.Whitelist = v
return s
}
const (
// AdMarkersNone is a AdMarkers enum value
AdMarkersNone = "NONE"
// AdMarkersScte35Enhanced is a AdMarkers enum value
AdMarkersScte35Enhanced = "SCTE35_ENHANCED"
// AdMarkersPassthrough is a AdMarkers enum value
AdMarkersPassthrough = "PASSTHROUGH"
)
const (
// EncryptionMethodAes128 is a EncryptionMethod enum value
EncryptionMethodAes128 = "AES_128"
// EncryptionMethodSampleAes is a EncryptionMethod enum value
EncryptionMethodSampleAes = "SAMPLE_AES"
)
const (
// PlaylistTypeNone is a PlaylistType enum value
PlaylistTypeNone = "NONE"
// PlaylistTypeEvent is a PlaylistType enum value
PlaylistTypeEvent = "EVENT"
// PlaylistTypeVod is a PlaylistType enum value
PlaylistTypeVod = "VOD"
)
const (
// ProfileNone is a Profile enum value
ProfileNone = "NONE"
// ProfileHbbtv15 is a Profile enum value
ProfileHbbtv15 = "HBBTV_1_5"
)
const (
// StreamOrderOriginal is a StreamOrder enum value
StreamOrderOriginal = "ORIGINAL"
// StreamOrderVideoBitrateAscending is a StreamOrder enum value
StreamOrderVideoBitrateAscending = "VIDEO_BITRATE_ASCENDING"
// StreamOrderVideoBitrateDescending is a StreamOrder enum value
StreamOrderVideoBitrateDescending = "VIDEO_BITRATE_DESCENDING"
)