repo_name
stringlengths
1
52
repo_creator
stringclasses
6 values
programming_language
stringclasses
4 values
code
stringlengths
0
9.68M
num_lines
int64
1
234k
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package mediaconvert import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/mediaconvert/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Create a new transcoding queue. For information about queues, see Working With // Queues in the User Guide at // https://docs.aws.amazon.com/mediaconvert/latest/ug/working-with-queues.html func (c *Client) CreateQueue(ctx context.Context, params *CreateQueueInput, optFns ...func(*Options)) (*CreateQueueOutput, error) { if params == nil { params = &CreateQueueInput{} } result, metadata, err := c.invokeOperation(ctx, "CreateQueue", params, optFns, c.addOperationCreateQueueMiddlewares) if err != nil { return nil, err } out := result.(*CreateQueueOutput) out.ResultMetadata = metadata return out, nil } type CreateQueueInput struct { // The name of the queue that you are creating. // // This member is required. Name *string // Optional. A description of the queue that you are creating. Description *string // Specifies whether the pricing plan for the queue is on-demand or reserved. For // on-demand, you pay per minute, billed in increments of .01 minute. For reserved, // you pay for the transcoding capacity of the entire queue, regardless of how much // or how little you use it. Reserved pricing requires a 12-month commitment. When // you use the API to create a queue, the default is on-demand. PricingPlan types.PricingPlan // Details about the pricing plan for your reserved queue. Required for reserved // queues and not applicable to on-demand queues. ReservationPlanSettings *types.ReservationPlanSettings // Initial state of the queue. If you create a paused queue, then jobs in that // queue won't begin. Status types.QueueStatus // The tags that you want to add to the resource. You can tag resources with a // key-value pair or with only a key. Tags map[string]string noSmithyDocumentSerde } type CreateQueueOutput struct { // You can use queues to manage the resources that are available to your AWS // account for running multiple transcoding jobs at the same time. If you don't // specify a queue, the service sends all jobs through the default queue. For more // information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/working-with-queues.html. Queue *types.Queue // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationCreateQueueMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateQueue{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateQueue{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpCreateQueueValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateQueue(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opCreateQueue(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "mediaconvert", OperationName: "CreateQueue", } }
153
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package mediaconvert import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Permanently delete a job template you have created. func (c *Client) DeleteJobTemplate(ctx context.Context, params *DeleteJobTemplateInput, optFns ...func(*Options)) (*DeleteJobTemplateOutput, error) { if params == nil { params = &DeleteJobTemplateInput{} } result, metadata, err := c.invokeOperation(ctx, "DeleteJobTemplate", params, optFns, c.addOperationDeleteJobTemplateMiddlewares) if err != nil { return nil, err } out := result.(*DeleteJobTemplateOutput) out.ResultMetadata = metadata return out, nil } type DeleteJobTemplateInput struct { // The name of the job template to be deleted. // // This member is required. Name *string noSmithyDocumentSerde } type DeleteJobTemplateOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDeleteJobTemplateMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteJobTemplate{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteJobTemplate{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpDeleteJobTemplateValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteJobTemplate(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opDeleteJobTemplate(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "mediaconvert", OperationName: "DeleteJobTemplate", } }
120
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package mediaconvert import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Permanently delete a policy that you created. func (c *Client) DeletePolicy(ctx context.Context, params *DeletePolicyInput, optFns ...func(*Options)) (*DeletePolicyOutput, error) { if params == nil { params = &DeletePolicyInput{} } result, metadata, err := c.invokeOperation(ctx, "DeletePolicy", params, optFns, c.addOperationDeletePolicyMiddlewares) if err != nil { return nil, err } out := result.(*DeletePolicyOutput) out.ResultMetadata = metadata return out, nil } type DeletePolicyInput struct { noSmithyDocumentSerde } type DeletePolicyOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDeletePolicyMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpDeletePolicy{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeletePolicy{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeletePolicy(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opDeletePolicy(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "mediaconvert", OperationName: "DeletePolicy", } }
111
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package mediaconvert import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Permanently delete a preset you have created. func (c *Client) DeletePreset(ctx context.Context, params *DeletePresetInput, optFns ...func(*Options)) (*DeletePresetOutput, error) { if params == nil { params = &DeletePresetInput{} } result, metadata, err := c.invokeOperation(ctx, "DeletePreset", params, optFns, c.addOperationDeletePresetMiddlewares) if err != nil { return nil, err } out := result.(*DeletePresetOutput) out.ResultMetadata = metadata return out, nil } type DeletePresetInput struct { // The name of the preset to be deleted. // // This member is required. Name *string noSmithyDocumentSerde } type DeletePresetOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDeletePresetMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpDeletePreset{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeletePreset{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpDeletePresetValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeletePreset(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opDeletePreset(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "mediaconvert", OperationName: "DeletePreset", } }
120
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package mediaconvert import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Permanently delete a queue you have created. func (c *Client) DeleteQueue(ctx context.Context, params *DeleteQueueInput, optFns ...func(*Options)) (*DeleteQueueOutput, error) { if params == nil { params = &DeleteQueueInput{} } result, metadata, err := c.invokeOperation(ctx, "DeleteQueue", params, optFns, c.addOperationDeleteQueueMiddlewares) if err != nil { return nil, err } out := result.(*DeleteQueueOutput) out.ResultMetadata = metadata return out, nil } type DeleteQueueInput struct { // The name of the queue that you want to delete. // // This member is required. Name *string noSmithyDocumentSerde } type DeleteQueueOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDeleteQueueMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteQueue{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteQueue{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpDeleteQueueValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteQueue(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opDeleteQueue(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "mediaconvert", OperationName: "DeleteQueue", } }
120
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package mediaconvert import ( "context" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/mediaconvert/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Send an request with an empty body to the regional API endpoint to get your // account API endpoint. func (c *Client) DescribeEndpoints(ctx context.Context, params *DescribeEndpointsInput, optFns ...func(*Options)) (*DescribeEndpointsOutput, error) { if params == nil { params = &DescribeEndpointsInput{} } result, metadata, err := c.invokeOperation(ctx, "DescribeEndpoints", params, optFns, c.addOperationDescribeEndpointsMiddlewares) if err != nil { return nil, err } out := result.(*DescribeEndpointsOutput) out.ResultMetadata = metadata return out, nil } // DescribeEndpointsRequest type DescribeEndpointsInput struct { // Optional. Max number of endpoints, up to twenty, that will be returned at one // time. MaxResults int32 // Optional field, defaults to DEFAULT. Specify DEFAULT for this operation to // return your endpoints if any exist, or to create an endpoint for you and return // it if one doesn't already exist. Specify GET_ONLY to return your endpoints if // any exist, or an empty list if none exist. Mode types.DescribeEndpointsMode // Use this string, provided with the response to a previous request, to request // the next batch of endpoints. NextToken *string noSmithyDocumentSerde } type DescribeEndpointsOutput struct { // List of endpoints Endpoints []types.Endpoint // Use this string to request the next batch of endpoints. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDescribeEndpointsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpDescribeEndpoints{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDescribeEndpoints{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeEndpoints(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } // DescribeEndpointsAPIClient is a client that implements the DescribeEndpoints // operation. type DescribeEndpointsAPIClient interface { DescribeEndpoints(context.Context, *DescribeEndpointsInput, ...func(*Options)) (*DescribeEndpointsOutput, error) } var _ DescribeEndpointsAPIClient = (*Client)(nil) // DescribeEndpointsPaginatorOptions is the paginator options for DescribeEndpoints type DescribeEndpointsPaginatorOptions struct { // Optional. Max number of endpoints, up to twenty, that will be returned at one // time. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool } // DescribeEndpointsPaginator is a paginator for DescribeEndpoints type DescribeEndpointsPaginator struct { options DescribeEndpointsPaginatorOptions client DescribeEndpointsAPIClient params *DescribeEndpointsInput nextToken *string firstPage bool } // NewDescribeEndpointsPaginator returns a new DescribeEndpointsPaginator func NewDescribeEndpointsPaginator(client DescribeEndpointsAPIClient, params *DescribeEndpointsInput, optFns ...func(*DescribeEndpointsPaginatorOptions)) *DescribeEndpointsPaginator { if params == nil { params = &DescribeEndpointsInput{} } options := DescribeEndpointsPaginatorOptions{} if params.MaxResults != 0 { options.Limit = params.MaxResults } for _, fn := range optFns { fn(&options) } return &DescribeEndpointsPaginator{ options: options, client: client, params: params, firstPage: true, nextToken: params.NextToken, } } // HasMorePages returns a boolean indicating whether more pages are available func (p *DescribeEndpointsPaginator) HasMorePages() bool { return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) } // NextPage retrieves the next DescribeEndpoints page. func (p *DescribeEndpointsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeEndpointsOutput, error) { if !p.HasMorePages() { return nil, fmt.Errorf("no more pages available") } params := *p.params params.NextToken = p.nextToken params.MaxResults = p.options.Limit result, err := p.client.DescribeEndpoints(ctx, &params, optFns...) if err != nil { return nil, err } p.firstPage = false prevToken := p.nextToken p.nextToken = result.NextToken if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { p.nextToken = nil } return result, nil } func newServiceMetadataMiddleware_opDescribeEndpoints(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "mediaconvert", OperationName: "DescribeEndpoints", } }
224
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package mediaconvert import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Removes an association between the Amazon Resource Name (ARN) of an AWS // Certificate Manager (ACM) certificate and an AWS Elemental MediaConvert // resource. func (c *Client) DisassociateCertificate(ctx context.Context, params *DisassociateCertificateInput, optFns ...func(*Options)) (*DisassociateCertificateOutput, error) { if params == nil { params = &DisassociateCertificateInput{} } result, metadata, err := c.invokeOperation(ctx, "DisassociateCertificate", params, optFns, c.addOperationDisassociateCertificateMiddlewares) if err != nil { return nil, err } out := result.(*DisassociateCertificateOutput) out.ResultMetadata = metadata return out, nil } type DisassociateCertificateInput struct { // The ARN of the ACM certificate that you want to disassociate from your // MediaConvert resource. // // This member is required. Arn *string noSmithyDocumentSerde } type DisassociateCertificateOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDisassociateCertificateMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpDisassociateCertificate{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDisassociateCertificate{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpDisassociateCertificateValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisassociateCertificate(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opDisassociateCertificate(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "mediaconvert", OperationName: "DisassociateCertificate", } }
123
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package mediaconvert import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/mediaconvert/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Retrieve the JSON for a specific completed transcoding job. func (c *Client) GetJob(ctx context.Context, params *GetJobInput, optFns ...func(*Options)) (*GetJobOutput, error) { if params == nil { params = &GetJobInput{} } result, metadata, err := c.invokeOperation(ctx, "GetJob", params, optFns, c.addOperationGetJobMiddlewares) if err != nil { return nil, err } out := result.(*GetJobOutput) out.ResultMetadata = metadata return out, nil } type GetJobInput struct { // the job ID of the job. // // This member is required. Id *string noSmithyDocumentSerde } type GetJobOutput struct { // Each job converts an input file into an output file or files. For more // information, see the User Guide at // https://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html Job *types.Job // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationGetJobMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpGetJob{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetJob{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpGetJobValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetJob(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opGetJob(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "mediaconvert", OperationName: "GetJob", } }
127
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package mediaconvert import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/mediaconvert/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Retrieve the JSON for a specific job template. func (c *Client) GetJobTemplate(ctx context.Context, params *GetJobTemplateInput, optFns ...func(*Options)) (*GetJobTemplateOutput, error) { if params == nil { params = &GetJobTemplateInput{} } result, metadata, err := c.invokeOperation(ctx, "GetJobTemplate", params, optFns, c.addOperationGetJobTemplateMiddlewares) if err != nil { return nil, err } out := result.(*GetJobTemplateOutput) out.ResultMetadata = metadata return out, nil } type GetJobTemplateInput struct { // The name of the job template. // // This member is required. Name *string noSmithyDocumentSerde } type GetJobTemplateOutput struct { // A job template is a pre-made set of encoding instructions that you can use to // quickly create a job. JobTemplate *types.JobTemplate // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationGetJobTemplateMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpGetJobTemplate{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetJobTemplate{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpGetJobTemplateValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetJobTemplate(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opGetJobTemplate(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "mediaconvert", OperationName: "GetJobTemplate", } }
126
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package mediaconvert import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/mediaconvert/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Retrieve the JSON for your policy. func (c *Client) GetPolicy(ctx context.Context, params *GetPolicyInput, optFns ...func(*Options)) (*GetPolicyOutput, error) { if params == nil { params = &GetPolicyInput{} } result, metadata, err := c.invokeOperation(ctx, "GetPolicy", params, optFns, c.addOperationGetPolicyMiddlewares) if err != nil { return nil, err } out := result.(*GetPolicyOutput) out.ResultMetadata = metadata return out, nil } type GetPolicyInput struct { noSmithyDocumentSerde } type GetPolicyOutput struct { // A policy configures behavior that you allow or disallow for your account. For // information about MediaConvert policies, see the user guide at // http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html Policy *types.Policy // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationGetPolicyMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpGetPolicy{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetPolicy{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetPolicy(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opGetPolicy(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "mediaconvert", OperationName: "GetPolicy", } }
118
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package mediaconvert import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/mediaconvert/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Retrieve the JSON for a specific preset. func (c *Client) GetPreset(ctx context.Context, params *GetPresetInput, optFns ...func(*Options)) (*GetPresetOutput, error) { if params == nil { params = &GetPresetInput{} } result, metadata, err := c.invokeOperation(ctx, "GetPreset", params, optFns, c.addOperationGetPresetMiddlewares) if err != nil { return nil, err } out := result.(*GetPresetOutput) out.ResultMetadata = metadata return out, nil } type GetPresetInput struct { // The name of the preset. // // This member is required. Name *string noSmithyDocumentSerde } type GetPresetOutput struct { // A preset is a collection of preconfigured media conversion settings that you // want MediaConvert to apply to the output during the conversion process. Preset *types.Preset // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationGetPresetMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpGetPreset{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetPreset{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpGetPresetValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetPreset(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opGetPreset(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "mediaconvert", OperationName: "GetPreset", } }
126
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package mediaconvert import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/mediaconvert/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Retrieve the JSON for a specific queue. func (c *Client) GetQueue(ctx context.Context, params *GetQueueInput, optFns ...func(*Options)) (*GetQueueOutput, error) { if params == nil { params = &GetQueueInput{} } result, metadata, err := c.invokeOperation(ctx, "GetQueue", params, optFns, c.addOperationGetQueueMiddlewares) if err != nil { return nil, err } out := result.(*GetQueueOutput) out.ResultMetadata = metadata return out, nil } type GetQueueInput struct { // The name of the queue that you want information about. // // This member is required. Name *string noSmithyDocumentSerde } type GetQueueOutput struct { // You can use queues to manage the resources that are available to your AWS // account for running multiple transcoding jobs at the same time. If you don't // specify a queue, the service sends all jobs through the default queue. For more // information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/working-with-queues.html. Queue *types.Queue // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationGetQueueMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpGetQueue{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetQueue{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpGetQueueValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetQueue(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opGetQueue(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "mediaconvert", OperationName: "GetQueue", } }
129
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package mediaconvert import ( "context" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/mediaconvert/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Retrieve a JSON array of up to twenty of your most recently created jobs. This // array includes in-process, completed, and errored jobs. This will return the // jobs themselves, not just a list of the jobs. To retrieve the twenty next most // recent jobs, use the nextToken string returned with the array. func (c *Client) ListJobs(ctx context.Context, params *ListJobsInput, optFns ...func(*Options)) (*ListJobsOutput, error) { if params == nil { params = &ListJobsInput{} } result, metadata, err := c.invokeOperation(ctx, "ListJobs", params, optFns, c.addOperationListJobsMiddlewares) if err != nil { return nil, err } out := result.(*ListJobsOutput) out.ResultMetadata = metadata return out, nil } type ListJobsInput struct { // Optional. Number of jobs, up to twenty, that will be returned at one time. MaxResults int32 // Optional. Use this string, provided with the response to a previous request, to // request the next batch of jobs. NextToken *string // Optional. When you request lists of resources, you can specify whether they are // sorted in ASCENDING or DESCENDING order. Default varies by resource. Order types.Order // Optional. Provide a queue name to get back only jobs from that queue. Queue *string // Optional. A job's status can be SUBMITTED, PROGRESSING, COMPLETE, CANCELED, or // ERROR. Status types.JobStatus noSmithyDocumentSerde } type ListJobsOutput struct { // List of jobs Jobs []types.Job // Use this string to request the next batch of jobs. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationListJobsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpListJobs{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListJobs{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListJobs(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } // ListJobsAPIClient is a client that implements the ListJobs operation. type ListJobsAPIClient interface { ListJobs(context.Context, *ListJobsInput, ...func(*Options)) (*ListJobsOutput, error) } var _ ListJobsAPIClient = (*Client)(nil) // ListJobsPaginatorOptions is the paginator options for ListJobs type ListJobsPaginatorOptions struct { // Optional. Number of jobs, up to twenty, that will be returned at one time. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool } // ListJobsPaginator is a paginator for ListJobs type ListJobsPaginator struct { options ListJobsPaginatorOptions client ListJobsAPIClient params *ListJobsInput nextToken *string firstPage bool } // NewListJobsPaginator returns a new ListJobsPaginator func NewListJobsPaginator(client ListJobsAPIClient, params *ListJobsInput, optFns ...func(*ListJobsPaginatorOptions)) *ListJobsPaginator { if params == nil { params = &ListJobsInput{} } options := ListJobsPaginatorOptions{} if params.MaxResults != 0 { options.Limit = params.MaxResults } for _, fn := range optFns { fn(&options) } return &ListJobsPaginator{ options: options, client: client, params: params, firstPage: true, nextToken: params.NextToken, } } // HasMorePages returns a boolean indicating whether more pages are available func (p *ListJobsPaginator) HasMorePages() bool { return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) } // NextPage retrieves the next ListJobs page. func (p *ListJobsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListJobsOutput, error) { if !p.HasMorePages() { return nil, fmt.Errorf("no more pages available") } params := *p.params params.NextToken = p.nextToken params.MaxResults = p.options.Limit result, err := p.client.ListJobs(ctx, &params, optFns...) if err != nil { return nil, err } p.firstPage = false prevToken := p.nextToken p.nextToken = result.NextToken if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { p.nextToken = nil } return result, nil } func newServiceMetadataMiddleware_opListJobs(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "mediaconvert", OperationName: "ListJobs", } }
227
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package mediaconvert import ( "context" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/mediaconvert/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Retrieve a JSON array of up to twenty of your job templates. This will return // the templates themselves, not just a list of them. To retrieve the next twenty // templates, use the nextToken string returned with the array func (c *Client) ListJobTemplates(ctx context.Context, params *ListJobTemplatesInput, optFns ...func(*Options)) (*ListJobTemplatesOutput, error) { if params == nil { params = &ListJobTemplatesInput{} } result, metadata, err := c.invokeOperation(ctx, "ListJobTemplates", params, optFns, c.addOperationListJobTemplatesMiddlewares) if err != nil { return nil, err } out := result.(*ListJobTemplatesOutput) out.ResultMetadata = metadata return out, nil } type ListJobTemplatesInput struct { // Optionally, specify a job template category to limit responses to only job // templates from that category. Category *string // Optional. When you request a list of job templates, you can choose to list them // alphabetically by NAME or chronologically by CREATION_DATE. If you don't // specify, the service will list them by name. ListBy types.JobTemplateListBy // Optional. Number of job templates, up to twenty, that will be returned at one // time. MaxResults int32 // Use this string, provided with the response to a previous request, to request // the next batch of job templates. NextToken *string // Optional. When you request lists of resources, you can specify whether they are // sorted in ASCENDING or DESCENDING order. Default varies by resource. Order types.Order noSmithyDocumentSerde } type ListJobTemplatesOutput struct { // List of Job templates. JobTemplates []types.JobTemplate // Use this string to request the next batch of job templates. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationListJobTemplatesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpListJobTemplates{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListJobTemplates{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListJobTemplates(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } // ListJobTemplatesAPIClient is a client that implements the ListJobTemplates // operation. type ListJobTemplatesAPIClient interface { ListJobTemplates(context.Context, *ListJobTemplatesInput, ...func(*Options)) (*ListJobTemplatesOutput, error) } var _ ListJobTemplatesAPIClient = (*Client)(nil) // ListJobTemplatesPaginatorOptions is the paginator options for ListJobTemplates type ListJobTemplatesPaginatorOptions struct { // Optional. Number of job templates, up to twenty, that will be returned at one // time. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool } // ListJobTemplatesPaginator is a paginator for ListJobTemplates type ListJobTemplatesPaginator struct { options ListJobTemplatesPaginatorOptions client ListJobTemplatesAPIClient params *ListJobTemplatesInput nextToken *string firstPage bool } // NewListJobTemplatesPaginator returns a new ListJobTemplatesPaginator func NewListJobTemplatesPaginator(client ListJobTemplatesAPIClient, params *ListJobTemplatesInput, optFns ...func(*ListJobTemplatesPaginatorOptions)) *ListJobTemplatesPaginator { if params == nil { params = &ListJobTemplatesInput{} } options := ListJobTemplatesPaginatorOptions{} if params.MaxResults != 0 { options.Limit = params.MaxResults } for _, fn := range optFns { fn(&options) } return &ListJobTemplatesPaginator{ options: options, client: client, params: params, firstPage: true, nextToken: params.NextToken, } } // HasMorePages returns a boolean indicating whether more pages are available func (p *ListJobTemplatesPaginator) HasMorePages() bool { return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) } // NextPage retrieves the next ListJobTemplates page. func (p *ListJobTemplatesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListJobTemplatesOutput, error) { if !p.HasMorePages() { return nil, fmt.Errorf("no more pages available") } params := *p.params params.NextToken = p.nextToken params.MaxResults = p.options.Limit result, err := p.client.ListJobTemplates(ctx, &params, optFns...) if err != nil { return nil, err } p.firstPage = false prevToken := p.nextToken p.nextToken = result.NextToken if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { p.nextToken = nil } return result, nil } func newServiceMetadataMiddleware_opListJobTemplates(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "mediaconvert", OperationName: "ListJobTemplates", } }
231
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package mediaconvert import ( "context" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/mediaconvert/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Retrieve a JSON array of up to twenty of your presets. This will return the // presets themselves, not just a list of them. To retrieve the next twenty // presets, use the nextToken string returned with the array. func (c *Client) ListPresets(ctx context.Context, params *ListPresetsInput, optFns ...func(*Options)) (*ListPresetsOutput, error) { if params == nil { params = &ListPresetsInput{} } result, metadata, err := c.invokeOperation(ctx, "ListPresets", params, optFns, c.addOperationListPresetsMiddlewares) if err != nil { return nil, err } out := result.(*ListPresetsOutput) out.ResultMetadata = metadata return out, nil } type ListPresetsInput struct { // Optionally, specify a preset category to limit responses to only presets from // that category. Category *string // Optional. When you request a list of presets, you can choose to list them // alphabetically by NAME or chronologically by CREATION_DATE. If you don't // specify, the service will list them by name. ListBy types.PresetListBy // Optional. Number of presets, up to twenty, that will be returned at one time MaxResults int32 // Use this string, provided with the response to a previous request, to request // the next batch of presets. NextToken *string // Optional. When you request lists of resources, you can specify whether they are // sorted in ASCENDING or DESCENDING order. Default varies by resource. Order types.Order noSmithyDocumentSerde } type ListPresetsOutput struct { // Use this string to request the next batch of presets. NextToken *string // List of presets Presets []types.Preset // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationListPresetsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpListPresets{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListPresets{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListPresets(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } // ListPresetsAPIClient is a client that implements the ListPresets operation. type ListPresetsAPIClient interface { ListPresets(context.Context, *ListPresetsInput, ...func(*Options)) (*ListPresetsOutput, error) } var _ ListPresetsAPIClient = (*Client)(nil) // ListPresetsPaginatorOptions is the paginator options for ListPresets type ListPresetsPaginatorOptions struct { // Optional. Number of presets, up to twenty, that will be returned at one time Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool } // ListPresetsPaginator is a paginator for ListPresets type ListPresetsPaginator struct { options ListPresetsPaginatorOptions client ListPresetsAPIClient params *ListPresetsInput nextToken *string firstPage bool } // NewListPresetsPaginator returns a new ListPresetsPaginator func NewListPresetsPaginator(client ListPresetsAPIClient, params *ListPresetsInput, optFns ...func(*ListPresetsPaginatorOptions)) *ListPresetsPaginator { if params == nil { params = &ListPresetsInput{} } options := ListPresetsPaginatorOptions{} if params.MaxResults != 0 { options.Limit = params.MaxResults } for _, fn := range optFns { fn(&options) } return &ListPresetsPaginator{ options: options, client: client, params: params, firstPage: true, nextToken: params.NextToken, } } // HasMorePages returns a boolean indicating whether more pages are available func (p *ListPresetsPaginator) HasMorePages() bool { return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) } // NextPage retrieves the next ListPresets page. func (p *ListPresetsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListPresetsOutput, error) { if !p.HasMorePages() { return nil, fmt.Errorf("no more pages available") } params := *p.params params.NextToken = p.nextToken params.MaxResults = p.options.Limit result, err := p.client.ListPresets(ctx, &params, optFns...) if err != nil { return nil, err } p.firstPage = false prevToken := p.nextToken p.nextToken = result.NextToken if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { p.nextToken = nil } return result, nil } func newServiceMetadataMiddleware_opListPresets(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "mediaconvert", OperationName: "ListPresets", } }
228
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package mediaconvert import ( "context" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/mediaconvert/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Retrieve a JSON array of up to twenty of your queues. This will return the // queues themselves, not just a list of them. To retrieve the next twenty queues, // use the nextToken string returned with the array. func (c *Client) ListQueues(ctx context.Context, params *ListQueuesInput, optFns ...func(*Options)) (*ListQueuesOutput, error) { if params == nil { params = &ListQueuesInput{} } result, metadata, err := c.invokeOperation(ctx, "ListQueues", params, optFns, c.addOperationListQueuesMiddlewares) if err != nil { return nil, err } out := result.(*ListQueuesOutput) out.ResultMetadata = metadata return out, nil } type ListQueuesInput struct { // Optional. When you request a list of queues, you can choose to list them // alphabetically by NAME or chronologically by CREATION_DATE. If you don't // specify, the service will list them by creation date. ListBy types.QueueListBy // Optional. Number of queues, up to twenty, that will be returned at one time. MaxResults int32 // Use this string, provided with the response to a previous request, to request // the next batch of queues. NextToken *string // Optional. When you request lists of resources, you can specify whether they are // sorted in ASCENDING or DESCENDING order. Default varies by resource. Order types.Order noSmithyDocumentSerde } type ListQueuesOutput struct { // Use this string to request the next batch of queues. NextToken *string // List of queues. Queues []types.Queue // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationListQueuesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpListQueues{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListQueues{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListQueues(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } // ListQueuesAPIClient is a client that implements the ListQueues operation. type ListQueuesAPIClient interface { ListQueues(context.Context, *ListQueuesInput, ...func(*Options)) (*ListQueuesOutput, error) } var _ ListQueuesAPIClient = (*Client)(nil) // ListQueuesPaginatorOptions is the paginator options for ListQueues type ListQueuesPaginatorOptions struct { // Optional. Number of queues, up to twenty, that will be returned at one time. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool } // ListQueuesPaginator is a paginator for ListQueues type ListQueuesPaginator struct { options ListQueuesPaginatorOptions client ListQueuesAPIClient params *ListQueuesInput nextToken *string firstPage bool } // NewListQueuesPaginator returns a new ListQueuesPaginator func NewListQueuesPaginator(client ListQueuesAPIClient, params *ListQueuesInput, optFns ...func(*ListQueuesPaginatorOptions)) *ListQueuesPaginator { if params == nil { params = &ListQueuesInput{} } options := ListQueuesPaginatorOptions{} if params.MaxResults != 0 { options.Limit = params.MaxResults } for _, fn := range optFns { fn(&options) } return &ListQueuesPaginator{ options: options, client: client, params: params, firstPage: true, nextToken: params.NextToken, } } // HasMorePages returns a boolean indicating whether more pages are available func (p *ListQueuesPaginator) HasMorePages() bool { return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) } // NextPage retrieves the next ListQueues page. func (p *ListQueuesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListQueuesOutput, error) { if !p.HasMorePages() { return nil, fmt.Errorf("no more pages available") } params := *p.params params.NextToken = p.nextToken params.MaxResults = p.options.Limit result, err := p.client.ListQueues(ctx, &params, optFns...) if err != nil { return nil, err } p.firstPage = false prevToken := p.nextToken p.nextToken = result.NextToken if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { p.nextToken = nil } return result, nil } func newServiceMetadataMiddleware_opListQueues(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "mediaconvert", OperationName: "ListQueues", } }
224
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package mediaconvert import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/mediaconvert/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Retrieve the tags for a MediaConvert resource. func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error) { if params == nil { params = &ListTagsForResourceInput{} } result, metadata, err := c.invokeOperation(ctx, "ListTagsForResource", params, optFns, c.addOperationListTagsForResourceMiddlewares) if err != nil { return nil, err } out := result.(*ListTagsForResourceOutput) out.ResultMetadata = metadata return out, nil } type ListTagsForResourceInput struct { // The Amazon Resource Name (ARN) of the resource that you want to list tags for. // To get the ARN, send a GET request with the resource name. // // This member is required. Arn *string noSmithyDocumentSerde } type ListTagsForResourceOutput struct { // The Amazon Resource Name (ARN) and tags for an AWS Elemental MediaConvert // resource. ResourceTags *types.ResourceTags // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationListTagsForResourceMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpListTagsForResource{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListTagsForResource{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpListTagsForResourceValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListTagsForResource(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opListTagsForResource(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "mediaconvert", OperationName: "ListTagsForResource", } }
127
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package mediaconvert import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/mediaconvert/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Create or change your policy. For more information about policies, see the user // guide at http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html func (c *Client) PutPolicy(ctx context.Context, params *PutPolicyInput, optFns ...func(*Options)) (*PutPolicyOutput, error) { if params == nil { params = &PutPolicyInput{} } result, metadata, err := c.invokeOperation(ctx, "PutPolicy", params, optFns, c.addOperationPutPolicyMiddlewares) if err != nil { return nil, err } out := result.(*PutPolicyOutput) out.ResultMetadata = metadata return out, nil } type PutPolicyInput struct { // A policy configures behavior that you allow or disallow for your account. For // information about MediaConvert policies, see the user guide at // http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html // // This member is required. Policy *types.Policy noSmithyDocumentSerde } type PutPolicyOutput struct { // A policy configures behavior that you allow or disallow for your account. For // information about MediaConvert policies, see the user guide at // http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html Policy *types.Policy // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationPutPolicyMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpPutPolicy{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpPutPolicy{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpPutPolicyValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opPutPolicy(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opPutPolicy(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "mediaconvert", OperationName: "PutPolicy", } }
130
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package mediaconvert import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Add tags to a MediaConvert queue, preset, or job template. For information // about tagging, see the User Guide at // https://docs.aws.amazon.com/mediaconvert/latest/ug/tagging-resources.html func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error) { if params == nil { params = &TagResourceInput{} } result, metadata, err := c.invokeOperation(ctx, "TagResource", params, optFns, c.addOperationTagResourceMiddlewares) if err != nil { return nil, err } out := result.(*TagResourceOutput) out.ResultMetadata = metadata return out, nil } type TagResourceInput struct { // The Amazon Resource Name (ARN) of the resource that you want to tag. To get the // ARN, send a GET request with the resource name. // // This member is required. Arn *string // The tags that you want to add to the resource. You can tag resources with a // key-value pair or with only a key. // // This member is required. Tags map[string]string noSmithyDocumentSerde } type TagResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationTagResourceMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpTagResource{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpTagResource{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpTagResourceValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opTagResource(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opTagResource(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "mediaconvert", OperationName: "TagResource", } }
129
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package mediaconvert import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Remove tags from a MediaConvert queue, preset, or job template. For information // about tagging, see the User Guide at // https://docs.aws.amazon.com/mediaconvert/latest/ug/tagging-resources.html func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error) { if params == nil { params = &UntagResourceInput{} } result, metadata, err := c.invokeOperation(ctx, "UntagResource", params, optFns, c.addOperationUntagResourceMiddlewares) if err != nil { return nil, err } out := result.(*UntagResourceOutput) out.ResultMetadata = metadata return out, nil } type UntagResourceInput struct { // The Amazon Resource Name (ARN) of the resource that you want to remove tags // from. To get the ARN, send a GET request with the resource name. // // This member is required. Arn *string // The keys of the tags that you want to remove from the resource. TagKeys []string noSmithyDocumentSerde } type UntagResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUntagResourceMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpUntagResource{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUntagResource{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpUntagResourceValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUntagResource(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opUntagResource(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "mediaconvert", OperationName: "UntagResource", } }
126
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package mediaconvert import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/mediaconvert/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Modify one of your existing job templates. func (c *Client) UpdateJobTemplate(ctx context.Context, params *UpdateJobTemplateInput, optFns ...func(*Options)) (*UpdateJobTemplateOutput, error) { if params == nil { params = &UpdateJobTemplateInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdateJobTemplate", params, optFns, c.addOperationUpdateJobTemplateMiddlewares) if err != nil { return nil, err } out := result.(*UpdateJobTemplateOutput) out.ResultMetadata = metadata return out, nil } type UpdateJobTemplateInput struct { // The name of the job template you are modifying // // This member is required. Name *string // Accelerated transcoding can significantly speed up jobs with long, visually // complex content. Outputs that use this feature incur pro-tier pricing. For // information about feature limitations, see the AWS Elemental MediaConvert User // Guide. AccelerationSettings *types.AccelerationSettings // The new category for the job template, if you are changing it. Category *string // The new description for the job template, if you are changing it. Description *string // Optional list of hop destinations. HopDestinations []types.HopDestination // Specify the relative priority for this job. In any given queue, the service // begins processing the job with the highest value first. When more than one job // has the same priority, the service begins processing the job that you submitted // first. If you don't specify a priority, the service uses the default value 0. Priority int32 // The new queue for the job template, if you are changing it. Queue *string // JobTemplateSettings contains all the transcode settings saved in the template // that will be applied to jobs created from it. Settings *types.JobTemplateSettings // Specify how often MediaConvert sends STATUS_UPDATE events to Amazon CloudWatch // Events. Set the interval, in seconds, between status updates. MediaConvert sends // an update at this interval from the time the service begins processing your job // to the time it completes the transcode or encounters an error. StatusUpdateInterval types.StatusUpdateInterval noSmithyDocumentSerde } type UpdateJobTemplateOutput struct { // A job template is a pre-made set of encoding instructions that you can use to // quickly create a job. JobTemplate *types.JobTemplate // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdateJobTemplateMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateJobTemplate{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateJobTemplate{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpUpdateJobTemplateValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateJobTemplate(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opUpdateJobTemplate(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "mediaconvert", OperationName: "UpdateJobTemplate", } }
160
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package mediaconvert import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/mediaconvert/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Modify one of your existing presets. func (c *Client) UpdatePreset(ctx context.Context, params *UpdatePresetInput, optFns ...func(*Options)) (*UpdatePresetOutput, error) { if params == nil { params = &UpdatePresetInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdatePreset", params, optFns, c.addOperationUpdatePresetMiddlewares) if err != nil { return nil, err } out := result.(*UpdatePresetOutput) out.ResultMetadata = metadata return out, nil } type UpdatePresetInput struct { // The name of the preset you are modifying. // // This member is required. Name *string // The new category for the preset, if you are changing it. Category *string // The new description for the preset, if you are changing it. Description *string // Settings for preset Settings *types.PresetSettings noSmithyDocumentSerde } type UpdatePresetOutput struct { // A preset is a collection of preconfigured media conversion settings that you // want MediaConvert to apply to the output during the conversion process. Preset *types.Preset // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdatePresetMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdatePreset{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdatePreset{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpUpdatePresetValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdatePreset(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opUpdatePreset(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "mediaconvert", OperationName: "UpdatePreset", } }
135
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package mediaconvert import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/mediaconvert/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Modify one of your existing queues. func (c *Client) UpdateQueue(ctx context.Context, params *UpdateQueueInput, optFns ...func(*Options)) (*UpdateQueueOutput, error) { if params == nil { params = &UpdateQueueInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdateQueue", params, optFns, c.addOperationUpdateQueueMiddlewares) if err != nil { return nil, err } out := result.(*UpdateQueueOutput) out.ResultMetadata = metadata return out, nil } type UpdateQueueInput struct { // The name of the queue that you are modifying. // // This member is required. Name *string // The new description for the queue, if you are changing it. Description *string // The new details of your pricing plan for your reserved queue. When you set up a // new pricing plan to replace an expired one, you enter into another 12-month // commitment. When you add capacity to your queue by increasing the number of RTS, // you extend the term of your commitment to 12 months from when you add capacity. // After you make these commitments, you can't cancel them. ReservationPlanSettings *types.ReservationPlanSettings // Pause or activate a queue by changing its status between ACTIVE and PAUSED. If // you pause a queue, jobs in that queue won't begin. Jobs that are running when // you pause the queue continue to run until they finish or result in an error. Status types.QueueStatus noSmithyDocumentSerde } type UpdateQueueOutput struct { // You can use queues to manage the resources that are available to your AWS // account for running multiple transcoding jobs at the same time. If you don't // specify a queue, the service sends all jobs through the default queue. For more // information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/working-with-queues.html. Queue *types.Queue // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdateQueueMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateQueue{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateQueue{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpUpdateQueueValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateQueue(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opUpdateQueue(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "mediaconvert", OperationName: "UpdateQueue", } }
144
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. // Package mediaconvert provides the API client, operations, and parameter types // for AWS Elemental MediaConvert. // // AWS Elemental MediaConvert package mediaconvert
8
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package mediaconvert import ( "context" "errors" "fmt" "github.com/aws/aws-sdk-go-v2/aws" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" internalendpoints "github.com/aws/aws-sdk-go-v2/service/mediaconvert/internal/endpoints" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" "net/url" "strings" ) // EndpointResolverOptions is the service endpoint resolver options type EndpointResolverOptions = internalendpoints.Options // EndpointResolver interface for resolving service endpoints. type EndpointResolver interface { ResolveEndpoint(region string, options EndpointResolverOptions) (aws.Endpoint, error) } var _ EndpointResolver = &internalendpoints.Resolver{} // NewDefaultEndpointResolver constructs a new service endpoint resolver func NewDefaultEndpointResolver() *internalendpoints.Resolver { return internalendpoints.New() } // EndpointResolverFunc is a helper utility that wraps a function so it satisfies // the EndpointResolver interface. This is useful when you want to add additional // endpoint resolving logic, or stub out specific endpoints with custom values. type EndpointResolverFunc func(region string, options EndpointResolverOptions) (aws.Endpoint, error) func (fn EndpointResolverFunc) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error) { return fn(region, options) } func resolveDefaultEndpointConfiguration(o *Options) { if o.EndpointResolver != nil { return } o.EndpointResolver = NewDefaultEndpointResolver() } // EndpointResolverFromURL returns an EndpointResolver configured using the // provided endpoint url. By default, the resolved endpoint resolver uses the // client region as signing region, and the endpoint source is set to // EndpointSourceCustom.You can provide functional options to configure endpoint // values for the resolved endpoint. func EndpointResolverFromURL(url string, optFns ...func(*aws.Endpoint)) EndpointResolver { e := aws.Endpoint{URL: url, Source: aws.EndpointSourceCustom} for _, fn := range optFns { fn(&e) } return EndpointResolverFunc( func(region string, options EndpointResolverOptions) (aws.Endpoint, error) { if len(e.SigningRegion) == 0 { e.SigningRegion = region } return e, nil }, ) } type ResolveEndpoint struct { Resolver EndpointResolver Options EndpointResolverOptions } func (*ResolveEndpoint) ID() string { return "ResolveEndpoint" } func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { req, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } if m.Resolver == nil { return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil") } eo := m.Options eo.Logger = middleware.GetLogger(ctx) var endpoint aws.Endpoint endpoint, err = m.Resolver.ResolveEndpoint(awsmiddleware.GetRegion(ctx), eo) if err != nil { return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err) } req.URL, err = url.Parse(endpoint.URL) if err != nil { return out, metadata, fmt.Errorf("failed to parse endpoint URL: %w", err) } if len(awsmiddleware.GetSigningName(ctx)) == 0 { signingName := endpoint.SigningName if len(signingName) == 0 { signingName = "mediaconvert" } ctx = awsmiddleware.SetSigningName(ctx, signingName) } ctx = awsmiddleware.SetEndpointSource(ctx, endpoint.Source) ctx = smithyhttp.SetHostnameImmutable(ctx, endpoint.HostnameImmutable) ctx = awsmiddleware.SetSigningRegion(ctx, endpoint.SigningRegion) ctx = awsmiddleware.SetPartitionID(ctx, endpoint.PartitionID) return next.HandleSerialize(ctx, in) } func addResolveEndpointMiddleware(stack *middleware.Stack, o Options) error { return stack.Serialize.Insert(&ResolveEndpoint{ Resolver: o.EndpointResolver, Options: o.EndpointOptions, }, "OperationSerializer", middleware.Before) } func removeResolveEndpointMiddleware(stack *middleware.Stack) error { _, err := stack.Serialize.Remove((&ResolveEndpoint{}).ID()) return err } type wrappedEndpointResolver struct { awsResolver aws.EndpointResolverWithOptions resolver EndpointResolver } func (w *wrappedEndpointResolver) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error) { if w.awsResolver == nil { goto fallback } endpoint, err = w.awsResolver.ResolveEndpoint(ServiceID, region, options) if err == nil { return endpoint, nil } if nf := (&aws.EndpointNotFoundError{}); !errors.As(err, &nf) { return endpoint, err } fallback: if w.resolver == nil { return endpoint, fmt.Errorf("default endpoint resolver provided was nil") } return w.resolver.ResolveEndpoint(region, options) } type awsEndpointResolverAdaptor func(service, region string) (aws.Endpoint, error) func (a awsEndpointResolverAdaptor) ResolveEndpoint(service, region string, options ...interface{}) (aws.Endpoint, error) { return a(service, region) } var _ aws.EndpointResolverWithOptions = awsEndpointResolverAdaptor(nil) // withEndpointResolver returns an EndpointResolver that first delegates endpoint resolution to the awsResolver. // If awsResolver returns aws.EndpointNotFoundError error, the resolver will use the the provided // fallbackResolver for resolution. // // fallbackResolver must not be nil func withEndpointResolver(awsResolver aws.EndpointResolver, awsResolverWithOptions aws.EndpointResolverWithOptions, fallbackResolver EndpointResolver) EndpointResolver { var resolver aws.EndpointResolverWithOptions if awsResolverWithOptions != nil { resolver = awsResolverWithOptions } else if awsResolver != nil { resolver = awsEndpointResolverAdaptor(awsResolver.ResolveEndpoint) } return &wrappedEndpointResolver{ awsResolver: resolver, resolver: fallbackResolver, } } func finalizeClientEndpointResolverOptions(options *Options) { options.EndpointOptions.LogDeprecated = options.ClientLogMode.IsDeprecatedUsage() if len(options.EndpointOptions.ResolvedRegion) == 0 { const fipsInfix = "-fips-" const fipsPrefix = "fips-" const fipsSuffix = "-fips" if strings.Contains(options.Region, fipsInfix) || strings.Contains(options.Region, fipsPrefix) || strings.Contains(options.Region, fipsSuffix) { options.EndpointOptions.ResolvedRegion = strings.ReplaceAll(strings.ReplaceAll(strings.ReplaceAll( options.Region, fipsInfix, "-"), fipsPrefix, ""), fipsSuffix, "") options.EndpointOptions.UseFIPSEndpoint = aws.FIPSEndpointStateEnabled } } }
201
aws-sdk-go-v2
aws
Go
// Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT. package mediaconvert // goModuleVersion is the tagged release for this module const goModuleVersion = "1.38.1"
7
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package mediaconvert
4
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package mediaconvert import ( "bytes" "context" "fmt" "github.com/aws/aws-sdk-go-v2/service/mediaconvert/types" smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/encoding/httpbinding" smithyjson "github.com/aws/smithy-go/encoding/json" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" "math" ) type awsRestjson1_serializeOpAssociateCertificate struct { } func (*awsRestjson1_serializeOpAssociateCertificate) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpAssociateCertificate) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*AssociateCertificateInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/2017-08-29/certificates") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "POST" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() if err := awsRestjson1_serializeOpDocumentAssociateCertificateInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsAssociateCertificateInput(v *AssociateCertificateInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } return nil } func awsRestjson1_serializeOpDocumentAssociateCertificateInput(v *AssociateCertificateInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Arn != nil { ok := object.Key("arn") ok.String(*v.Arn) } return nil } type awsRestjson1_serializeOpCancelJob struct { } func (*awsRestjson1_serializeOpCancelJob) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpCancelJob) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*CancelJobInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/2017-08-29/jobs/{Id}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "DELETE" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsCancelJobInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsCancelJobInput(v *CancelJobInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } } return nil } type awsRestjson1_serializeOpCreateJob struct { } func (*awsRestjson1_serializeOpCreateJob) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpCreateJob) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*CreateJobInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/2017-08-29/jobs") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "POST" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() if err := awsRestjson1_serializeOpDocumentCreateJobInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsCreateJobInput(v *CreateJobInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } return nil } func awsRestjson1_serializeOpDocumentCreateJobInput(v *CreateJobInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AccelerationSettings != nil { ok := object.Key("accelerationSettings") if err := awsRestjson1_serializeDocumentAccelerationSettings(v.AccelerationSettings, ok); err != nil { return err } } if len(v.BillingTagsSource) > 0 { ok := object.Key("billingTagsSource") ok.String(string(v.BillingTagsSource)) } if v.ClientRequestToken != nil { ok := object.Key("clientRequestToken") ok.String(*v.ClientRequestToken) } if v.HopDestinations != nil { ok := object.Key("hopDestinations") if err := awsRestjson1_serializeDocument__listOfHopDestination(v.HopDestinations, ok); err != nil { return err } } if v.JobTemplate != nil { ok := object.Key("jobTemplate") ok.String(*v.JobTemplate) } if v.Priority != 0 { ok := object.Key("priority") ok.Integer(v.Priority) } if v.Queue != nil { ok := object.Key("queue") ok.String(*v.Queue) } if v.Role != nil { ok := object.Key("role") ok.String(*v.Role) } if v.Settings != nil { ok := object.Key("settings") if err := awsRestjson1_serializeDocumentJobSettings(v.Settings, ok); err != nil { return err } } if len(v.SimulateReservedQueue) > 0 { ok := object.Key("simulateReservedQueue") ok.String(string(v.SimulateReservedQueue)) } if len(v.StatusUpdateInterval) > 0 { ok := object.Key("statusUpdateInterval") ok.String(string(v.StatusUpdateInterval)) } if v.Tags != nil { ok := object.Key("tags") if err := awsRestjson1_serializeDocument__mapOf__string(v.Tags, ok); err != nil { return err } } if v.UserMetadata != nil { ok := object.Key("userMetadata") if err := awsRestjson1_serializeDocument__mapOf__string(v.UserMetadata, ok); err != nil { return err } } return nil } type awsRestjson1_serializeOpCreateJobTemplate struct { } func (*awsRestjson1_serializeOpCreateJobTemplate) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpCreateJobTemplate) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*CreateJobTemplateInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/2017-08-29/jobTemplates") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "POST" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() if err := awsRestjson1_serializeOpDocumentCreateJobTemplateInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsCreateJobTemplateInput(v *CreateJobTemplateInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } return nil } func awsRestjson1_serializeOpDocumentCreateJobTemplateInput(v *CreateJobTemplateInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AccelerationSettings != nil { ok := object.Key("accelerationSettings") if err := awsRestjson1_serializeDocumentAccelerationSettings(v.AccelerationSettings, ok); err != nil { return err } } if v.Category != nil { ok := object.Key("category") ok.String(*v.Category) } if v.Description != nil { ok := object.Key("description") ok.String(*v.Description) } if v.HopDestinations != nil { ok := object.Key("hopDestinations") if err := awsRestjson1_serializeDocument__listOfHopDestination(v.HopDestinations, ok); err != nil { return err } } if v.Name != nil { ok := object.Key("name") ok.String(*v.Name) } if v.Priority != 0 { ok := object.Key("priority") ok.Integer(v.Priority) } if v.Queue != nil { ok := object.Key("queue") ok.String(*v.Queue) } if v.Settings != nil { ok := object.Key("settings") if err := awsRestjson1_serializeDocumentJobTemplateSettings(v.Settings, ok); err != nil { return err } } if len(v.StatusUpdateInterval) > 0 { ok := object.Key("statusUpdateInterval") ok.String(string(v.StatusUpdateInterval)) } if v.Tags != nil { ok := object.Key("tags") if err := awsRestjson1_serializeDocument__mapOf__string(v.Tags, ok); err != nil { return err } } return nil } type awsRestjson1_serializeOpCreatePreset struct { } func (*awsRestjson1_serializeOpCreatePreset) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpCreatePreset) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*CreatePresetInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/2017-08-29/presets") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "POST" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() if err := awsRestjson1_serializeOpDocumentCreatePresetInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsCreatePresetInput(v *CreatePresetInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } return nil } func awsRestjson1_serializeOpDocumentCreatePresetInput(v *CreatePresetInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Category != nil { ok := object.Key("category") ok.String(*v.Category) } if v.Description != nil { ok := object.Key("description") ok.String(*v.Description) } if v.Name != nil { ok := object.Key("name") ok.String(*v.Name) } if v.Settings != nil { ok := object.Key("settings") if err := awsRestjson1_serializeDocumentPresetSettings(v.Settings, ok); err != nil { return err } } if v.Tags != nil { ok := object.Key("tags") if err := awsRestjson1_serializeDocument__mapOf__string(v.Tags, ok); err != nil { return err } } return nil } type awsRestjson1_serializeOpCreateQueue struct { } func (*awsRestjson1_serializeOpCreateQueue) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpCreateQueue) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*CreateQueueInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/2017-08-29/queues") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "POST" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() if err := awsRestjson1_serializeOpDocumentCreateQueueInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsCreateQueueInput(v *CreateQueueInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } return nil } func awsRestjson1_serializeOpDocumentCreateQueueInput(v *CreateQueueInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Description != nil { ok := object.Key("description") ok.String(*v.Description) } if v.Name != nil { ok := object.Key("name") ok.String(*v.Name) } if len(v.PricingPlan) > 0 { ok := object.Key("pricingPlan") ok.String(string(v.PricingPlan)) } if v.ReservationPlanSettings != nil { ok := object.Key("reservationPlanSettings") if err := awsRestjson1_serializeDocumentReservationPlanSettings(v.ReservationPlanSettings, ok); err != nil { return err } } if len(v.Status) > 0 { ok := object.Key("status") ok.String(string(v.Status)) } if v.Tags != nil { ok := object.Key("tags") if err := awsRestjson1_serializeDocument__mapOf__string(v.Tags, ok); err != nil { return err } } return nil } type awsRestjson1_serializeOpDeleteJobTemplate struct { } func (*awsRestjson1_serializeOpDeleteJobTemplate) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpDeleteJobTemplate) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*DeleteJobTemplateInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/2017-08-29/jobTemplates/{Name}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "DELETE" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsDeleteJobTemplateInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsDeleteJobTemplateInput(v *DeleteJobTemplateInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} } if v.Name != nil { if err := encoder.SetURI("Name").String(*v.Name); err != nil { return err } } return nil } type awsRestjson1_serializeOpDeletePolicy struct { } func (*awsRestjson1_serializeOpDeletePolicy) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpDeletePolicy) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*DeletePolicyInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/2017-08-29/policy") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "DELETE" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsDeletePolicyInput(v *DeletePolicyInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } return nil } type awsRestjson1_serializeOpDeletePreset struct { } func (*awsRestjson1_serializeOpDeletePreset) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpDeletePreset) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*DeletePresetInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/2017-08-29/presets/{Name}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "DELETE" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsDeletePresetInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsDeletePresetInput(v *DeletePresetInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} } if v.Name != nil { if err := encoder.SetURI("Name").String(*v.Name); err != nil { return err } } return nil } type awsRestjson1_serializeOpDeleteQueue struct { } func (*awsRestjson1_serializeOpDeleteQueue) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpDeleteQueue) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*DeleteQueueInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/2017-08-29/queues/{Name}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "DELETE" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsDeleteQueueInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsDeleteQueueInput(v *DeleteQueueInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} } if v.Name != nil { if err := encoder.SetURI("Name").String(*v.Name); err != nil { return err } } return nil } type awsRestjson1_serializeOpDescribeEndpoints struct { } func (*awsRestjson1_serializeOpDescribeEndpoints) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpDescribeEndpoints) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*DescribeEndpointsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/2017-08-29/endpoints") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "POST" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() if err := awsRestjson1_serializeOpDocumentDescribeEndpointsInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsDescribeEndpointsInput(v *DescribeEndpointsInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } return nil } func awsRestjson1_serializeOpDocumentDescribeEndpointsInput(v *DescribeEndpointsInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.MaxResults != 0 { ok := object.Key("maxResults") ok.Integer(v.MaxResults) } if len(v.Mode) > 0 { ok := object.Key("mode") ok.String(string(v.Mode)) } if v.NextToken != nil { ok := object.Key("nextToken") ok.String(*v.NextToken) } return nil } type awsRestjson1_serializeOpDisassociateCertificate struct { } func (*awsRestjson1_serializeOpDisassociateCertificate) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpDisassociateCertificate) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*DisassociateCertificateInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/2017-08-29/certificates/{Arn}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "DELETE" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsDisassociateCertificateInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsDisassociateCertificateInput(v *DisassociateCertificateInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.Arn == nil || len(*v.Arn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Arn must not be empty")} } if v.Arn != nil { if err := encoder.SetURI("Arn").String(*v.Arn); err != nil { return err } } return nil } type awsRestjson1_serializeOpGetJob struct { } func (*awsRestjson1_serializeOpGetJob) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpGetJob) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*GetJobInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/2017-08-29/jobs/{Id}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsGetJobInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsGetJobInput(v *GetJobInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.Id == nil || len(*v.Id) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Id must not be empty")} } if v.Id != nil { if err := encoder.SetURI("Id").String(*v.Id); err != nil { return err } } return nil } type awsRestjson1_serializeOpGetJobTemplate struct { } func (*awsRestjson1_serializeOpGetJobTemplate) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpGetJobTemplate) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*GetJobTemplateInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/2017-08-29/jobTemplates/{Name}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsGetJobTemplateInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsGetJobTemplateInput(v *GetJobTemplateInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} } if v.Name != nil { if err := encoder.SetURI("Name").String(*v.Name); err != nil { return err } } return nil } type awsRestjson1_serializeOpGetPolicy struct { } func (*awsRestjson1_serializeOpGetPolicy) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpGetPolicy) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*GetPolicyInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/2017-08-29/policy") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsGetPolicyInput(v *GetPolicyInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } return nil } type awsRestjson1_serializeOpGetPreset struct { } func (*awsRestjson1_serializeOpGetPreset) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpGetPreset) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*GetPresetInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/2017-08-29/presets/{Name}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsGetPresetInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsGetPresetInput(v *GetPresetInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} } if v.Name != nil { if err := encoder.SetURI("Name").String(*v.Name); err != nil { return err } } return nil } type awsRestjson1_serializeOpGetQueue struct { } func (*awsRestjson1_serializeOpGetQueue) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpGetQueue) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*GetQueueInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/2017-08-29/queues/{Name}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsGetQueueInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsGetQueueInput(v *GetQueueInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} } if v.Name != nil { if err := encoder.SetURI("Name").String(*v.Name); err != nil { return err } } return nil } type awsRestjson1_serializeOpListJobs struct { } func (*awsRestjson1_serializeOpListJobs) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpListJobs) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*ListJobsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/2017-08-29/jobs") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsListJobsInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsListJobsInput(v *ListJobsInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.MaxResults != 0 { encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { encoder.SetQuery("nextToken").String(*v.NextToken) } if len(v.Order) > 0 { encoder.SetQuery("order").String(string(v.Order)) } if v.Queue != nil { encoder.SetQuery("queue").String(*v.Queue) } if len(v.Status) > 0 { encoder.SetQuery("status").String(string(v.Status)) } return nil } type awsRestjson1_serializeOpListJobTemplates struct { } func (*awsRestjson1_serializeOpListJobTemplates) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpListJobTemplates) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*ListJobTemplatesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/2017-08-29/jobTemplates") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsListJobTemplatesInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsListJobTemplatesInput(v *ListJobTemplatesInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.Category != nil { encoder.SetQuery("category").String(*v.Category) } if len(v.ListBy) > 0 { encoder.SetQuery("listBy").String(string(v.ListBy)) } if v.MaxResults != 0 { encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { encoder.SetQuery("nextToken").String(*v.NextToken) } if len(v.Order) > 0 { encoder.SetQuery("order").String(string(v.Order)) } return nil } type awsRestjson1_serializeOpListPresets struct { } func (*awsRestjson1_serializeOpListPresets) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpListPresets) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*ListPresetsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/2017-08-29/presets") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsListPresetsInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsListPresetsInput(v *ListPresetsInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.Category != nil { encoder.SetQuery("category").String(*v.Category) } if len(v.ListBy) > 0 { encoder.SetQuery("listBy").String(string(v.ListBy)) } if v.MaxResults != 0 { encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { encoder.SetQuery("nextToken").String(*v.NextToken) } if len(v.Order) > 0 { encoder.SetQuery("order").String(string(v.Order)) } return nil } type awsRestjson1_serializeOpListQueues struct { } func (*awsRestjson1_serializeOpListQueues) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpListQueues) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*ListQueuesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/2017-08-29/queues") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsListQueuesInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsListQueuesInput(v *ListQueuesInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if len(v.ListBy) > 0 { encoder.SetQuery("listBy").String(string(v.ListBy)) } if v.MaxResults != 0 { encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { encoder.SetQuery("nextToken").String(*v.NextToken) } if len(v.Order) > 0 { encoder.SetQuery("order").String(string(v.Order)) } return nil } type awsRestjson1_serializeOpListTagsForResource struct { } func (*awsRestjson1_serializeOpListTagsForResource) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpListTagsForResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*ListTagsForResourceInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/2017-08-29/tags/{Arn}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsForResourceInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.Arn == nil || len(*v.Arn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Arn must not be empty")} } if v.Arn != nil { if err := encoder.SetURI("Arn").String(*v.Arn); err != nil { return err } } return nil } type awsRestjson1_serializeOpPutPolicy struct { } func (*awsRestjson1_serializeOpPutPolicy) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpPutPolicy) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*PutPolicyInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/2017-08-29/policy") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "PUT" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() if err := awsRestjson1_serializeOpDocumentPutPolicyInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsPutPolicyInput(v *PutPolicyInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } return nil } func awsRestjson1_serializeOpDocumentPutPolicyInput(v *PutPolicyInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Policy != nil { ok := object.Key("policy") if err := awsRestjson1_serializeDocumentPolicy(v.Policy, ok); err != nil { return err } } return nil } type awsRestjson1_serializeOpTagResource struct { } func (*awsRestjson1_serializeOpTagResource) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpTagResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*TagResourceInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/2017-08-29/tags") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "POST" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() if err := awsRestjson1_serializeOpDocumentTagResourceInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } return nil } func awsRestjson1_serializeOpDocumentTagResourceInput(v *TagResourceInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Arn != nil { ok := object.Key("arn") ok.String(*v.Arn) } if v.Tags != nil { ok := object.Key("tags") if err := awsRestjson1_serializeDocument__mapOf__string(v.Tags, ok); err != nil { return err } } return nil } type awsRestjson1_serializeOpUntagResource struct { } func (*awsRestjson1_serializeOpUntagResource) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpUntagResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*UntagResourceInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/2017-08-29/tags/{Arn}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "PUT" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsUntagResourceInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() if err := awsRestjson1_serializeOpDocumentUntagResourceInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.Arn == nil || len(*v.Arn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Arn must not be empty")} } if v.Arn != nil { if err := encoder.SetURI("Arn").String(*v.Arn); err != nil { return err } } return nil } func awsRestjson1_serializeOpDocumentUntagResourceInput(v *UntagResourceInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.TagKeys != nil { ok := object.Key("tagKeys") if err := awsRestjson1_serializeDocument__listOf__string(v.TagKeys, ok); err != nil { return err } } return nil } type awsRestjson1_serializeOpUpdateJobTemplate struct { } func (*awsRestjson1_serializeOpUpdateJobTemplate) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpUpdateJobTemplate) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*UpdateJobTemplateInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/2017-08-29/jobTemplates/{Name}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "PUT" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsUpdateJobTemplateInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() if err := awsRestjson1_serializeOpDocumentUpdateJobTemplateInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsUpdateJobTemplateInput(v *UpdateJobTemplateInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} } if v.Name != nil { if err := encoder.SetURI("Name").String(*v.Name); err != nil { return err } } return nil } func awsRestjson1_serializeOpDocumentUpdateJobTemplateInput(v *UpdateJobTemplateInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AccelerationSettings != nil { ok := object.Key("accelerationSettings") if err := awsRestjson1_serializeDocumentAccelerationSettings(v.AccelerationSettings, ok); err != nil { return err } } if v.Category != nil { ok := object.Key("category") ok.String(*v.Category) } if v.Description != nil { ok := object.Key("description") ok.String(*v.Description) } if v.HopDestinations != nil { ok := object.Key("hopDestinations") if err := awsRestjson1_serializeDocument__listOfHopDestination(v.HopDestinations, ok); err != nil { return err } } if v.Priority != 0 { ok := object.Key("priority") ok.Integer(v.Priority) } if v.Queue != nil { ok := object.Key("queue") ok.String(*v.Queue) } if v.Settings != nil { ok := object.Key("settings") if err := awsRestjson1_serializeDocumentJobTemplateSettings(v.Settings, ok); err != nil { return err } } if len(v.StatusUpdateInterval) > 0 { ok := object.Key("statusUpdateInterval") ok.String(string(v.StatusUpdateInterval)) } return nil } type awsRestjson1_serializeOpUpdatePreset struct { } func (*awsRestjson1_serializeOpUpdatePreset) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpUpdatePreset) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*UpdatePresetInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/2017-08-29/presets/{Name}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "PUT" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsUpdatePresetInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() if err := awsRestjson1_serializeOpDocumentUpdatePresetInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsUpdatePresetInput(v *UpdatePresetInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} } if v.Name != nil { if err := encoder.SetURI("Name").String(*v.Name); err != nil { return err } } return nil } func awsRestjson1_serializeOpDocumentUpdatePresetInput(v *UpdatePresetInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Category != nil { ok := object.Key("category") ok.String(*v.Category) } if v.Description != nil { ok := object.Key("description") ok.String(*v.Description) } if v.Settings != nil { ok := object.Key("settings") if err := awsRestjson1_serializeDocumentPresetSettings(v.Settings, ok); err != nil { return err } } return nil } type awsRestjson1_serializeOpUpdateQueue struct { } func (*awsRestjson1_serializeOpUpdateQueue) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpUpdateQueue) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*UpdateQueueInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/2017-08-29/queues/{Name}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "PUT" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsUpdateQueueInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() if err := awsRestjson1_serializeOpDocumentUpdateQueueInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsUpdateQueueInput(v *UpdateQueueInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.Name == nil || len(*v.Name) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member Name must not be empty")} } if v.Name != nil { if err := encoder.SetURI("Name").String(*v.Name); err != nil { return err } } return nil } func awsRestjson1_serializeOpDocumentUpdateQueueInput(v *UpdateQueueInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Description != nil { ok := object.Key("description") ok.String(*v.Description) } if v.ReservationPlanSettings != nil { ok := object.Key("reservationPlanSettings") if err := awsRestjson1_serializeDocumentReservationPlanSettings(v.ReservationPlanSettings, ok); err != nil { return err } } if len(v.Status) > 0 { ok := object.Key("status") ok.String(string(v.Status)) } return nil } func awsRestjson1_serializeDocument__listOf__doubleMinNegative60Max6(v []float64, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() switch { case math.IsNaN(v[i]): av.String("NaN") case math.IsInf(v[i], 1): av.String("Infinity") case math.IsInf(v[i], -1): av.String("-Infinity") default: av.Double(v[i]) } } return nil } func awsRestjson1_serializeDocument__listOf__integerMin1Max2147483647(v []int32, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() av.Integer(v[i]) } return nil } func awsRestjson1_serializeDocument__listOf__integerMin32Max8182(v []int32, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() av.Integer(v[i]) } return nil } func awsRestjson1_serializeDocument__listOf__integerMinNegative60Max6(v []int32, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() av.Integer(v[i]) } return nil } func awsRestjson1_serializeDocument__listOf__string(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() av.String(v[i]) } return nil } func awsRestjson1_serializeDocument__listOf__stringMin1(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() av.String(v[i]) } return nil } func awsRestjson1_serializeDocument__listOf__stringMin36Max36Pattern09aFAF809aFAF409aFAF409aFAF409aFAF12(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() av.String(v[i]) } return nil } func awsRestjson1_serializeDocument__listOf__stringPattern09aFAF809aFAF409aFAF409aFAF409aFAF12(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() av.String(v[i]) } return nil } func awsRestjson1_serializeDocument__listOf__stringPatternS3ASSETMAPXml(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() av.String(v[i]) } return nil } func awsRestjson1_serializeDocument__listOfAllowedRenditionSize(v []types.AllowedRenditionSize, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if err := awsRestjson1_serializeDocumentAllowedRenditionSize(&v[i], av); err != nil { return err } } return nil } func awsRestjson1_serializeDocument__listOfAudioDescription(v []types.AudioDescription, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if err := awsRestjson1_serializeDocumentAudioDescription(&v[i], av); err != nil { return err } } return nil } func awsRestjson1_serializeDocument__listOfAutomatedAbrRule(v []types.AutomatedAbrRule, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if err := awsRestjson1_serializeDocumentAutomatedAbrRule(&v[i], av); err != nil { return err } } return nil } func awsRestjson1_serializeDocument__listOfCaptionDescription(v []types.CaptionDescription, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if err := awsRestjson1_serializeDocumentCaptionDescription(&v[i], av); err != nil { return err } } return nil } func awsRestjson1_serializeDocument__listOfCaptionDescriptionPreset(v []types.CaptionDescriptionPreset, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if err := awsRestjson1_serializeDocumentCaptionDescriptionPreset(&v[i], av); err != nil { return err } } return nil } func awsRestjson1_serializeDocument__listOfCmafAdditionalManifest(v []types.CmafAdditionalManifest, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if err := awsRestjson1_serializeDocumentCmafAdditionalManifest(&v[i], av); err != nil { return err } } return nil } func awsRestjson1_serializeDocument__listOfDashAdditionalManifest(v []types.DashAdditionalManifest, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if err := awsRestjson1_serializeDocumentDashAdditionalManifest(&v[i], av); err != nil { return err } } return nil } func awsRestjson1_serializeDocument__listOfForceIncludeRenditionSize(v []types.ForceIncludeRenditionSize, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if err := awsRestjson1_serializeDocumentForceIncludeRenditionSize(&v[i], av); err != nil { return err } } return nil } func awsRestjson1_serializeDocument__listOfHlsAdditionalManifest(v []types.HlsAdditionalManifest, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if err := awsRestjson1_serializeDocumentHlsAdditionalManifest(&v[i], av); err != nil { return err } } return nil } func awsRestjson1_serializeDocument__listOfHlsAdMarkers(v []types.HlsAdMarkers, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() av.String(string(v[i])) } return nil } func awsRestjson1_serializeDocument__listOfHlsCaptionLanguageMapping(v []types.HlsCaptionLanguageMapping, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if err := awsRestjson1_serializeDocumentHlsCaptionLanguageMapping(&v[i], av); err != nil { return err } } return nil } func awsRestjson1_serializeDocument__listOfHopDestination(v []types.HopDestination, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if err := awsRestjson1_serializeDocumentHopDestination(&v[i], av); err != nil { return err } } return nil } func awsRestjson1_serializeDocument__listOfId3Insertion(v []types.Id3Insertion, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if err := awsRestjson1_serializeDocumentId3Insertion(&v[i], av); err != nil { return err } } return nil } func awsRestjson1_serializeDocument__listOfInput(v []types.Input, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if err := awsRestjson1_serializeDocumentInput(&v[i], av); err != nil { return err } } return nil } func awsRestjson1_serializeDocument__listOfInputClipping(v []types.InputClipping, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if err := awsRestjson1_serializeDocumentInputClipping(&v[i], av); err != nil { return err } } return nil } func awsRestjson1_serializeDocument__listOfInputTemplate(v []types.InputTemplate, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if err := awsRestjson1_serializeDocumentInputTemplate(&v[i], av); err != nil { return err } } return nil } func awsRestjson1_serializeDocument__listOfInsertableImage(v []types.InsertableImage, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if err := awsRestjson1_serializeDocumentInsertableImage(&v[i], av); err != nil { return err } } return nil } func awsRestjson1_serializeDocument__listOfMsSmoothAdditionalManifest(v []types.MsSmoothAdditionalManifest, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if err := awsRestjson1_serializeDocumentMsSmoothAdditionalManifest(&v[i], av); err != nil { return err } } return nil } func awsRestjson1_serializeDocument__listOfOutput(v []types.Output, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if err := awsRestjson1_serializeDocumentOutput(&v[i], av); err != nil { return err } } return nil } func awsRestjson1_serializeDocument__listOfOutputChannelMapping(v []types.OutputChannelMapping, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if err := awsRestjson1_serializeDocumentOutputChannelMapping(&v[i], av); err != nil { return err } } return nil } func awsRestjson1_serializeDocument__listOfOutputGroup(v []types.OutputGroup, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if err := awsRestjson1_serializeDocumentOutputGroup(&v[i], av); err != nil { return err } } return nil } func awsRestjson1_serializeDocument__listOfTeletextPageType(v []types.TeletextPageType, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() av.String(string(v[i])) } return nil } func awsRestjson1_serializeDocument__mapOf__string(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) om.String(v[key]) } return nil } func awsRestjson1_serializeDocument__mapOfAudioSelector(v map[string]types.AudioSelector, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) mapVar := v[key] if err := awsRestjson1_serializeDocumentAudioSelector(&mapVar, om); err != nil { return err } } return nil } func awsRestjson1_serializeDocument__mapOfAudioSelectorGroup(v map[string]types.AudioSelectorGroup, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) mapVar := v[key] if err := awsRestjson1_serializeDocumentAudioSelectorGroup(&mapVar, om); err != nil { return err } } return nil } func awsRestjson1_serializeDocument__mapOfCaptionSelector(v map[string]types.CaptionSelector, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) mapVar := v[key] if err := awsRestjson1_serializeDocumentCaptionSelector(&mapVar, om); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentAacSettings(v *types.AacSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.AudioDescriptionBroadcasterMix) > 0 { ok := object.Key("audioDescriptionBroadcasterMix") ok.String(string(v.AudioDescriptionBroadcasterMix)) } if v.Bitrate != 0 { ok := object.Key("bitrate") ok.Integer(v.Bitrate) } if len(v.CodecProfile) > 0 { ok := object.Key("codecProfile") ok.String(string(v.CodecProfile)) } if len(v.CodingMode) > 0 { ok := object.Key("codingMode") ok.String(string(v.CodingMode)) } if len(v.RateControlMode) > 0 { ok := object.Key("rateControlMode") ok.String(string(v.RateControlMode)) } if len(v.RawFormat) > 0 { ok := object.Key("rawFormat") ok.String(string(v.RawFormat)) } if v.SampleRate != 0 { ok := object.Key("sampleRate") ok.Integer(v.SampleRate) } if len(v.Specification) > 0 { ok := object.Key("specification") ok.String(string(v.Specification)) } if len(v.VbrQuality) > 0 { ok := object.Key("vbrQuality") ok.String(string(v.VbrQuality)) } return nil } func awsRestjson1_serializeDocumentAc3Settings(v *types.Ac3Settings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Bitrate != 0 { ok := object.Key("bitrate") ok.Integer(v.Bitrate) } if len(v.BitstreamMode) > 0 { ok := object.Key("bitstreamMode") ok.String(string(v.BitstreamMode)) } if len(v.CodingMode) > 0 { ok := object.Key("codingMode") ok.String(string(v.CodingMode)) } if v.Dialnorm != 0 { ok := object.Key("dialnorm") ok.Integer(v.Dialnorm) } if len(v.DynamicRangeCompressionLine) > 0 { ok := object.Key("dynamicRangeCompressionLine") ok.String(string(v.DynamicRangeCompressionLine)) } if len(v.DynamicRangeCompressionProfile) > 0 { ok := object.Key("dynamicRangeCompressionProfile") ok.String(string(v.DynamicRangeCompressionProfile)) } if len(v.DynamicRangeCompressionRf) > 0 { ok := object.Key("dynamicRangeCompressionRf") ok.String(string(v.DynamicRangeCompressionRf)) } if len(v.LfeFilter) > 0 { ok := object.Key("lfeFilter") ok.String(string(v.LfeFilter)) } if len(v.MetadataControl) > 0 { ok := object.Key("metadataControl") ok.String(string(v.MetadataControl)) } if v.SampleRate != 0 { ok := object.Key("sampleRate") ok.Integer(v.SampleRate) } return nil } func awsRestjson1_serializeDocumentAccelerationSettings(v *types.AccelerationSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.Mode) > 0 { ok := object.Key("mode") ok.String(string(v.Mode)) } return nil } func awsRestjson1_serializeDocumentAdvancedInputFilterSettings(v *types.AdvancedInputFilterSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.AddTexture) > 0 { ok := object.Key("addTexture") ok.String(string(v.AddTexture)) } if len(v.Sharpening) > 0 { ok := object.Key("sharpening") ok.String(string(v.Sharpening)) } return nil } func awsRestjson1_serializeDocumentAiffSettings(v *types.AiffSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.BitDepth != 0 { ok := object.Key("bitDepth") ok.Integer(v.BitDepth) } if v.Channels != 0 { ok := object.Key("channels") ok.Integer(v.Channels) } if v.SampleRate != 0 { ok := object.Key("sampleRate") ok.Integer(v.SampleRate) } return nil } func awsRestjson1_serializeDocumentAllowedRenditionSize(v *types.AllowedRenditionSize, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Height != 0 { ok := object.Key("height") ok.Integer(v.Height) } if len(v.Required) > 0 { ok := object.Key("required") ok.String(string(v.Required)) } if v.Width != 0 { ok := object.Key("width") ok.Integer(v.Width) } return nil } func awsRestjson1_serializeDocumentAncillarySourceSettings(v *types.AncillarySourceSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.Convert608To708) > 0 { ok := object.Key("convert608To708") ok.String(string(v.Convert608To708)) } if v.SourceAncillaryChannelNumber != 0 { ok := object.Key("sourceAncillaryChannelNumber") ok.Integer(v.SourceAncillaryChannelNumber) } if len(v.TerminateCaptions) > 0 { ok := object.Key("terminateCaptions") ok.String(string(v.TerminateCaptions)) } return nil } func awsRestjson1_serializeDocumentAudioChannelTaggingSettings(v *types.AudioChannelTaggingSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.ChannelTag) > 0 { ok := object.Key("channelTag") ok.String(string(v.ChannelTag)) } return nil } func awsRestjson1_serializeDocumentAudioCodecSettings(v *types.AudioCodecSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AacSettings != nil { ok := object.Key("aacSettings") if err := awsRestjson1_serializeDocumentAacSettings(v.AacSettings, ok); err != nil { return err } } if v.Ac3Settings != nil { ok := object.Key("ac3Settings") if err := awsRestjson1_serializeDocumentAc3Settings(v.Ac3Settings, ok); err != nil { return err } } if v.AiffSettings != nil { ok := object.Key("aiffSettings") if err := awsRestjson1_serializeDocumentAiffSettings(v.AiffSettings, ok); err != nil { return err } } if len(v.Codec) > 0 { ok := object.Key("codec") ok.String(string(v.Codec)) } if v.Eac3AtmosSettings != nil { ok := object.Key("eac3AtmosSettings") if err := awsRestjson1_serializeDocumentEac3AtmosSettings(v.Eac3AtmosSettings, ok); err != nil { return err } } if v.Eac3Settings != nil { ok := object.Key("eac3Settings") if err := awsRestjson1_serializeDocumentEac3Settings(v.Eac3Settings, ok); err != nil { return err } } if v.Mp2Settings != nil { ok := object.Key("mp2Settings") if err := awsRestjson1_serializeDocumentMp2Settings(v.Mp2Settings, ok); err != nil { return err } } if v.Mp3Settings != nil { ok := object.Key("mp3Settings") if err := awsRestjson1_serializeDocumentMp3Settings(v.Mp3Settings, ok); err != nil { return err } } if v.OpusSettings != nil { ok := object.Key("opusSettings") if err := awsRestjson1_serializeDocumentOpusSettings(v.OpusSettings, ok); err != nil { return err } } if v.VorbisSettings != nil { ok := object.Key("vorbisSettings") if err := awsRestjson1_serializeDocumentVorbisSettings(v.VorbisSettings, ok); err != nil { return err } } if v.WavSettings != nil { ok := object.Key("wavSettings") if err := awsRestjson1_serializeDocumentWavSettings(v.WavSettings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentAudioDescription(v *types.AudioDescription, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AudioChannelTaggingSettings != nil { ok := object.Key("audioChannelTaggingSettings") if err := awsRestjson1_serializeDocumentAudioChannelTaggingSettings(v.AudioChannelTaggingSettings, ok); err != nil { return err } } if v.AudioNormalizationSettings != nil { ok := object.Key("audioNormalizationSettings") if err := awsRestjson1_serializeDocumentAudioNormalizationSettings(v.AudioNormalizationSettings, ok); err != nil { return err } } if v.AudioSourceName != nil { ok := object.Key("audioSourceName") ok.String(*v.AudioSourceName) } if v.AudioType != 0 { ok := object.Key("audioType") ok.Integer(v.AudioType) } if len(v.AudioTypeControl) > 0 { ok := object.Key("audioTypeControl") ok.String(string(v.AudioTypeControl)) } if v.CodecSettings != nil { ok := object.Key("codecSettings") if err := awsRestjson1_serializeDocumentAudioCodecSettings(v.CodecSettings, ok); err != nil { return err } } if v.CustomLanguageCode != nil { ok := object.Key("customLanguageCode") ok.String(*v.CustomLanguageCode) } if len(v.LanguageCode) > 0 { ok := object.Key("languageCode") ok.String(string(v.LanguageCode)) } if len(v.LanguageCodeControl) > 0 { ok := object.Key("languageCodeControl") ok.String(string(v.LanguageCodeControl)) } if v.RemixSettings != nil { ok := object.Key("remixSettings") if err := awsRestjson1_serializeDocumentRemixSettings(v.RemixSettings, ok); err != nil { return err } } if v.StreamName != nil { ok := object.Key("streamName") ok.String(*v.StreamName) } return nil } func awsRestjson1_serializeDocumentAudioNormalizationSettings(v *types.AudioNormalizationSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.Algorithm) > 0 { ok := object.Key("algorithm") ok.String(string(v.Algorithm)) } if len(v.AlgorithmControl) > 0 { ok := object.Key("algorithmControl") ok.String(string(v.AlgorithmControl)) } if v.CorrectionGateLevel != 0 { ok := object.Key("correctionGateLevel") ok.Integer(v.CorrectionGateLevel) } if len(v.LoudnessLogging) > 0 { ok := object.Key("loudnessLogging") ok.String(string(v.LoudnessLogging)) } if len(v.PeakCalculation) > 0 { ok := object.Key("peakCalculation") ok.String(string(v.PeakCalculation)) } if v.TargetLkfs != 0 { ok := object.Key("targetLkfs") switch { case math.IsNaN(v.TargetLkfs): ok.String("NaN") case math.IsInf(v.TargetLkfs, 1): ok.String("Infinity") case math.IsInf(v.TargetLkfs, -1): ok.String("-Infinity") default: ok.Double(v.TargetLkfs) } } if v.TruePeakLimiterThreshold != 0 { ok := object.Key("truePeakLimiterThreshold") switch { case math.IsNaN(v.TruePeakLimiterThreshold): ok.String("NaN") case math.IsInf(v.TruePeakLimiterThreshold, 1): ok.String("Infinity") case math.IsInf(v.TruePeakLimiterThreshold, -1): ok.String("-Infinity") default: ok.Double(v.TruePeakLimiterThreshold) } } return nil } func awsRestjson1_serializeDocumentAudioSelector(v *types.AudioSelector, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.AudioDurationCorrection) > 0 { ok := object.Key("audioDurationCorrection") ok.String(string(v.AudioDurationCorrection)) } if v.CustomLanguageCode != nil { ok := object.Key("customLanguageCode") ok.String(*v.CustomLanguageCode) } if len(v.DefaultSelection) > 0 { ok := object.Key("defaultSelection") ok.String(string(v.DefaultSelection)) } if v.ExternalAudioFileInput != nil { ok := object.Key("externalAudioFileInput") ok.String(*v.ExternalAudioFileInput) } if v.HlsRenditionGroupSettings != nil { ok := object.Key("hlsRenditionGroupSettings") if err := awsRestjson1_serializeDocumentHlsRenditionGroupSettings(v.HlsRenditionGroupSettings, ok); err != nil { return err } } if len(v.LanguageCode) > 0 { ok := object.Key("languageCode") ok.String(string(v.LanguageCode)) } if v.Offset != 0 { ok := object.Key("offset") ok.Integer(v.Offset) } if v.Pids != nil { ok := object.Key("pids") if err := awsRestjson1_serializeDocument__listOf__integerMin1Max2147483647(v.Pids, ok); err != nil { return err } } if v.ProgramSelection != 0 { ok := object.Key("programSelection") ok.Integer(v.ProgramSelection) } if v.RemixSettings != nil { ok := object.Key("remixSettings") if err := awsRestjson1_serializeDocumentRemixSettings(v.RemixSettings, ok); err != nil { return err } } if len(v.SelectorType) > 0 { ok := object.Key("selectorType") ok.String(string(v.SelectorType)) } if v.Tracks != nil { ok := object.Key("tracks") if err := awsRestjson1_serializeDocument__listOf__integerMin1Max2147483647(v.Tracks, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentAudioSelectorGroup(v *types.AudioSelectorGroup, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AudioSelectorNames != nil { ok := object.Key("audioSelectorNames") if err := awsRestjson1_serializeDocument__listOf__stringMin1(v.AudioSelectorNames, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentAutomatedAbrRule(v *types.AutomatedAbrRule, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AllowedRenditions != nil { ok := object.Key("allowedRenditions") if err := awsRestjson1_serializeDocument__listOfAllowedRenditionSize(v.AllowedRenditions, ok); err != nil { return err } } if v.ForceIncludeRenditions != nil { ok := object.Key("forceIncludeRenditions") if err := awsRestjson1_serializeDocument__listOfForceIncludeRenditionSize(v.ForceIncludeRenditions, ok); err != nil { return err } } if v.MinBottomRenditionSize != nil { ok := object.Key("minBottomRenditionSize") if err := awsRestjson1_serializeDocumentMinBottomRenditionSize(v.MinBottomRenditionSize, ok); err != nil { return err } } if v.MinTopRenditionSize != nil { ok := object.Key("minTopRenditionSize") if err := awsRestjson1_serializeDocumentMinTopRenditionSize(v.MinTopRenditionSize, ok); err != nil { return err } } if len(v.Type) > 0 { ok := object.Key("type") ok.String(string(v.Type)) } return nil } func awsRestjson1_serializeDocumentAutomatedAbrSettings(v *types.AutomatedAbrSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.MaxAbrBitrate != 0 { ok := object.Key("maxAbrBitrate") ok.Integer(v.MaxAbrBitrate) } if v.MaxRenditions != 0 { ok := object.Key("maxRenditions") ok.Integer(v.MaxRenditions) } if v.MinAbrBitrate != 0 { ok := object.Key("minAbrBitrate") ok.Integer(v.MinAbrBitrate) } if v.Rules != nil { ok := object.Key("rules") if err := awsRestjson1_serializeDocument__listOfAutomatedAbrRule(v.Rules, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentAutomatedEncodingSettings(v *types.AutomatedEncodingSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AbrSettings != nil { ok := object.Key("abrSettings") if err := awsRestjson1_serializeDocumentAutomatedAbrSettings(v.AbrSettings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentAv1QvbrSettings(v *types.Av1QvbrSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.QvbrQualityLevel != 0 { ok := object.Key("qvbrQualityLevel") ok.Integer(v.QvbrQualityLevel) } if v.QvbrQualityLevelFineTune != 0 { ok := object.Key("qvbrQualityLevelFineTune") switch { case math.IsNaN(v.QvbrQualityLevelFineTune): ok.String("NaN") case math.IsInf(v.QvbrQualityLevelFineTune, 1): ok.String("Infinity") case math.IsInf(v.QvbrQualityLevelFineTune, -1): ok.String("-Infinity") default: ok.Double(v.QvbrQualityLevelFineTune) } } return nil } func awsRestjson1_serializeDocumentAv1Settings(v *types.Av1Settings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.AdaptiveQuantization) > 0 { ok := object.Key("adaptiveQuantization") ok.String(string(v.AdaptiveQuantization)) } if len(v.BitDepth) > 0 { ok := object.Key("bitDepth") ok.String(string(v.BitDepth)) } if len(v.FramerateControl) > 0 { ok := object.Key("framerateControl") ok.String(string(v.FramerateControl)) } if len(v.FramerateConversionAlgorithm) > 0 { ok := object.Key("framerateConversionAlgorithm") ok.String(string(v.FramerateConversionAlgorithm)) } if v.FramerateDenominator != 0 { ok := object.Key("framerateDenominator") ok.Integer(v.FramerateDenominator) } if v.FramerateNumerator != 0 { ok := object.Key("framerateNumerator") ok.Integer(v.FramerateNumerator) } if v.GopSize != 0 { ok := object.Key("gopSize") switch { case math.IsNaN(v.GopSize): ok.String("NaN") case math.IsInf(v.GopSize, 1): ok.String("Infinity") case math.IsInf(v.GopSize, -1): ok.String("-Infinity") default: ok.Double(v.GopSize) } } if v.MaxBitrate != 0 { ok := object.Key("maxBitrate") ok.Integer(v.MaxBitrate) } if v.NumberBFramesBetweenReferenceFrames != 0 { ok := object.Key("numberBFramesBetweenReferenceFrames") ok.Integer(v.NumberBFramesBetweenReferenceFrames) } if v.QvbrSettings != nil { ok := object.Key("qvbrSettings") if err := awsRestjson1_serializeDocumentAv1QvbrSettings(v.QvbrSettings, ok); err != nil { return err } } if len(v.RateControlMode) > 0 { ok := object.Key("rateControlMode") ok.String(string(v.RateControlMode)) } if v.Slices != 0 { ok := object.Key("slices") ok.Integer(v.Slices) } if len(v.SpatialAdaptiveQuantization) > 0 { ok := object.Key("spatialAdaptiveQuantization") ok.String(string(v.SpatialAdaptiveQuantization)) } return nil } func awsRestjson1_serializeDocumentAvailBlanking(v *types.AvailBlanking, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AvailBlankingImage != nil { ok := object.Key("availBlankingImage") ok.String(*v.AvailBlankingImage) } return nil } func awsRestjson1_serializeDocumentAvcIntraSettings(v *types.AvcIntraSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.AvcIntraClass) > 0 { ok := object.Key("avcIntraClass") ok.String(string(v.AvcIntraClass)) } if v.AvcIntraUhdSettings != nil { ok := object.Key("avcIntraUhdSettings") if err := awsRestjson1_serializeDocumentAvcIntraUhdSettings(v.AvcIntraUhdSettings, ok); err != nil { return err } } if len(v.FramerateControl) > 0 { ok := object.Key("framerateControl") ok.String(string(v.FramerateControl)) } if len(v.FramerateConversionAlgorithm) > 0 { ok := object.Key("framerateConversionAlgorithm") ok.String(string(v.FramerateConversionAlgorithm)) } if v.FramerateDenominator != 0 { ok := object.Key("framerateDenominator") ok.Integer(v.FramerateDenominator) } if v.FramerateNumerator != 0 { ok := object.Key("framerateNumerator") ok.Integer(v.FramerateNumerator) } if len(v.InterlaceMode) > 0 { ok := object.Key("interlaceMode") ok.String(string(v.InterlaceMode)) } if len(v.ScanTypeConversionMode) > 0 { ok := object.Key("scanTypeConversionMode") ok.String(string(v.ScanTypeConversionMode)) } if len(v.SlowPal) > 0 { ok := object.Key("slowPal") ok.String(string(v.SlowPal)) } if len(v.Telecine) > 0 { ok := object.Key("telecine") ok.String(string(v.Telecine)) } return nil } func awsRestjson1_serializeDocumentAvcIntraUhdSettings(v *types.AvcIntraUhdSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.QualityTuningLevel) > 0 { ok := object.Key("qualityTuningLevel") ok.String(string(v.QualityTuningLevel)) } return nil } func awsRestjson1_serializeDocumentBandwidthReductionFilter(v *types.BandwidthReductionFilter, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.Sharpening) > 0 { ok := object.Key("sharpening") ok.String(string(v.Sharpening)) } if len(v.Strength) > 0 { ok := object.Key("strength") ok.String(string(v.Strength)) } return nil } func awsRestjson1_serializeDocumentBurninDestinationSettings(v *types.BurninDestinationSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.Alignment) > 0 { ok := object.Key("alignment") ok.String(string(v.Alignment)) } if len(v.ApplyFontColor) > 0 { ok := object.Key("applyFontColor") ok.String(string(v.ApplyFontColor)) } if len(v.BackgroundColor) > 0 { ok := object.Key("backgroundColor") ok.String(string(v.BackgroundColor)) } if v.BackgroundOpacity != 0 { ok := object.Key("backgroundOpacity") ok.Integer(v.BackgroundOpacity) } if len(v.FallbackFont) > 0 { ok := object.Key("fallbackFont") ok.String(string(v.FallbackFont)) } if len(v.FontColor) > 0 { ok := object.Key("fontColor") ok.String(string(v.FontColor)) } if v.FontOpacity != 0 { ok := object.Key("fontOpacity") ok.Integer(v.FontOpacity) } if v.FontResolution != 0 { ok := object.Key("fontResolution") ok.Integer(v.FontResolution) } if len(v.FontScript) > 0 { ok := object.Key("fontScript") ok.String(string(v.FontScript)) } if v.FontSize != 0 { ok := object.Key("fontSize") ok.Integer(v.FontSize) } if v.HexFontColor != nil { ok := object.Key("hexFontColor") ok.String(*v.HexFontColor) } if len(v.OutlineColor) > 0 { ok := object.Key("outlineColor") ok.String(string(v.OutlineColor)) } if v.OutlineSize != 0 { ok := object.Key("outlineSize") ok.Integer(v.OutlineSize) } if len(v.ShadowColor) > 0 { ok := object.Key("shadowColor") ok.String(string(v.ShadowColor)) } if v.ShadowOpacity != 0 { ok := object.Key("shadowOpacity") ok.Integer(v.ShadowOpacity) } if v.ShadowXOffset != 0 { ok := object.Key("shadowXOffset") ok.Integer(v.ShadowXOffset) } if v.ShadowYOffset != 0 { ok := object.Key("shadowYOffset") ok.Integer(v.ShadowYOffset) } if len(v.StylePassthrough) > 0 { ok := object.Key("stylePassthrough") ok.String(string(v.StylePassthrough)) } if len(v.TeletextSpacing) > 0 { ok := object.Key("teletextSpacing") ok.String(string(v.TeletextSpacing)) } if v.XPosition != 0 { ok := object.Key("xPosition") ok.Integer(v.XPosition) } if v.YPosition != 0 { ok := object.Key("yPosition") ok.Integer(v.YPosition) } return nil } func awsRestjson1_serializeDocumentCaptionDescription(v *types.CaptionDescription, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.CaptionSelectorName != nil { ok := object.Key("captionSelectorName") ok.String(*v.CaptionSelectorName) } if v.CustomLanguageCode != nil { ok := object.Key("customLanguageCode") ok.String(*v.CustomLanguageCode) } if v.DestinationSettings != nil { ok := object.Key("destinationSettings") if err := awsRestjson1_serializeDocumentCaptionDestinationSettings(v.DestinationSettings, ok); err != nil { return err } } if len(v.LanguageCode) > 0 { ok := object.Key("languageCode") ok.String(string(v.LanguageCode)) } if v.LanguageDescription != nil { ok := object.Key("languageDescription") ok.String(*v.LanguageDescription) } return nil } func awsRestjson1_serializeDocumentCaptionDescriptionPreset(v *types.CaptionDescriptionPreset, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.CustomLanguageCode != nil { ok := object.Key("customLanguageCode") ok.String(*v.CustomLanguageCode) } if v.DestinationSettings != nil { ok := object.Key("destinationSettings") if err := awsRestjson1_serializeDocumentCaptionDestinationSettings(v.DestinationSettings, ok); err != nil { return err } } if len(v.LanguageCode) > 0 { ok := object.Key("languageCode") ok.String(string(v.LanguageCode)) } if v.LanguageDescription != nil { ok := object.Key("languageDescription") ok.String(*v.LanguageDescription) } return nil } func awsRestjson1_serializeDocumentCaptionDestinationSettings(v *types.CaptionDestinationSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.BurninDestinationSettings != nil { ok := object.Key("burninDestinationSettings") if err := awsRestjson1_serializeDocumentBurninDestinationSettings(v.BurninDestinationSettings, ok); err != nil { return err } } if len(v.DestinationType) > 0 { ok := object.Key("destinationType") ok.String(string(v.DestinationType)) } if v.DvbSubDestinationSettings != nil { ok := object.Key("dvbSubDestinationSettings") if err := awsRestjson1_serializeDocumentDvbSubDestinationSettings(v.DvbSubDestinationSettings, ok); err != nil { return err } } if v.EmbeddedDestinationSettings != nil { ok := object.Key("embeddedDestinationSettings") if err := awsRestjson1_serializeDocumentEmbeddedDestinationSettings(v.EmbeddedDestinationSettings, ok); err != nil { return err } } if v.ImscDestinationSettings != nil { ok := object.Key("imscDestinationSettings") if err := awsRestjson1_serializeDocumentImscDestinationSettings(v.ImscDestinationSettings, ok); err != nil { return err } } if v.SccDestinationSettings != nil { ok := object.Key("sccDestinationSettings") if err := awsRestjson1_serializeDocumentSccDestinationSettings(v.SccDestinationSettings, ok); err != nil { return err } } if v.SrtDestinationSettings != nil { ok := object.Key("srtDestinationSettings") if err := awsRestjson1_serializeDocumentSrtDestinationSettings(v.SrtDestinationSettings, ok); err != nil { return err } } if v.TeletextDestinationSettings != nil { ok := object.Key("teletextDestinationSettings") if err := awsRestjson1_serializeDocumentTeletextDestinationSettings(v.TeletextDestinationSettings, ok); err != nil { return err } } if v.TtmlDestinationSettings != nil { ok := object.Key("ttmlDestinationSettings") if err := awsRestjson1_serializeDocumentTtmlDestinationSettings(v.TtmlDestinationSettings, ok); err != nil { return err } } if v.WebvttDestinationSettings != nil { ok := object.Key("webvttDestinationSettings") if err := awsRestjson1_serializeDocumentWebvttDestinationSettings(v.WebvttDestinationSettings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentCaptionSelector(v *types.CaptionSelector, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.CustomLanguageCode != nil { ok := object.Key("customLanguageCode") ok.String(*v.CustomLanguageCode) } if len(v.LanguageCode) > 0 { ok := object.Key("languageCode") ok.String(string(v.LanguageCode)) } if v.SourceSettings != nil { ok := object.Key("sourceSettings") if err := awsRestjson1_serializeDocumentCaptionSourceSettings(v.SourceSettings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentCaptionSourceFramerate(v *types.CaptionSourceFramerate, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.FramerateDenominator != 0 { ok := object.Key("framerateDenominator") ok.Integer(v.FramerateDenominator) } if v.FramerateNumerator != 0 { ok := object.Key("framerateNumerator") ok.Integer(v.FramerateNumerator) } return nil } func awsRestjson1_serializeDocumentCaptionSourceSettings(v *types.CaptionSourceSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AncillarySourceSettings != nil { ok := object.Key("ancillarySourceSettings") if err := awsRestjson1_serializeDocumentAncillarySourceSettings(v.AncillarySourceSettings, ok); err != nil { return err } } if v.DvbSubSourceSettings != nil { ok := object.Key("dvbSubSourceSettings") if err := awsRestjson1_serializeDocumentDvbSubSourceSettings(v.DvbSubSourceSettings, ok); err != nil { return err } } if v.EmbeddedSourceSettings != nil { ok := object.Key("embeddedSourceSettings") if err := awsRestjson1_serializeDocumentEmbeddedSourceSettings(v.EmbeddedSourceSettings, ok); err != nil { return err } } if v.FileSourceSettings != nil { ok := object.Key("fileSourceSettings") if err := awsRestjson1_serializeDocumentFileSourceSettings(v.FileSourceSettings, ok); err != nil { return err } } if len(v.SourceType) > 0 { ok := object.Key("sourceType") ok.String(string(v.SourceType)) } if v.TeletextSourceSettings != nil { ok := object.Key("teletextSourceSettings") if err := awsRestjson1_serializeDocumentTeletextSourceSettings(v.TeletextSourceSettings, ok); err != nil { return err } } if v.TrackSourceSettings != nil { ok := object.Key("trackSourceSettings") if err := awsRestjson1_serializeDocumentTrackSourceSettings(v.TrackSourceSettings, ok); err != nil { return err } } if v.WebvttHlsSourceSettings != nil { ok := object.Key("webvttHlsSourceSettings") if err := awsRestjson1_serializeDocumentWebvttHlsSourceSettings(v.WebvttHlsSourceSettings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentChannelMapping(v *types.ChannelMapping, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.OutputChannels != nil { ok := object.Key("outputChannels") if err := awsRestjson1_serializeDocument__listOfOutputChannelMapping(v.OutputChannels, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentClipLimits(v *types.ClipLimits, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.MaximumRGBTolerance != 0 { ok := object.Key("maximumRGBTolerance") ok.Integer(v.MaximumRGBTolerance) } if v.MaximumYUV != 0 { ok := object.Key("maximumYUV") ok.Integer(v.MaximumYUV) } if v.MinimumRGBTolerance != 0 { ok := object.Key("minimumRGBTolerance") ok.Integer(v.MinimumRGBTolerance) } if v.MinimumYUV != 0 { ok := object.Key("minimumYUV") ok.Integer(v.MinimumYUV) } return nil } func awsRestjson1_serializeDocumentCmafAdditionalManifest(v *types.CmafAdditionalManifest, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.ManifestNameModifier != nil { ok := object.Key("manifestNameModifier") ok.String(*v.ManifestNameModifier) } if v.SelectedOutputs != nil { ok := object.Key("selectedOutputs") if err := awsRestjson1_serializeDocument__listOf__stringMin1(v.SelectedOutputs, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentCmafEncryptionSettings(v *types.CmafEncryptionSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.ConstantInitializationVector != nil { ok := object.Key("constantInitializationVector") ok.String(*v.ConstantInitializationVector) } if len(v.EncryptionMethod) > 0 { ok := object.Key("encryptionMethod") ok.String(string(v.EncryptionMethod)) } if len(v.InitializationVectorInManifest) > 0 { ok := object.Key("initializationVectorInManifest") ok.String(string(v.InitializationVectorInManifest)) } if v.SpekeKeyProvider != nil { ok := object.Key("spekeKeyProvider") if err := awsRestjson1_serializeDocumentSpekeKeyProviderCmaf(v.SpekeKeyProvider, ok); err != nil { return err } } if v.StaticKeyProvider != nil { ok := object.Key("staticKeyProvider") if err := awsRestjson1_serializeDocumentStaticKeyProvider(v.StaticKeyProvider, ok); err != nil { return err } } if len(v.Type) > 0 { ok := object.Key("type") ok.String(string(v.Type)) } return nil } func awsRestjson1_serializeDocumentCmafGroupSettings(v *types.CmafGroupSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AdditionalManifests != nil { ok := object.Key("additionalManifests") if err := awsRestjson1_serializeDocument__listOfCmafAdditionalManifest(v.AdditionalManifests, ok); err != nil { return err } } if v.BaseUrl != nil { ok := object.Key("baseUrl") ok.String(*v.BaseUrl) } if len(v.ClientCache) > 0 { ok := object.Key("clientCache") ok.String(string(v.ClientCache)) } if len(v.CodecSpecification) > 0 { ok := object.Key("codecSpecification") ok.String(string(v.CodecSpecification)) } if len(v.DashManifestStyle) > 0 { ok := object.Key("dashManifestStyle") ok.String(string(v.DashManifestStyle)) } if v.Destination != nil { ok := object.Key("destination") ok.String(*v.Destination) } if v.DestinationSettings != nil { ok := object.Key("destinationSettings") if err := awsRestjson1_serializeDocumentDestinationSettings(v.DestinationSettings, ok); err != nil { return err } } if v.Encryption != nil { ok := object.Key("encryption") if err := awsRestjson1_serializeDocumentCmafEncryptionSettings(v.Encryption, ok); err != nil { return err } } if v.FragmentLength != 0 { ok := object.Key("fragmentLength") ok.Integer(v.FragmentLength) } if len(v.ImageBasedTrickPlay) > 0 { ok := object.Key("imageBasedTrickPlay") ok.String(string(v.ImageBasedTrickPlay)) } if v.ImageBasedTrickPlaySettings != nil { ok := object.Key("imageBasedTrickPlaySettings") if err := awsRestjson1_serializeDocumentCmafImageBasedTrickPlaySettings(v.ImageBasedTrickPlaySettings, ok); err != nil { return err } } if len(v.ManifestCompression) > 0 { ok := object.Key("manifestCompression") ok.String(string(v.ManifestCompression)) } if len(v.ManifestDurationFormat) > 0 { ok := object.Key("manifestDurationFormat") ok.String(string(v.ManifestDurationFormat)) } if v.MinBufferTime != 0 { ok := object.Key("minBufferTime") ok.Integer(v.MinBufferTime) } if v.MinFinalSegmentLength != 0 { ok := object.Key("minFinalSegmentLength") switch { case math.IsNaN(v.MinFinalSegmentLength): ok.String("NaN") case math.IsInf(v.MinFinalSegmentLength, 1): ok.String("Infinity") case math.IsInf(v.MinFinalSegmentLength, -1): ok.String("-Infinity") default: ok.Double(v.MinFinalSegmentLength) } } if len(v.MpdManifestBandwidthType) > 0 { ok := object.Key("mpdManifestBandwidthType") ok.String(string(v.MpdManifestBandwidthType)) } if len(v.MpdProfile) > 0 { ok := object.Key("mpdProfile") ok.String(string(v.MpdProfile)) } if len(v.PtsOffsetHandlingForBFrames) > 0 { ok := object.Key("ptsOffsetHandlingForBFrames") ok.String(string(v.PtsOffsetHandlingForBFrames)) } if len(v.SegmentControl) > 0 { ok := object.Key("segmentControl") ok.String(string(v.SegmentControl)) } if v.SegmentLength != 0 { ok := object.Key("segmentLength") ok.Integer(v.SegmentLength) } if len(v.SegmentLengthControl) > 0 { ok := object.Key("segmentLengthControl") ok.String(string(v.SegmentLengthControl)) } if len(v.StreamInfResolution) > 0 { ok := object.Key("streamInfResolution") ok.String(string(v.StreamInfResolution)) } if len(v.TargetDurationCompatibilityMode) > 0 { ok := object.Key("targetDurationCompatibilityMode") ok.String(string(v.TargetDurationCompatibilityMode)) } if len(v.VideoCompositionOffsets) > 0 { ok := object.Key("videoCompositionOffsets") ok.String(string(v.VideoCompositionOffsets)) } if len(v.WriteDashManifest) > 0 { ok := object.Key("writeDashManifest") ok.String(string(v.WriteDashManifest)) } if len(v.WriteHlsManifest) > 0 { ok := object.Key("writeHlsManifest") ok.String(string(v.WriteHlsManifest)) } if len(v.WriteSegmentTimelineInRepresentation) > 0 { ok := object.Key("writeSegmentTimelineInRepresentation") ok.String(string(v.WriteSegmentTimelineInRepresentation)) } return nil } func awsRestjson1_serializeDocumentCmafImageBasedTrickPlaySettings(v *types.CmafImageBasedTrickPlaySettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.IntervalCadence) > 0 { ok := object.Key("intervalCadence") ok.String(string(v.IntervalCadence)) } if v.ThumbnailHeight != 0 { ok := object.Key("thumbnailHeight") ok.Integer(v.ThumbnailHeight) } if v.ThumbnailInterval != 0 { ok := object.Key("thumbnailInterval") switch { case math.IsNaN(v.ThumbnailInterval): ok.String("NaN") case math.IsInf(v.ThumbnailInterval, 1): ok.String("Infinity") case math.IsInf(v.ThumbnailInterval, -1): ok.String("-Infinity") default: ok.Double(v.ThumbnailInterval) } } if v.ThumbnailWidth != 0 { ok := object.Key("thumbnailWidth") ok.Integer(v.ThumbnailWidth) } if v.TileHeight != 0 { ok := object.Key("tileHeight") ok.Integer(v.TileHeight) } if v.TileWidth != 0 { ok := object.Key("tileWidth") ok.Integer(v.TileWidth) } return nil } func awsRestjson1_serializeDocumentCmfcSettings(v *types.CmfcSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.AudioDuration) > 0 { ok := object.Key("audioDuration") ok.String(string(v.AudioDuration)) } if v.AudioGroupId != nil { ok := object.Key("audioGroupId") ok.String(*v.AudioGroupId) } if v.AudioRenditionSets != nil { ok := object.Key("audioRenditionSets") ok.String(*v.AudioRenditionSets) } if len(v.AudioTrackType) > 0 { ok := object.Key("audioTrackType") ok.String(string(v.AudioTrackType)) } if len(v.DescriptiveVideoServiceFlag) > 0 { ok := object.Key("descriptiveVideoServiceFlag") ok.String(string(v.DescriptiveVideoServiceFlag)) } if len(v.IFrameOnlyManifest) > 0 { ok := object.Key("iFrameOnlyManifest") ok.String(string(v.IFrameOnlyManifest)) } if len(v.KlvMetadata) > 0 { ok := object.Key("klvMetadata") ok.String(string(v.KlvMetadata)) } if len(v.ManifestMetadataSignaling) > 0 { ok := object.Key("manifestMetadataSignaling") ok.String(string(v.ManifestMetadataSignaling)) } if len(v.Scte35Esam) > 0 { ok := object.Key("scte35Esam") ok.String(string(v.Scte35Esam)) } if len(v.Scte35Source) > 0 { ok := object.Key("scte35Source") ok.String(string(v.Scte35Source)) } if len(v.TimedMetadata) > 0 { ok := object.Key("timedMetadata") ok.String(string(v.TimedMetadata)) } if len(v.TimedMetadataBoxVersion) > 0 { ok := object.Key("timedMetadataBoxVersion") ok.String(string(v.TimedMetadataBoxVersion)) } if v.TimedMetadataSchemeIdUri != nil { ok := object.Key("timedMetadataSchemeIdUri") ok.String(*v.TimedMetadataSchemeIdUri) } if v.TimedMetadataValue != nil { ok := object.Key("timedMetadataValue") ok.String(*v.TimedMetadataValue) } return nil } func awsRestjson1_serializeDocumentColorCorrector(v *types.ColorCorrector, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Brightness != 0 { ok := object.Key("brightness") ok.Integer(v.Brightness) } if v.ClipLimits != nil { ok := object.Key("clipLimits") if err := awsRestjson1_serializeDocumentClipLimits(v.ClipLimits, ok); err != nil { return err } } if len(v.ColorSpaceConversion) > 0 { ok := object.Key("colorSpaceConversion") ok.String(string(v.ColorSpaceConversion)) } if v.Contrast != 0 { ok := object.Key("contrast") ok.Integer(v.Contrast) } if v.Hdr10Metadata != nil { ok := object.Key("hdr10Metadata") if err := awsRestjson1_serializeDocumentHdr10Metadata(v.Hdr10Metadata, ok); err != nil { return err } } if len(v.HdrToSdrToneMapper) > 0 { ok := object.Key("hdrToSdrToneMapper") ok.String(string(v.HdrToSdrToneMapper)) } if v.Hue != 0 { ok := object.Key("hue") ok.Integer(v.Hue) } if len(v.SampleRangeConversion) > 0 { ok := object.Key("sampleRangeConversion") ok.String(string(v.SampleRangeConversion)) } if v.Saturation != 0 { ok := object.Key("saturation") ok.Integer(v.Saturation) } if v.SdrReferenceWhiteLevel != 0 { ok := object.Key("sdrReferenceWhiteLevel") ok.Integer(v.SdrReferenceWhiteLevel) } return nil } func awsRestjson1_serializeDocumentContainerSettings(v *types.ContainerSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.CmfcSettings != nil { ok := object.Key("cmfcSettings") if err := awsRestjson1_serializeDocumentCmfcSettings(v.CmfcSettings, ok); err != nil { return err } } if len(v.Container) > 0 { ok := object.Key("container") ok.String(string(v.Container)) } if v.F4vSettings != nil { ok := object.Key("f4vSettings") if err := awsRestjson1_serializeDocumentF4vSettings(v.F4vSettings, ok); err != nil { return err } } if v.M2tsSettings != nil { ok := object.Key("m2tsSettings") if err := awsRestjson1_serializeDocumentM2tsSettings(v.M2tsSettings, ok); err != nil { return err } } if v.M3u8Settings != nil { ok := object.Key("m3u8Settings") if err := awsRestjson1_serializeDocumentM3u8Settings(v.M3u8Settings, ok); err != nil { return err } } if v.MovSettings != nil { ok := object.Key("movSettings") if err := awsRestjson1_serializeDocumentMovSettings(v.MovSettings, ok); err != nil { return err } } if v.Mp4Settings != nil { ok := object.Key("mp4Settings") if err := awsRestjson1_serializeDocumentMp4Settings(v.Mp4Settings, ok); err != nil { return err } } if v.MpdSettings != nil { ok := object.Key("mpdSettings") if err := awsRestjson1_serializeDocumentMpdSettings(v.MpdSettings, ok); err != nil { return err } } if v.MxfSettings != nil { ok := object.Key("mxfSettings") if err := awsRestjson1_serializeDocumentMxfSettings(v.MxfSettings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentDashAdditionalManifest(v *types.DashAdditionalManifest, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.ManifestNameModifier != nil { ok := object.Key("manifestNameModifier") ok.String(*v.ManifestNameModifier) } if v.SelectedOutputs != nil { ok := object.Key("selectedOutputs") if err := awsRestjson1_serializeDocument__listOf__stringMin1(v.SelectedOutputs, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentDashIsoEncryptionSettings(v *types.DashIsoEncryptionSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.PlaybackDeviceCompatibility) > 0 { ok := object.Key("playbackDeviceCompatibility") ok.String(string(v.PlaybackDeviceCompatibility)) } if v.SpekeKeyProvider != nil { ok := object.Key("spekeKeyProvider") if err := awsRestjson1_serializeDocumentSpekeKeyProvider(v.SpekeKeyProvider, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentDashIsoGroupSettings(v *types.DashIsoGroupSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AdditionalManifests != nil { ok := object.Key("additionalManifests") if err := awsRestjson1_serializeDocument__listOfDashAdditionalManifest(v.AdditionalManifests, ok); err != nil { return err } } if len(v.AudioChannelConfigSchemeIdUri) > 0 { ok := object.Key("audioChannelConfigSchemeIdUri") ok.String(string(v.AudioChannelConfigSchemeIdUri)) } if v.BaseUrl != nil { ok := object.Key("baseUrl") ok.String(*v.BaseUrl) } if len(v.DashManifestStyle) > 0 { ok := object.Key("dashManifestStyle") ok.String(string(v.DashManifestStyle)) } if v.Destination != nil { ok := object.Key("destination") ok.String(*v.Destination) } if v.DestinationSettings != nil { ok := object.Key("destinationSettings") if err := awsRestjson1_serializeDocumentDestinationSettings(v.DestinationSettings, ok); err != nil { return err } } if v.Encryption != nil { ok := object.Key("encryption") if err := awsRestjson1_serializeDocumentDashIsoEncryptionSettings(v.Encryption, ok); err != nil { return err } } if v.FragmentLength != 0 { ok := object.Key("fragmentLength") ok.Integer(v.FragmentLength) } if len(v.HbbtvCompliance) > 0 { ok := object.Key("hbbtvCompliance") ok.String(string(v.HbbtvCompliance)) } if len(v.ImageBasedTrickPlay) > 0 { ok := object.Key("imageBasedTrickPlay") ok.String(string(v.ImageBasedTrickPlay)) } if v.ImageBasedTrickPlaySettings != nil { ok := object.Key("imageBasedTrickPlaySettings") if err := awsRestjson1_serializeDocumentDashIsoImageBasedTrickPlaySettings(v.ImageBasedTrickPlaySettings, ok); err != nil { return err } } if v.MinBufferTime != 0 { ok := object.Key("minBufferTime") ok.Integer(v.MinBufferTime) } if v.MinFinalSegmentLength != 0 { ok := object.Key("minFinalSegmentLength") switch { case math.IsNaN(v.MinFinalSegmentLength): ok.String("NaN") case math.IsInf(v.MinFinalSegmentLength, 1): ok.String("Infinity") case math.IsInf(v.MinFinalSegmentLength, -1): ok.String("-Infinity") default: ok.Double(v.MinFinalSegmentLength) } } if len(v.MpdManifestBandwidthType) > 0 { ok := object.Key("mpdManifestBandwidthType") ok.String(string(v.MpdManifestBandwidthType)) } if len(v.MpdProfile) > 0 { ok := object.Key("mpdProfile") ok.String(string(v.MpdProfile)) } if len(v.PtsOffsetHandlingForBFrames) > 0 { ok := object.Key("ptsOffsetHandlingForBFrames") ok.String(string(v.PtsOffsetHandlingForBFrames)) } if len(v.SegmentControl) > 0 { ok := object.Key("segmentControl") ok.String(string(v.SegmentControl)) } if v.SegmentLength != 0 { ok := object.Key("segmentLength") ok.Integer(v.SegmentLength) } if len(v.SegmentLengthControl) > 0 { ok := object.Key("segmentLengthControl") ok.String(string(v.SegmentLengthControl)) } if len(v.VideoCompositionOffsets) > 0 { ok := object.Key("videoCompositionOffsets") ok.String(string(v.VideoCompositionOffsets)) } if len(v.WriteSegmentTimelineInRepresentation) > 0 { ok := object.Key("writeSegmentTimelineInRepresentation") ok.String(string(v.WriteSegmentTimelineInRepresentation)) } return nil } func awsRestjson1_serializeDocumentDashIsoImageBasedTrickPlaySettings(v *types.DashIsoImageBasedTrickPlaySettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.IntervalCadence) > 0 { ok := object.Key("intervalCadence") ok.String(string(v.IntervalCadence)) } if v.ThumbnailHeight != 0 { ok := object.Key("thumbnailHeight") ok.Integer(v.ThumbnailHeight) } if v.ThumbnailInterval != 0 { ok := object.Key("thumbnailInterval") switch { case math.IsNaN(v.ThumbnailInterval): ok.String("NaN") case math.IsInf(v.ThumbnailInterval, 1): ok.String("Infinity") case math.IsInf(v.ThumbnailInterval, -1): ok.String("-Infinity") default: ok.Double(v.ThumbnailInterval) } } if v.ThumbnailWidth != 0 { ok := object.Key("thumbnailWidth") ok.Integer(v.ThumbnailWidth) } if v.TileHeight != 0 { ok := object.Key("tileHeight") ok.Integer(v.TileHeight) } if v.TileWidth != 0 { ok := object.Key("tileWidth") ok.Integer(v.TileWidth) } return nil } func awsRestjson1_serializeDocumentDeinterlacer(v *types.Deinterlacer, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.Algorithm) > 0 { ok := object.Key("algorithm") ok.String(string(v.Algorithm)) } if len(v.Control) > 0 { ok := object.Key("control") ok.String(string(v.Control)) } if len(v.Mode) > 0 { ok := object.Key("mode") ok.String(string(v.Mode)) } return nil } func awsRestjson1_serializeDocumentDestinationSettings(v *types.DestinationSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.S3Settings != nil { ok := object.Key("s3Settings") if err := awsRestjson1_serializeDocumentS3DestinationSettings(v.S3Settings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentDolbyVision(v *types.DolbyVision, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.L6Metadata != nil { ok := object.Key("l6Metadata") if err := awsRestjson1_serializeDocumentDolbyVisionLevel6Metadata(v.L6Metadata, ok); err != nil { return err } } if len(v.L6Mode) > 0 { ok := object.Key("l6Mode") ok.String(string(v.L6Mode)) } if len(v.Mapping) > 0 { ok := object.Key("mapping") ok.String(string(v.Mapping)) } if len(v.Profile) > 0 { ok := object.Key("profile") ok.String(string(v.Profile)) } return nil } func awsRestjson1_serializeDocumentDolbyVisionLevel6Metadata(v *types.DolbyVisionLevel6Metadata, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.MaxCll != 0 { ok := object.Key("maxCll") ok.Integer(v.MaxCll) } if v.MaxFall != 0 { ok := object.Key("maxFall") ok.Integer(v.MaxFall) } return nil } func awsRestjson1_serializeDocumentDvbNitSettings(v *types.DvbNitSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.NetworkId != 0 { ok := object.Key("networkId") ok.Integer(v.NetworkId) } if v.NetworkName != nil { ok := object.Key("networkName") ok.String(*v.NetworkName) } if v.NitInterval != 0 { ok := object.Key("nitInterval") ok.Integer(v.NitInterval) } return nil } func awsRestjson1_serializeDocumentDvbSdtSettings(v *types.DvbSdtSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.OutputSdt) > 0 { ok := object.Key("outputSdt") ok.String(string(v.OutputSdt)) } if v.SdtInterval != 0 { ok := object.Key("sdtInterval") ok.Integer(v.SdtInterval) } if v.ServiceName != nil { ok := object.Key("serviceName") ok.String(*v.ServiceName) } if v.ServiceProviderName != nil { ok := object.Key("serviceProviderName") ok.String(*v.ServiceProviderName) } return nil } func awsRestjson1_serializeDocumentDvbSubDestinationSettings(v *types.DvbSubDestinationSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.Alignment) > 0 { ok := object.Key("alignment") ok.String(string(v.Alignment)) } if len(v.ApplyFontColor) > 0 { ok := object.Key("applyFontColor") ok.String(string(v.ApplyFontColor)) } if len(v.BackgroundColor) > 0 { ok := object.Key("backgroundColor") ok.String(string(v.BackgroundColor)) } if v.BackgroundOpacity != 0 { ok := object.Key("backgroundOpacity") ok.Integer(v.BackgroundOpacity) } if len(v.DdsHandling) > 0 { ok := object.Key("ddsHandling") ok.String(string(v.DdsHandling)) } if v.DdsXCoordinate != 0 { ok := object.Key("ddsXCoordinate") ok.Integer(v.DdsXCoordinate) } if v.DdsYCoordinate != 0 { ok := object.Key("ddsYCoordinate") ok.Integer(v.DdsYCoordinate) } if len(v.FallbackFont) > 0 { ok := object.Key("fallbackFont") ok.String(string(v.FallbackFont)) } if len(v.FontColor) > 0 { ok := object.Key("fontColor") ok.String(string(v.FontColor)) } if v.FontOpacity != 0 { ok := object.Key("fontOpacity") ok.Integer(v.FontOpacity) } if v.FontResolution != 0 { ok := object.Key("fontResolution") ok.Integer(v.FontResolution) } if len(v.FontScript) > 0 { ok := object.Key("fontScript") ok.String(string(v.FontScript)) } if v.FontSize != 0 { ok := object.Key("fontSize") ok.Integer(v.FontSize) } if v.Height != 0 { ok := object.Key("height") ok.Integer(v.Height) } if v.HexFontColor != nil { ok := object.Key("hexFontColor") ok.String(*v.HexFontColor) } if len(v.OutlineColor) > 0 { ok := object.Key("outlineColor") ok.String(string(v.OutlineColor)) } if v.OutlineSize != 0 { ok := object.Key("outlineSize") ok.Integer(v.OutlineSize) } if len(v.ShadowColor) > 0 { ok := object.Key("shadowColor") ok.String(string(v.ShadowColor)) } if v.ShadowOpacity != 0 { ok := object.Key("shadowOpacity") ok.Integer(v.ShadowOpacity) } if v.ShadowXOffset != 0 { ok := object.Key("shadowXOffset") ok.Integer(v.ShadowXOffset) } if v.ShadowYOffset != 0 { ok := object.Key("shadowYOffset") ok.Integer(v.ShadowYOffset) } if len(v.StylePassthrough) > 0 { ok := object.Key("stylePassthrough") ok.String(string(v.StylePassthrough)) } if len(v.SubtitlingType) > 0 { ok := object.Key("subtitlingType") ok.String(string(v.SubtitlingType)) } if len(v.TeletextSpacing) > 0 { ok := object.Key("teletextSpacing") ok.String(string(v.TeletextSpacing)) } if v.Width != 0 { ok := object.Key("width") ok.Integer(v.Width) } if v.XPosition != 0 { ok := object.Key("xPosition") ok.Integer(v.XPosition) } if v.YPosition != 0 { ok := object.Key("yPosition") ok.Integer(v.YPosition) } return nil } func awsRestjson1_serializeDocumentDvbSubSourceSettings(v *types.DvbSubSourceSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Pid != 0 { ok := object.Key("pid") ok.Integer(v.Pid) } return nil } func awsRestjson1_serializeDocumentDvbTdtSettings(v *types.DvbTdtSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.TdtInterval != 0 { ok := object.Key("tdtInterval") ok.Integer(v.TdtInterval) } return nil } func awsRestjson1_serializeDocumentEac3AtmosSettings(v *types.Eac3AtmosSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Bitrate != 0 { ok := object.Key("bitrate") ok.Integer(v.Bitrate) } if len(v.BitstreamMode) > 0 { ok := object.Key("bitstreamMode") ok.String(string(v.BitstreamMode)) } if len(v.CodingMode) > 0 { ok := object.Key("codingMode") ok.String(string(v.CodingMode)) } if len(v.DialogueIntelligence) > 0 { ok := object.Key("dialogueIntelligence") ok.String(string(v.DialogueIntelligence)) } if len(v.DownmixControl) > 0 { ok := object.Key("downmixControl") ok.String(string(v.DownmixControl)) } if len(v.DynamicRangeCompressionLine) > 0 { ok := object.Key("dynamicRangeCompressionLine") ok.String(string(v.DynamicRangeCompressionLine)) } if len(v.DynamicRangeCompressionRf) > 0 { ok := object.Key("dynamicRangeCompressionRf") ok.String(string(v.DynamicRangeCompressionRf)) } if len(v.DynamicRangeControl) > 0 { ok := object.Key("dynamicRangeControl") ok.String(string(v.DynamicRangeControl)) } if v.LoRoCenterMixLevel != 0 { ok := object.Key("loRoCenterMixLevel") switch { case math.IsNaN(v.LoRoCenterMixLevel): ok.String("NaN") case math.IsInf(v.LoRoCenterMixLevel, 1): ok.String("Infinity") case math.IsInf(v.LoRoCenterMixLevel, -1): ok.String("-Infinity") default: ok.Double(v.LoRoCenterMixLevel) } } if v.LoRoSurroundMixLevel != 0 { ok := object.Key("loRoSurroundMixLevel") switch { case math.IsNaN(v.LoRoSurroundMixLevel): ok.String("NaN") case math.IsInf(v.LoRoSurroundMixLevel, 1): ok.String("Infinity") case math.IsInf(v.LoRoSurroundMixLevel, -1): ok.String("-Infinity") default: ok.Double(v.LoRoSurroundMixLevel) } } if v.LtRtCenterMixLevel != 0 { ok := object.Key("ltRtCenterMixLevel") switch { case math.IsNaN(v.LtRtCenterMixLevel): ok.String("NaN") case math.IsInf(v.LtRtCenterMixLevel, 1): ok.String("Infinity") case math.IsInf(v.LtRtCenterMixLevel, -1): ok.String("-Infinity") default: ok.Double(v.LtRtCenterMixLevel) } } if v.LtRtSurroundMixLevel != 0 { ok := object.Key("ltRtSurroundMixLevel") switch { case math.IsNaN(v.LtRtSurroundMixLevel): ok.String("NaN") case math.IsInf(v.LtRtSurroundMixLevel, 1): ok.String("Infinity") case math.IsInf(v.LtRtSurroundMixLevel, -1): ok.String("-Infinity") default: ok.Double(v.LtRtSurroundMixLevel) } } if len(v.MeteringMode) > 0 { ok := object.Key("meteringMode") ok.String(string(v.MeteringMode)) } if v.SampleRate != 0 { ok := object.Key("sampleRate") ok.Integer(v.SampleRate) } if v.SpeechThreshold != 0 { ok := object.Key("speechThreshold") ok.Integer(v.SpeechThreshold) } if len(v.StereoDownmix) > 0 { ok := object.Key("stereoDownmix") ok.String(string(v.StereoDownmix)) } if len(v.SurroundExMode) > 0 { ok := object.Key("surroundExMode") ok.String(string(v.SurroundExMode)) } return nil } func awsRestjson1_serializeDocumentEac3Settings(v *types.Eac3Settings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.AttenuationControl) > 0 { ok := object.Key("attenuationControl") ok.String(string(v.AttenuationControl)) } if v.Bitrate != 0 { ok := object.Key("bitrate") ok.Integer(v.Bitrate) } if len(v.BitstreamMode) > 0 { ok := object.Key("bitstreamMode") ok.String(string(v.BitstreamMode)) } if len(v.CodingMode) > 0 { ok := object.Key("codingMode") ok.String(string(v.CodingMode)) } if len(v.DcFilter) > 0 { ok := object.Key("dcFilter") ok.String(string(v.DcFilter)) } if v.Dialnorm != 0 { ok := object.Key("dialnorm") ok.Integer(v.Dialnorm) } if len(v.DynamicRangeCompressionLine) > 0 { ok := object.Key("dynamicRangeCompressionLine") ok.String(string(v.DynamicRangeCompressionLine)) } if len(v.DynamicRangeCompressionRf) > 0 { ok := object.Key("dynamicRangeCompressionRf") ok.String(string(v.DynamicRangeCompressionRf)) } if len(v.LfeControl) > 0 { ok := object.Key("lfeControl") ok.String(string(v.LfeControl)) } if len(v.LfeFilter) > 0 { ok := object.Key("lfeFilter") ok.String(string(v.LfeFilter)) } if v.LoRoCenterMixLevel != 0 { ok := object.Key("loRoCenterMixLevel") switch { case math.IsNaN(v.LoRoCenterMixLevel): ok.String("NaN") case math.IsInf(v.LoRoCenterMixLevel, 1): ok.String("Infinity") case math.IsInf(v.LoRoCenterMixLevel, -1): ok.String("-Infinity") default: ok.Double(v.LoRoCenterMixLevel) } } if v.LoRoSurroundMixLevel != 0 { ok := object.Key("loRoSurroundMixLevel") switch { case math.IsNaN(v.LoRoSurroundMixLevel): ok.String("NaN") case math.IsInf(v.LoRoSurroundMixLevel, 1): ok.String("Infinity") case math.IsInf(v.LoRoSurroundMixLevel, -1): ok.String("-Infinity") default: ok.Double(v.LoRoSurroundMixLevel) } } if v.LtRtCenterMixLevel != 0 { ok := object.Key("ltRtCenterMixLevel") switch { case math.IsNaN(v.LtRtCenterMixLevel): ok.String("NaN") case math.IsInf(v.LtRtCenterMixLevel, 1): ok.String("Infinity") case math.IsInf(v.LtRtCenterMixLevel, -1): ok.String("-Infinity") default: ok.Double(v.LtRtCenterMixLevel) } } if v.LtRtSurroundMixLevel != 0 { ok := object.Key("ltRtSurroundMixLevel") switch { case math.IsNaN(v.LtRtSurroundMixLevel): ok.String("NaN") case math.IsInf(v.LtRtSurroundMixLevel, 1): ok.String("Infinity") case math.IsInf(v.LtRtSurroundMixLevel, -1): ok.String("-Infinity") default: ok.Double(v.LtRtSurroundMixLevel) } } if len(v.MetadataControl) > 0 { ok := object.Key("metadataControl") ok.String(string(v.MetadataControl)) } if len(v.PassthroughControl) > 0 { ok := object.Key("passthroughControl") ok.String(string(v.PassthroughControl)) } if len(v.PhaseControl) > 0 { ok := object.Key("phaseControl") ok.String(string(v.PhaseControl)) } if v.SampleRate != 0 { ok := object.Key("sampleRate") ok.Integer(v.SampleRate) } if len(v.StereoDownmix) > 0 { ok := object.Key("stereoDownmix") ok.String(string(v.StereoDownmix)) } if len(v.SurroundExMode) > 0 { ok := object.Key("surroundExMode") ok.String(string(v.SurroundExMode)) } if len(v.SurroundMode) > 0 { ok := object.Key("surroundMode") ok.String(string(v.SurroundMode)) } return nil } func awsRestjson1_serializeDocumentEmbeddedDestinationSettings(v *types.EmbeddedDestinationSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Destination608ChannelNumber != 0 { ok := object.Key("destination608ChannelNumber") ok.Integer(v.Destination608ChannelNumber) } if v.Destination708ServiceNumber != 0 { ok := object.Key("destination708ServiceNumber") ok.Integer(v.Destination708ServiceNumber) } return nil } func awsRestjson1_serializeDocumentEmbeddedSourceSettings(v *types.EmbeddedSourceSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.Convert608To708) > 0 { ok := object.Key("convert608To708") ok.String(string(v.Convert608To708)) } if v.Source608ChannelNumber != 0 { ok := object.Key("source608ChannelNumber") ok.Integer(v.Source608ChannelNumber) } if v.Source608TrackNumber != 0 { ok := object.Key("source608TrackNumber") ok.Integer(v.Source608TrackNumber) } if len(v.TerminateCaptions) > 0 { ok := object.Key("terminateCaptions") ok.String(string(v.TerminateCaptions)) } return nil } func awsRestjson1_serializeDocumentEsamManifestConfirmConditionNotification(v *types.EsamManifestConfirmConditionNotification, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.MccXml != nil { ok := object.Key("mccXml") ok.String(*v.MccXml) } return nil } func awsRestjson1_serializeDocumentEsamSettings(v *types.EsamSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.ManifestConfirmConditionNotification != nil { ok := object.Key("manifestConfirmConditionNotification") if err := awsRestjson1_serializeDocumentEsamManifestConfirmConditionNotification(v.ManifestConfirmConditionNotification, ok); err != nil { return err } } if v.ResponseSignalPreroll != 0 { ok := object.Key("responseSignalPreroll") ok.Integer(v.ResponseSignalPreroll) } if v.SignalProcessingNotification != nil { ok := object.Key("signalProcessingNotification") if err := awsRestjson1_serializeDocumentEsamSignalProcessingNotification(v.SignalProcessingNotification, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentEsamSignalProcessingNotification(v *types.EsamSignalProcessingNotification, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.SccXml != nil { ok := object.Key("sccXml") ok.String(*v.SccXml) } return nil } func awsRestjson1_serializeDocumentExtendedDataServices(v *types.ExtendedDataServices, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.CopyProtectionAction) > 0 { ok := object.Key("copyProtectionAction") ok.String(string(v.CopyProtectionAction)) } if len(v.VchipAction) > 0 { ok := object.Key("vchipAction") ok.String(string(v.VchipAction)) } return nil } func awsRestjson1_serializeDocumentF4vSettings(v *types.F4vSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.MoovPlacement) > 0 { ok := object.Key("moovPlacement") ok.String(string(v.MoovPlacement)) } return nil } func awsRestjson1_serializeDocumentFileGroupSettings(v *types.FileGroupSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Destination != nil { ok := object.Key("destination") ok.String(*v.Destination) } if v.DestinationSettings != nil { ok := object.Key("destinationSettings") if err := awsRestjson1_serializeDocumentDestinationSettings(v.DestinationSettings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentFileSourceSettings(v *types.FileSourceSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.Convert608To708) > 0 { ok := object.Key("convert608To708") ok.String(string(v.Convert608To708)) } if len(v.ConvertPaintToPop) > 0 { ok := object.Key("convertPaintToPop") ok.String(string(v.ConvertPaintToPop)) } if v.Framerate != nil { ok := object.Key("framerate") if err := awsRestjson1_serializeDocumentCaptionSourceFramerate(v.Framerate, ok); err != nil { return err } } if v.SourceFile != nil { ok := object.Key("sourceFile") ok.String(*v.SourceFile) } if v.TimeDelta != 0 { ok := object.Key("timeDelta") ok.Integer(v.TimeDelta) } if len(v.TimeDeltaUnits) > 0 { ok := object.Key("timeDeltaUnits") ok.String(string(v.TimeDeltaUnits)) } return nil } func awsRestjson1_serializeDocumentForceIncludeRenditionSize(v *types.ForceIncludeRenditionSize, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Height != 0 { ok := object.Key("height") ok.Integer(v.Height) } if v.Width != 0 { ok := object.Key("width") ok.Integer(v.Width) } return nil } func awsRestjson1_serializeDocumentFrameCaptureSettings(v *types.FrameCaptureSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.FramerateDenominator != 0 { ok := object.Key("framerateDenominator") ok.Integer(v.FramerateDenominator) } if v.FramerateNumerator != 0 { ok := object.Key("framerateNumerator") ok.Integer(v.FramerateNumerator) } if v.MaxCaptures != 0 { ok := object.Key("maxCaptures") ok.Integer(v.MaxCaptures) } if v.Quality != 0 { ok := object.Key("quality") ok.Integer(v.Quality) } return nil } func awsRestjson1_serializeDocumentH264QvbrSettings(v *types.H264QvbrSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.MaxAverageBitrate != 0 { ok := object.Key("maxAverageBitrate") ok.Integer(v.MaxAverageBitrate) } if v.QvbrQualityLevel != 0 { ok := object.Key("qvbrQualityLevel") ok.Integer(v.QvbrQualityLevel) } if v.QvbrQualityLevelFineTune != 0 { ok := object.Key("qvbrQualityLevelFineTune") switch { case math.IsNaN(v.QvbrQualityLevelFineTune): ok.String("NaN") case math.IsInf(v.QvbrQualityLevelFineTune, 1): ok.String("Infinity") case math.IsInf(v.QvbrQualityLevelFineTune, -1): ok.String("-Infinity") default: ok.Double(v.QvbrQualityLevelFineTune) } } return nil } func awsRestjson1_serializeDocumentH264Settings(v *types.H264Settings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.AdaptiveQuantization) > 0 { ok := object.Key("adaptiveQuantization") ok.String(string(v.AdaptiveQuantization)) } if v.BandwidthReductionFilter != nil { ok := object.Key("bandwidthReductionFilter") if err := awsRestjson1_serializeDocumentBandwidthReductionFilter(v.BandwidthReductionFilter, ok); err != nil { return err } } if v.Bitrate != 0 { ok := object.Key("bitrate") ok.Integer(v.Bitrate) } if len(v.CodecLevel) > 0 { ok := object.Key("codecLevel") ok.String(string(v.CodecLevel)) } if len(v.CodecProfile) > 0 { ok := object.Key("codecProfile") ok.String(string(v.CodecProfile)) } if len(v.DynamicSubGop) > 0 { ok := object.Key("dynamicSubGop") ok.String(string(v.DynamicSubGop)) } if len(v.EntropyEncoding) > 0 { ok := object.Key("entropyEncoding") ok.String(string(v.EntropyEncoding)) } if len(v.FieldEncoding) > 0 { ok := object.Key("fieldEncoding") ok.String(string(v.FieldEncoding)) } if len(v.FlickerAdaptiveQuantization) > 0 { ok := object.Key("flickerAdaptiveQuantization") ok.String(string(v.FlickerAdaptiveQuantization)) } if len(v.FramerateControl) > 0 { ok := object.Key("framerateControl") ok.String(string(v.FramerateControl)) } if len(v.FramerateConversionAlgorithm) > 0 { ok := object.Key("framerateConversionAlgorithm") ok.String(string(v.FramerateConversionAlgorithm)) } if v.FramerateDenominator != 0 { ok := object.Key("framerateDenominator") ok.Integer(v.FramerateDenominator) } if v.FramerateNumerator != 0 { ok := object.Key("framerateNumerator") ok.Integer(v.FramerateNumerator) } if len(v.GopBReference) > 0 { ok := object.Key("gopBReference") ok.String(string(v.GopBReference)) } if v.GopClosedCadence != 0 { ok := object.Key("gopClosedCadence") ok.Integer(v.GopClosedCadence) } if v.GopSize != 0 { ok := object.Key("gopSize") switch { case math.IsNaN(v.GopSize): ok.String("NaN") case math.IsInf(v.GopSize, 1): ok.String("Infinity") case math.IsInf(v.GopSize, -1): ok.String("-Infinity") default: ok.Double(v.GopSize) } } if len(v.GopSizeUnits) > 0 { ok := object.Key("gopSizeUnits") ok.String(string(v.GopSizeUnits)) } if v.HrdBufferFinalFillPercentage != 0 { ok := object.Key("hrdBufferFinalFillPercentage") ok.Integer(v.HrdBufferFinalFillPercentage) } if v.HrdBufferInitialFillPercentage != 0 { ok := object.Key("hrdBufferInitialFillPercentage") ok.Integer(v.HrdBufferInitialFillPercentage) } if v.HrdBufferSize != 0 { ok := object.Key("hrdBufferSize") ok.Integer(v.HrdBufferSize) } if len(v.InterlaceMode) > 0 { ok := object.Key("interlaceMode") ok.String(string(v.InterlaceMode)) } if v.MaxBitrate != 0 { ok := object.Key("maxBitrate") ok.Integer(v.MaxBitrate) } if v.MinIInterval != 0 { ok := object.Key("minIInterval") ok.Integer(v.MinIInterval) } if v.NumberBFramesBetweenReferenceFrames != 0 { ok := object.Key("numberBFramesBetweenReferenceFrames") ok.Integer(v.NumberBFramesBetweenReferenceFrames) } if v.NumberReferenceFrames != 0 { ok := object.Key("numberReferenceFrames") ok.Integer(v.NumberReferenceFrames) } if len(v.ParControl) > 0 { ok := object.Key("parControl") ok.String(string(v.ParControl)) } if v.ParDenominator != 0 { ok := object.Key("parDenominator") ok.Integer(v.ParDenominator) } if v.ParNumerator != 0 { ok := object.Key("parNumerator") ok.Integer(v.ParNumerator) } if len(v.QualityTuningLevel) > 0 { ok := object.Key("qualityTuningLevel") ok.String(string(v.QualityTuningLevel)) } if v.QvbrSettings != nil { ok := object.Key("qvbrSettings") if err := awsRestjson1_serializeDocumentH264QvbrSettings(v.QvbrSettings, ok); err != nil { return err } } if len(v.RateControlMode) > 0 { ok := object.Key("rateControlMode") ok.String(string(v.RateControlMode)) } if len(v.RepeatPps) > 0 { ok := object.Key("repeatPps") ok.String(string(v.RepeatPps)) } if len(v.ScanTypeConversionMode) > 0 { ok := object.Key("scanTypeConversionMode") ok.String(string(v.ScanTypeConversionMode)) } if len(v.SceneChangeDetect) > 0 { ok := object.Key("sceneChangeDetect") ok.String(string(v.SceneChangeDetect)) } if v.Slices != 0 { ok := object.Key("slices") ok.Integer(v.Slices) } if len(v.SlowPal) > 0 { ok := object.Key("slowPal") ok.String(string(v.SlowPal)) } if v.Softness != 0 { ok := object.Key("softness") ok.Integer(v.Softness) } if len(v.SpatialAdaptiveQuantization) > 0 { ok := object.Key("spatialAdaptiveQuantization") ok.String(string(v.SpatialAdaptiveQuantization)) } if len(v.Syntax) > 0 { ok := object.Key("syntax") ok.String(string(v.Syntax)) } if len(v.Telecine) > 0 { ok := object.Key("telecine") ok.String(string(v.Telecine)) } if len(v.TemporalAdaptiveQuantization) > 0 { ok := object.Key("temporalAdaptiveQuantization") ok.String(string(v.TemporalAdaptiveQuantization)) } if len(v.UnregisteredSeiTimecode) > 0 { ok := object.Key("unregisteredSeiTimecode") ok.String(string(v.UnregisteredSeiTimecode)) } return nil } func awsRestjson1_serializeDocumentH265QvbrSettings(v *types.H265QvbrSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.MaxAverageBitrate != 0 { ok := object.Key("maxAverageBitrate") ok.Integer(v.MaxAverageBitrate) } if v.QvbrQualityLevel != 0 { ok := object.Key("qvbrQualityLevel") ok.Integer(v.QvbrQualityLevel) } if v.QvbrQualityLevelFineTune != 0 { ok := object.Key("qvbrQualityLevelFineTune") switch { case math.IsNaN(v.QvbrQualityLevelFineTune): ok.String("NaN") case math.IsInf(v.QvbrQualityLevelFineTune, 1): ok.String("Infinity") case math.IsInf(v.QvbrQualityLevelFineTune, -1): ok.String("-Infinity") default: ok.Double(v.QvbrQualityLevelFineTune) } } return nil } func awsRestjson1_serializeDocumentH265Settings(v *types.H265Settings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.AdaptiveQuantization) > 0 { ok := object.Key("adaptiveQuantization") ok.String(string(v.AdaptiveQuantization)) } if len(v.AlternateTransferFunctionSei) > 0 { ok := object.Key("alternateTransferFunctionSei") ok.String(string(v.AlternateTransferFunctionSei)) } if v.BandwidthReductionFilter != nil { ok := object.Key("bandwidthReductionFilter") if err := awsRestjson1_serializeDocumentBandwidthReductionFilter(v.BandwidthReductionFilter, ok); err != nil { return err } } if v.Bitrate != 0 { ok := object.Key("bitrate") ok.Integer(v.Bitrate) } if len(v.CodecLevel) > 0 { ok := object.Key("codecLevel") ok.String(string(v.CodecLevel)) } if len(v.CodecProfile) > 0 { ok := object.Key("codecProfile") ok.String(string(v.CodecProfile)) } if len(v.DynamicSubGop) > 0 { ok := object.Key("dynamicSubGop") ok.String(string(v.DynamicSubGop)) } if len(v.FlickerAdaptiveQuantization) > 0 { ok := object.Key("flickerAdaptiveQuantization") ok.String(string(v.FlickerAdaptiveQuantization)) } if len(v.FramerateControl) > 0 { ok := object.Key("framerateControl") ok.String(string(v.FramerateControl)) } if len(v.FramerateConversionAlgorithm) > 0 { ok := object.Key("framerateConversionAlgorithm") ok.String(string(v.FramerateConversionAlgorithm)) } if v.FramerateDenominator != 0 { ok := object.Key("framerateDenominator") ok.Integer(v.FramerateDenominator) } if v.FramerateNumerator != 0 { ok := object.Key("framerateNumerator") ok.Integer(v.FramerateNumerator) } if len(v.GopBReference) > 0 { ok := object.Key("gopBReference") ok.String(string(v.GopBReference)) } if v.GopClosedCadence != 0 { ok := object.Key("gopClosedCadence") ok.Integer(v.GopClosedCadence) } if v.GopSize != 0 { ok := object.Key("gopSize") switch { case math.IsNaN(v.GopSize): ok.String("NaN") case math.IsInf(v.GopSize, 1): ok.String("Infinity") case math.IsInf(v.GopSize, -1): ok.String("-Infinity") default: ok.Double(v.GopSize) } } if len(v.GopSizeUnits) > 0 { ok := object.Key("gopSizeUnits") ok.String(string(v.GopSizeUnits)) } if v.HrdBufferFinalFillPercentage != 0 { ok := object.Key("hrdBufferFinalFillPercentage") ok.Integer(v.HrdBufferFinalFillPercentage) } if v.HrdBufferInitialFillPercentage != 0 { ok := object.Key("hrdBufferInitialFillPercentage") ok.Integer(v.HrdBufferInitialFillPercentage) } if v.HrdBufferSize != 0 { ok := object.Key("hrdBufferSize") ok.Integer(v.HrdBufferSize) } if len(v.InterlaceMode) > 0 { ok := object.Key("interlaceMode") ok.String(string(v.InterlaceMode)) } if v.MaxBitrate != 0 { ok := object.Key("maxBitrate") ok.Integer(v.MaxBitrate) } if v.MinIInterval != 0 { ok := object.Key("minIInterval") ok.Integer(v.MinIInterval) } if v.NumberBFramesBetweenReferenceFrames != 0 { ok := object.Key("numberBFramesBetweenReferenceFrames") ok.Integer(v.NumberBFramesBetweenReferenceFrames) } if v.NumberReferenceFrames != 0 { ok := object.Key("numberReferenceFrames") ok.Integer(v.NumberReferenceFrames) } if len(v.ParControl) > 0 { ok := object.Key("parControl") ok.String(string(v.ParControl)) } if v.ParDenominator != 0 { ok := object.Key("parDenominator") ok.Integer(v.ParDenominator) } if v.ParNumerator != 0 { ok := object.Key("parNumerator") ok.Integer(v.ParNumerator) } if len(v.QualityTuningLevel) > 0 { ok := object.Key("qualityTuningLevel") ok.String(string(v.QualityTuningLevel)) } if v.QvbrSettings != nil { ok := object.Key("qvbrSettings") if err := awsRestjson1_serializeDocumentH265QvbrSettings(v.QvbrSettings, ok); err != nil { return err } } if len(v.RateControlMode) > 0 { ok := object.Key("rateControlMode") ok.String(string(v.RateControlMode)) } if len(v.SampleAdaptiveOffsetFilterMode) > 0 { ok := object.Key("sampleAdaptiveOffsetFilterMode") ok.String(string(v.SampleAdaptiveOffsetFilterMode)) } if len(v.ScanTypeConversionMode) > 0 { ok := object.Key("scanTypeConversionMode") ok.String(string(v.ScanTypeConversionMode)) } if len(v.SceneChangeDetect) > 0 { ok := object.Key("sceneChangeDetect") ok.String(string(v.SceneChangeDetect)) } if v.Slices != 0 { ok := object.Key("slices") ok.Integer(v.Slices) } if len(v.SlowPal) > 0 { ok := object.Key("slowPal") ok.String(string(v.SlowPal)) } if len(v.SpatialAdaptiveQuantization) > 0 { ok := object.Key("spatialAdaptiveQuantization") ok.String(string(v.SpatialAdaptiveQuantization)) } if len(v.Telecine) > 0 { ok := object.Key("telecine") ok.String(string(v.Telecine)) } if len(v.TemporalAdaptiveQuantization) > 0 { ok := object.Key("temporalAdaptiveQuantization") ok.String(string(v.TemporalAdaptiveQuantization)) } if len(v.TemporalIds) > 0 { ok := object.Key("temporalIds") ok.String(string(v.TemporalIds)) } if len(v.Tiles) > 0 { ok := object.Key("tiles") ok.String(string(v.Tiles)) } if len(v.UnregisteredSeiTimecode) > 0 { ok := object.Key("unregisteredSeiTimecode") ok.String(string(v.UnregisteredSeiTimecode)) } if len(v.WriteMp4PackagingType) > 0 { ok := object.Key("writeMp4PackagingType") ok.String(string(v.WriteMp4PackagingType)) } return nil } func awsRestjson1_serializeDocumentHdr10Metadata(v *types.Hdr10Metadata, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.BluePrimaryX != 0 { ok := object.Key("bluePrimaryX") ok.Integer(v.BluePrimaryX) } if v.BluePrimaryY != 0 { ok := object.Key("bluePrimaryY") ok.Integer(v.BluePrimaryY) } if v.GreenPrimaryX != 0 { ok := object.Key("greenPrimaryX") ok.Integer(v.GreenPrimaryX) } if v.GreenPrimaryY != 0 { ok := object.Key("greenPrimaryY") ok.Integer(v.GreenPrimaryY) } if v.MaxContentLightLevel != 0 { ok := object.Key("maxContentLightLevel") ok.Integer(v.MaxContentLightLevel) } if v.MaxFrameAverageLightLevel != 0 { ok := object.Key("maxFrameAverageLightLevel") ok.Integer(v.MaxFrameAverageLightLevel) } if v.MaxLuminance != 0 { ok := object.Key("maxLuminance") ok.Integer(v.MaxLuminance) } if v.MinLuminance != 0 { ok := object.Key("minLuminance") ok.Integer(v.MinLuminance) } if v.RedPrimaryX != 0 { ok := object.Key("redPrimaryX") ok.Integer(v.RedPrimaryX) } if v.RedPrimaryY != 0 { ok := object.Key("redPrimaryY") ok.Integer(v.RedPrimaryY) } if v.WhitePointX != 0 { ok := object.Key("whitePointX") ok.Integer(v.WhitePointX) } if v.WhitePointY != 0 { ok := object.Key("whitePointY") ok.Integer(v.WhitePointY) } return nil } func awsRestjson1_serializeDocumentHdr10Plus(v *types.Hdr10Plus, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.MasteringMonitorNits != 0 { ok := object.Key("masteringMonitorNits") ok.Integer(v.MasteringMonitorNits) } if v.TargetMonitorNits != 0 { ok := object.Key("targetMonitorNits") ok.Integer(v.TargetMonitorNits) } return nil } func awsRestjson1_serializeDocumentHlsAdditionalManifest(v *types.HlsAdditionalManifest, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.ManifestNameModifier != nil { ok := object.Key("manifestNameModifier") ok.String(*v.ManifestNameModifier) } if v.SelectedOutputs != nil { ok := object.Key("selectedOutputs") if err := awsRestjson1_serializeDocument__listOf__stringMin1(v.SelectedOutputs, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentHlsCaptionLanguageMapping(v *types.HlsCaptionLanguageMapping, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.CaptionChannel != 0 { ok := object.Key("captionChannel") ok.Integer(v.CaptionChannel) } if v.CustomLanguageCode != nil { ok := object.Key("customLanguageCode") ok.String(*v.CustomLanguageCode) } if len(v.LanguageCode) > 0 { ok := object.Key("languageCode") ok.String(string(v.LanguageCode)) } if v.LanguageDescription != nil { ok := object.Key("languageDescription") ok.String(*v.LanguageDescription) } return nil } func awsRestjson1_serializeDocumentHlsEncryptionSettings(v *types.HlsEncryptionSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.ConstantInitializationVector != nil { ok := object.Key("constantInitializationVector") ok.String(*v.ConstantInitializationVector) } if len(v.EncryptionMethod) > 0 { ok := object.Key("encryptionMethod") ok.String(string(v.EncryptionMethod)) } if len(v.InitializationVectorInManifest) > 0 { ok := object.Key("initializationVectorInManifest") ok.String(string(v.InitializationVectorInManifest)) } if len(v.OfflineEncrypted) > 0 { ok := object.Key("offlineEncrypted") ok.String(string(v.OfflineEncrypted)) } if v.SpekeKeyProvider != nil { ok := object.Key("spekeKeyProvider") if err := awsRestjson1_serializeDocumentSpekeKeyProvider(v.SpekeKeyProvider, ok); err != nil { return err } } if v.StaticKeyProvider != nil { ok := object.Key("staticKeyProvider") if err := awsRestjson1_serializeDocumentStaticKeyProvider(v.StaticKeyProvider, ok); err != nil { return err } } if len(v.Type) > 0 { ok := object.Key("type") ok.String(string(v.Type)) } return nil } func awsRestjson1_serializeDocumentHlsGroupSettings(v *types.HlsGroupSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AdditionalManifests != nil { ok := object.Key("additionalManifests") if err := awsRestjson1_serializeDocument__listOfHlsAdditionalManifest(v.AdditionalManifests, ok); err != nil { return err } } if v.AdMarkers != nil { ok := object.Key("adMarkers") if err := awsRestjson1_serializeDocument__listOfHlsAdMarkers(v.AdMarkers, ok); err != nil { return err } } if len(v.AudioOnlyHeader) > 0 { ok := object.Key("audioOnlyHeader") ok.String(string(v.AudioOnlyHeader)) } if v.BaseUrl != nil { ok := object.Key("baseUrl") ok.String(*v.BaseUrl) } if v.CaptionLanguageMappings != nil { ok := object.Key("captionLanguageMappings") if err := awsRestjson1_serializeDocument__listOfHlsCaptionLanguageMapping(v.CaptionLanguageMappings, ok); err != nil { return err } } if len(v.CaptionLanguageSetting) > 0 { ok := object.Key("captionLanguageSetting") ok.String(string(v.CaptionLanguageSetting)) } if len(v.CaptionSegmentLengthControl) > 0 { ok := object.Key("captionSegmentLengthControl") ok.String(string(v.CaptionSegmentLengthControl)) } if len(v.ClientCache) > 0 { ok := object.Key("clientCache") ok.String(string(v.ClientCache)) } if len(v.CodecSpecification) > 0 { ok := object.Key("codecSpecification") ok.String(string(v.CodecSpecification)) } if v.Destination != nil { ok := object.Key("destination") ok.String(*v.Destination) } if v.DestinationSettings != nil { ok := object.Key("destinationSettings") if err := awsRestjson1_serializeDocumentDestinationSettings(v.DestinationSettings, ok); err != nil { return err } } if len(v.DirectoryStructure) > 0 { ok := object.Key("directoryStructure") ok.String(string(v.DirectoryStructure)) } if v.Encryption != nil { ok := object.Key("encryption") if err := awsRestjson1_serializeDocumentHlsEncryptionSettings(v.Encryption, ok); err != nil { return err } } if len(v.ImageBasedTrickPlay) > 0 { ok := object.Key("imageBasedTrickPlay") ok.String(string(v.ImageBasedTrickPlay)) } if v.ImageBasedTrickPlaySettings != nil { ok := object.Key("imageBasedTrickPlaySettings") if err := awsRestjson1_serializeDocumentHlsImageBasedTrickPlaySettings(v.ImageBasedTrickPlaySettings, ok); err != nil { return err } } if len(v.ManifestCompression) > 0 { ok := object.Key("manifestCompression") ok.String(string(v.ManifestCompression)) } if len(v.ManifestDurationFormat) > 0 { ok := object.Key("manifestDurationFormat") ok.String(string(v.ManifestDurationFormat)) } if v.MinFinalSegmentLength != 0 { ok := object.Key("minFinalSegmentLength") switch { case math.IsNaN(v.MinFinalSegmentLength): ok.String("NaN") case math.IsInf(v.MinFinalSegmentLength, 1): ok.String("Infinity") case math.IsInf(v.MinFinalSegmentLength, -1): ok.String("-Infinity") default: ok.Double(v.MinFinalSegmentLength) } } if v.MinSegmentLength != 0 { ok := object.Key("minSegmentLength") ok.Integer(v.MinSegmentLength) } if len(v.OutputSelection) > 0 { ok := object.Key("outputSelection") ok.String(string(v.OutputSelection)) } if len(v.ProgramDateTime) > 0 { ok := object.Key("programDateTime") ok.String(string(v.ProgramDateTime)) } if v.ProgramDateTimePeriod != 0 { ok := object.Key("programDateTimePeriod") ok.Integer(v.ProgramDateTimePeriod) } if len(v.ProgressiveWriteHlsManifest) > 0 { ok := object.Key("progressiveWriteHlsManifest") ok.String(string(v.ProgressiveWriteHlsManifest)) } if len(v.SegmentControl) > 0 { ok := object.Key("segmentControl") ok.String(string(v.SegmentControl)) } if v.SegmentLength != 0 { ok := object.Key("segmentLength") ok.Integer(v.SegmentLength) } if len(v.SegmentLengthControl) > 0 { ok := object.Key("segmentLengthControl") ok.String(string(v.SegmentLengthControl)) } if v.SegmentsPerSubdirectory != 0 { ok := object.Key("segmentsPerSubdirectory") ok.Integer(v.SegmentsPerSubdirectory) } if len(v.StreamInfResolution) > 0 { ok := object.Key("streamInfResolution") ok.String(string(v.StreamInfResolution)) } if len(v.TargetDurationCompatibilityMode) > 0 { ok := object.Key("targetDurationCompatibilityMode") ok.String(string(v.TargetDurationCompatibilityMode)) } if len(v.TimedMetadataId3Frame) > 0 { ok := object.Key("timedMetadataId3Frame") ok.String(string(v.TimedMetadataId3Frame)) } if v.TimedMetadataId3Period != 0 { ok := object.Key("timedMetadataId3Period") ok.Integer(v.TimedMetadataId3Period) } if v.TimestampDeltaMilliseconds != 0 { ok := object.Key("timestampDeltaMilliseconds") ok.Integer(v.TimestampDeltaMilliseconds) } return nil } func awsRestjson1_serializeDocumentHlsImageBasedTrickPlaySettings(v *types.HlsImageBasedTrickPlaySettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.IntervalCadence) > 0 { ok := object.Key("intervalCadence") ok.String(string(v.IntervalCadence)) } if v.ThumbnailHeight != 0 { ok := object.Key("thumbnailHeight") ok.Integer(v.ThumbnailHeight) } if v.ThumbnailInterval != 0 { ok := object.Key("thumbnailInterval") switch { case math.IsNaN(v.ThumbnailInterval): ok.String("NaN") case math.IsInf(v.ThumbnailInterval, 1): ok.String("Infinity") case math.IsInf(v.ThumbnailInterval, -1): ok.String("-Infinity") default: ok.Double(v.ThumbnailInterval) } } if v.ThumbnailWidth != 0 { ok := object.Key("thumbnailWidth") ok.Integer(v.ThumbnailWidth) } if v.TileHeight != 0 { ok := object.Key("tileHeight") ok.Integer(v.TileHeight) } if v.TileWidth != 0 { ok := object.Key("tileWidth") ok.Integer(v.TileWidth) } return nil } func awsRestjson1_serializeDocumentHlsRenditionGroupSettings(v *types.HlsRenditionGroupSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.RenditionGroupId != nil { ok := object.Key("renditionGroupId") ok.String(*v.RenditionGroupId) } if len(v.RenditionLanguageCode) > 0 { ok := object.Key("renditionLanguageCode") ok.String(string(v.RenditionLanguageCode)) } if v.RenditionName != nil { ok := object.Key("renditionName") ok.String(*v.RenditionName) } return nil } func awsRestjson1_serializeDocumentHlsSettings(v *types.HlsSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AudioGroupId != nil { ok := object.Key("audioGroupId") ok.String(*v.AudioGroupId) } if len(v.AudioOnlyContainer) > 0 { ok := object.Key("audioOnlyContainer") ok.String(string(v.AudioOnlyContainer)) } if v.AudioRenditionSets != nil { ok := object.Key("audioRenditionSets") ok.String(*v.AudioRenditionSets) } if len(v.AudioTrackType) > 0 { ok := object.Key("audioTrackType") ok.String(string(v.AudioTrackType)) } if len(v.DescriptiveVideoServiceFlag) > 0 { ok := object.Key("descriptiveVideoServiceFlag") ok.String(string(v.DescriptiveVideoServiceFlag)) } if len(v.IFrameOnlyManifest) > 0 { ok := object.Key("iFrameOnlyManifest") ok.String(string(v.IFrameOnlyManifest)) } if v.SegmentModifier != nil { ok := object.Key("segmentModifier") ok.String(*v.SegmentModifier) } return nil } func awsRestjson1_serializeDocumentHopDestination(v *types.HopDestination, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Priority != 0 { ok := object.Key("priority") ok.Integer(v.Priority) } if v.Queue != nil { ok := object.Key("queue") ok.String(*v.Queue) } if v.WaitMinutes != 0 { ok := object.Key("waitMinutes") ok.Integer(v.WaitMinutes) } return nil } func awsRestjson1_serializeDocumentId3Insertion(v *types.Id3Insertion, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Id3 != nil { ok := object.Key("id3") ok.String(*v.Id3) } if v.Timecode != nil { ok := object.Key("timecode") ok.String(*v.Timecode) } return nil } func awsRestjson1_serializeDocumentImageInserter(v *types.ImageInserter, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.InsertableImages != nil { ok := object.Key("insertableImages") if err := awsRestjson1_serializeDocument__listOfInsertableImage(v.InsertableImages, ok); err != nil { return err } } if v.SdrReferenceWhiteLevel != 0 { ok := object.Key("sdrReferenceWhiteLevel") ok.Integer(v.SdrReferenceWhiteLevel) } return nil } func awsRestjson1_serializeDocumentImscDestinationSettings(v *types.ImscDestinationSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.Accessibility) > 0 { ok := object.Key("accessibility") ok.String(string(v.Accessibility)) } if len(v.StylePassthrough) > 0 { ok := object.Key("stylePassthrough") ok.String(string(v.StylePassthrough)) } return nil } func awsRestjson1_serializeDocumentInput(v *types.Input, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.AdvancedInputFilter) > 0 { ok := object.Key("advancedInputFilter") ok.String(string(v.AdvancedInputFilter)) } if v.AdvancedInputFilterSettings != nil { ok := object.Key("advancedInputFilterSettings") if err := awsRestjson1_serializeDocumentAdvancedInputFilterSettings(v.AdvancedInputFilterSettings, ok); err != nil { return err } } if v.AudioSelectorGroups != nil { ok := object.Key("audioSelectorGroups") if err := awsRestjson1_serializeDocument__mapOfAudioSelectorGroup(v.AudioSelectorGroups, ok); err != nil { return err } } if v.AudioSelectors != nil { ok := object.Key("audioSelectors") if err := awsRestjson1_serializeDocument__mapOfAudioSelector(v.AudioSelectors, ok); err != nil { return err } } if v.CaptionSelectors != nil { ok := object.Key("captionSelectors") if err := awsRestjson1_serializeDocument__mapOfCaptionSelector(v.CaptionSelectors, ok); err != nil { return err } } if v.Crop != nil { ok := object.Key("crop") if err := awsRestjson1_serializeDocumentRectangle(v.Crop, ok); err != nil { return err } } if len(v.DeblockFilter) > 0 { ok := object.Key("deblockFilter") ok.String(string(v.DeblockFilter)) } if v.DecryptionSettings != nil { ok := object.Key("decryptionSettings") if err := awsRestjson1_serializeDocumentInputDecryptionSettings(v.DecryptionSettings, ok); err != nil { return err } } if len(v.DenoiseFilter) > 0 { ok := object.Key("denoiseFilter") ok.String(string(v.DenoiseFilter)) } if v.DolbyVisionMetadataXml != nil { ok := object.Key("dolbyVisionMetadataXml") ok.String(*v.DolbyVisionMetadataXml) } if v.FileInput != nil { ok := object.Key("fileInput") ok.String(*v.FileInput) } if len(v.FilterEnable) > 0 { ok := object.Key("filterEnable") ok.String(string(v.FilterEnable)) } if v.FilterStrength != 0 { ok := object.Key("filterStrength") ok.Integer(v.FilterStrength) } if v.ImageInserter != nil { ok := object.Key("imageInserter") if err := awsRestjson1_serializeDocumentImageInserter(v.ImageInserter, ok); err != nil { return err } } if v.InputClippings != nil { ok := object.Key("inputClippings") if err := awsRestjson1_serializeDocument__listOfInputClipping(v.InputClippings, ok); err != nil { return err } } if len(v.InputScanType) > 0 { ok := object.Key("inputScanType") ok.String(string(v.InputScanType)) } if v.Position != nil { ok := object.Key("position") if err := awsRestjson1_serializeDocumentRectangle(v.Position, ok); err != nil { return err } } if v.ProgramNumber != 0 { ok := object.Key("programNumber") ok.Integer(v.ProgramNumber) } if len(v.PsiControl) > 0 { ok := object.Key("psiControl") ok.String(string(v.PsiControl)) } if v.SupplementalImps != nil { ok := object.Key("supplementalImps") if err := awsRestjson1_serializeDocument__listOf__stringPatternS3ASSETMAPXml(v.SupplementalImps, ok); err != nil { return err } } if len(v.TimecodeSource) > 0 { ok := object.Key("timecodeSource") ok.String(string(v.TimecodeSource)) } if v.TimecodeStart != nil { ok := object.Key("timecodeStart") ok.String(*v.TimecodeStart) } if v.VideoGenerator != nil { ok := object.Key("videoGenerator") if err := awsRestjson1_serializeDocumentInputVideoGenerator(v.VideoGenerator, ok); err != nil { return err } } if v.VideoSelector != nil { ok := object.Key("videoSelector") if err := awsRestjson1_serializeDocumentVideoSelector(v.VideoSelector, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentInputClipping(v *types.InputClipping, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.EndTimecode != nil { ok := object.Key("endTimecode") ok.String(*v.EndTimecode) } if v.StartTimecode != nil { ok := object.Key("startTimecode") ok.String(*v.StartTimecode) } return nil } func awsRestjson1_serializeDocumentInputDecryptionSettings(v *types.InputDecryptionSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.DecryptionMode) > 0 { ok := object.Key("decryptionMode") ok.String(string(v.DecryptionMode)) } if v.EncryptedDecryptionKey != nil { ok := object.Key("encryptedDecryptionKey") ok.String(*v.EncryptedDecryptionKey) } if v.InitializationVector != nil { ok := object.Key("initializationVector") ok.String(*v.InitializationVector) } if v.KmsKeyRegion != nil { ok := object.Key("kmsKeyRegion") ok.String(*v.KmsKeyRegion) } return nil } func awsRestjson1_serializeDocumentInputTemplate(v *types.InputTemplate, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.AdvancedInputFilter) > 0 { ok := object.Key("advancedInputFilter") ok.String(string(v.AdvancedInputFilter)) } if v.AdvancedInputFilterSettings != nil { ok := object.Key("advancedInputFilterSettings") if err := awsRestjson1_serializeDocumentAdvancedInputFilterSettings(v.AdvancedInputFilterSettings, ok); err != nil { return err } } if v.AudioSelectorGroups != nil { ok := object.Key("audioSelectorGroups") if err := awsRestjson1_serializeDocument__mapOfAudioSelectorGroup(v.AudioSelectorGroups, ok); err != nil { return err } } if v.AudioSelectors != nil { ok := object.Key("audioSelectors") if err := awsRestjson1_serializeDocument__mapOfAudioSelector(v.AudioSelectors, ok); err != nil { return err } } if v.CaptionSelectors != nil { ok := object.Key("captionSelectors") if err := awsRestjson1_serializeDocument__mapOfCaptionSelector(v.CaptionSelectors, ok); err != nil { return err } } if v.Crop != nil { ok := object.Key("crop") if err := awsRestjson1_serializeDocumentRectangle(v.Crop, ok); err != nil { return err } } if len(v.DeblockFilter) > 0 { ok := object.Key("deblockFilter") ok.String(string(v.DeblockFilter)) } if len(v.DenoiseFilter) > 0 { ok := object.Key("denoiseFilter") ok.String(string(v.DenoiseFilter)) } if v.DolbyVisionMetadataXml != nil { ok := object.Key("dolbyVisionMetadataXml") ok.String(*v.DolbyVisionMetadataXml) } if len(v.FilterEnable) > 0 { ok := object.Key("filterEnable") ok.String(string(v.FilterEnable)) } if v.FilterStrength != 0 { ok := object.Key("filterStrength") ok.Integer(v.FilterStrength) } if v.ImageInserter != nil { ok := object.Key("imageInserter") if err := awsRestjson1_serializeDocumentImageInserter(v.ImageInserter, ok); err != nil { return err } } if v.InputClippings != nil { ok := object.Key("inputClippings") if err := awsRestjson1_serializeDocument__listOfInputClipping(v.InputClippings, ok); err != nil { return err } } if len(v.InputScanType) > 0 { ok := object.Key("inputScanType") ok.String(string(v.InputScanType)) } if v.Position != nil { ok := object.Key("position") if err := awsRestjson1_serializeDocumentRectangle(v.Position, ok); err != nil { return err } } if v.ProgramNumber != 0 { ok := object.Key("programNumber") ok.Integer(v.ProgramNumber) } if len(v.PsiControl) > 0 { ok := object.Key("psiControl") ok.String(string(v.PsiControl)) } if len(v.TimecodeSource) > 0 { ok := object.Key("timecodeSource") ok.String(string(v.TimecodeSource)) } if v.TimecodeStart != nil { ok := object.Key("timecodeStart") ok.String(*v.TimecodeStart) } if v.VideoSelector != nil { ok := object.Key("videoSelector") if err := awsRestjson1_serializeDocumentVideoSelector(v.VideoSelector, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentInputVideoGenerator(v *types.InputVideoGenerator, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Duration != 0 { ok := object.Key("duration") ok.Integer(v.Duration) } return nil } func awsRestjson1_serializeDocumentInsertableImage(v *types.InsertableImage, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Duration != 0 { ok := object.Key("duration") ok.Integer(v.Duration) } if v.FadeIn != 0 { ok := object.Key("fadeIn") ok.Integer(v.FadeIn) } if v.FadeOut != 0 { ok := object.Key("fadeOut") ok.Integer(v.FadeOut) } if v.Height != 0 { ok := object.Key("height") ok.Integer(v.Height) } if v.ImageInserterInput != nil { ok := object.Key("imageInserterInput") ok.String(*v.ImageInserterInput) } if v.ImageX != 0 { ok := object.Key("imageX") ok.Integer(v.ImageX) } if v.ImageY != 0 { ok := object.Key("imageY") ok.Integer(v.ImageY) } if v.Layer != 0 { ok := object.Key("layer") ok.Integer(v.Layer) } if v.Opacity != 0 { ok := object.Key("opacity") ok.Integer(v.Opacity) } if v.StartTime != nil { ok := object.Key("startTime") ok.String(*v.StartTime) } if v.Width != 0 { ok := object.Key("width") ok.Integer(v.Width) } return nil } func awsRestjson1_serializeDocumentJobSettings(v *types.JobSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AdAvailOffset != 0 { ok := object.Key("adAvailOffset") ok.Integer(v.AdAvailOffset) } if v.AvailBlanking != nil { ok := object.Key("availBlanking") if err := awsRestjson1_serializeDocumentAvailBlanking(v.AvailBlanking, ok); err != nil { return err } } if v.Esam != nil { ok := object.Key("esam") if err := awsRestjson1_serializeDocumentEsamSettings(v.Esam, ok); err != nil { return err } } if v.ExtendedDataServices != nil { ok := object.Key("extendedDataServices") if err := awsRestjson1_serializeDocumentExtendedDataServices(v.ExtendedDataServices, ok); err != nil { return err } } if v.Inputs != nil { ok := object.Key("inputs") if err := awsRestjson1_serializeDocument__listOfInput(v.Inputs, ok); err != nil { return err } } if v.KantarWatermark != nil { ok := object.Key("kantarWatermark") if err := awsRestjson1_serializeDocumentKantarWatermarkSettings(v.KantarWatermark, ok); err != nil { return err } } if v.MotionImageInserter != nil { ok := object.Key("motionImageInserter") if err := awsRestjson1_serializeDocumentMotionImageInserter(v.MotionImageInserter, ok); err != nil { return err } } if v.NielsenConfiguration != nil { ok := object.Key("nielsenConfiguration") if err := awsRestjson1_serializeDocumentNielsenConfiguration(v.NielsenConfiguration, ok); err != nil { return err } } if v.NielsenNonLinearWatermark != nil { ok := object.Key("nielsenNonLinearWatermark") if err := awsRestjson1_serializeDocumentNielsenNonLinearWatermarkSettings(v.NielsenNonLinearWatermark, ok); err != nil { return err } } if v.OutputGroups != nil { ok := object.Key("outputGroups") if err := awsRestjson1_serializeDocument__listOfOutputGroup(v.OutputGroups, ok); err != nil { return err } } if v.TimecodeConfig != nil { ok := object.Key("timecodeConfig") if err := awsRestjson1_serializeDocumentTimecodeConfig(v.TimecodeConfig, ok); err != nil { return err } } if v.TimedMetadataInsertion != nil { ok := object.Key("timedMetadataInsertion") if err := awsRestjson1_serializeDocumentTimedMetadataInsertion(v.TimedMetadataInsertion, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentJobTemplateSettings(v *types.JobTemplateSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AdAvailOffset != 0 { ok := object.Key("adAvailOffset") ok.Integer(v.AdAvailOffset) } if v.AvailBlanking != nil { ok := object.Key("availBlanking") if err := awsRestjson1_serializeDocumentAvailBlanking(v.AvailBlanking, ok); err != nil { return err } } if v.Esam != nil { ok := object.Key("esam") if err := awsRestjson1_serializeDocumentEsamSettings(v.Esam, ok); err != nil { return err } } if v.ExtendedDataServices != nil { ok := object.Key("extendedDataServices") if err := awsRestjson1_serializeDocumentExtendedDataServices(v.ExtendedDataServices, ok); err != nil { return err } } if v.Inputs != nil { ok := object.Key("inputs") if err := awsRestjson1_serializeDocument__listOfInputTemplate(v.Inputs, ok); err != nil { return err } } if v.KantarWatermark != nil { ok := object.Key("kantarWatermark") if err := awsRestjson1_serializeDocumentKantarWatermarkSettings(v.KantarWatermark, ok); err != nil { return err } } if v.MotionImageInserter != nil { ok := object.Key("motionImageInserter") if err := awsRestjson1_serializeDocumentMotionImageInserter(v.MotionImageInserter, ok); err != nil { return err } } if v.NielsenConfiguration != nil { ok := object.Key("nielsenConfiguration") if err := awsRestjson1_serializeDocumentNielsenConfiguration(v.NielsenConfiguration, ok); err != nil { return err } } if v.NielsenNonLinearWatermark != nil { ok := object.Key("nielsenNonLinearWatermark") if err := awsRestjson1_serializeDocumentNielsenNonLinearWatermarkSettings(v.NielsenNonLinearWatermark, ok); err != nil { return err } } if v.OutputGroups != nil { ok := object.Key("outputGroups") if err := awsRestjson1_serializeDocument__listOfOutputGroup(v.OutputGroups, ok); err != nil { return err } } if v.TimecodeConfig != nil { ok := object.Key("timecodeConfig") if err := awsRestjson1_serializeDocumentTimecodeConfig(v.TimecodeConfig, ok); err != nil { return err } } if v.TimedMetadataInsertion != nil { ok := object.Key("timedMetadataInsertion") if err := awsRestjson1_serializeDocumentTimedMetadataInsertion(v.TimedMetadataInsertion, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentKantarWatermarkSettings(v *types.KantarWatermarkSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.ChannelName != nil { ok := object.Key("channelName") ok.String(*v.ChannelName) } if v.ContentReference != nil { ok := object.Key("contentReference") ok.String(*v.ContentReference) } if v.CredentialsSecretName != nil { ok := object.Key("credentialsSecretName") ok.String(*v.CredentialsSecretName) } if v.FileOffset != 0 { ok := object.Key("fileOffset") switch { case math.IsNaN(v.FileOffset): ok.String("NaN") case math.IsInf(v.FileOffset, 1): ok.String("Infinity") case math.IsInf(v.FileOffset, -1): ok.String("-Infinity") default: ok.Double(v.FileOffset) } } if v.KantarLicenseId != 0 { ok := object.Key("kantarLicenseId") ok.Integer(v.KantarLicenseId) } if v.KantarServerUrl != nil { ok := object.Key("kantarServerUrl") ok.String(*v.KantarServerUrl) } if v.LogDestination != nil { ok := object.Key("logDestination") ok.String(*v.LogDestination) } if v.Metadata3 != nil { ok := object.Key("metadata3") ok.String(*v.Metadata3) } if v.Metadata4 != nil { ok := object.Key("metadata4") ok.String(*v.Metadata4) } if v.Metadata5 != nil { ok := object.Key("metadata5") ok.String(*v.Metadata5) } if v.Metadata6 != nil { ok := object.Key("metadata6") ok.String(*v.Metadata6) } if v.Metadata7 != nil { ok := object.Key("metadata7") ok.String(*v.Metadata7) } if v.Metadata8 != nil { ok := object.Key("metadata8") ok.String(*v.Metadata8) } return nil } func awsRestjson1_serializeDocumentM2tsScte35Esam(v *types.M2tsScte35Esam, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Scte35EsamPid != 0 { ok := object.Key("scte35EsamPid") ok.Integer(v.Scte35EsamPid) } return nil } func awsRestjson1_serializeDocumentM2tsSettings(v *types.M2tsSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.AudioBufferModel) > 0 { ok := object.Key("audioBufferModel") ok.String(string(v.AudioBufferModel)) } if len(v.AudioDuration) > 0 { ok := object.Key("audioDuration") ok.String(string(v.AudioDuration)) } if v.AudioFramesPerPes != 0 { ok := object.Key("audioFramesPerPes") ok.Integer(v.AudioFramesPerPes) } if v.AudioPids != nil { ok := object.Key("audioPids") if err := awsRestjson1_serializeDocument__listOf__integerMin32Max8182(v.AudioPids, ok); err != nil { return err } } if v.Bitrate != 0 { ok := object.Key("bitrate") ok.Integer(v.Bitrate) } if len(v.BufferModel) > 0 { ok := object.Key("bufferModel") ok.String(string(v.BufferModel)) } if len(v.DataPTSControl) > 0 { ok := object.Key("dataPTSControl") ok.String(string(v.DataPTSControl)) } if v.DvbNitSettings != nil { ok := object.Key("dvbNitSettings") if err := awsRestjson1_serializeDocumentDvbNitSettings(v.DvbNitSettings, ok); err != nil { return err } } if v.DvbSdtSettings != nil { ok := object.Key("dvbSdtSettings") if err := awsRestjson1_serializeDocumentDvbSdtSettings(v.DvbSdtSettings, ok); err != nil { return err } } if v.DvbSubPids != nil { ok := object.Key("dvbSubPids") if err := awsRestjson1_serializeDocument__listOf__integerMin32Max8182(v.DvbSubPids, ok); err != nil { return err } } if v.DvbTdtSettings != nil { ok := object.Key("dvbTdtSettings") if err := awsRestjson1_serializeDocumentDvbTdtSettings(v.DvbTdtSettings, ok); err != nil { return err } } if v.DvbTeletextPid != 0 { ok := object.Key("dvbTeletextPid") ok.Integer(v.DvbTeletextPid) } if len(v.EbpAudioInterval) > 0 { ok := object.Key("ebpAudioInterval") ok.String(string(v.EbpAudioInterval)) } if len(v.EbpPlacement) > 0 { ok := object.Key("ebpPlacement") ok.String(string(v.EbpPlacement)) } if len(v.EsRateInPes) > 0 { ok := object.Key("esRateInPes") ok.String(string(v.EsRateInPes)) } if len(v.ForceTsVideoEbpOrder) > 0 { ok := object.Key("forceTsVideoEbpOrder") ok.String(string(v.ForceTsVideoEbpOrder)) } if v.FragmentTime != 0 { ok := object.Key("fragmentTime") switch { case math.IsNaN(v.FragmentTime): ok.String("NaN") case math.IsInf(v.FragmentTime, 1): ok.String("Infinity") case math.IsInf(v.FragmentTime, -1): ok.String("-Infinity") default: ok.Double(v.FragmentTime) } } if len(v.KlvMetadata) > 0 { ok := object.Key("klvMetadata") ok.String(string(v.KlvMetadata)) } if v.MaxPcrInterval != 0 { ok := object.Key("maxPcrInterval") ok.Integer(v.MaxPcrInterval) } if v.MinEbpInterval != 0 { ok := object.Key("minEbpInterval") ok.Integer(v.MinEbpInterval) } if len(v.NielsenId3) > 0 { ok := object.Key("nielsenId3") ok.String(string(v.NielsenId3)) } if v.NullPacketBitrate != 0 { ok := object.Key("nullPacketBitrate") switch { case math.IsNaN(v.NullPacketBitrate): ok.String("NaN") case math.IsInf(v.NullPacketBitrate, 1): ok.String("Infinity") case math.IsInf(v.NullPacketBitrate, -1): ok.String("-Infinity") default: ok.Double(v.NullPacketBitrate) } } if v.PatInterval != 0 { ok := object.Key("patInterval") ok.Integer(v.PatInterval) } if len(v.PcrControl) > 0 { ok := object.Key("pcrControl") ok.String(string(v.PcrControl)) } if v.PcrPid != 0 { ok := object.Key("pcrPid") ok.Integer(v.PcrPid) } if v.PmtInterval != 0 { ok := object.Key("pmtInterval") ok.Integer(v.PmtInterval) } if v.PmtPid != 0 { ok := object.Key("pmtPid") ok.Integer(v.PmtPid) } if v.PrivateMetadataPid != 0 { ok := object.Key("privateMetadataPid") ok.Integer(v.PrivateMetadataPid) } if v.ProgramNumber != 0 { ok := object.Key("programNumber") ok.Integer(v.ProgramNumber) } if len(v.RateMode) > 0 { ok := object.Key("rateMode") ok.String(string(v.RateMode)) } if v.Scte35Esam != nil { ok := object.Key("scte35Esam") if err := awsRestjson1_serializeDocumentM2tsScte35Esam(v.Scte35Esam, ok); err != nil { return err } } if v.Scte35Pid != 0 { ok := object.Key("scte35Pid") ok.Integer(v.Scte35Pid) } if len(v.Scte35Source) > 0 { ok := object.Key("scte35Source") ok.String(string(v.Scte35Source)) } if len(v.SegmentationMarkers) > 0 { ok := object.Key("segmentationMarkers") ok.String(string(v.SegmentationMarkers)) } if len(v.SegmentationStyle) > 0 { ok := object.Key("segmentationStyle") ok.String(string(v.SegmentationStyle)) } if v.SegmentationTime != 0 { ok := object.Key("segmentationTime") switch { case math.IsNaN(v.SegmentationTime): ok.String("NaN") case math.IsInf(v.SegmentationTime, 1): ok.String("Infinity") case math.IsInf(v.SegmentationTime, -1): ok.String("-Infinity") default: ok.Double(v.SegmentationTime) } } if v.TimedMetadataPid != 0 { ok := object.Key("timedMetadataPid") ok.Integer(v.TimedMetadataPid) } if v.TransportStreamId != 0 { ok := object.Key("transportStreamId") ok.Integer(v.TransportStreamId) } if v.VideoPid != 0 { ok := object.Key("videoPid") ok.Integer(v.VideoPid) } return nil } func awsRestjson1_serializeDocumentM3u8Settings(v *types.M3u8Settings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.AudioDuration) > 0 { ok := object.Key("audioDuration") ok.String(string(v.AudioDuration)) } if v.AudioFramesPerPes != 0 { ok := object.Key("audioFramesPerPes") ok.Integer(v.AudioFramesPerPes) } if v.AudioPids != nil { ok := object.Key("audioPids") if err := awsRestjson1_serializeDocument__listOf__integerMin32Max8182(v.AudioPids, ok); err != nil { return err } } if len(v.DataPTSControl) > 0 { ok := object.Key("dataPTSControl") ok.String(string(v.DataPTSControl)) } if v.MaxPcrInterval != 0 { ok := object.Key("maxPcrInterval") ok.Integer(v.MaxPcrInterval) } if len(v.NielsenId3) > 0 { ok := object.Key("nielsenId3") ok.String(string(v.NielsenId3)) } if v.PatInterval != 0 { ok := object.Key("patInterval") ok.Integer(v.PatInterval) } if len(v.PcrControl) > 0 { ok := object.Key("pcrControl") ok.String(string(v.PcrControl)) } if v.PcrPid != 0 { ok := object.Key("pcrPid") ok.Integer(v.PcrPid) } if v.PmtInterval != 0 { ok := object.Key("pmtInterval") ok.Integer(v.PmtInterval) } if v.PmtPid != 0 { ok := object.Key("pmtPid") ok.Integer(v.PmtPid) } if v.PrivateMetadataPid != 0 { ok := object.Key("privateMetadataPid") ok.Integer(v.PrivateMetadataPid) } if v.ProgramNumber != 0 { ok := object.Key("programNumber") ok.Integer(v.ProgramNumber) } if v.Scte35Pid != 0 { ok := object.Key("scte35Pid") ok.Integer(v.Scte35Pid) } if len(v.Scte35Source) > 0 { ok := object.Key("scte35Source") ok.String(string(v.Scte35Source)) } if len(v.TimedMetadata) > 0 { ok := object.Key("timedMetadata") ok.String(string(v.TimedMetadata)) } if v.TimedMetadataPid != 0 { ok := object.Key("timedMetadataPid") ok.Integer(v.TimedMetadataPid) } if v.TransportStreamId != 0 { ok := object.Key("transportStreamId") ok.Integer(v.TransportStreamId) } if v.VideoPid != 0 { ok := object.Key("videoPid") ok.Integer(v.VideoPid) } return nil } func awsRestjson1_serializeDocumentMinBottomRenditionSize(v *types.MinBottomRenditionSize, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Height != 0 { ok := object.Key("height") ok.Integer(v.Height) } if v.Width != 0 { ok := object.Key("width") ok.Integer(v.Width) } return nil } func awsRestjson1_serializeDocumentMinTopRenditionSize(v *types.MinTopRenditionSize, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Height != 0 { ok := object.Key("height") ok.Integer(v.Height) } if v.Width != 0 { ok := object.Key("width") ok.Integer(v.Width) } return nil } func awsRestjson1_serializeDocumentMotionImageInserter(v *types.MotionImageInserter, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Framerate != nil { ok := object.Key("framerate") if err := awsRestjson1_serializeDocumentMotionImageInsertionFramerate(v.Framerate, ok); err != nil { return err } } if v.Input != nil { ok := object.Key("input") ok.String(*v.Input) } if len(v.InsertionMode) > 0 { ok := object.Key("insertionMode") ok.String(string(v.InsertionMode)) } if v.Offset != nil { ok := object.Key("offset") if err := awsRestjson1_serializeDocumentMotionImageInsertionOffset(v.Offset, ok); err != nil { return err } } if len(v.Playback) > 0 { ok := object.Key("playback") ok.String(string(v.Playback)) } if v.StartTime != nil { ok := object.Key("startTime") ok.String(*v.StartTime) } return nil } func awsRestjson1_serializeDocumentMotionImageInsertionFramerate(v *types.MotionImageInsertionFramerate, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.FramerateDenominator != 0 { ok := object.Key("framerateDenominator") ok.Integer(v.FramerateDenominator) } if v.FramerateNumerator != 0 { ok := object.Key("framerateNumerator") ok.Integer(v.FramerateNumerator) } return nil } func awsRestjson1_serializeDocumentMotionImageInsertionOffset(v *types.MotionImageInsertionOffset, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.ImageX != 0 { ok := object.Key("imageX") ok.Integer(v.ImageX) } if v.ImageY != 0 { ok := object.Key("imageY") ok.Integer(v.ImageY) } return nil } func awsRestjson1_serializeDocumentMovSettings(v *types.MovSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.ClapAtom) > 0 { ok := object.Key("clapAtom") ok.String(string(v.ClapAtom)) } if len(v.CslgAtom) > 0 { ok := object.Key("cslgAtom") ok.String(string(v.CslgAtom)) } if len(v.Mpeg2FourCCControl) > 0 { ok := object.Key("mpeg2FourCCControl") ok.String(string(v.Mpeg2FourCCControl)) } if len(v.PaddingControl) > 0 { ok := object.Key("paddingControl") ok.String(string(v.PaddingControl)) } if len(v.Reference) > 0 { ok := object.Key("reference") ok.String(string(v.Reference)) } return nil } func awsRestjson1_serializeDocumentMp2Settings(v *types.Mp2Settings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Bitrate != 0 { ok := object.Key("bitrate") ok.Integer(v.Bitrate) } if v.Channels != 0 { ok := object.Key("channels") ok.Integer(v.Channels) } if v.SampleRate != 0 { ok := object.Key("sampleRate") ok.Integer(v.SampleRate) } return nil } func awsRestjson1_serializeDocumentMp3Settings(v *types.Mp3Settings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Bitrate != 0 { ok := object.Key("bitrate") ok.Integer(v.Bitrate) } if v.Channels != 0 { ok := object.Key("channels") ok.Integer(v.Channels) } if len(v.RateControlMode) > 0 { ok := object.Key("rateControlMode") ok.String(string(v.RateControlMode)) } if v.SampleRate != 0 { ok := object.Key("sampleRate") ok.Integer(v.SampleRate) } if v.VbrQuality != 0 { ok := object.Key("vbrQuality") ok.Integer(v.VbrQuality) } return nil } func awsRestjson1_serializeDocumentMp4Settings(v *types.Mp4Settings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.AudioDuration) > 0 { ok := object.Key("audioDuration") ok.String(string(v.AudioDuration)) } if len(v.CslgAtom) > 0 { ok := object.Key("cslgAtom") ok.String(string(v.CslgAtom)) } if v.CttsVersion != 0 { ok := object.Key("cttsVersion") ok.Integer(v.CttsVersion) } if len(v.FreeSpaceBox) > 0 { ok := object.Key("freeSpaceBox") ok.String(string(v.FreeSpaceBox)) } if len(v.MoovPlacement) > 0 { ok := object.Key("moovPlacement") ok.String(string(v.MoovPlacement)) } if v.Mp4MajorBrand != nil { ok := object.Key("mp4MajorBrand") ok.String(*v.Mp4MajorBrand) } return nil } func awsRestjson1_serializeDocumentMpdSettings(v *types.MpdSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.AccessibilityCaptionHints) > 0 { ok := object.Key("accessibilityCaptionHints") ok.String(string(v.AccessibilityCaptionHints)) } if len(v.AudioDuration) > 0 { ok := object.Key("audioDuration") ok.String(string(v.AudioDuration)) } if len(v.CaptionContainerType) > 0 { ok := object.Key("captionContainerType") ok.String(string(v.CaptionContainerType)) } if len(v.KlvMetadata) > 0 { ok := object.Key("klvMetadata") ok.String(string(v.KlvMetadata)) } if len(v.ManifestMetadataSignaling) > 0 { ok := object.Key("manifestMetadataSignaling") ok.String(string(v.ManifestMetadataSignaling)) } if len(v.Scte35Esam) > 0 { ok := object.Key("scte35Esam") ok.String(string(v.Scte35Esam)) } if len(v.Scte35Source) > 0 { ok := object.Key("scte35Source") ok.String(string(v.Scte35Source)) } if len(v.TimedMetadata) > 0 { ok := object.Key("timedMetadata") ok.String(string(v.TimedMetadata)) } if len(v.TimedMetadataBoxVersion) > 0 { ok := object.Key("timedMetadataBoxVersion") ok.String(string(v.TimedMetadataBoxVersion)) } if v.TimedMetadataSchemeIdUri != nil { ok := object.Key("timedMetadataSchemeIdUri") ok.String(*v.TimedMetadataSchemeIdUri) } if v.TimedMetadataValue != nil { ok := object.Key("timedMetadataValue") ok.String(*v.TimedMetadataValue) } return nil } func awsRestjson1_serializeDocumentMpeg2Settings(v *types.Mpeg2Settings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.AdaptiveQuantization) > 0 { ok := object.Key("adaptiveQuantization") ok.String(string(v.AdaptiveQuantization)) } if v.Bitrate != 0 { ok := object.Key("bitrate") ok.Integer(v.Bitrate) } if len(v.CodecLevel) > 0 { ok := object.Key("codecLevel") ok.String(string(v.CodecLevel)) } if len(v.CodecProfile) > 0 { ok := object.Key("codecProfile") ok.String(string(v.CodecProfile)) } if len(v.DynamicSubGop) > 0 { ok := object.Key("dynamicSubGop") ok.String(string(v.DynamicSubGop)) } if len(v.FramerateControl) > 0 { ok := object.Key("framerateControl") ok.String(string(v.FramerateControl)) } if len(v.FramerateConversionAlgorithm) > 0 { ok := object.Key("framerateConversionAlgorithm") ok.String(string(v.FramerateConversionAlgorithm)) } if v.FramerateDenominator != 0 { ok := object.Key("framerateDenominator") ok.Integer(v.FramerateDenominator) } if v.FramerateNumerator != 0 { ok := object.Key("framerateNumerator") ok.Integer(v.FramerateNumerator) } if v.GopClosedCadence != 0 { ok := object.Key("gopClosedCadence") ok.Integer(v.GopClosedCadence) } if v.GopSize != 0 { ok := object.Key("gopSize") switch { case math.IsNaN(v.GopSize): ok.String("NaN") case math.IsInf(v.GopSize, 1): ok.String("Infinity") case math.IsInf(v.GopSize, -1): ok.String("-Infinity") default: ok.Double(v.GopSize) } } if len(v.GopSizeUnits) > 0 { ok := object.Key("gopSizeUnits") ok.String(string(v.GopSizeUnits)) } if v.HrdBufferFinalFillPercentage != 0 { ok := object.Key("hrdBufferFinalFillPercentage") ok.Integer(v.HrdBufferFinalFillPercentage) } if v.HrdBufferInitialFillPercentage != 0 { ok := object.Key("hrdBufferInitialFillPercentage") ok.Integer(v.HrdBufferInitialFillPercentage) } if v.HrdBufferSize != 0 { ok := object.Key("hrdBufferSize") ok.Integer(v.HrdBufferSize) } if len(v.InterlaceMode) > 0 { ok := object.Key("interlaceMode") ok.String(string(v.InterlaceMode)) } if len(v.IntraDcPrecision) > 0 { ok := object.Key("intraDcPrecision") ok.String(string(v.IntraDcPrecision)) } if v.MaxBitrate != 0 { ok := object.Key("maxBitrate") ok.Integer(v.MaxBitrate) } if v.MinIInterval != 0 { ok := object.Key("minIInterval") ok.Integer(v.MinIInterval) } if v.NumberBFramesBetweenReferenceFrames != 0 { ok := object.Key("numberBFramesBetweenReferenceFrames") ok.Integer(v.NumberBFramesBetweenReferenceFrames) } if len(v.ParControl) > 0 { ok := object.Key("parControl") ok.String(string(v.ParControl)) } if v.ParDenominator != 0 { ok := object.Key("parDenominator") ok.Integer(v.ParDenominator) } if v.ParNumerator != 0 { ok := object.Key("parNumerator") ok.Integer(v.ParNumerator) } if len(v.QualityTuningLevel) > 0 { ok := object.Key("qualityTuningLevel") ok.String(string(v.QualityTuningLevel)) } if len(v.RateControlMode) > 0 { ok := object.Key("rateControlMode") ok.String(string(v.RateControlMode)) } if len(v.ScanTypeConversionMode) > 0 { ok := object.Key("scanTypeConversionMode") ok.String(string(v.ScanTypeConversionMode)) } if len(v.SceneChangeDetect) > 0 { ok := object.Key("sceneChangeDetect") ok.String(string(v.SceneChangeDetect)) } if len(v.SlowPal) > 0 { ok := object.Key("slowPal") ok.String(string(v.SlowPal)) } if v.Softness != 0 { ok := object.Key("softness") ok.Integer(v.Softness) } if len(v.SpatialAdaptiveQuantization) > 0 { ok := object.Key("spatialAdaptiveQuantization") ok.String(string(v.SpatialAdaptiveQuantization)) } if len(v.Syntax) > 0 { ok := object.Key("syntax") ok.String(string(v.Syntax)) } if len(v.Telecine) > 0 { ok := object.Key("telecine") ok.String(string(v.Telecine)) } if len(v.TemporalAdaptiveQuantization) > 0 { ok := object.Key("temporalAdaptiveQuantization") ok.String(string(v.TemporalAdaptiveQuantization)) } return nil } func awsRestjson1_serializeDocumentMsSmoothAdditionalManifest(v *types.MsSmoothAdditionalManifest, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.ManifestNameModifier != nil { ok := object.Key("manifestNameModifier") ok.String(*v.ManifestNameModifier) } if v.SelectedOutputs != nil { ok := object.Key("selectedOutputs") if err := awsRestjson1_serializeDocument__listOf__stringMin1(v.SelectedOutputs, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentMsSmoothEncryptionSettings(v *types.MsSmoothEncryptionSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.SpekeKeyProvider != nil { ok := object.Key("spekeKeyProvider") if err := awsRestjson1_serializeDocumentSpekeKeyProvider(v.SpekeKeyProvider, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentMsSmoothGroupSettings(v *types.MsSmoothGroupSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AdditionalManifests != nil { ok := object.Key("additionalManifests") if err := awsRestjson1_serializeDocument__listOfMsSmoothAdditionalManifest(v.AdditionalManifests, ok); err != nil { return err } } if len(v.AudioDeduplication) > 0 { ok := object.Key("audioDeduplication") ok.String(string(v.AudioDeduplication)) } if v.Destination != nil { ok := object.Key("destination") ok.String(*v.Destination) } if v.DestinationSettings != nil { ok := object.Key("destinationSettings") if err := awsRestjson1_serializeDocumentDestinationSettings(v.DestinationSettings, ok); err != nil { return err } } if v.Encryption != nil { ok := object.Key("encryption") if err := awsRestjson1_serializeDocumentMsSmoothEncryptionSettings(v.Encryption, ok); err != nil { return err } } if v.FragmentLength != 0 { ok := object.Key("fragmentLength") ok.Integer(v.FragmentLength) } if len(v.FragmentLengthControl) > 0 { ok := object.Key("fragmentLengthControl") ok.String(string(v.FragmentLengthControl)) } if len(v.ManifestEncoding) > 0 { ok := object.Key("manifestEncoding") ok.String(string(v.ManifestEncoding)) } return nil } func awsRestjson1_serializeDocumentMxfSettings(v *types.MxfSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.AfdSignaling) > 0 { ok := object.Key("afdSignaling") ok.String(string(v.AfdSignaling)) } if len(v.Profile) > 0 { ok := object.Key("profile") ok.String(string(v.Profile)) } if v.XavcProfileSettings != nil { ok := object.Key("xavcProfileSettings") if err := awsRestjson1_serializeDocumentMxfXavcProfileSettings(v.XavcProfileSettings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentMxfXavcProfileSettings(v *types.MxfXavcProfileSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.DurationMode) > 0 { ok := object.Key("durationMode") ok.String(string(v.DurationMode)) } if v.MaxAncDataSize != 0 { ok := object.Key("maxAncDataSize") ok.Integer(v.MaxAncDataSize) } return nil } func awsRestjson1_serializeDocumentNexGuardFileMarkerSettings(v *types.NexGuardFileMarkerSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.License != nil { ok := object.Key("license") ok.String(*v.License) } if v.Payload != 0 { ok := object.Key("payload") ok.Integer(v.Payload) } if v.Preset != nil { ok := object.Key("preset") ok.String(*v.Preset) } if len(v.Strength) > 0 { ok := object.Key("strength") ok.String(string(v.Strength)) } return nil } func awsRestjson1_serializeDocumentNielsenConfiguration(v *types.NielsenConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.BreakoutCode != 0 { ok := object.Key("breakoutCode") ok.Integer(v.BreakoutCode) } if v.DistributorId != nil { ok := object.Key("distributorId") ok.String(*v.DistributorId) } return nil } func awsRestjson1_serializeDocumentNielsenNonLinearWatermarkSettings(v *types.NielsenNonLinearWatermarkSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.ActiveWatermarkProcess) > 0 { ok := object.Key("activeWatermarkProcess") ok.String(string(v.ActiveWatermarkProcess)) } if v.AdiFilename != nil { ok := object.Key("adiFilename") ok.String(*v.AdiFilename) } if v.AssetId != nil { ok := object.Key("assetId") ok.String(*v.AssetId) } if v.AssetName != nil { ok := object.Key("assetName") ok.String(*v.AssetName) } if v.CbetSourceId != nil { ok := object.Key("cbetSourceId") ok.String(*v.CbetSourceId) } if v.EpisodeId != nil { ok := object.Key("episodeId") ok.String(*v.EpisodeId) } if v.MetadataDestination != nil { ok := object.Key("metadataDestination") ok.String(*v.MetadataDestination) } if v.SourceId != 0 { ok := object.Key("sourceId") ok.Integer(v.SourceId) } if len(v.SourceWatermarkStatus) > 0 { ok := object.Key("sourceWatermarkStatus") ok.String(string(v.SourceWatermarkStatus)) } if v.TicServerUrl != nil { ok := object.Key("ticServerUrl") ok.String(*v.TicServerUrl) } if len(v.UniqueTicPerAudioTrack) > 0 { ok := object.Key("uniqueTicPerAudioTrack") ok.String(string(v.UniqueTicPerAudioTrack)) } return nil } func awsRestjson1_serializeDocumentNoiseReducer(v *types.NoiseReducer, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.Filter) > 0 { ok := object.Key("filter") ok.String(string(v.Filter)) } if v.FilterSettings != nil { ok := object.Key("filterSettings") if err := awsRestjson1_serializeDocumentNoiseReducerFilterSettings(v.FilterSettings, ok); err != nil { return err } } if v.SpatialFilterSettings != nil { ok := object.Key("spatialFilterSettings") if err := awsRestjson1_serializeDocumentNoiseReducerSpatialFilterSettings(v.SpatialFilterSettings, ok); err != nil { return err } } if v.TemporalFilterSettings != nil { ok := object.Key("temporalFilterSettings") if err := awsRestjson1_serializeDocumentNoiseReducerTemporalFilterSettings(v.TemporalFilterSettings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentNoiseReducerFilterSettings(v *types.NoiseReducerFilterSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Strength != 0 { ok := object.Key("strength") ok.Integer(v.Strength) } return nil } func awsRestjson1_serializeDocumentNoiseReducerSpatialFilterSettings(v *types.NoiseReducerSpatialFilterSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.PostFilterSharpenStrength != 0 { ok := object.Key("postFilterSharpenStrength") ok.Integer(v.PostFilterSharpenStrength) } if v.Speed != 0 { ok := object.Key("speed") ok.Integer(v.Speed) } if v.Strength != 0 { ok := object.Key("strength") ok.Integer(v.Strength) } return nil } func awsRestjson1_serializeDocumentNoiseReducerTemporalFilterSettings(v *types.NoiseReducerTemporalFilterSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AggressiveMode != 0 { ok := object.Key("aggressiveMode") ok.Integer(v.AggressiveMode) } if len(v.PostTemporalSharpening) > 0 { ok := object.Key("postTemporalSharpening") ok.String(string(v.PostTemporalSharpening)) } if len(v.PostTemporalSharpeningStrength) > 0 { ok := object.Key("postTemporalSharpeningStrength") ok.String(string(v.PostTemporalSharpeningStrength)) } if v.Speed != 0 { ok := object.Key("speed") ok.Integer(v.Speed) } if v.Strength != 0 { ok := object.Key("strength") ok.Integer(v.Strength) } return nil } func awsRestjson1_serializeDocumentOpusSettings(v *types.OpusSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Bitrate != 0 { ok := object.Key("bitrate") ok.Integer(v.Bitrate) } if v.Channels != 0 { ok := object.Key("channels") ok.Integer(v.Channels) } if v.SampleRate != 0 { ok := object.Key("sampleRate") ok.Integer(v.SampleRate) } return nil } func awsRestjson1_serializeDocumentOutput(v *types.Output, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AudioDescriptions != nil { ok := object.Key("audioDescriptions") if err := awsRestjson1_serializeDocument__listOfAudioDescription(v.AudioDescriptions, ok); err != nil { return err } } if v.CaptionDescriptions != nil { ok := object.Key("captionDescriptions") if err := awsRestjson1_serializeDocument__listOfCaptionDescription(v.CaptionDescriptions, ok); err != nil { return err } } if v.ContainerSettings != nil { ok := object.Key("containerSettings") if err := awsRestjson1_serializeDocumentContainerSettings(v.ContainerSettings, ok); err != nil { return err } } if v.Extension != nil { ok := object.Key("extension") ok.String(*v.Extension) } if v.NameModifier != nil { ok := object.Key("nameModifier") ok.String(*v.NameModifier) } if v.OutputSettings != nil { ok := object.Key("outputSettings") if err := awsRestjson1_serializeDocumentOutputSettings(v.OutputSettings, ok); err != nil { return err } } if v.Preset != nil { ok := object.Key("preset") ok.String(*v.Preset) } if v.VideoDescription != nil { ok := object.Key("videoDescription") if err := awsRestjson1_serializeDocumentVideoDescription(v.VideoDescription, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentOutputChannelMapping(v *types.OutputChannelMapping, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.InputChannels != nil { ok := object.Key("inputChannels") if err := awsRestjson1_serializeDocument__listOf__integerMinNegative60Max6(v.InputChannels, ok); err != nil { return err } } if v.InputChannelsFineTune != nil { ok := object.Key("inputChannelsFineTune") if err := awsRestjson1_serializeDocument__listOf__doubleMinNegative60Max6(v.InputChannelsFineTune, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentOutputGroup(v *types.OutputGroup, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AutomatedEncodingSettings != nil { ok := object.Key("automatedEncodingSettings") if err := awsRestjson1_serializeDocumentAutomatedEncodingSettings(v.AutomatedEncodingSettings, ok); err != nil { return err } } if v.CustomName != nil { ok := object.Key("customName") ok.String(*v.CustomName) } if v.Name != nil { ok := object.Key("name") ok.String(*v.Name) } if v.OutputGroupSettings != nil { ok := object.Key("outputGroupSettings") if err := awsRestjson1_serializeDocumentOutputGroupSettings(v.OutputGroupSettings, ok); err != nil { return err } } if v.Outputs != nil { ok := object.Key("outputs") if err := awsRestjson1_serializeDocument__listOfOutput(v.Outputs, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentOutputGroupSettings(v *types.OutputGroupSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.CmafGroupSettings != nil { ok := object.Key("cmafGroupSettings") if err := awsRestjson1_serializeDocumentCmafGroupSettings(v.CmafGroupSettings, ok); err != nil { return err } } if v.DashIsoGroupSettings != nil { ok := object.Key("dashIsoGroupSettings") if err := awsRestjson1_serializeDocumentDashIsoGroupSettings(v.DashIsoGroupSettings, ok); err != nil { return err } } if v.FileGroupSettings != nil { ok := object.Key("fileGroupSettings") if err := awsRestjson1_serializeDocumentFileGroupSettings(v.FileGroupSettings, ok); err != nil { return err } } if v.HlsGroupSettings != nil { ok := object.Key("hlsGroupSettings") if err := awsRestjson1_serializeDocumentHlsGroupSettings(v.HlsGroupSettings, ok); err != nil { return err } } if v.MsSmoothGroupSettings != nil { ok := object.Key("msSmoothGroupSettings") if err := awsRestjson1_serializeDocumentMsSmoothGroupSettings(v.MsSmoothGroupSettings, ok); err != nil { return err } } if len(v.Type) > 0 { ok := object.Key("type") ok.String(string(v.Type)) } return nil } func awsRestjson1_serializeDocumentOutputSettings(v *types.OutputSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.HlsSettings != nil { ok := object.Key("hlsSettings") if err := awsRestjson1_serializeDocumentHlsSettings(v.HlsSettings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentPartnerWatermarking(v *types.PartnerWatermarking, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.NexguardFileMarkerSettings != nil { ok := object.Key("nexguardFileMarkerSettings") if err := awsRestjson1_serializeDocumentNexGuardFileMarkerSettings(v.NexguardFileMarkerSettings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentPolicy(v *types.Policy, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.HttpInputs) > 0 { ok := object.Key("httpInputs") ok.String(string(v.HttpInputs)) } if len(v.HttpsInputs) > 0 { ok := object.Key("httpsInputs") ok.String(string(v.HttpsInputs)) } if len(v.S3Inputs) > 0 { ok := object.Key("s3Inputs") ok.String(string(v.S3Inputs)) } return nil } func awsRestjson1_serializeDocumentPresetSettings(v *types.PresetSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AudioDescriptions != nil { ok := object.Key("audioDescriptions") if err := awsRestjson1_serializeDocument__listOfAudioDescription(v.AudioDescriptions, ok); err != nil { return err } } if v.CaptionDescriptions != nil { ok := object.Key("captionDescriptions") if err := awsRestjson1_serializeDocument__listOfCaptionDescriptionPreset(v.CaptionDescriptions, ok); err != nil { return err } } if v.ContainerSettings != nil { ok := object.Key("containerSettings") if err := awsRestjson1_serializeDocumentContainerSettings(v.ContainerSettings, ok); err != nil { return err } } if v.VideoDescription != nil { ok := object.Key("videoDescription") if err := awsRestjson1_serializeDocumentVideoDescription(v.VideoDescription, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentProresSettings(v *types.ProresSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.ChromaSampling) > 0 { ok := object.Key("chromaSampling") ok.String(string(v.ChromaSampling)) } if len(v.CodecProfile) > 0 { ok := object.Key("codecProfile") ok.String(string(v.CodecProfile)) } if len(v.FramerateControl) > 0 { ok := object.Key("framerateControl") ok.String(string(v.FramerateControl)) } if len(v.FramerateConversionAlgorithm) > 0 { ok := object.Key("framerateConversionAlgorithm") ok.String(string(v.FramerateConversionAlgorithm)) } if v.FramerateDenominator != 0 { ok := object.Key("framerateDenominator") ok.Integer(v.FramerateDenominator) } if v.FramerateNumerator != 0 { ok := object.Key("framerateNumerator") ok.Integer(v.FramerateNumerator) } if len(v.InterlaceMode) > 0 { ok := object.Key("interlaceMode") ok.String(string(v.InterlaceMode)) } if len(v.ParControl) > 0 { ok := object.Key("parControl") ok.String(string(v.ParControl)) } if v.ParDenominator != 0 { ok := object.Key("parDenominator") ok.Integer(v.ParDenominator) } if v.ParNumerator != 0 { ok := object.Key("parNumerator") ok.Integer(v.ParNumerator) } if len(v.ScanTypeConversionMode) > 0 { ok := object.Key("scanTypeConversionMode") ok.String(string(v.ScanTypeConversionMode)) } if len(v.SlowPal) > 0 { ok := object.Key("slowPal") ok.String(string(v.SlowPal)) } if len(v.Telecine) > 0 { ok := object.Key("telecine") ok.String(string(v.Telecine)) } return nil } func awsRestjson1_serializeDocumentRectangle(v *types.Rectangle, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Height != 0 { ok := object.Key("height") ok.Integer(v.Height) } if v.Width != 0 { ok := object.Key("width") ok.Integer(v.Width) } if v.X != 0 { ok := object.Key("x") ok.Integer(v.X) } if v.Y != 0 { ok := object.Key("y") ok.Integer(v.Y) } return nil } func awsRestjson1_serializeDocumentRemixSettings(v *types.RemixSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.ChannelMapping != nil { ok := object.Key("channelMapping") if err := awsRestjson1_serializeDocumentChannelMapping(v.ChannelMapping, ok); err != nil { return err } } if v.ChannelsIn != 0 { ok := object.Key("channelsIn") ok.Integer(v.ChannelsIn) } if v.ChannelsOut != 0 { ok := object.Key("channelsOut") ok.Integer(v.ChannelsOut) } return nil } func awsRestjson1_serializeDocumentReservationPlanSettings(v *types.ReservationPlanSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.Commitment) > 0 { ok := object.Key("commitment") ok.String(string(v.Commitment)) } if len(v.RenewalType) > 0 { ok := object.Key("renewalType") ok.String(string(v.RenewalType)) } { ok := object.Key("reservedSlots") ok.Integer(v.ReservedSlots) } return nil } func awsRestjson1_serializeDocumentS3DestinationAccessControl(v *types.S3DestinationAccessControl, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.CannedAcl) > 0 { ok := object.Key("cannedAcl") ok.String(string(v.CannedAcl)) } return nil } func awsRestjson1_serializeDocumentS3DestinationSettings(v *types.S3DestinationSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AccessControl != nil { ok := object.Key("accessControl") if err := awsRestjson1_serializeDocumentS3DestinationAccessControl(v.AccessControl, ok); err != nil { return err } } if v.Encryption != nil { ok := object.Key("encryption") if err := awsRestjson1_serializeDocumentS3EncryptionSettings(v.Encryption, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentS3EncryptionSettings(v *types.S3EncryptionSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.EncryptionType) > 0 { ok := object.Key("encryptionType") ok.String(string(v.EncryptionType)) } if v.KmsEncryptionContext != nil { ok := object.Key("kmsEncryptionContext") ok.String(*v.KmsEncryptionContext) } if v.KmsKeyArn != nil { ok := object.Key("kmsKeyArn") ok.String(*v.KmsKeyArn) } return nil } func awsRestjson1_serializeDocumentSccDestinationSettings(v *types.SccDestinationSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.Framerate) > 0 { ok := object.Key("framerate") ok.String(string(v.Framerate)) } return nil } func awsRestjson1_serializeDocumentSpekeKeyProvider(v *types.SpekeKeyProvider, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.CertificateArn != nil { ok := object.Key("certificateArn") ok.String(*v.CertificateArn) } if v.ResourceId != nil { ok := object.Key("resourceId") ok.String(*v.ResourceId) } if v.SystemIds != nil { ok := object.Key("systemIds") if err := awsRestjson1_serializeDocument__listOf__stringPattern09aFAF809aFAF409aFAF409aFAF409aFAF12(v.SystemIds, ok); err != nil { return err } } if v.Url != nil { ok := object.Key("url") ok.String(*v.Url) } return nil } func awsRestjson1_serializeDocumentSpekeKeyProviderCmaf(v *types.SpekeKeyProviderCmaf, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.CertificateArn != nil { ok := object.Key("certificateArn") ok.String(*v.CertificateArn) } if v.DashSignaledSystemIds != nil { ok := object.Key("dashSignaledSystemIds") if err := awsRestjson1_serializeDocument__listOf__stringMin36Max36Pattern09aFAF809aFAF409aFAF409aFAF409aFAF12(v.DashSignaledSystemIds, ok); err != nil { return err } } if v.HlsSignaledSystemIds != nil { ok := object.Key("hlsSignaledSystemIds") if err := awsRestjson1_serializeDocument__listOf__stringMin36Max36Pattern09aFAF809aFAF409aFAF409aFAF409aFAF12(v.HlsSignaledSystemIds, ok); err != nil { return err } } if v.ResourceId != nil { ok := object.Key("resourceId") ok.String(*v.ResourceId) } if v.Url != nil { ok := object.Key("url") ok.String(*v.Url) } return nil } func awsRestjson1_serializeDocumentSrtDestinationSettings(v *types.SrtDestinationSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.StylePassthrough) > 0 { ok := object.Key("stylePassthrough") ok.String(string(v.StylePassthrough)) } return nil } func awsRestjson1_serializeDocumentStaticKeyProvider(v *types.StaticKeyProvider, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.KeyFormat != nil { ok := object.Key("keyFormat") ok.String(*v.KeyFormat) } if v.KeyFormatVersions != nil { ok := object.Key("keyFormatVersions") ok.String(*v.KeyFormatVersions) } if v.StaticKeyValue != nil { ok := object.Key("staticKeyValue") ok.String(*v.StaticKeyValue) } if v.Url != nil { ok := object.Key("url") ok.String(*v.Url) } return nil } func awsRestjson1_serializeDocumentTeletextDestinationSettings(v *types.TeletextDestinationSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.PageNumber != nil { ok := object.Key("pageNumber") ok.String(*v.PageNumber) } if v.PageTypes != nil { ok := object.Key("pageTypes") if err := awsRestjson1_serializeDocument__listOfTeletextPageType(v.PageTypes, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentTeletextSourceSettings(v *types.TeletextSourceSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.PageNumber != nil { ok := object.Key("pageNumber") ok.String(*v.PageNumber) } return nil } func awsRestjson1_serializeDocumentTimecodeBurnin(v *types.TimecodeBurnin, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.FontSize != 0 { ok := object.Key("fontSize") ok.Integer(v.FontSize) } if len(v.Position) > 0 { ok := object.Key("position") ok.String(string(v.Position)) } if v.Prefix != nil { ok := object.Key("prefix") ok.String(*v.Prefix) } return nil } func awsRestjson1_serializeDocumentTimecodeConfig(v *types.TimecodeConfig, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Anchor != nil { ok := object.Key("anchor") ok.String(*v.Anchor) } if len(v.Source) > 0 { ok := object.Key("source") ok.String(string(v.Source)) } if v.Start != nil { ok := object.Key("start") ok.String(*v.Start) } if v.TimestampOffset != nil { ok := object.Key("timestampOffset") ok.String(*v.TimestampOffset) } return nil } func awsRestjson1_serializeDocumentTimedMetadataInsertion(v *types.TimedMetadataInsertion, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Id3Insertions != nil { ok := object.Key("id3Insertions") if err := awsRestjson1_serializeDocument__listOfId3Insertion(v.Id3Insertions, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentTrackSourceSettings(v *types.TrackSourceSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.TrackNumber != 0 { ok := object.Key("trackNumber") ok.Integer(v.TrackNumber) } return nil } func awsRestjson1_serializeDocumentTtmlDestinationSettings(v *types.TtmlDestinationSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.StylePassthrough) > 0 { ok := object.Key("stylePassthrough") ok.String(string(v.StylePassthrough)) } return nil } func awsRestjson1_serializeDocumentVc3Settings(v *types.Vc3Settings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.FramerateControl) > 0 { ok := object.Key("framerateControl") ok.String(string(v.FramerateControl)) } if len(v.FramerateConversionAlgorithm) > 0 { ok := object.Key("framerateConversionAlgorithm") ok.String(string(v.FramerateConversionAlgorithm)) } if v.FramerateDenominator != 0 { ok := object.Key("framerateDenominator") ok.Integer(v.FramerateDenominator) } if v.FramerateNumerator != 0 { ok := object.Key("framerateNumerator") ok.Integer(v.FramerateNumerator) } if len(v.InterlaceMode) > 0 { ok := object.Key("interlaceMode") ok.String(string(v.InterlaceMode)) } if len(v.ScanTypeConversionMode) > 0 { ok := object.Key("scanTypeConversionMode") ok.String(string(v.ScanTypeConversionMode)) } if len(v.SlowPal) > 0 { ok := object.Key("slowPal") ok.String(string(v.SlowPal)) } if len(v.Telecine) > 0 { ok := object.Key("telecine") ok.String(string(v.Telecine)) } if len(v.Vc3Class) > 0 { ok := object.Key("vc3Class") ok.String(string(v.Vc3Class)) } return nil } func awsRestjson1_serializeDocumentVideoCodecSettings(v *types.VideoCodecSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Av1Settings != nil { ok := object.Key("av1Settings") if err := awsRestjson1_serializeDocumentAv1Settings(v.Av1Settings, ok); err != nil { return err } } if v.AvcIntraSettings != nil { ok := object.Key("avcIntraSettings") if err := awsRestjson1_serializeDocumentAvcIntraSettings(v.AvcIntraSettings, ok); err != nil { return err } } if len(v.Codec) > 0 { ok := object.Key("codec") ok.String(string(v.Codec)) } if v.FrameCaptureSettings != nil { ok := object.Key("frameCaptureSettings") if err := awsRestjson1_serializeDocumentFrameCaptureSettings(v.FrameCaptureSettings, ok); err != nil { return err } } if v.H264Settings != nil { ok := object.Key("h264Settings") if err := awsRestjson1_serializeDocumentH264Settings(v.H264Settings, ok); err != nil { return err } } if v.H265Settings != nil { ok := object.Key("h265Settings") if err := awsRestjson1_serializeDocumentH265Settings(v.H265Settings, ok); err != nil { return err } } if v.Mpeg2Settings != nil { ok := object.Key("mpeg2Settings") if err := awsRestjson1_serializeDocumentMpeg2Settings(v.Mpeg2Settings, ok); err != nil { return err } } if v.ProresSettings != nil { ok := object.Key("proresSettings") if err := awsRestjson1_serializeDocumentProresSettings(v.ProresSettings, ok); err != nil { return err } } if v.Vc3Settings != nil { ok := object.Key("vc3Settings") if err := awsRestjson1_serializeDocumentVc3Settings(v.Vc3Settings, ok); err != nil { return err } } if v.Vp8Settings != nil { ok := object.Key("vp8Settings") if err := awsRestjson1_serializeDocumentVp8Settings(v.Vp8Settings, ok); err != nil { return err } } if v.Vp9Settings != nil { ok := object.Key("vp9Settings") if err := awsRestjson1_serializeDocumentVp9Settings(v.Vp9Settings, ok); err != nil { return err } } if v.XavcSettings != nil { ok := object.Key("xavcSettings") if err := awsRestjson1_serializeDocumentXavcSettings(v.XavcSettings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentVideoDescription(v *types.VideoDescription, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.AfdSignaling) > 0 { ok := object.Key("afdSignaling") ok.String(string(v.AfdSignaling)) } if len(v.AntiAlias) > 0 { ok := object.Key("antiAlias") ok.String(string(v.AntiAlias)) } if v.CodecSettings != nil { ok := object.Key("codecSettings") if err := awsRestjson1_serializeDocumentVideoCodecSettings(v.CodecSettings, ok); err != nil { return err } } if len(v.ColorMetadata) > 0 { ok := object.Key("colorMetadata") ok.String(string(v.ColorMetadata)) } if v.Crop != nil { ok := object.Key("crop") if err := awsRestjson1_serializeDocumentRectangle(v.Crop, ok); err != nil { return err } } if len(v.DropFrameTimecode) > 0 { ok := object.Key("dropFrameTimecode") ok.String(string(v.DropFrameTimecode)) } if v.FixedAfd != 0 { ok := object.Key("fixedAfd") ok.Integer(v.FixedAfd) } if v.Height != 0 { ok := object.Key("height") ok.Integer(v.Height) } if v.Position != nil { ok := object.Key("position") if err := awsRestjson1_serializeDocumentRectangle(v.Position, ok); err != nil { return err } } if len(v.RespondToAfd) > 0 { ok := object.Key("respondToAfd") ok.String(string(v.RespondToAfd)) } if len(v.ScalingBehavior) > 0 { ok := object.Key("scalingBehavior") ok.String(string(v.ScalingBehavior)) } if v.Sharpness != 0 { ok := object.Key("sharpness") ok.Integer(v.Sharpness) } if len(v.TimecodeInsertion) > 0 { ok := object.Key("timecodeInsertion") ok.String(string(v.TimecodeInsertion)) } if v.VideoPreprocessors != nil { ok := object.Key("videoPreprocessors") if err := awsRestjson1_serializeDocumentVideoPreprocessor(v.VideoPreprocessors, ok); err != nil { return err } } if v.Width != 0 { ok := object.Key("width") ok.Integer(v.Width) } return nil } func awsRestjson1_serializeDocumentVideoPreprocessor(v *types.VideoPreprocessor, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.ColorCorrector != nil { ok := object.Key("colorCorrector") if err := awsRestjson1_serializeDocumentColorCorrector(v.ColorCorrector, ok); err != nil { return err } } if v.Deinterlacer != nil { ok := object.Key("deinterlacer") if err := awsRestjson1_serializeDocumentDeinterlacer(v.Deinterlacer, ok); err != nil { return err } } if v.DolbyVision != nil { ok := object.Key("dolbyVision") if err := awsRestjson1_serializeDocumentDolbyVision(v.DolbyVision, ok); err != nil { return err } } if v.Hdr10Plus != nil { ok := object.Key("hdr10Plus") if err := awsRestjson1_serializeDocumentHdr10Plus(v.Hdr10Plus, ok); err != nil { return err } } if v.ImageInserter != nil { ok := object.Key("imageInserter") if err := awsRestjson1_serializeDocumentImageInserter(v.ImageInserter, ok); err != nil { return err } } if v.NoiseReducer != nil { ok := object.Key("noiseReducer") if err := awsRestjson1_serializeDocumentNoiseReducer(v.NoiseReducer, ok); err != nil { return err } } if v.PartnerWatermarking != nil { ok := object.Key("partnerWatermarking") if err := awsRestjson1_serializeDocumentPartnerWatermarking(v.PartnerWatermarking, ok); err != nil { return err } } if v.TimecodeBurnin != nil { ok := object.Key("timecodeBurnin") if err := awsRestjson1_serializeDocumentTimecodeBurnin(v.TimecodeBurnin, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentVideoSelector(v *types.VideoSelector, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.AlphaBehavior) > 0 { ok := object.Key("alphaBehavior") ok.String(string(v.AlphaBehavior)) } if len(v.ColorSpace) > 0 { ok := object.Key("colorSpace") ok.String(string(v.ColorSpace)) } if len(v.ColorSpaceUsage) > 0 { ok := object.Key("colorSpaceUsage") ok.String(string(v.ColorSpaceUsage)) } if len(v.EmbeddedTimecodeOverride) > 0 { ok := object.Key("embeddedTimecodeOverride") ok.String(string(v.EmbeddedTimecodeOverride)) } if v.Hdr10Metadata != nil { ok := object.Key("hdr10Metadata") if err := awsRestjson1_serializeDocumentHdr10Metadata(v.Hdr10Metadata, ok); err != nil { return err } } if len(v.PadVideo) > 0 { ok := object.Key("padVideo") ok.String(string(v.PadVideo)) } if v.Pid != 0 { ok := object.Key("pid") ok.Integer(v.Pid) } if v.ProgramNumber != 0 { ok := object.Key("programNumber") ok.Integer(v.ProgramNumber) } if len(v.Rotate) > 0 { ok := object.Key("rotate") ok.String(string(v.Rotate)) } if len(v.SampleRange) > 0 { ok := object.Key("sampleRange") ok.String(string(v.SampleRange)) } return nil } func awsRestjson1_serializeDocumentVorbisSettings(v *types.VorbisSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Channels != 0 { ok := object.Key("channels") ok.Integer(v.Channels) } if v.SampleRate != 0 { ok := object.Key("sampleRate") ok.Integer(v.SampleRate) } if v.VbrQuality != 0 { ok := object.Key("vbrQuality") ok.Integer(v.VbrQuality) } return nil } func awsRestjson1_serializeDocumentVp8Settings(v *types.Vp8Settings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Bitrate != 0 { ok := object.Key("bitrate") ok.Integer(v.Bitrate) } if len(v.FramerateControl) > 0 { ok := object.Key("framerateControl") ok.String(string(v.FramerateControl)) } if len(v.FramerateConversionAlgorithm) > 0 { ok := object.Key("framerateConversionAlgorithm") ok.String(string(v.FramerateConversionAlgorithm)) } if v.FramerateDenominator != 0 { ok := object.Key("framerateDenominator") ok.Integer(v.FramerateDenominator) } if v.FramerateNumerator != 0 { ok := object.Key("framerateNumerator") ok.Integer(v.FramerateNumerator) } if v.GopSize != 0 { ok := object.Key("gopSize") switch { case math.IsNaN(v.GopSize): ok.String("NaN") case math.IsInf(v.GopSize, 1): ok.String("Infinity") case math.IsInf(v.GopSize, -1): ok.String("-Infinity") default: ok.Double(v.GopSize) } } if v.HrdBufferSize != 0 { ok := object.Key("hrdBufferSize") ok.Integer(v.HrdBufferSize) } if v.MaxBitrate != 0 { ok := object.Key("maxBitrate") ok.Integer(v.MaxBitrate) } if len(v.ParControl) > 0 { ok := object.Key("parControl") ok.String(string(v.ParControl)) } if v.ParDenominator != 0 { ok := object.Key("parDenominator") ok.Integer(v.ParDenominator) } if v.ParNumerator != 0 { ok := object.Key("parNumerator") ok.Integer(v.ParNumerator) } if len(v.QualityTuningLevel) > 0 { ok := object.Key("qualityTuningLevel") ok.String(string(v.QualityTuningLevel)) } if len(v.RateControlMode) > 0 { ok := object.Key("rateControlMode") ok.String(string(v.RateControlMode)) } return nil } func awsRestjson1_serializeDocumentVp9Settings(v *types.Vp9Settings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Bitrate != 0 { ok := object.Key("bitrate") ok.Integer(v.Bitrate) } if len(v.FramerateControl) > 0 { ok := object.Key("framerateControl") ok.String(string(v.FramerateControl)) } if len(v.FramerateConversionAlgorithm) > 0 { ok := object.Key("framerateConversionAlgorithm") ok.String(string(v.FramerateConversionAlgorithm)) } if v.FramerateDenominator != 0 { ok := object.Key("framerateDenominator") ok.Integer(v.FramerateDenominator) } if v.FramerateNumerator != 0 { ok := object.Key("framerateNumerator") ok.Integer(v.FramerateNumerator) } if v.GopSize != 0 { ok := object.Key("gopSize") switch { case math.IsNaN(v.GopSize): ok.String("NaN") case math.IsInf(v.GopSize, 1): ok.String("Infinity") case math.IsInf(v.GopSize, -1): ok.String("-Infinity") default: ok.Double(v.GopSize) } } if v.HrdBufferSize != 0 { ok := object.Key("hrdBufferSize") ok.Integer(v.HrdBufferSize) } if v.MaxBitrate != 0 { ok := object.Key("maxBitrate") ok.Integer(v.MaxBitrate) } if len(v.ParControl) > 0 { ok := object.Key("parControl") ok.String(string(v.ParControl)) } if v.ParDenominator != 0 { ok := object.Key("parDenominator") ok.Integer(v.ParDenominator) } if v.ParNumerator != 0 { ok := object.Key("parNumerator") ok.Integer(v.ParNumerator) } if len(v.QualityTuningLevel) > 0 { ok := object.Key("qualityTuningLevel") ok.String(string(v.QualityTuningLevel)) } if len(v.RateControlMode) > 0 { ok := object.Key("rateControlMode") ok.String(string(v.RateControlMode)) } return nil } func awsRestjson1_serializeDocumentWavSettings(v *types.WavSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.BitDepth != 0 { ok := object.Key("bitDepth") ok.Integer(v.BitDepth) } if v.Channels != 0 { ok := object.Key("channels") ok.Integer(v.Channels) } if len(v.Format) > 0 { ok := object.Key("format") ok.String(string(v.Format)) } if v.SampleRate != 0 { ok := object.Key("sampleRate") ok.Integer(v.SampleRate) } return nil } func awsRestjson1_serializeDocumentWebvttDestinationSettings(v *types.WebvttDestinationSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.Accessibility) > 0 { ok := object.Key("accessibility") ok.String(string(v.Accessibility)) } if len(v.StylePassthrough) > 0 { ok := object.Key("stylePassthrough") ok.String(string(v.StylePassthrough)) } return nil } func awsRestjson1_serializeDocumentWebvttHlsSourceSettings(v *types.WebvttHlsSourceSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.RenditionGroupId != nil { ok := object.Key("renditionGroupId") ok.String(*v.RenditionGroupId) } if len(v.RenditionLanguageCode) > 0 { ok := object.Key("renditionLanguageCode") ok.String(string(v.RenditionLanguageCode)) } if v.RenditionName != nil { ok := object.Key("renditionName") ok.String(*v.RenditionName) } return nil } func awsRestjson1_serializeDocumentXavc4kIntraCbgProfileSettings(v *types.Xavc4kIntraCbgProfileSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.XavcClass) > 0 { ok := object.Key("xavcClass") ok.String(string(v.XavcClass)) } return nil } func awsRestjson1_serializeDocumentXavc4kIntraVbrProfileSettings(v *types.Xavc4kIntraVbrProfileSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.XavcClass) > 0 { ok := object.Key("xavcClass") ok.String(string(v.XavcClass)) } return nil } func awsRestjson1_serializeDocumentXavc4kProfileSettings(v *types.Xavc4kProfileSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.BitrateClass) > 0 { ok := object.Key("bitrateClass") ok.String(string(v.BitrateClass)) } if len(v.CodecProfile) > 0 { ok := object.Key("codecProfile") ok.String(string(v.CodecProfile)) } if len(v.FlickerAdaptiveQuantization) > 0 { ok := object.Key("flickerAdaptiveQuantization") ok.String(string(v.FlickerAdaptiveQuantization)) } if len(v.GopBReference) > 0 { ok := object.Key("gopBReference") ok.String(string(v.GopBReference)) } if v.GopClosedCadence != 0 { ok := object.Key("gopClosedCadence") ok.Integer(v.GopClosedCadence) } if v.HrdBufferSize != 0 { ok := object.Key("hrdBufferSize") ok.Integer(v.HrdBufferSize) } if len(v.QualityTuningLevel) > 0 { ok := object.Key("qualityTuningLevel") ok.String(string(v.QualityTuningLevel)) } if v.Slices != 0 { ok := object.Key("slices") ok.Integer(v.Slices) } return nil } func awsRestjson1_serializeDocumentXavcHdIntraCbgProfileSettings(v *types.XavcHdIntraCbgProfileSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.XavcClass) > 0 { ok := object.Key("xavcClass") ok.String(string(v.XavcClass)) } return nil } func awsRestjson1_serializeDocumentXavcHdProfileSettings(v *types.XavcHdProfileSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.BitrateClass) > 0 { ok := object.Key("bitrateClass") ok.String(string(v.BitrateClass)) } if len(v.FlickerAdaptiveQuantization) > 0 { ok := object.Key("flickerAdaptiveQuantization") ok.String(string(v.FlickerAdaptiveQuantization)) } if len(v.GopBReference) > 0 { ok := object.Key("gopBReference") ok.String(string(v.GopBReference)) } if v.GopClosedCadence != 0 { ok := object.Key("gopClosedCadence") ok.Integer(v.GopClosedCadence) } if v.HrdBufferSize != 0 { ok := object.Key("hrdBufferSize") ok.Integer(v.HrdBufferSize) } if len(v.InterlaceMode) > 0 { ok := object.Key("interlaceMode") ok.String(string(v.InterlaceMode)) } if len(v.QualityTuningLevel) > 0 { ok := object.Key("qualityTuningLevel") ok.String(string(v.QualityTuningLevel)) } if v.Slices != 0 { ok := object.Key("slices") ok.Integer(v.Slices) } if len(v.Telecine) > 0 { ok := object.Key("telecine") ok.String(string(v.Telecine)) } return nil } func awsRestjson1_serializeDocumentXavcSettings(v *types.XavcSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.AdaptiveQuantization) > 0 { ok := object.Key("adaptiveQuantization") ok.String(string(v.AdaptiveQuantization)) } if len(v.EntropyEncoding) > 0 { ok := object.Key("entropyEncoding") ok.String(string(v.EntropyEncoding)) } if len(v.FramerateControl) > 0 { ok := object.Key("framerateControl") ok.String(string(v.FramerateControl)) } if len(v.FramerateConversionAlgorithm) > 0 { ok := object.Key("framerateConversionAlgorithm") ok.String(string(v.FramerateConversionAlgorithm)) } if v.FramerateDenominator != 0 { ok := object.Key("framerateDenominator") ok.Integer(v.FramerateDenominator) } if v.FramerateNumerator != 0 { ok := object.Key("framerateNumerator") ok.Integer(v.FramerateNumerator) } if len(v.Profile) > 0 { ok := object.Key("profile") ok.String(string(v.Profile)) } if len(v.SlowPal) > 0 { ok := object.Key("slowPal") ok.String(string(v.SlowPal)) } if v.Softness != 0 { ok := object.Key("softness") ok.Integer(v.Softness) } if len(v.SpatialAdaptiveQuantization) > 0 { ok := object.Key("spatialAdaptiveQuantization") ok.String(string(v.SpatialAdaptiveQuantization)) } if len(v.TemporalAdaptiveQuantization) > 0 { ok := object.Key("temporalAdaptiveQuantization") ok.String(string(v.TemporalAdaptiveQuantization)) } if v.Xavc4kIntraCbgProfileSettings != nil { ok := object.Key("xavc4kIntraCbgProfileSettings") if err := awsRestjson1_serializeDocumentXavc4kIntraCbgProfileSettings(v.Xavc4kIntraCbgProfileSettings, ok); err != nil { return err } } if v.Xavc4kIntraVbrProfileSettings != nil { ok := object.Key("xavc4kIntraVbrProfileSettings") if err := awsRestjson1_serializeDocumentXavc4kIntraVbrProfileSettings(v.Xavc4kIntraVbrProfileSettings, ok); err != nil { return err } } if v.Xavc4kProfileSettings != nil { ok := object.Key("xavc4kProfileSettings") if err := awsRestjson1_serializeDocumentXavc4kProfileSettings(v.Xavc4kProfileSettings, ok); err != nil { return err } } if v.XavcHdIntraCbgProfileSettings != nil { ok := object.Key("xavcHdIntraCbgProfileSettings") if err := awsRestjson1_serializeDocumentXavcHdIntraCbgProfileSettings(v.XavcHdIntraCbgProfileSettings, ok); err != nil { return err } } if v.XavcHdProfileSettings != nil { ok := object.Key("xavcHdProfileSettings") if err := awsRestjson1_serializeDocumentXavcHdProfileSettings(v.XavcHdProfileSettings, ok); err != nil { return err } } return nil }
9,763
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package mediaconvert import ( "context" "fmt" "github.com/aws/aws-sdk-go-v2/service/mediaconvert/types" smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) type validateOpAssociateCertificate struct { } func (*validateOpAssociateCertificate) ID() string { return "OperationInputValidation" } func (m *validateOpAssociateCertificate) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*AssociateCertificateInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpAssociateCertificateInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpCancelJob struct { } func (*validateOpCancelJob) ID() string { return "OperationInputValidation" } func (m *validateOpCancelJob) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*CancelJobInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpCancelJobInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpCreateJob struct { } func (*validateOpCreateJob) ID() string { return "OperationInputValidation" } func (m *validateOpCreateJob) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*CreateJobInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpCreateJobInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpCreateJobTemplate struct { } func (*validateOpCreateJobTemplate) ID() string { return "OperationInputValidation" } func (m *validateOpCreateJobTemplate) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*CreateJobTemplateInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpCreateJobTemplateInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpCreatePreset struct { } func (*validateOpCreatePreset) ID() string { return "OperationInputValidation" } func (m *validateOpCreatePreset) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*CreatePresetInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpCreatePresetInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpCreateQueue struct { } func (*validateOpCreateQueue) ID() string { return "OperationInputValidation" } func (m *validateOpCreateQueue) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*CreateQueueInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpCreateQueueInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpDeleteJobTemplate struct { } func (*validateOpDeleteJobTemplate) ID() string { return "OperationInputValidation" } func (m *validateOpDeleteJobTemplate) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*DeleteJobTemplateInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpDeleteJobTemplateInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpDeletePreset struct { } func (*validateOpDeletePreset) ID() string { return "OperationInputValidation" } func (m *validateOpDeletePreset) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*DeletePresetInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpDeletePresetInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpDeleteQueue struct { } func (*validateOpDeleteQueue) ID() string { return "OperationInputValidation" } func (m *validateOpDeleteQueue) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*DeleteQueueInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpDeleteQueueInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpDisassociateCertificate struct { } func (*validateOpDisassociateCertificate) ID() string { return "OperationInputValidation" } func (m *validateOpDisassociateCertificate) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*DisassociateCertificateInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpDisassociateCertificateInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpGetJob struct { } func (*validateOpGetJob) ID() string { return "OperationInputValidation" } func (m *validateOpGetJob) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*GetJobInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpGetJobInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpGetJobTemplate struct { } func (*validateOpGetJobTemplate) ID() string { return "OperationInputValidation" } func (m *validateOpGetJobTemplate) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*GetJobTemplateInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpGetJobTemplateInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpGetPreset struct { } func (*validateOpGetPreset) ID() string { return "OperationInputValidation" } func (m *validateOpGetPreset) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*GetPresetInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpGetPresetInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpGetQueue struct { } func (*validateOpGetQueue) ID() string { return "OperationInputValidation" } func (m *validateOpGetQueue) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*GetQueueInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpGetQueueInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpListTagsForResource struct { } func (*validateOpListTagsForResource) ID() string { return "OperationInputValidation" } func (m *validateOpListTagsForResource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*ListTagsForResourceInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpListTagsForResourceInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpPutPolicy struct { } func (*validateOpPutPolicy) ID() string { return "OperationInputValidation" } func (m *validateOpPutPolicy) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*PutPolicyInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpPutPolicyInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpTagResource struct { } func (*validateOpTagResource) ID() string { return "OperationInputValidation" } func (m *validateOpTagResource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*TagResourceInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpTagResourceInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpUntagResource struct { } func (*validateOpUntagResource) ID() string { return "OperationInputValidation" } func (m *validateOpUntagResource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*UntagResourceInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpUntagResourceInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpUpdateJobTemplate struct { } func (*validateOpUpdateJobTemplate) ID() string { return "OperationInputValidation" } func (m *validateOpUpdateJobTemplate) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*UpdateJobTemplateInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpUpdateJobTemplateInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpUpdatePreset struct { } func (*validateOpUpdatePreset) ID() string { return "OperationInputValidation" } func (m *validateOpUpdatePreset) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*UpdatePresetInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpUpdatePresetInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } type validateOpUpdateQueue struct { } func (*validateOpUpdateQueue) ID() string { return "OperationInputValidation" } func (m *validateOpUpdateQueue) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { input, ok := in.Parameters.(*UpdateQueueInput) if !ok { return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) } if err := validateOpUpdateQueueInput(input); err != nil { return out, metadata, err } return next.HandleInitialize(ctx, in) } func addOpAssociateCertificateValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpAssociateCertificate{}, middleware.After) } func addOpCancelJobValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCancelJob{}, middleware.After) } func addOpCreateJobValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateJob{}, middleware.After) } func addOpCreateJobTemplateValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateJobTemplate{}, middleware.After) } func addOpCreatePresetValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreatePreset{}, middleware.After) } func addOpCreateQueueValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateQueue{}, middleware.After) } func addOpDeleteJobTemplateValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteJobTemplate{}, middleware.After) } func addOpDeletePresetValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeletePreset{}, middleware.After) } func addOpDeleteQueueValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteQueue{}, middleware.After) } func addOpDisassociateCertificateValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDisassociateCertificate{}, middleware.After) } func addOpGetJobValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpGetJob{}, middleware.After) } func addOpGetJobTemplateValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpGetJobTemplate{}, middleware.After) } func addOpGetPresetValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpGetPreset{}, middleware.After) } func addOpGetQueueValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpGetQueue{}, middleware.After) } func addOpListTagsForResourceValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListTagsForResource{}, middleware.After) } func addOpPutPolicyValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpPutPolicy{}, middleware.After) } func addOpTagResourceValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpTagResource{}, middleware.After) } func addOpUntagResourceValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUntagResource{}, middleware.After) } func addOpUpdateJobTemplateValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateJobTemplate{}, middleware.After) } func addOpUpdatePresetValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdatePreset{}, middleware.After) } func addOpUpdateQueueValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateQueue{}, middleware.After) } func validateAccelerationSettings(v *types.AccelerationSettings) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AccelerationSettings"} if len(v.Mode) == 0 { invalidParams.Add(smithy.NewErrParamRequired("Mode")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateReservationPlanSettings(v *types.ReservationPlanSettings) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ReservationPlanSettings"} if len(v.Commitment) == 0 { invalidParams.Add(smithy.NewErrParamRequired("Commitment")) } if len(v.RenewalType) == 0 { invalidParams.Add(smithy.NewErrParamRequired("RenewalType")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpAssociateCertificateInput(v *AssociateCertificateInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "AssociateCertificateInput"} if v.Arn == nil { invalidParams.Add(smithy.NewErrParamRequired("Arn")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpCancelJobInput(v *CancelJobInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "CancelJobInput"} if v.Id == nil { invalidParams.Add(smithy.NewErrParamRequired("Id")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpCreateJobInput(v *CreateJobInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "CreateJobInput"} if v.AccelerationSettings != nil { if err := validateAccelerationSettings(v.AccelerationSettings); err != nil { invalidParams.AddNested("AccelerationSettings", err.(smithy.InvalidParamsError)) } } if v.Role == nil { invalidParams.Add(smithy.NewErrParamRequired("Role")) } if v.Settings == nil { invalidParams.Add(smithy.NewErrParamRequired("Settings")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpCreateJobTemplateInput(v *CreateJobTemplateInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "CreateJobTemplateInput"} if v.AccelerationSettings != nil { if err := validateAccelerationSettings(v.AccelerationSettings); err != nil { invalidParams.AddNested("AccelerationSettings", err.(smithy.InvalidParamsError)) } } if v.Name == nil { invalidParams.Add(smithy.NewErrParamRequired("Name")) } if v.Settings == nil { invalidParams.Add(smithy.NewErrParamRequired("Settings")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpCreatePresetInput(v *CreatePresetInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "CreatePresetInput"} if v.Name == nil { invalidParams.Add(smithy.NewErrParamRequired("Name")) } if v.Settings == nil { invalidParams.Add(smithy.NewErrParamRequired("Settings")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpCreateQueueInput(v *CreateQueueInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "CreateQueueInput"} if v.Name == nil { invalidParams.Add(smithy.NewErrParamRequired("Name")) } if v.ReservationPlanSettings != nil { if err := validateReservationPlanSettings(v.ReservationPlanSettings); err != nil { invalidParams.AddNested("ReservationPlanSettings", err.(smithy.InvalidParamsError)) } } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpDeleteJobTemplateInput(v *DeleteJobTemplateInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DeleteJobTemplateInput"} if v.Name == nil { invalidParams.Add(smithy.NewErrParamRequired("Name")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpDeletePresetInput(v *DeletePresetInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DeletePresetInput"} if v.Name == nil { invalidParams.Add(smithy.NewErrParamRequired("Name")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpDeleteQueueInput(v *DeleteQueueInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DeleteQueueInput"} if v.Name == nil { invalidParams.Add(smithy.NewErrParamRequired("Name")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpDisassociateCertificateInput(v *DisassociateCertificateInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "DisassociateCertificateInput"} if v.Arn == nil { invalidParams.Add(smithy.NewErrParamRequired("Arn")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpGetJobInput(v *GetJobInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "GetJobInput"} if v.Id == nil { invalidParams.Add(smithy.NewErrParamRequired("Id")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpGetJobTemplateInput(v *GetJobTemplateInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "GetJobTemplateInput"} if v.Name == nil { invalidParams.Add(smithy.NewErrParamRequired("Name")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpGetPresetInput(v *GetPresetInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "GetPresetInput"} if v.Name == nil { invalidParams.Add(smithy.NewErrParamRequired("Name")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpGetQueueInput(v *GetQueueInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "GetQueueInput"} if v.Name == nil { invalidParams.Add(smithy.NewErrParamRequired("Name")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpListTagsForResourceInput(v *ListTagsForResourceInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "ListTagsForResourceInput"} if v.Arn == nil { invalidParams.Add(smithy.NewErrParamRequired("Arn")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpPutPolicyInput(v *PutPolicyInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "PutPolicyInput"} if v.Policy == nil { invalidParams.Add(smithy.NewErrParamRequired("Policy")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpTagResourceInput(v *TagResourceInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "TagResourceInput"} if v.Arn == nil { invalidParams.Add(smithy.NewErrParamRequired("Arn")) } if v.Tags == nil { invalidParams.Add(smithy.NewErrParamRequired("Tags")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpUntagResourceInput(v *UntagResourceInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "UntagResourceInput"} if v.Arn == nil { invalidParams.Add(smithy.NewErrParamRequired("Arn")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpUpdateJobTemplateInput(v *UpdateJobTemplateInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "UpdateJobTemplateInput"} if v.AccelerationSettings != nil { if err := validateAccelerationSettings(v.AccelerationSettings); err != nil { invalidParams.AddNested("AccelerationSettings", err.(smithy.InvalidParamsError)) } } if v.Name == nil { invalidParams.Add(smithy.NewErrParamRequired("Name")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpUpdatePresetInput(v *UpdatePresetInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "UpdatePresetInput"} if v.Name == nil { invalidParams.Add(smithy.NewErrParamRequired("Name")) } if invalidParams.Len() > 0 { return invalidParams } else { return nil } } func validateOpUpdateQueueInput(v *UpdateQueueInput) error { if v == nil { return nil } invalidParams := smithy.InvalidParamsError{Context: "UpdateQueueInput"} if v.Name == nil { invalidParams.Add(smithy.NewErrParamRequired("Name")) } if v.ReservationPlanSettings != nil { if err := validateReservationPlanSettings(v.ReservationPlanSettings); err != nil { invalidParams.AddNested("ReservationPlanSettings", err.(smithy.InvalidParamsError)) } } if invalidParams.Len() > 0 { return invalidParams } else { return nil } }
901
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package endpoints import ( "github.com/aws/aws-sdk-go-v2/aws" endpoints "github.com/aws/aws-sdk-go-v2/internal/endpoints/v2" "github.com/aws/smithy-go/logging" "regexp" ) // Options is the endpoint resolver configuration options type Options struct { // Logger is a logging implementation that log events should be sent to. Logger logging.Logger // LogDeprecated indicates that deprecated endpoints should be logged to the // provided logger. LogDeprecated bool // ResolvedRegion is used to override the region to be resolved, rather then the // using the value passed to the ResolveEndpoint method. This value is used by the // SDK to translate regions like fips-us-east-1 or us-east-1-fips to an alternative // name. You must not set this value directly in your application. ResolvedRegion string // DisableHTTPS informs the resolver to return an endpoint that does not use the // HTTPS scheme. DisableHTTPS bool // UseDualStackEndpoint specifies the resolver must resolve a dual-stack endpoint. UseDualStackEndpoint aws.DualStackEndpointState // UseFIPSEndpoint specifies the resolver must resolve a FIPS endpoint. UseFIPSEndpoint aws.FIPSEndpointState } func (o Options) GetResolvedRegion() string { return o.ResolvedRegion } func (o Options) GetDisableHTTPS() bool { return o.DisableHTTPS } func (o Options) GetUseDualStackEndpoint() aws.DualStackEndpointState { return o.UseDualStackEndpoint } func (o Options) GetUseFIPSEndpoint() aws.FIPSEndpointState { return o.UseFIPSEndpoint } func transformToSharedOptions(options Options) endpoints.Options { return endpoints.Options{ Logger: options.Logger, LogDeprecated: options.LogDeprecated, ResolvedRegion: options.ResolvedRegion, DisableHTTPS: options.DisableHTTPS, UseDualStackEndpoint: options.UseDualStackEndpoint, UseFIPSEndpoint: options.UseFIPSEndpoint, } } // Resolver MediaConvert endpoint resolver type Resolver struct { partitions endpoints.Partitions } // ResolveEndpoint resolves the service endpoint for the given region and options func (r *Resolver) ResolveEndpoint(region string, options Options) (endpoint aws.Endpoint, err error) { if len(region) == 0 { return endpoint, &aws.MissingRegionError{} } opt := transformToSharedOptions(options) return r.partitions.ResolveEndpoint(region, opt) } // New returns a new Resolver func New() *Resolver { return &Resolver{ partitions: defaultPartitions, } } var partitionRegexp = struct { Aws *regexp.Regexp AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp AwsIsoE *regexp.Regexp AwsIsoF *regexp.Regexp AwsUsGov *regexp.Regexp }{ Aws: regexp.MustCompile("^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$"), AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsIsoF: regexp.MustCompile("^us\\-isof\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } var defaultPartitions = endpoints.Partitions{ { ID: "aws", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ { Variant: endpoints.DualStackVariant, }: { Hostname: "mediaconvert.{region}.api.aws", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: endpoints.FIPSVariant, }: { Hostname: "mediaconvert-fips.{region}.amazonaws.com", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: endpoints.FIPSVariant | endpoints.DualStackVariant, }: { Hostname: "mediaconvert-fips.{region}.api.aws", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: 0, }: { Hostname: "mediaconvert.{region}.amazonaws.com", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, }, RegionRegex: partitionRegexp.Aws, IsRegionalized: true, Endpoints: endpoints.Endpoints{ endpoints.EndpointKey{ Region: "af-south-1", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ap-northeast-1", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ap-northeast-2", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ap-south-1", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ap-southeast-1", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ap-southeast-2", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", Variant: endpoints.FIPSVariant, }: { Hostname: "mediaconvert-fips.ca-central-1.amazonaws.com", }, endpoints.EndpointKey{ Region: "eu-central-1", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "eu-north-1", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "eu-west-1", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "eu-west-2", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "eu-west-3", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "fips-ca-central-1", }: endpoints.Endpoint{ Hostname: "mediaconvert-fips.ca-central-1.amazonaws.com", CredentialScope: endpoints.CredentialScope{ Region: "ca-central-1", }, Deprecated: aws.TrueTernary, }, endpoints.EndpointKey{ Region: "fips-us-east-1", }: endpoints.Endpoint{ Hostname: "mediaconvert-fips.us-east-1.amazonaws.com", CredentialScope: endpoints.CredentialScope{ Region: "us-east-1", }, Deprecated: aws.TrueTernary, }, endpoints.EndpointKey{ Region: "fips-us-east-2", }: endpoints.Endpoint{ Hostname: "mediaconvert-fips.us-east-2.amazonaws.com", CredentialScope: endpoints.CredentialScope{ Region: "us-east-2", }, Deprecated: aws.TrueTernary, }, endpoints.EndpointKey{ Region: "fips-us-west-1", }: endpoints.Endpoint{ Hostname: "mediaconvert-fips.us-west-1.amazonaws.com", CredentialScope: endpoints.CredentialScope{ Region: "us-west-1", }, Deprecated: aws.TrueTernary, }, endpoints.EndpointKey{ Region: "fips-us-west-2", }: endpoints.Endpoint{ Hostname: "mediaconvert-fips.us-west-2.amazonaws.com", CredentialScope: endpoints.CredentialScope{ Region: "us-west-2", }, Deprecated: aws.TrueTernary, }, endpoints.EndpointKey{ Region: "sa-east-1", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "us-east-1", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "us-east-1", Variant: endpoints.FIPSVariant, }: { Hostname: "mediaconvert-fips.us-east-1.amazonaws.com", }, endpoints.EndpointKey{ Region: "us-east-2", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "us-east-2", Variant: endpoints.FIPSVariant, }: { Hostname: "mediaconvert-fips.us-east-2.amazonaws.com", }, endpoints.EndpointKey{ Region: "us-west-1", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "us-west-1", Variant: endpoints.FIPSVariant, }: { Hostname: "mediaconvert-fips.us-west-1.amazonaws.com", }, endpoints.EndpointKey{ Region: "us-west-2", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "us-west-2", Variant: endpoints.FIPSVariant, }: { Hostname: "mediaconvert-fips.us-west-2.amazonaws.com", }, }, }, { ID: "aws-cn", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ { Variant: endpoints.DualStackVariant, }: { Hostname: "mediaconvert.{region}.api.amazonwebservices.com.cn", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: endpoints.FIPSVariant, }: { Hostname: "mediaconvert-fips.{region}.amazonaws.com.cn", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: endpoints.FIPSVariant | endpoints.DualStackVariant, }: { Hostname: "mediaconvert-fips.{region}.api.amazonwebservices.com.cn", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: 0, }: { Hostname: "mediaconvert.{region}.amazonaws.com.cn", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, }, RegionRegex: partitionRegexp.AwsCn, IsRegionalized: true, Endpoints: endpoints.Endpoints{ endpoints.EndpointKey{ Region: "cn-northwest-1", }: endpoints.Endpoint{ Hostname: "subscribe.mediaconvert.cn-northwest-1.amazonaws.com.cn", CredentialScope: endpoints.CredentialScope{ Region: "cn-northwest-1", }, }, }, }, { ID: "aws-iso", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ { Variant: endpoints.FIPSVariant, }: { Hostname: "mediaconvert-fips.{region}.c2s.ic.gov", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: 0, }: { Hostname: "mediaconvert.{region}.c2s.ic.gov", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, }, RegionRegex: partitionRegexp.AwsIso, IsRegionalized: true, }, { ID: "aws-iso-b", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ { Variant: endpoints.FIPSVariant, }: { Hostname: "mediaconvert-fips.{region}.sc2s.sgov.gov", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: 0, }: { Hostname: "mediaconvert.{region}.sc2s.sgov.gov", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, }, RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, { ID: "aws-iso-e", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ { Variant: endpoints.FIPSVariant, }: { Hostname: "mediaconvert-fips.{region}.cloud.adc-e.uk", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: 0, }: { Hostname: "mediaconvert.{region}.cloud.adc-e.uk", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, }, RegionRegex: partitionRegexp.AwsIsoE, IsRegionalized: true, }, { ID: "aws-iso-f", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ { Variant: endpoints.FIPSVariant, }: { Hostname: "mediaconvert-fips.{region}.csp.hci.ic.gov", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: 0, }: { Hostname: "mediaconvert.{region}.csp.hci.ic.gov", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, }, RegionRegex: partitionRegexp.AwsIsoF, IsRegionalized: true, }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ { Variant: endpoints.DualStackVariant, }: { Hostname: "mediaconvert.{region}.api.aws", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: endpoints.FIPSVariant, }: { Hostname: "mediaconvert-fips.{region}.amazonaws.com", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: endpoints.FIPSVariant | endpoints.DualStackVariant, }: { Hostname: "mediaconvert-fips.{region}.api.aws", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, { Variant: 0, }: { Hostname: "mediaconvert.{region}.amazonaws.com", Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, }, RegionRegex: partitionRegexp.AwsUsGov, IsRegionalized: true, Endpoints: endpoints.Endpoints{ endpoints.EndpointKey{ Region: "fips-us-gov-west-1", }: endpoints.Endpoint{ Hostname: "mediaconvert.us-gov-west-1.amazonaws.com", CredentialScope: endpoints.CredentialScope{ Region: "us-gov-west-1", }, Deprecated: aws.TrueTernary, }, endpoints.EndpointKey{ Region: "us-gov-west-1", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "us-gov-west-1", Variant: endpoints.FIPSVariant, }: { Hostname: "mediaconvert.us-gov-west-1.amazonaws.com", }, }, }, }
455
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package endpoints import ( "testing" ) func TestRegexCompile(t *testing.T) { _ = defaultPartitions }
12
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package types type AacAudioDescriptionBroadcasterMix string // Enum values for AacAudioDescriptionBroadcasterMix const ( AacAudioDescriptionBroadcasterMixBroadcasterMixedAd AacAudioDescriptionBroadcasterMix = "BROADCASTER_MIXED_AD" AacAudioDescriptionBroadcasterMixNormal AacAudioDescriptionBroadcasterMix = "NORMAL" ) // Values returns all known values for AacAudioDescriptionBroadcasterMix. Note // that this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (AacAudioDescriptionBroadcasterMix) Values() []AacAudioDescriptionBroadcasterMix { return []AacAudioDescriptionBroadcasterMix{ "BROADCASTER_MIXED_AD", "NORMAL", } } type AacCodecProfile string // Enum values for AacCodecProfile const ( AacCodecProfileLc AacCodecProfile = "LC" AacCodecProfileHev1 AacCodecProfile = "HEV1" AacCodecProfileHev2 AacCodecProfile = "HEV2" ) // Values returns all known values for AacCodecProfile. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (AacCodecProfile) Values() []AacCodecProfile { return []AacCodecProfile{ "LC", "HEV1", "HEV2", } } type AacCodingMode string // Enum values for AacCodingMode const ( AacCodingModeAdReceiverMix AacCodingMode = "AD_RECEIVER_MIX" AacCodingModeCodingMode10 AacCodingMode = "CODING_MODE_1_0" AacCodingModeCodingMode11 AacCodingMode = "CODING_MODE_1_1" AacCodingModeCodingMode20 AacCodingMode = "CODING_MODE_2_0" AacCodingModeCodingMode51 AacCodingMode = "CODING_MODE_5_1" ) // Values returns all known values for AacCodingMode. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (AacCodingMode) Values() []AacCodingMode { return []AacCodingMode{ "AD_RECEIVER_MIX", "CODING_MODE_1_0", "CODING_MODE_1_1", "CODING_MODE_2_0", "CODING_MODE_5_1", } } type AacRateControlMode string // Enum values for AacRateControlMode const ( AacRateControlModeCbr AacRateControlMode = "CBR" AacRateControlModeVbr AacRateControlMode = "VBR" ) // Values returns all known values for AacRateControlMode. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (AacRateControlMode) Values() []AacRateControlMode { return []AacRateControlMode{ "CBR", "VBR", } } type AacRawFormat string // Enum values for AacRawFormat const ( AacRawFormatLatmLoas AacRawFormat = "LATM_LOAS" AacRawFormatNone AacRawFormat = "NONE" ) // Values returns all known values for AacRawFormat. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (AacRawFormat) Values() []AacRawFormat { return []AacRawFormat{ "LATM_LOAS", "NONE", } } type AacSpecification string // Enum values for AacSpecification const ( AacSpecificationMpeg2 AacSpecification = "MPEG2" AacSpecificationMpeg4 AacSpecification = "MPEG4" ) // Values returns all known values for AacSpecification. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (AacSpecification) Values() []AacSpecification { return []AacSpecification{ "MPEG2", "MPEG4", } } type AacVbrQuality string // Enum values for AacVbrQuality const ( AacVbrQualityLow AacVbrQuality = "LOW" AacVbrQualityMediumLow AacVbrQuality = "MEDIUM_LOW" AacVbrQualityMediumHigh AacVbrQuality = "MEDIUM_HIGH" AacVbrQualityHigh AacVbrQuality = "HIGH" ) // Values returns all known values for AacVbrQuality. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (AacVbrQuality) Values() []AacVbrQuality { return []AacVbrQuality{ "LOW", "MEDIUM_LOW", "MEDIUM_HIGH", "HIGH", } } type Ac3BitstreamMode string // Enum values for Ac3BitstreamMode const ( Ac3BitstreamModeCompleteMain Ac3BitstreamMode = "COMPLETE_MAIN" Ac3BitstreamModeCommentary Ac3BitstreamMode = "COMMENTARY" Ac3BitstreamModeDialogue Ac3BitstreamMode = "DIALOGUE" Ac3BitstreamModeEmergency Ac3BitstreamMode = "EMERGENCY" Ac3BitstreamModeHearingImpaired Ac3BitstreamMode = "HEARING_IMPAIRED" Ac3BitstreamModeMusicAndEffects Ac3BitstreamMode = "MUSIC_AND_EFFECTS" Ac3BitstreamModeVisuallyImpaired Ac3BitstreamMode = "VISUALLY_IMPAIRED" Ac3BitstreamModeVoiceOver Ac3BitstreamMode = "VOICE_OVER" ) // Values returns all known values for Ac3BitstreamMode. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Ac3BitstreamMode) Values() []Ac3BitstreamMode { return []Ac3BitstreamMode{ "COMPLETE_MAIN", "COMMENTARY", "DIALOGUE", "EMERGENCY", "HEARING_IMPAIRED", "MUSIC_AND_EFFECTS", "VISUALLY_IMPAIRED", "VOICE_OVER", } } type Ac3CodingMode string // Enum values for Ac3CodingMode const ( Ac3CodingModeCodingMode10 Ac3CodingMode = "CODING_MODE_1_0" Ac3CodingModeCodingMode11 Ac3CodingMode = "CODING_MODE_1_1" Ac3CodingModeCodingMode20 Ac3CodingMode = "CODING_MODE_2_0" Ac3CodingModeCodingMode32Lfe Ac3CodingMode = "CODING_MODE_3_2_LFE" ) // Values returns all known values for Ac3CodingMode. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Ac3CodingMode) Values() []Ac3CodingMode { return []Ac3CodingMode{ "CODING_MODE_1_0", "CODING_MODE_1_1", "CODING_MODE_2_0", "CODING_MODE_3_2_LFE", } } type Ac3DynamicRangeCompressionLine string // Enum values for Ac3DynamicRangeCompressionLine const ( Ac3DynamicRangeCompressionLineFilmStandard Ac3DynamicRangeCompressionLine = "FILM_STANDARD" Ac3DynamicRangeCompressionLineFilmLight Ac3DynamicRangeCompressionLine = "FILM_LIGHT" Ac3DynamicRangeCompressionLineMusicStandard Ac3DynamicRangeCompressionLine = "MUSIC_STANDARD" Ac3DynamicRangeCompressionLineMusicLight Ac3DynamicRangeCompressionLine = "MUSIC_LIGHT" Ac3DynamicRangeCompressionLineSpeech Ac3DynamicRangeCompressionLine = "SPEECH" Ac3DynamicRangeCompressionLineNone Ac3DynamicRangeCompressionLine = "NONE" ) // Values returns all known values for Ac3DynamicRangeCompressionLine. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (Ac3DynamicRangeCompressionLine) Values() []Ac3DynamicRangeCompressionLine { return []Ac3DynamicRangeCompressionLine{ "FILM_STANDARD", "FILM_LIGHT", "MUSIC_STANDARD", "MUSIC_LIGHT", "SPEECH", "NONE", } } type Ac3DynamicRangeCompressionProfile string // Enum values for Ac3DynamicRangeCompressionProfile const ( Ac3DynamicRangeCompressionProfileFilmStandard Ac3DynamicRangeCompressionProfile = "FILM_STANDARD" Ac3DynamicRangeCompressionProfileNone Ac3DynamicRangeCompressionProfile = "NONE" ) // Values returns all known values for Ac3DynamicRangeCompressionProfile. Note // that this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (Ac3DynamicRangeCompressionProfile) Values() []Ac3DynamicRangeCompressionProfile { return []Ac3DynamicRangeCompressionProfile{ "FILM_STANDARD", "NONE", } } type Ac3DynamicRangeCompressionRf string // Enum values for Ac3DynamicRangeCompressionRf const ( Ac3DynamicRangeCompressionRfFilmStandard Ac3DynamicRangeCompressionRf = "FILM_STANDARD" Ac3DynamicRangeCompressionRfFilmLight Ac3DynamicRangeCompressionRf = "FILM_LIGHT" Ac3DynamicRangeCompressionRfMusicStandard Ac3DynamicRangeCompressionRf = "MUSIC_STANDARD" Ac3DynamicRangeCompressionRfMusicLight Ac3DynamicRangeCompressionRf = "MUSIC_LIGHT" Ac3DynamicRangeCompressionRfSpeech Ac3DynamicRangeCompressionRf = "SPEECH" Ac3DynamicRangeCompressionRfNone Ac3DynamicRangeCompressionRf = "NONE" ) // Values returns all known values for Ac3DynamicRangeCompressionRf. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (Ac3DynamicRangeCompressionRf) Values() []Ac3DynamicRangeCompressionRf { return []Ac3DynamicRangeCompressionRf{ "FILM_STANDARD", "FILM_LIGHT", "MUSIC_STANDARD", "MUSIC_LIGHT", "SPEECH", "NONE", } } type Ac3LfeFilter string // Enum values for Ac3LfeFilter const ( Ac3LfeFilterEnabled Ac3LfeFilter = "ENABLED" Ac3LfeFilterDisabled Ac3LfeFilter = "DISABLED" ) // Values returns all known values for Ac3LfeFilter. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Ac3LfeFilter) Values() []Ac3LfeFilter { return []Ac3LfeFilter{ "ENABLED", "DISABLED", } } type Ac3MetadataControl string // Enum values for Ac3MetadataControl const ( Ac3MetadataControlFollowInput Ac3MetadataControl = "FOLLOW_INPUT" Ac3MetadataControlUseConfigured Ac3MetadataControl = "USE_CONFIGURED" ) // Values returns all known values for Ac3MetadataControl. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Ac3MetadataControl) Values() []Ac3MetadataControl { return []Ac3MetadataControl{ "FOLLOW_INPUT", "USE_CONFIGURED", } } type AccelerationMode string // Enum values for AccelerationMode const ( AccelerationModeDisabled AccelerationMode = "DISABLED" AccelerationModeEnabled AccelerationMode = "ENABLED" AccelerationModePreferred AccelerationMode = "PREFERRED" ) // Values returns all known values for AccelerationMode. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (AccelerationMode) Values() []AccelerationMode { return []AccelerationMode{ "DISABLED", "ENABLED", "PREFERRED", } } type AccelerationStatus string // Enum values for AccelerationStatus const ( AccelerationStatusNotApplicable AccelerationStatus = "NOT_APPLICABLE" AccelerationStatusInProgress AccelerationStatus = "IN_PROGRESS" AccelerationStatusAccelerated AccelerationStatus = "ACCELERATED" AccelerationStatusNotAccelerated AccelerationStatus = "NOT_ACCELERATED" ) // Values returns all known values for AccelerationStatus. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (AccelerationStatus) Values() []AccelerationStatus { return []AccelerationStatus{ "NOT_APPLICABLE", "IN_PROGRESS", "ACCELERATED", "NOT_ACCELERATED", } } type AdvancedInputFilter string // Enum values for AdvancedInputFilter const ( AdvancedInputFilterEnabled AdvancedInputFilter = "ENABLED" AdvancedInputFilterDisabled AdvancedInputFilter = "DISABLED" ) // Values returns all known values for AdvancedInputFilter. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (AdvancedInputFilter) Values() []AdvancedInputFilter { return []AdvancedInputFilter{ "ENABLED", "DISABLED", } } type AdvancedInputFilterAddTexture string // Enum values for AdvancedInputFilterAddTexture const ( AdvancedInputFilterAddTextureEnabled AdvancedInputFilterAddTexture = "ENABLED" AdvancedInputFilterAddTextureDisabled AdvancedInputFilterAddTexture = "DISABLED" ) // Values returns all known values for AdvancedInputFilterAddTexture. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (AdvancedInputFilterAddTexture) Values() []AdvancedInputFilterAddTexture { return []AdvancedInputFilterAddTexture{ "ENABLED", "DISABLED", } } type AdvancedInputFilterSharpen string // Enum values for AdvancedInputFilterSharpen const ( AdvancedInputFilterSharpenOff AdvancedInputFilterSharpen = "OFF" AdvancedInputFilterSharpenLow AdvancedInputFilterSharpen = "LOW" AdvancedInputFilterSharpenHigh AdvancedInputFilterSharpen = "HIGH" ) // Values returns all known values for AdvancedInputFilterSharpen. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (AdvancedInputFilterSharpen) Values() []AdvancedInputFilterSharpen { return []AdvancedInputFilterSharpen{ "OFF", "LOW", "HIGH", } } type AfdSignaling string // Enum values for AfdSignaling const ( AfdSignalingNone AfdSignaling = "NONE" AfdSignalingAuto AfdSignaling = "AUTO" AfdSignalingFixed AfdSignaling = "FIXED" ) // Values returns all known values for AfdSignaling. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (AfdSignaling) Values() []AfdSignaling { return []AfdSignaling{ "NONE", "AUTO", "FIXED", } } type AlphaBehavior string // Enum values for AlphaBehavior const ( AlphaBehaviorDiscard AlphaBehavior = "DISCARD" AlphaBehaviorRemapToLuma AlphaBehavior = "REMAP_TO_LUMA" ) // Values returns all known values for AlphaBehavior. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (AlphaBehavior) Values() []AlphaBehavior { return []AlphaBehavior{ "DISCARD", "REMAP_TO_LUMA", } } type AncillaryConvert608To708 string // Enum values for AncillaryConvert608To708 const ( AncillaryConvert608To708Upconvert AncillaryConvert608To708 = "UPCONVERT" AncillaryConvert608To708Disabled AncillaryConvert608To708 = "DISABLED" ) // Values returns all known values for AncillaryConvert608To708. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (AncillaryConvert608To708) Values() []AncillaryConvert608To708 { return []AncillaryConvert608To708{ "UPCONVERT", "DISABLED", } } type AncillaryTerminateCaptions string // Enum values for AncillaryTerminateCaptions const ( AncillaryTerminateCaptionsEndOfInput AncillaryTerminateCaptions = "END_OF_INPUT" AncillaryTerminateCaptionsDisabled AncillaryTerminateCaptions = "DISABLED" ) // Values returns all known values for AncillaryTerminateCaptions. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (AncillaryTerminateCaptions) Values() []AncillaryTerminateCaptions { return []AncillaryTerminateCaptions{ "END_OF_INPUT", "DISABLED", } } type AntiAlias string // Enum values for AntiAlias const ( AntiAliasDisabled AntiAlias = "DISABLED" AntiAliasEnabled AntiAlias = "ENABLED" ) // Values returns all known values for AntiAlias. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (AntiAlias) Values() []AntiAlias { return []AntiAlias{ "DISABLED", "ENABLED", } } type AudioChannelTag string // Enum values for AudioChannelTag const ( AudioChannelTagL AudioChannelTag = "L" AudioChannelTagR AudioChannelTag = "R" AudioChannelTagC AudioChannelTag = "C" AudioChannelTagLfe AudioChannelTag = "LFE" AudioChannelTagLs AudioChannelTag = "LS" AudioChannelTagRs AudioChannelTag = "RS" AudioChannelTagLc AudioChannelTag = "LC" AudioChannelTagRc AudioChannelTag = "RC" AudioChannelTagCs AudioChannelTag = "CS" AudioChannelTagLsd AudioChannelTag = "LSD" AudioChannelTagRsd AudioChannelTag = "RSD" AudioChannelTagTcs AudioChannelTag = "TCS" AudioChannelTagVhl AudioChannelTag = "VHL" AudioChannelTagVhc AudioChannelTag = "VHC" AudioChannelTagVhr AudioChannelTag = "VHR" ) // Values returns all known values for AudioChannelTag. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (AudioChannelTag) Values() []AudioChannelTag { return []AudioChannelTag{ "L", "R", "C", "LFE", "LS", "RS", "LC", "RC", "CS", "LSD", "RSD", "TCS", "VHL", "VHC", "VHR", } } type AudioCodec string // Enum values for AudioCodec const ( AudioCodecAac AudioCodec = "AAC" AudioCodecMp2 AudioCodec = "MP2" AudioCodecMp3 AudioCodec = "MP3" AudioCodecWav AudioCodec = "WAV" AudioCodecAiff AudioCodec = "AIFF" AudioCodecAc3 AudioCodec = "AC3" AudioCodecEac3 AudioCodec = "EAC3" AudioCodecEac3Atmos AudioCodec = "EAC3_ATMOS" AudioCodecVorbis AudioCodec = "VORBIS" AudioCodecOpus AudioCodec = "OPUS" AudioCodecPassthrough AudioCodec = "PASSTHROUGH" ) // Values returns all known values for AudioCodec. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (AudioCodec) Values() []AudioCodec { return []AudioCodec{ "AAC", "MP2", "MP3", "WAV", "AIFF", "AC3", "EAC3", "EAC3_ATMOS", "VORBIS", "OPUS", "PASSTHROUGH", } } type AudioDefaultSelection string // Enum values for AudioDefaultSelection const ( AudioDefaultSelectionDefault AudioDefaultSelection = "DEFAULT" AudioDefaultSelectionNotDefault AudioDefaultSelection = "NOT_DEFAULT" ) // Values returns all known values for AudioDefaultSelection. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (AudioDefaultSelection) Values() []AudioDefaultSelection { return []AudioDefaultSelection{ "DEFAULT", "NOT_DEFAULT", } } type AudioDurationCorrection string // Enum values for AudioDurationCorrection const ( AudioDurationCorrectionDisabled AudioDurationCorrection = "DISABLED" AudioDurationCorrectionAuto AudioDurationCorrection = "AUTO" AudioDurationCorrectionTrack AudioDurationCorrection = "TRACK" AudioDurationCorrectionFrame AudioDurationCorrection = "FRAME" ) // Values returns all known values for AudioDurationCorrection. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (AudioDurationCorrection) Values() []AudioDurationCorrection { return []AudioDurationCorrection{ "DISABLED", "AUTO", "TRACK", "FRAME", } } type AudioLanguageCodeControl string // Enum values for AudioLanguageCodeControl const ( AudioLanguageCodeControlFollowInput AudioLanguageCodeControl = "FOLLOW_INPUT" AudioLanguageCodeControlUseConfigured AudioLanguageCodeControl = "USE_CONFIGURED" ) // Values returns all known values for AudioLanguageCodeControl. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (AudioLanguageCodeControl) Values() []AudioLanguageCodeControl { return []AudioLanguageCodeControl{ "FOLLOW_INPUT", "USE_CONFIGURED", } } type AudioNormalizationAlgorithm string // Enum values for AudioNormalizationAlgorithm const ( AudioNormalizationAlgorithmItuBs17701 AudioNormalizationAlgorithm = "ITU_BS_1770_1" AudioNormalizationAlgorithmItuBs17702 AudioNormalizationAlgorithm = "ITU_BS_1770_2" AudioNormalizationAlgorithmItuBs17703 AudioNormalizationAlgorithm = "ITU_BS_1770_3" AudioNormalizationAlgorithmItuBs17704 AudioNormalizationAlgorithm = "ITU_BS_1770_4" ) // Values returns all known values for AudioNormalizationAlgorithm. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (AudioNormalizationAlgorithm) Values() []AudioNormalizationAlgorithm { return []AudioNormalizationAlgorithm{ "ITU_BS_1770_1", "ITU_BS_1770_2", "ITU_BS_1770_3", "ITU_BS_1770_4", } } type AudioNormalizationAlgorithmControl string // Enum values for AudioNormalizationAlgorithmControl const ( AudioNormalizationAlgorithmControlCorrectAudio AudioNormalizationAlgorithmControl = "CORRECT_AUDIO" AudioNormalizationAlgorithmControlMeasureOnly AudioNormalizationAlgorithmControl = "MEASURE_ONLY" ) // Values returns all known values for AudioNormalizationAlgorithmControl. Note // that this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (AudioNormalizationAlgorithmControl) Values() []AudioNormalizationAlgorithmControl { return []AudioNormalizationAlgorithmControl{ "CORRECT_AUDIO", "MEASURE_ONLY", } } type AudioNormalizationLoudnessLogging string // Enum values for AudioNormalizationLoudnessLogging const ( AudioNormalizationLoudnessLoggingLog AudioNormalizationLoudnessLogging = "LOG" AudioNormalizationLoudnessLoggingDontLog AudioNormalizationLoudnessLogging = "DONT_LOG" ) // Values returns all known values for AudioNormalizationLoudnessLogging. Note // that this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (AudioNormalizationLoudnessLogging) Values() []AudioNormalizationLoudnessLogging { return []AudioNormalizationLoudnessLogging{ "LOG", "DONT_LOG", } } type AudioNormalizationPeakCalculation string // Enum values for AudioNormalizationPeakCalculation const ( AudioNormalizationPeakCalculationTruePeak AudioNormalizationPeakCalculation = "TRUE_PEAK" AudioNormalizationPeakCalculationNone AudioNormalizationPeakCalculation = "NONE" ) // Values returns all known values for AudioNormalizationPeakCalculation. Note // that this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (AudioNormalizationPeakCalculation) Values() []AudioNormalizationPeakCalculation { return []AudioNormalizationPeakCalculation{ "TRUE_PEAK", "NONE", } } type AudioSelectorType string // Enum values for AudioSelectorType const ( AudioSelectorTypePid AudioSelectorType = "PID" AudioSelectorTypeTrack AudioSelectorType = "TRACK" AudioSelectorTypeLanguageCode AudioSelectorType = "LANGUAGE_CODE" AudioSelectorTypeHlsRenditionGroup AudioSelectorType = "HLS_RENDITION_GROUP" ) // Values returns all known values for AudioSelectorType. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (AudioSelectorType) Values() []AudioSelectorType { return []AudioSelectorType{ "PID", "TRACK", "LANGUAGE_CODE", "HLS_RENDITION_GROUP", } } type AudioTypeControl string // Enum values for AudioTypeControl const ( AudioTypeControlFollowInput AudioTypeControl = "FOLLOW_INPUT" AudioTypeControlUseConfigured AudioTypeControl = "USE_CONFIGURED" ) // Values returns all known values for AudioTypeControl. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (AudioTypeControl) Values() []AudioTypeControl { return []AudioTypeControl{ "FOLLOW_INPUT", "USE_CONFIGURED", } } type Av1AdaptiveQuantization string // Enum values for Av1AdaptiveQuantization const ( Av1AdaptiveQuantizationOff Av1AdaptiveQuantization = "OFF" Av1AdaptiveQuantizationLow Av1AdaptiveQuantization = "LOW" Av1AdaptiveQuantizationMedium Av1AdaptiveQuantization = "MEDIUM" Av1AdaptiveQuantizationHigh Av1AdaptiveQuantization = "HIGH" Av1AdaptiveQuantizationHigher Av1AdaptiveQuantization = "HIGHER" Av1AdaptiveQuantizationMax Av1AdaptiveQuantization = "MAX" ) // Values returns all known values for Av1AdaptiveQuantization. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Av1AdaptiveQuantization) Values() []Av1AdaptiveQuantization { return []Av1AdaptiveQuantization{ "OFF", "LOW", "MEDIUM", "HIGH", "HIGHER", "MAX", } } type Av1BitDepth string // Enum values for Av1BitDepth const ( Av1BitDepthBit8 Av1BitDepth = "BIT_8" Av1BitDepthBit10 Av1BitDepth = "BIT_10" ) // Values returns all known values for Av1BitDepth. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (Av1BitDepth) Values() []Av1BitDepth { return []Av1BitDepth{ "BIT_8", "BIT_10", } } type Av1FramerateControl string // Enum values for Av1FramerateControl const ( Av1FramerateControlInitializeFromSource Av1FramerateControl = "INITIALIZE_FROM_SOURCE" Av1FramerateControlSpecified Av1FramerateControl = "SPECIFIED" ) // Values returns all known values for Av1FramerateControl. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Av1FramerateControl) Values() []Av1FramerateControl { return []Av1FramerateControl{ "INITIALIZE_FROM_SOURCE", "SPECIFIED", } } type Av1FramerateConversionAlgorithm string // Enum values for Av1FramerateConversionAlgorithm const ( Av1FramerateConversionAlgorithmDuplicateDrop Av1FramerateConversionAlgorithm = "DUPLICATE_DROP" Av1FramerateConversionAlgorithmInterpolate Av1FramerateConversionAlgorithm = "INTERPOLATE" Av1FramerateConversionAlgorithmFrameformer Av1FramerateConversionAlgorithm = "FRAMEFORMER" ) // Values returns all known values for Av1FramerateConversionAlgorithm. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (Av1FramerateConversionAlgorithm) Values() []Av1FramerateConversionAlgorithm { return []Av1FramerateConversionAlgorithm{ "DUPLICATE_DROP", "INTERPOLATE", "FRAMEFORMER", } } type Av1RateControlMode string // Enum values for Av1RateControlMode const ( Av1RateControlModeQvbr Av1RateControlMode = "QVBR" ) // Values returns all known values for Av1RateControlMode. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Av1RateControlMode) Values() []Av1RateControlMode { return []Av1RateControlMode{ "QVBR", } } type Av1SpatialAdaptiveQuantization string // Enum values for Av1SpatialAdaptiveQuantization const ( Av1SpatialAdaptiveQuantizationDisabled Av1SpatialAdaptiveQuantization = "DISABLED" Av1SpatialAdaptiveQuantizationEnabled Av1SpatialAdaptiveQuantization = "ENABLED" ) // Values returns all known values for Av1SpatialAdaptiveQuantization. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (Av1SpatialAdaptiveQuantization) Values() []Av1SpatialAdaptiveQuantization { return []Av1SpatialAdaptiveQuantization{ "DISABLED", "ENABLED", } } type AvcIntraClass string // Enum values for AvcIntraClass const ( AvcIntraClassClass50 AvcIntraClass = "CLASS_50" AvcIntraClassClass100 AvcIntraClass = "CLASS_100" AvcIntraClassClass200 AvcIntraClass = "CLASS_200" AvcIntraClassClass4k2k AvcIntraClass = "CLASS_4K_2K" ) // Values returns all known values for AvcIntraClass. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (AvcIntraClass) Values() []AvcIntraClass { return []AvcIntraClass{ "CLASS_50", "CLASS_100", "CLASS_200", "CLASS_4K_2K", } } type AvcIntraFramerateControl string // Enum values for AvcIntraFramerateControl const ( AvcIntraFramerateControlInitializeFromSource AvcIntraFramerateControl = "INITIALIZE_FROM_SOURCE" AvcIntraFramerateControlSpecified AvcIntraFramerateControl = "SPECIFIED" ) // Values returns all known values for AvcIntraFramerateControl. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (AvcIntraFramerateControl) Values() []AvcIntraFramerateControl { return []AvcIntraFramerateControl{ "INITIALIZE_FROM_SOURCE", "SPECIFIED", } } type AvcIntraFramerateConversionAlgorithm string // Enum values for AvcIntraFramerateConversionAlgorithm const ( AvcIntraFramerateConversionAlgorithmDuplicateDrop AvcIntraFramerateConversionAlgorithm = "DUPLICATE_DROP" AvcIntraFramerateConversionAlgorithmInterpolate AvcIntraFramerateConversionAlgorithm = "INTERPOLATE" AvcIntraFramerateConversionAlgorithmFrameformer AvcIntraFramerateConversionAlgorithm = "FRAMEFORMER" ) // Values returns all known values for AvcIntraFramerateConversionAlgorithm. Note // that this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (AvcIntraFramerateConversionAlgorithm) Values() []AvcIntraFramerateConversionAlgorithm { return []AvcIntraFramerateConversionAlgorithm{ "DUPLICATE_DROP", "INTERPOLATE", "FRAMEFORMER", } } type AvcIntraInterlaceMode string // Enum values for AvcIntraInterlaceMode const ( AvcIntraInterlaceModeProgressive AvcIntraInterlaceMode = "PROGRESSIVE" AvcIntraInterlaceModeTopField AvcIntraInterlaceMode = "TOP_FIELD" AvcIntraInterlaceModeBottomField AvcIntraInterlaceMode = "BOTTOM_FIELD" AvcIntraInterlaceModeFollowTopField AvcIntraInterlaceMode = "FOLLOW_TOP_FIELD" AvcIntraInterlaceModeFollowBottomField AvcIntraInterlaceMode = "FOLLOW_BOTTOM_FIELD" ) // Values returns all known values for AvcIntraInterlaceMode. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (AvcIntraInterlaceMode) Values() []AvcIntraInterlaceMode { return []AvcIntraInterlaceMode{ "PROGRESSIVE", "TOP_FIELD", "BOTTOM_FIELD", "FOLLOW_TOP_FIELD", "FOLLOW_BOTTOM_FIELD", } } type AvcIntraScanTypeConversionMode string // Enum values for AvcIntraScanTypeConversionMode const ( AvcIntraScanTypeConversionModeInterlaced AvcIntraScanTypeConversionMode = "INTERLACED" AvcIntraScanTypeConversionModeInterlacedOptimize AvcIntraScanTypeConversionMode = "INTERLACED_OPTIMIZE" ) // Values returns all known values for AvcIntraScanTypeConversionMode. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (AvcIntraScanTypeConversionMode) Values() []AvcIntraScanTypeConversionMode { return []AvcIntraScanTypeConversionMode{ "INTERLACED", "INTERLACED_OPTIMIZE", } } type AvcIntraSlowPal string // Enum values for AvcIntraSlowPal const ( AvcIntraSlowPalDisabled AvcIntraSlowPal = "DISABLED" AvcIntraSlowPalEnabled AvcIntraSlowPal = "ENABLED" ) // Values returns all known values for AvcIntraSlowPal. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (AvcIntraSlowPal) Values() []AvcIntraSlowPal { return []AvcIntraSlowPal{ "DISABLED", "ENABLED", } } type AvcIntraTelecine string // Enum values for AvcIntraTelecine const ( AvcIntraTelecineNone AvcIntraTelecine = "NONE" AvcIntraTelecineHard AvcIntraTelecine = "HARD" ) // Values returns all known values for AvcIntraTelecine. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (AvcIntraTelecine) Values() []AvcIntraTelecine { return []AvcIntraTelecine{ "NONE", "HARD", } } type AvcIntraUhdQualityTuningLevel string // Enum values for AvcIntraUhdQualityTuningLevel const ( AvcIntraUhdQualityTuningLevelSinglePass AvcIntraUhdQualityTuningLevel = "SINGLE_PASS" AvcIntraUhdQualityTuningLevelMultiPass AvcIntraUhdQualityTuningLevel = "MULTI_PASS" ) // Values returns all known values for AvcIntraUhdQualityTuningLevel. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (AvcIntraUhdQualityTuningLevel) Values() []AvcIntraUhdQualityTuningLevel { return []AvcIntraUhdQualityTuningLevel{ "SINGLE_PASS", "MULTI_PASS", } } type BandwidthReductionFilterSharpening string // Enum values for BandwidthReductionFilterSharpening const ( BandwidthReductionFilterSharpeningLow BandwidthReductionFilterSharpening = "LOW" BandwidthReductionFilterSharpeningMedium BandwidthReductionFilterSharpening = "MEDIUM" BandwidthReductionFilterSharpeningHigh BandwidthReductionFilterSharpening = "HIGH" BandwidthReductionFilterSharpeningOff BandwidthReductionFilterSharpening = "OFF" ) // Values returns all known values for BandwidthReductionFilterSharpening. Note // that this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (BandwidthReductionFilterSharpening) Values() []BandwidthReductionFilterSharpening { return []BandwidthReductionFilterSharpening{ "LOW", "MEDIUM", "HIGH", "OFF", } } type BandwidthReductionFilterStrength string // Enum values for BandwidthReductionFilterStrength const ( BandwidthReductionFilterStrengthLow BandwidthReductionFilterStrength = "LOW" BandwidthReductionFilterStrengthMedium BandwidthReductionFilterStrength = "MEDIUM" BandwidthReductionFilterStrengthHigh BandwidthReductionFilterStrength = "HIGH" BandwidthReductionFilterStrengthAuto BandwidthReductionFilterStrength = "AUTO" BandwidthReductionFilterStrengthOff BandwidthReductionFilterStrength = "OFF" ) // Values returns all known values for BandwidthReductionFilterStrength. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (BandwidthReductionFilterStrength) Values() []BandwidthReductionFilterStrength { return []BandwidthReductionFilterStrength{ "LOW", "MEDIUM", "HIGH", "AUTO", "OFF", } } type BillingTagsSource string // Enum values for BillingTagsSource const ( BillingTagsSourceQueue BillingTagsSource = "QUEUE" BillingTagsSourcePreset BillingTagsSource = "PRESET" BillingTagsSourceJobTemplate BillingTagsSource = "JOB_TEMPLATE" BillingTagsSourceJob BillingTagsSource = "JOB" ) // Values returns all known values for BillingTagsSource. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (BillingTagsSource) Values() []BillingTagsSource { return []BillingTagsSource{ "QUEUE", "PRESET", "JOB_TEMPLATE", "JOB", } } type BurninSubtitleAlignment string // Enum values for BurninSubtitleAlignment const ( BurninSubtitleAlignmentCentered BurninSubtitleAlignment = "CENTERED" BurninSubtitleAlignmentLeft BurninSubtitleAlignment = "LEFT" BurninSubtitleAlignmentAuto BurninSubtitleAlignment = "AUTO" ) // Values returns all known values for BurninSubtitleAlignment. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (BurninSubtitleAlignment) Values() []BurninSubtitleAlignment { return []BurninSubtitleAlignment{ "CENTERED", "LEFT", "AUTO", } } type BurninSubtitleApplyFontColor string // Enum values for BurninSubtitleApplyFontColor const ( BurninSubtitleApplyFontColorWhiteTextOnly BurninSubtitleApplyFontColor = "WHITE_TEXT_ONLY" BurninSubtitleApplyFontColorAllText BurninSubtitleApplyFontColor = "ALL_TEXT" ) // Values returns all known values for BurninSubtitleApplyFontColor. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (BurninSubtitleApplyFontColor) Values() []BurninSubtitleApplyFontColor { return []BurninSubtitleApplyFontColor{ "WHITE_TEXT_ONLY", "ALL_TEXT", } } type BurninSubtitleBackgroundColor string // Enum values for BurninSubtitleBackgroundColor const ( BurninSubtitleBackgroundColorNone BurninSubtitleBackgroundColor = "NONE" BurninSubtitleBackgroundColorBlack BurninSubtitleBackgroundColor = "BLACK" BurninSubtitleBackgroundColorWhite BurninSubtitleBackgroundColor = "WHITE" BurninSubtitleBackgroundColorAuto BurninSubtitleBackgroundColor = "AUTO" ) // Values returns all known values for BurninSubtitleBackgroundColor. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (BurninSubtitleBackgroundColor) Values() []BurninSubtitleBackgroundColor { return []BurninSubtitleBackgroundColor{ "NONE", "BLACK", "WHITE", "AUTO", } } type BurninSubtitleFallbackFont string // Enum values for BurninSubtitleFallbackFont const ( BurninSubtitleFallbackFontBestMatch BurninSubtitleFallbackFont = "BEST_MATCH" BurninSubtitleFallbackFontMonospacedSansserif BurninSubtitleFallbackFont = "MONOSPACED_SANSSERIF" BurninSubtitleFallbackFontMonospacedSerif BurninSubtitleFallbackFont = "MONOSPACED_SERIF" BurninSubtitleFallbackFontProportionalSansserif BurninSubtitleFallbackFont = "PROPORTIONAL_SANSSERIF" BurninSubtitleFallbackFontProportionalSerif BurninSubtitleFallbackFont = "PROPORTIONAL_SERIF" ) // Values returns all known values for BurninSubtitleFallbackFont. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (BurninSubtitleFallbackFont) Values() []BurninSubtitleFallbackFont { return []BurninSubtitleFallbackFont{ "BEST_MATCH", "MONOSPACED_SANSSERIF", "MONOSPACED_SERIF", "PROPORTIONAL_SANSSERIF", "PROPORTIONAL_SERIF", } } type BurninSubtitleFontColor string // Enum values for BurninSubtitleFontColor const ( BurninSubtitleFontColorWhite BurninSubtitleFontColor = "WHITE" BurninSubtitleFontColorBlack BurninSubtitleFontColor = "BLACK" BurninSubtitleFontColorYellow BurninSubtitleFontColor = "YELLOW" BurninSubtitleFontColorRed BurninSubtitleFontColor = "RED" BurninSubtitleFontColorGreen BurninSubtitleFontColor = "GREEN" BurninSubtitleFontColorBlue BurninSubtitleFontColor = "BLUE" BurninSubtitleFontColorHex BurninSubtitleFontColor = "HEX" BurninSubtitleFontColorAuto BurninSubtitleFontColor = "AUTO" ) // Values returns all known values for BurninSubtitleFontColor. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (BurninSubtitleFontColor) Values() []BurninSubtitleFontColor { return []BurninSubtitleFontColor{ "WHITE", "BLACK", "YELLOW", "RED", "GREEN", "BLUE", "HEX", "AUTO", } } type BurninSubtitleOutlineColor string // Enum values for BurninSubtitleOutlineColor const ( BurninSubtitleOutlineColorBlack BurninSubtitleOutlineColor = "BLACK" BurninSubtitleOutlineColorWhite BurninSubtitleOutlineColor = "WHITE" BurninSubtitleOutlineColorYellow BurninSubtitleOutlineColor = "YELLOW" BurninSubtitleOutlineColorRed BurninSubtitleOutlineColor = "RED" BurninSubtitleOutlineColorGreen BurninSubtitleOutlineColor = "GREEN" BurninSubtitleOutlineColorBlue BurninSubtitleOutlineColor = "BLUE" BurninSubtitleOutlineColorAuto BurninSubtitleOutlineColor = "AUTO" ) // Values returns all known values for BurninSubtitleOutlineColor. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (BurninSubtitleOutlineColor) Values() []BurninSubtitleOutlineColor { return []BurninSubtitleOutlineColor{ "BLACK", "WHITE", "YELLOW", "RED", "GREEN", "BLUE", "AUTO", } } type BurninSubtitleShadowColor string // Enum values for BurninSubtitleShadowColor const ( BurninSubtitleShadowColorNone BurninSubtitleShadowColor = "NONE" BurninSubtitleShadowColorBlack BurninSubtitleShadowColor = "BLACK" BurninSubtitleShadowColorWhite BurninSubtitleShadowColor = "WHITE" BurninSubtitleShadowColorAuto BurninSubtitleShadowColor = "AUTO" ) // Values returns all known values for BurninSubtitleShadowColor. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (BurninSubtitleShadowColor) Values() []BurninSubtitleShadowColor { return []BurninSubtitleShadowColor{ "NONE", "BLACK", "WHITE", "AUTO", } } type BurnInSubtitleStylePassthrough string // Enum values for BurnInSubtitleStylePassthrough const ( BurnInSubtitleStylePassthroughEnabled BurnInSubtitleStylePassthrough = "ENABLED" BurnInSubtitleStylePassthroughDisabled BurnInSubtitleStylePassthrough = "DISABLED" ) // Values returns all known values for BurnInSubtitleStylePassthrough. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (BurnInSubtitleStylePassthrough) Values() []BurnInSubtitleStylePassthrough { return []BurnInSubtitleStylePassthrough{ "ENABLED", "DISABLED", } } type BurninSubtitleTeletextSpacing string // Enum values for BurninSubtitleTeletextSpacing const ( BurninSubtitleTeletextSpacingFixedGrid BurninSubtitleTeletextSpacing = "FIXED_GRID" BurninSubtitleTeletextSpacingProportional BurninSubtitleTeletextSpacing = "PROPORTIONAL" BurninSubtitleTeletextSpacingAuto BurninSubtitleTeletextSpacing = "AUTO" ) // Values returns all known values for BurninSubtitleTeletextSpacing. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (BurninSubtitleTeletextSpacing) Values() []BurninSubtitleTeletextSpacing { return []BurninSubtitleTeletextSpacing{ "FIXED_GRID", "PROPORTIONAL", "AUTO", } } type CaptionDestinationType string // Enum values for CaptionDestinationType const ( CaptionDestinationTypeBurnIn CaptionDestinationType = "BURN_IN" CaptionDestinationTypeDvbSub CaptionDestinationType = "DVB_SUB" CaptionDestinationTypeEmbedded CaptionDestinationType = "EMBEDDED" CaptionDestinationTypeEmbeddedPlusScte20 CaptionDestinationType = "EMBEDDED_PLUS_SCTE20" CaptionDestinationTypeImsc CaptionDestinationType = "IMSC" CaptionDestinationTypeScte20PlusEmbedded CaptionDestinationType = "SCTE20_PLUS_EMBEDDED" CaptionDestinationTypeScc CaptionDestinationType = "SCC" CaptionDestinationTypeSrt CaptionDestinationType = "SRT" CaptionDestinationTypeSmi CaptionDestinationType = "SMI" CaptionDestinationTypeTeletext CaptionDestinationType = "TELETEXT" CaptionDestinationTypeTtml CaptionDestinationType = "TTML" CaptionDestinationTypeWebvtt CaptionDestinationType = "WEBVTT" ) // Values returns all known values for CaptionDestinationType. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (CaptionDestinationType) Values() []CaptionDestinationType { return []CaptionDestinationType{ "BURN_IN", "DVB_SUB", "EMBEDDED", "EMBEDDED_PLUS_SCTE20", "IMSC", "SCTE20_PLUS_EMBEDDED", "SCC", "SRT", "SMI", "TELETEXT", "TTML", "WEBVTT", } } type CaptionSourceConvertPaintOnToPopOn string // Enum values for CaptionSourceConvertPaintOnToPopOn const ( CaptionSourceConvertPaintOnToPopOnEnabled CaptionSourceConvertPaintOnToPopOn = "ENABLED" CaptionSourceConvertPaintOnToPopOnDisabled CaptionSourceConvertPaintOnToPopOn = "DISABLED" ) // Values returns all known values for CaptionSourceConvertPaintOnToPopOn. Note // that this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (CaptionSourceConvertPaintOnToPopOn) Values() []CaptionSourceConvertPaintOnToPopOn { return []CaptionSourceConvertPaintOnToPopOn{ "ENABLED", "DISABLED", } } type CaptionSourceType string // Enum values for CaptionSourceType const ( CaptionSourceTypeAncillary CaptionSourceType = "ANCILLARY" CaptionSourceTypeDvbSub CaptionSourceType = "DVB_SUB" CaptionSourceTypeEmbedded CaptionSourceType = "EMBEDDED" CaptionSourceTypeScte20 CaptionSourceType = "SCTE20" CaptionSourceTypeScc CaptionSourceType = "SCC" CaptionSourceTypeTtml CaptionSourceType = "TTML" CaptionSourceTypeStl CaptionSourceType = "STL" CaptionSourceTypeSrt CaptionSourceType = "SRT" CaptionSourceTypeSmi CaptionSourceType = "SMI" CaptionSourceTypeSmpteTt CaptionSourceType = "SMPTE_TT" CaptionSourceTypeTeletext CaptionSourceType = "TELETEXT" CaptionSourceTypeNullSource CaptionSourceType = "NULL_SOURCE" CaptionSourceTypeImsc CaptionSourceType = "IMSC" CaptionSourceTypeWebvtt CaptionSourceType = "WEBVTT" ) // Values returns all known values for CaptionSourceType. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (CaptionSourceType) Values() []CaptionSourceType { return []CaptionSourceType{ "ANCILLARY", "DVB_SUB", "EMBEDDED", "SCTE20", "SCC", "TTML", "STL", "SRT", "SMI", "SMPTE_TT", "TELETEXT", "NULL_SOURCE", "IMSC", "WEBVTT", } } type CmafClientCache string // Enum values for CmafClientCache const ( CmafClientCacheDisabled CmafClientCache = "DISABLED" CmafClientCacheEnabled CmafClientCache = "ENABLED" ) // Values returns all known values for CmafClientCache. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (CmafClientCache) Values() []CmafClientCache { return []CmafClientCache{ "DISABLED", "ENABLED", } } type CmafCodecSpecification string // Enum values for CmafCodecSpecification const ( CmafCodecSpecificationRfc6381 CmafCodecSpecification = "RFC_6381" CmafCodecSpecificationRfc4281 CmafCodecSpecification = "RFC_4281" ) // Values returns all known values for CmafCodecSpecification. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (CmafCodecSpecification) Values() []CmafCodecSpecification { return []CmafCodecSpecification{ "RFC_6381", "RFC_4281", } } type CmafEncryptionType string // Enum values for CmafEncryptionType const ( CmafEncryptionTypeSampleAes CmafEncryptionType = "SAMPLE_AES" CmafEncryptionTypeAesCtr CmafEncryptionType = "AES_CTR" ) // Values returns all known values for CmafEncryptionType. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (CmafEncryptionType) Values() []CmafEncryptionType { return []CmafEncryptionType{ "SAMPLE_AES", "AES_CTR", } } type CmafImageBasedTrickPlay string // Enum values for CmafImageBasedTrickPlay const ( CmafImageBasedTrickPlayNone CmafImageBasedTrickPlay = "NONE" CmafImageBasedTrickPlayThumbnail CmafImageBasedTrickPlay = "THUMBNAIL" CmafImageBasedTrickPlayThumbnailAndFullframe CmafImageBasedTrickPlay = "THUMBNAIL_AND_FULLFRAME" CmafImageBasedTrickPlayAdvanced CmafImageBasedTrickPlay = "ADVANCED" ) // Values returns all known values for CmafImageBasedTrickPlay. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (CmafImageBasedTrickPlay) Values() []CmafImageBasedTrickPlay { return []CmafImageBasedTrickPlay{ "NONE", "THUMBNAIL", "THUMBNAIL_AND_FULLFRAME", "ADVANCED", } } type CmafInitializationVectorInManifest string // Enum values for CmafInitializationVectorInManifest const ( CmafInitializationVectorInManifestInclude CmafInitializationVectorInManifest = "INCLUDE" CmafInitializationVectorInManifestExclude CmafInitializationVectorInManifest = "EXCLUDE" ) // Values returns all known values for CmafInitializationVectorInManifest. Note // that this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (CmafInitializationVectorInManifest) Values() []CmafInitializationVectorInManifest { return []CmafInitializationVectorInManifest{ "INCLUDE", "EXCLUDE", } } type CmafIntervalCadence string // Enum values for CmafIntervalCadence const ( CmafIntervalCadenceFollowIframe CmafIntervalCadence = "FOLLOW_IFRAME" CmafIntervalCadenceFollowCustom CmafIntervalCadence = "FOLLOW_CUSTOM" ) // Values returns all known values for CmafIntervalCadence. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (CmafIntervalCadence) Values() []CmafIntervalCadence { return []CmafIntervalCadence{ "FOLLOW_IFRAME", "FOLLOW_CUSTOM", } } type CmafKeyProviderType string // Enum values for CmafKeyProviderType const ( CmafKeyProviderTypeSpeke CmafKeyProviderType = "SPEKE" CmafKeyProviderTypeStaticKey CmafKeyProviderType = "STATIC_KEY" ) // Values returns all known values for CmafKeyProviderType. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (CmafKeyProviderType) Values() []CmafKeyProviderType { return []CmafKeyProviderType{ "SPEKE", "STATIC_KEY", } } type CmafManifestCompression string // Enum values for CmafManifestCompression const ( CmafManifestCompressionGzip CmafManifestCompression = "GZIP" CmafManifestCompressionNone CmafManifestCompression = "NONE" ) // Values returns all known values for CmafManifestCompression. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (CmafManifestCompression) Values() []CmafManifestCompression { return []CmafManifestCompression{ "GZIP", "NONE", } } type CmafManifestDurationFormat string // Enum values for CmafManifestDurationFormat const ( CmafManifestDurationFormatFloatingPoint CmafManifestDurationFormat = "FLOATING_POINT" CmafManifestDurationFormatInteger CmafManifestDurationFormat = "INTEGER" ) // Values returns all known values for CmafManifestDurationFormat. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (CmafManifestDurationFormat) Values() []CmafManifestDurationFormat { return []CmafManifestDurationFormat{ "FLOATING_POINT", "INTEGER", } } type CmafMpdManifestBandwidthType string // Enum values for CmafMpdManifestBandwidthType const ( CmafMpdManifestBandwidthTypeAverage CmafMpdManifestBandwidthType = "AVERAGE" CmafMpdManifestBandwidthTypeMax CmafMpdManifestBandwidthType = "MAX" ) // Values returns all known values for CmafMpdManifestBandwidthType. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (CmafMpdManifestBandwidthType) Values() []CmafMpdManifestBandwidthType { return []CmafMpdManifestBandwidthType{ "AVERAGE", "MAX", } } type CmafMpdProfile string // Enum values for CmafMpdProfile const ( CmafMpdProfileMainProfile CmafMpdProfile = "MAIN_PROFILE" CmafMpdProfileOnDemandProfile CmafMpdProfile = "ON_DEMAND_PROFILE" ) // Values returns all known values for CmafMpdProfile. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (CmafMpdProfile) Values() []CmafMpdProfile { return []CmafMpdProfile{ "MAIN_PROFILE", "ON_DEMAND_PROFILE", } } type CmafPtsOffsetHandlingForBFrames string // Enum values for CmafPtsOffsetHandlingForBFrames const ( CmafPtsOffsetHandlingForBFramesZeroBased CmafPtsOffsetHandlingForBFrames = "ZERO_BASED" CmafPtsOffsetHandlingForBFramesMatchInitialPts CmafPtsOffsetHandlingForBFrames = "MATCH_INITIAL_PTS" ) // Values returns all known values for CmafPtsOffsetHandlingForBFrames. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (CmafPtsOffsetHandlingForBFrames) Values() []CmafPtsOffsetHandlingForBFrames { return []CmafPtsOffsetHandlingForBFrames{ "ZERO_BASED", "MATCH_INITIAL_PTS", } } type CmafSegmentControl string // Enum values for CmafSegmentControl const ( CmafSegmentControlSingleFile CmafSegmentControl = "SINGLE_FILE" CmafSegmentControlSegmentedFiles CmafSegmentControl = "SEGMENTED_FILES" ) // Values returns all known values for CmafSegmentControl. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (CmafSegmentControl) Values() []CmafSegmentControl { return []CmafSegmentControl{ "SINGLE_FILE", "SEGMENTED_FILES", } } type CmafSegmentLengthControl string // Enum values for CmafSegmentLengthControl const ( CmafSegmentLengthControlExact CmafSegmentLengthControl = "EXACT" CmafSegmentLengthControlGopMultiple CmafSegmentLengthControl = "GOP_MULTIPLE" ) // Values returns all known values for CmafSegmentLengthControl. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (CmafSegmentLengthControl) Values() []CmafSegmentLengthControl { return []CmafSegmentLengthControl{ "EXACT", "GOP_MULTIPLE", } } type CmafStreamInfResolution string // Enum values for CmafStreamInfResolution const ( CmafStreamInfResolutionInclude CmafStreamInfResolution = "INCLUDE" CmafStreamInfResolutionExclude CmafStreamInfResolution = "EXCLUDE" ) // Values returns all known values for CmafStreamInfResolution. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (CmafStreamInfResolution) Values() []CmafStreamInfResolution { return []CmafStreamInfResolution{ "INCLUDE", "EXCLUDE", } } type CmafTargetDurationCompatibilityMode string // Enum values for CmafTargetDurationCompatibilityMode const ( CmafTargetDurationCompatibilityModeLegacy CmafTargetDurationCompatibilityMode = "LEGACY" CmafTargetDurationCompatibilityModeSpecCompliant CmafTargetDurationCompatibilityMode = "SPEC_COMPLIANT" ) // Values returns all known values for CmafTargetDurationCompatibilityMode. Note // that this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (CmafTargetDurationCompatibilityMode) Values() []CmafTargetDurationCompatibilityMode { return []CmafTargetDurationCompatibilityMode{ "LEGACY", "SPEC_COMPLIANT", } } type CmafVideoCompositionOffsets string // Enum values for CmafVideoCompositionOffsets const ( CmafVideoCompositionOffsetsSigned CmafVideoCompositionOffsets = "SIGNED" CmafVideoCompositionOffsetsUnsigned CmafVideoCompositionOffsets = "UNSIGNED" ) // Values returns all known values for CmafVideoCompositionOffsets. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (CmafVideoCompositionOffsets) Values() []CmafVideoCompositionOffsets { return []CmafVideoCompositionOffsets{ "SIGNED", "UNSIGNED", } } type CmafWriteDASHManifest string // Enum values for CmafWriteDASHManifest const ( CmafWriteDASHManifestDisabled CmafWriteDASHManifest = "DISABLED" CmafWriteDASHManifestEnabled CmafWriteDASHManifest = "ENABLED" ) // Values returns all known values for CmafWriteDASHManifest. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (CmafWriteDASHManifest) Values() []CmafWriteDASHManifest { return []CmafWriteDASHManifest{ "DISABLED", "ENABLED", } } type CmafWriteHLSManifest string // Enum values for CmafWriteHLSManifest const ( CmafWriteHLSManifestDisabled CmafWriteHLSManifest = "DISABLED" CmafWriteHLSManifestEnabled CmafWriteHLSManifest = "ENABLED" ) // Values returns all known values for CmafWriteHLSManifest. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (CmafWriteHLSManifest) Values() []CmafWriteHLSManifest { return []CmafWriteHLSManifest{ "DISABLED", "ENABLED", } } type CmafWriteSegmentTimelineInRepresentation string // Enum values for CmafWriteSegmentTimelineInRepresentation const ( CmafWriteSegmentTimelineInRepresentationEnabled CmafWriteSegmentTimelineInRepresentation = "ENABLED" CmafWriteSegmentTimelineInRepresentationDisabled CmafWriteSegmentTimelineInRepresentation = "DISABLED" ) // Values returns all known values for CmafWriteSegmentTimelineInRepresentation. // Note that this can be expanded in the future, and so it is only as up to date as // the client. The ordering of this slice is not guaranteed to be stable across // updates. func (CmafWriteSegmentTimelineInRepresentation) Values() []CmafWriteSegmentTimelineInRepresentation { return []CmafWriteSegmentTimelineInRepresentation{ "ENABLED", "DISABLED", } } type CmfcAudioDuration string // Enum values for CmfcAudioDuration const ( CmfcAudioDurationDefaultCodecDuration CmfcAudioDuration = "DEFAULT_CODEC_DURATION" CmfcAudioDurationMatchVideoDuration CmfcAudioDuration = "MATCH_VIDEO_DURATION" ) // Values returns all known values for CmfcAudioDuration. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (CmfcAudioDuration) Values() []CmfcAudioDuration { return []CmfcAudioDuration{ "DEFAULT_CODEC_DURATION", "MATCH_VIDEO_DURATION", } } type CmfcAudioTrackType string // Enum values for CmfcAudioTrackType const ( CmfcAudioTrackTypeAlternateAudioAutoSelectDefault CmfcAudioTrackType = "ALTERNATE_AUDIO_AUTO_SELECT_DEFAULT" CmfcAudioTrackTypeAlternateAudioAutoSelect CmfcAudioTrackType = "ALTERNATE_AUDIO_AUTO_SELECT" CmfcAudioTrackTypeAlternateAudioNotAutoSelect CmfcAudioTrackType = "ALTERNATE_AUDIO_NOT_AUTO_SELECT" ) // Values returns all known values for CmfcAudioTrackType. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (CmfcAudioTrackType) Values() []CmfcAudioTrackType { return []CmfcAudioTrackType{ "ALTERNATE_AUDIO_AUTO_SELECT_DEFAULT", "ALTERNATE_AUDIO_AUTO_SELECT", "ALTERNATE_AUDIO_NOT_AUTO_SELECT", } } type CmfcDescriptiveVideoServiceFlag string // Enum values for CmfcDescriptiveVideoServiceFlag const ( CmfcDescriptiveVideoServiceFlagDontFlag CmfcDescriptiveVideoServiceFlag = "DONT_FLAG" CmfcDescriptiveVideoServiceFlagFlag CmfcDescriptiveVideoServiceFlag = "FLAG" ) // Values returns all known values for CmfcDescriptiveVideoServiceFlag. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (CmfcDescriptiveVideoServiceFlag) Values() []CmfcDescriptiveVideoServiceFlag { return []CmfcDescriptiveVideoServiceFlag{ "DONT_FLAG", "FLAG", } } type CmfcIFrameOnlyManifest string // Enum values for CmfcIFrameOnlyManifest const ( CmfcIFrameOnlyManifestInclude CmfcIFrameOnlyManifest = "INCLUDE" CmfcIFrameOnlyManifestExclude CmfcIFrameOnlyManifest = "EXCLUDE" ) // Values returns all known values for CmfcIFrameOnlyManifest. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (CmfcIFrameOnlyManifest) Values() []CmfcIFrameOnlyManifest { return []CmfcIFrameOnlyManifest{ "INCLUDE", "EXCLUDE", } } type CmfcKlvMetadata string // Enum values for CmfcKlvMetadata const ( CmfcKlvMetadataPassthrough CmfcKlvMetadata = "PASSTHROUGH" CmfcKlvMetadataNone CmfcKlvMetadata = "NONE" ) // Values returns all known values for CmfcKlvMetadata. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (CmfcKlvMetadata) Values() []CmfcKlvMetadata { return []CmfcKlvMetadata{ "PASSTHROUGH", "NONE", } } type CmfcManifestMetadataSignaling string // Enum values for CmfcManifestMetadataSignaling const ( CmfcManifestMetadataSignalingEnabled CmfcManifestMetadataSignaling = "ENABLED" CmfcManifestMetadataSignalingDisabled CmfcManifestMetadataSignaling = "DISABLED" ) // Values returns all known values for CmfcManifestMetadataSignaling. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (CmfcManifestMetadataSignaling) Values() []CmfcManifestMetadataSignaling { return []CmfcManifestMetadataSignaling{ "ENABLED", "DISABLED", } } type CmfcScte35Esam string // Enum values for CmfcScte35Esam const ( CmfcScte35EsamInsert CmfcScte35Esam = "INSERT" CmfcScte35EsamNone CmfcScte35Esam = "NONE" ) // Values returns all known values for CmfcScte35Esam. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (CmfcScte35Esam) Values() []CmfcScte35Esam { return []CmfcScte35Esam{ "INSERT", "NONE", } } type CmfcScte35Source string // Enum values for CmfcScte35Source const ( CmfcScte35SourcePassthrough CmfcScte35Source = "PASSTHROUGH" CmfcScte35SourceNone CmfcScte35Source = "NONE" ) // Values returns all known values for CmfcScte35Source. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (CmfcScte35Source) Values() []CmfcScte35Source { return []CmfcScte35Source{ "PASSTHROUGH", "NONE", } } type CmfcTimedMetadata string // Enum values for CmfcTimedMetadata const ( CmfcTimedMetadataPassthrough CmfcTimedMetadata = "PASSTHROUGH" CmfcTimedMetadataNone CmfcTimedMetadata = "NONE" ) // Values returns all known values for CmfcTimedMetadata. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (CmfcTimedMetadata) Values() []CmfcTimedMetadata { return []CmfcTimedMetadata{ "PASSTHROUGH", "NONE", } } type CmfcTimedMetadataBoxVersion string // Enum values for CmfcTimedMetadataBoxVersion const ( CmfcTimedMetadataBoxVersionVersion0 CmfcTimedMetadataBoxVersion = "VERSION_0" CmfcTimedMetadataBoxVersionVersion1 CmfcTimedMetadataBoxVersion = "VERSION_1" ) // Values returns all known values for CmfcTimedMetadataBoxVersion. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (CmfcTimedMetadataBoxVersion) Values() []CmfcTimedMetadataBoxVersion { return []CmfcTimedMetadataBoxVersion{ "VERSION_0", "VERSION_1", } } type ColorMetadata string // Enum values for ColorMetadata const ( ColorMetadataIgnore ColorMetadata = "IGNORE" ColorMetadataInsert ColorMetadata = "INSERT" ) // Values returns all known values for ColorMetadata. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ColorMetadata) Values() []ColorMetadata { return []ColorMetadata{ "IGNORE", "INSERT", } } type ColorSpace string // Enum values for ColorSpace const ( ColorSpaceFollow ColorSpace = "FOLLOW" ColorSpaceRec601 ColorSpace = "REC_601" ColorSpaceRec709 ColorSpace = "REC_709" ColorSpaceHdr10 ColorSpace = "HDR10" ColorSpaceHlg2020 ColorSpace = "HLG_2020" ColorSpaceP3dci ColorSpace = "P3DCI" ColorSpaceP3d65Sdr ColorSpace = "P3D65_SDR" ColorSpaceP3d65Hdr ColorSpace = "P3D65_HDR" ) // Values returns all known values for ColorSpace. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (ColorSpace) Values() []ColorSpace { return []ColorSpace{ "FOLLOW", "REC_601", "REC_709", "HDR10", "HLG_2020", "P3DCI", "P3D65_SDR", "P3D65_HDR", } } type ColorSpaceConversion string // Enum values for ColorSpaceConversion const ( ColorSpaceConversionNone ColorSpaceConversion = "NONE" ColorSpaceConversionForce601 ColorSpaceConversion = "FORCE_601" ColorSpaceConversionForce709 ColorSpaceConversion = "FORCE_709" ColorSpaceConversionForceHdr10 ColorSpaceConversion = "FORCE_HDR10" ColorSpaceConversionForceHlg2020 ColorSpaceConversion = "FORCE_HLG_2020" ColorSpaceConversionForceP3dci ColorSpaceConversion = "FORCE_P3DCI" ColorSpaceConversionForceP3d65Sdr ColorSpaceConversion = "FORCE_P3D65_SDR" ColorSpaceConversionForceP3d65Hdr ColorSpaceConversion = "FORCE_P3D65_HDR" ) // Values returns all known values for ColorSpaceConversion. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ColorSpaceConversion) Values() []ColorSpaceConversion { return []ColorSpaceConversion{ "NONE", "FORCE_601", "FORCE_709", "FORCE_HDR10", "FORCE_HLG_2020", "FORCE_P3DCI", "FORCE_P3D65_SDR", "FORCE_P3D65_HDR", } } type ColorSpaceUsage string // Enum values for ColorSpaceUsage const ( ColorSpaceUsageForce ColorSpaceUsage = "FORCE" ColorSpaceUsageFallback ColorSpaceUsage = "FALLBACK" ) // Values returns all known values for ColorSpaceUsage. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ColorSpaceUsage) Values() []ColorSpaceUsage { return []ColorSpaceUsage{ "FORCE", "FALLBACK", } } type Commitment string // Enum values for Commitment const ( CommitmentOneYear Commitment = "ONE_YEAR" ) // Values returns all known values for Commitment. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (Commitment) Values() []Commitment { return []Commitment{ "ONE_YEAR", } } type ContainerType string // Enum values for ContainerType const ( ContainerTypeF4v ContainerType = "F4V" ContainerTypeIsmv ContainerType = "ISMV" ContainerTypeM2ts ContainerType = "M2TS" ContainerTypeM3u8 ContainerType = "M3U8" ContainerTypeCmfc ContainerType = "CMFC" ContainerTypeMov ContainerType = "MOV" ContainerTypeMp4 ContainerType = "MP4" ContainerTypeMpd ContainerType = "MPD" ContainerTypeMxf ContainerType = "MXF" ContainerTypeWebm ContainerType = "WEBM" ContainerTypeRaw ContainerType = "RAW" ) // Values returns all known values for ContainerType. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ContainerType) Values() []ContainerType { return []ContainerType{ "F4V", "ISMV", "M2TS", "M3U8", "CMFC", "MOV", "MP4", "MPD", "MXF", "WEBM", "RAW", } } type CopyProtectionAction string // Enum values for CopyProtectionAction const ( CopyProtectionActionPassthrough CopyProtectionAction = "PASSTHROUGH" CopyProtectionActionStrip CopyProtectionAction = "STRIP" ) // Values returns all known values for CopyProtectionAction. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (CopyProtectionAction) Values() []CopyProtectionAction { return []CopyProtectionAction{ "PASSTHROUGH", "STRIP", } } type DashIsoGroupAudioChannelConfigSchemeIdUri string // Enum values for DashIsoGroupAudioChannelConfigSchemeIdUri const ( DashIsoGroupAudioChannelConfigSchemeIdUriMpegChannelConfiguration DashIsoGroupAudioChannelConfigSchemeIdUri = "MPEG_CHANNEL_CONFIGURATION" DashIsoGroupAudioChannelConfigSchemeIdUriDolbyChannelConfiguration DashIsoGroupAudioChannelConfigSchemeIdUri = "DOLBY_CHANNEL_CONFIGURATION" ) // Values returns all known values for DashIsoGroupAudioChannelConfigSchemeIdUri. // Note that this can be expanded in the future, and so it is only as up to date as // the client. The ordering of this slice is not guaranteed to be stable across // updates. func (DashIsoGroupAudioChannelConfigSchemeIdUri) Values() []DashIsoGroupAudioChannelConfigSchemeIdUri { return []DashIsoGroupAudioChannelConfigSchemeIdUri{ "MPEG_CHANNEL_CONFIGURATION", "DOLBY_CHANNEL_CONFIGURATION", } } type DashIsoHbbtvCompliance string // Enum values for DashIsoHbbtvCompliance const ( DashIsoHbbtvComplianceHbbtv15 DashIsoHbbtvCompliance = "HBBTV_1_5" DashIsoHbbtvComplianceNone DashIsoHbbtvCompliance = "NONE" ) // Values returns all known values for DashIsoHbbtvCompliance. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (DashIsoHbbtvCompliance) Values() []DashIsoHbbtvCompliance { return []DashIsoHbbtvCompliance{ "HBBTV_1_5", "NONE", } } type DashIsoImageBasedTrickPlay string // Enum values for DashIsoImageBasedTrickPlay const ( DashIsoImageBasedTrickPlayNone DashIsoImageBasedTrickPlay = "NONE" DashIsoImageBasedTrickPlayThumbnail DashIsoImageBasedTrickPlay = "THUMBNAIL" DashIsoImageBasedTrickPlayThumbnailAndFullframe DashIsoImageBasedTrickPlay = "THUMBNAIL_AND_FULLFRAME" DashIsoImageBasedTrickPlayAdvanced DashIsoImageBasedTrickPlay = "ADVANCED" ) // Values returns all known values for DashIsoImageBasedTrickPlay. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (DashIsoImageBasedTrickPlay) Values() []DashIsoImageBasedTrickPlay { return []DashIsoImageBasedTrickPlay{ "NONE", "THUMBNAIL", "THUMBNAIL_AND_FULLFRAME", "ADVANCED", } } type DashIsoIntervalCadence string // Enum values for DashIsoIntervalCadence const ( DashIsoIntervalCadenceFollowIframe DashIsoIntervalCadence = "FOLLOW_IFRAME" DashIsoIntervalCadenceFollowCustom DashIsoIntervalCadence = "FOLLOW_CUSTOM" ) // Values returns all known values for DashIsoIntervalCadence. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (DashIsoIntervalCadence) Values() []DashIsoIntervalCadence { return []DashIsoIntervalCadence{ "FOLLOW_IFRAME", "FOLLOW_CUSTOM", } } type DashIsoMpdManifestBandwidthType string // Enum values for DashIsoMpdManifestBandwidthType const ( DashIsoMpdManifestBandwidthTypeAverage DashIsoMpdManifestBandwidthType = "AVERAGE" DashIsoMpdManifestBandwidthTypeMax DashIsoMpdManifestBandwidthType = "MAX" ) // Values returns all known values for DashIsoMpdManifestBandwidthType. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (DashIsoMpdManifestBandwidthType) Values() []DashIsoMpdManifestBandwidthType { return []DashIsoMpdManifestBandwidthType{ "AVERAGE", "MAX", } } type DashIsoMpdProfile string // Enum values for DashIsoMpdProfile const ( DashIsoMpdProfileMainProfile DashIsoMpdProfile = "MAIN_PROFILE" DashIsoMpdProfileOnDemandProfile DashIsoMpdProfile = "ON_DEMAND_PROFILE" ) // Values returns all known values for DashIsoMpdProfile. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (DashIsoMpdProfile) Values() []DashIsoMpdProfile { return []DashIsoMpdProfile{ "MAIN_PROFILE", "ON_DEMAND_PROFILE", } } type DashIsoPlaybackDeviceCompatibility string // Enum values for DashIsoPlaybackDeviceCompatibility const ( DashIsoPlaybackDeviceCompatibilityCencV1 DashIsoPlaybackDeviceCompatibility = "CENC_V1" DashIsoPlaybackDeviceCompatibilityUnencryptedSei DashIsoPlaybackDeviceCompatibility = "UNENCRYPTED_SEI" ) // Values returns all known values for DashIsoPlaybackDeviceCompatibility. Note // that this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (DashIsoPlaybackDeviceCompatibility) Values() []DashIsoPlaybackDeviceCompatibility { return []DashIsoPlaybackDeviceCompatibility{ "CENC_V1", "UNENCRYPTED_SEI", } } type DashIsoPtsOffsetHandlingForBFrames string // Enum values for DashIsoPtsOffsetHandlingForBFrames const ( DashIsoPtsOffsetHandlingForBFramesZeroBased DashIsoPtsOffsetHandlingForBFrames = "ZERO_BASED" DashIsoPtsOffsetHandlingForBFramesMatchInitialPts DashIsoPtsOffsetHandlingForBFrames = "MATCH_INITIAL_PTS" ) // Values returns all known values for DashIsoPtsOffsetHandlingForBFrames. Note // that this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (DashIsoPtsOffsetHandlingForBFrames) Values() []DashIsoPtsOffsetHandlingForBFrames { return []DashIsoPtsOffsetHandlingForBFrames{ "ZERO_BASED", "MATCH_INITIAL_PTS", } } type DashIsoSegmentControl string // Enum values for DashIsoSegmentControl const ( DashIsoSegmentControlSingleFile DashIsoSegmentControl = "SINGLE_FILE" DashIsoSegmentControlSegmentedFiles DashIsoSegmentControl = "SEGMENTED_FILES" ) // Values returns all known values for DashIsoSegmentControl. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (DashIsoSegmentControl) Values() []DashIsoSegmentControl { return []DashIsoSegmentControl{ "SINGLE_FILE", "SEGMENTED_FILES", } } type DashIsoSegmentLengthControl string // Enum values for DashIsoSegmentLengthControl const ( DashIsoSegmentLengthControlExact DashIsoSegmentLengthControl = "EXACT" DashIsoSegmentLengthControlGopMultiple DashIsoSegmentLengthControl = "GOP_MULTIPLE" ) // Values returns all known values for DashIsoSegmentLengthControl. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (DashIsoSegmentLengthControl) Values() []DashIsoSegmentLengthControl { return []DashIsoSegmentLengthControl{ "EXACT", "GOP_MULTIPLE", } } type DashIsoVideoCompositionOffsets string // Enum values for DashIsoVideoCompositionOffsets const ( DashIsoVideoCompositionOffsetsSigned DashIsoVideoCompositionOffsets = "SIGNED" DashIsoVideoCompositionOffsetsUnsigned DashIsoVideoCompositionOffsets = "UNSIGNED" ) // Values returns all known values for DashIsoVideoCompositionOffsets. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (DashIsoVideoCompositionOffsets) Values() []DashIsoVideoCompositionOffsets { return []DashIsoVideoCompositionOffsets{ "SIGNED", "UNSIGNED", } } type DashIsoWriteSegmentTimelineInRepresentation string // Enum values for DashIsoWriteSegmentTimelineInRepresentation const ( DashIsoWriteSegmentTimelineInRepresentationEnabled DashIsoWriteSegmentTimelineInRepresentation = "ENABLED" DashIsoWriteSegmentTimelineInRepresentationDisabled DashIsoWriteSegmentTimelineInRepresentation = "DISABLED" ) // Values returns all known values for // DashIsoWriteSegmentTimelineInRepresentation. Note that this can be expanded in // the future, and so it is only as up to date as the client. The ordering of this // slice is not guaranteed to be stable across updates. func (DashIsoWriteSegmentTimelineInRepresentation) Values() []DashIsoWriteSegmentTimelineInRepresentation { return []DashIsoWriteSegmentTimelineInRepresentation{ "ENABLED", "DISABLED", } } type DashManifestStyle string // Enum values for DashManifestStyle const ( DashManifestStyleBasic DashManifestStyle = "BASIC" DashManifestStyleCompact DashManifestStyle = "COMPACT" DashManifestStyleDistinct DashManifestStyle = "DISTINCT" ) // Values returns all known values for DashManifestStyle. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (DashManifestStyle) Values() []DashManifestStyle { return []DashManifestStyle{ "BASIC", "COMPACT", "DISTINCT", } } type DecryptionMode string // Enum values for DecryptionMode const ( DecryptionModeAesCtr DecryptionMode = "AES_CTR" DecryptionModeAesCbc DecryptionMode = "AES_CBC" DecryptionModeAesGcm DecryptionMode = "AES_GCM" ) // Values returns all known values for DecryptionMode. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (DecryptionMode) Values() []DecryptionMode { return []DecryptionMode{ "AES_CTR", "AES_CBC", "AES_GCM", } } type DeinterlaceAlgorithm string // Enum values for DeinterlaceAlgorithm const ( DeinterlaceAlgorithmInterpolate DeinterlaceAlgorithm = "INTERPOLATE" DeinterlaceAlgorithmInterpolateTicker DeinterlaceAlgorithm = "INTERPOLATE_TICKER" DeinterlaceAlgorithmBlend DeinterlaceAlgorithm = "BLEND" DeinterlaceAlgorithmBlendTicker DeinterlaceAlgorithm = "BLEND_TICKER" DeinterlaceAlgorithmLinearInterpolation DeinterlaceAlgorithm = "LINEAR_INTERPOLATION" ) // Values returns all known values for DeinterlaceAlgorithm. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (DeinterlaceAlgorithm) Values() []DeinterlaceAlgorithm { return []DeinterlaceAlgorithm{ "INTERPOLATE", "INTERPOLATE_TICKER", "BLEND", "BLEND_TICKER", "LINEAR_INTERPOLATION", } } type DeinterlacerControl string // Enum values for DeinterlacerControl const ( DeinterlacerControlForceAllFrames DeinterlacerControl = "FORCE_ALL_FRAMES" DeinterlacerControlNormal DeinterlacerControl = "NORMAL" ) // Values returns all known values for DeinterlacerControl. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (DeinterlacerControl) Values() []DeinterlacerControl { return []DeinterlacerControl{ "FORCE_ALL_FRAMES", "NORMAL", } } type DeinterlacerMode string // Enum values for DeinterlacerMode const ( DeinterlacerModeDeinterlace DeinterlacerMode = "DEINTERLACE" DeinterlacerModeInverseTelecine DeinterlacerMode = "INVERSE_TELECINE" DeinterlacerModeAdaptive DeinterlacerMode = "ADAPTIVE" ) // Values returns all known values for DeinterlacerMode. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (DeinterlacerMode) Values() []DeinterlacerMode { return []DeinterlacerMode{ "DEINTERLACE", "INVERSE_TELECINE", "ADAPTIVE", } } type DescribeEndpointsMode string // Enum values for DescribeEndpointsMode const ( DescribeEndpointsModeDefault DescribeEndpointsMode = "DEFAULT" DescribeEndpointsModeGetOnly DescribeEndpointsMode = "GET_ONLY" ) // Values returns all known values for DescribeEndpointsMode. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (DescribeEndpointsMode) Values() []DescribeEndpointsMode { return []DescribeEndpointsMode{ "DEFAULT", "GET_ONLY", } } type DolbyVisionLevel6Mode string // Enum values for DolbyVisionLevel6Mode const ( DolbyVisionLevel6ModePassthrough DolbyVisionLevel6Mode = "PASSTHROUGH" DolbyVisionLevel6ModeRecalculate DolbyVisionLevel6Mode = "RECALCULATE" DolbyVisionLevel6ModeSpecify DolbyVisionLevel6Mode = "SPECIFY" ) // Values returns all known values for DolbyVisionLevel6Mode. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (DolbyVisionLevel6Mode) Values() []DolbyVisionLevel6Mode { return []DolbyVisionLevel6Mode{ "PASSTHROUGH", "RECALCULATE", "SPECIFY", } } type DolbyVisionMapping string // Enum values for DolbyVisionMapping const ( DolbyVisionMappingHdr10Nomap DolbyVisionMapping = "HDR10_NOMAP" DolbyVisionMappingHdr101000 DolbyVisionMapping = "HDR10_1000" ) // Values returns all known values for DolbyVisionMapping. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (DolbyVisionMapping) Values() []DolbyVisionMapping { return []DolbyVisionMapping{ "HDR10_NOMAP", "HDR10_1000", } } type DolbyVisionProfile string // Enum values for DolbyVisionProfile const ( DolbyVisionProfileProfile5 DolbyVisionProfile = "PROFILE_5" DolbyVisionProfileProfile81 DolbyVisionProfile = "PROFILE_8_1" ) // Values returns all known values for DolbyVisionProfile. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (DolbyVisionProfile) Values() []DolbyVisionProfile { return []DolbyVisionProfile{ "PROFILE_5", "PROFILE_8_1", } } type DropFrameTimecode string // Enum values for DropFrameTimecode const ( DropFrameTimecodeDisabled DropFrameTimecode = "DISABLED" DropFrameTimecodeEnabled DropFrameTimecode = "ENABLED" ) // Values returns all known values for DropFrameTimecode. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (DropFrameTimecode) Values() []DropFrameTimecode { return []DropFrameTimecode{ "DISABLED", "ENABLED", } } type DvbddsHandling string // Enum values for DvbddsHandling const ( DvbddsHandlingNone DvbddsHandling = "NONE" DvbddsHandlingSpecified DvbddsHandling = "SPECIFIED" DvbddsHandlingNoDisplayWindow DvbddsHandling = "NO_DISPLAY_WINDOW" ) // Values returns all known values for DvbddsHandling. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (DvbddsHandling) Values() []DvbddsHandling { return []DvbddsHandling{ "NONE", "SPECIFIED", "NO_DISPLAY_WINDOW", } } type DvbSubSubtitleFallbackFont string // Enum values for DvbSubSubtitleFallbackFont const ( DvbSubSubtitleFallbackFontBestMatch DvbSubSubtitleFallbackFont = "BEST_MATCH" DvbSubSubtitleFallbackFontMonospacedSansserif DvbSubSubtitleFallbackFont = "MONOSPACED_SANSSERIF" DvbSubSubtitleFallbackFontMonospacedSerif DvbSubSubtitleFallbackFont = "MONOSPACED_SERIF" DvbSubSubtitleFallbackFontProportionalSansserif DvbSubSubtitleFallbackFont = "PROPORTIONAL_SANSSERIF" DvbSubSubtitleFallbackFontProportionalSerif DvbSubSubtitleFallbackFont = "PROPORTIONAL_SERIF" ) // Values returns all known values for DvbSubSubtitleFallbackFont. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (DvbSubSubtitleFallbackFont) Values() []DvbSubSubtitleFallbackFont { return []DvbSubSubtitleFallbackFont{ "BEST_MATCH", "MONOSPACED_SANSSERIF", "MONOSPACED_SERIF", "PROPORTIONAL_SANSSERIF", "PROPORTIONAL_SERIF", } } type DvbSubtitleAlignment string // Enum values for DvbSubtitleAlignment const ( DvbSubtitleAlignmentCentered DvbSubtitleAlignment = "CENTERED" DvbSubtitleAlignmentLeft DvbSubtitleAlignment = "LEFT" DvbSubtitleAlignmentAuto DvbSubtitleAlignment = "AUTO" ) // Values returns all known values for DvbSubtitleAlignment. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (DvbSubtitleAlignment) Values() []DvbSubtitleAlignment { return []DvbSubtitleAlignment{ "CENTERED", "LEFT", "AUTO", } } type DvbSubtitleApplyFontColor string // Enum values for DvbSubtitleApplyFontColor const ( DvbSubtitleApplyFontColorWhiteTextOnly DvbSubtitleApplyFontColor = "WHITE_TEXT_ONLY" DvbSubtitleApplyFontColorAllText DvbSubtitleApplyFontColor = "ALL_TEXT" ) // Values returns all known values for DvbSubtitleApplyFontColor. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (DvbSubtitleApplyFontColor) Values() []DvbSubtitleApplyFontColor { return []DvbSubtitleApplyFontColor{ "WHITE_TEXT_ONLY", "ALL_TEXT", } } type DvbSubtitleBackgroundColor string // Enum values for DvbSubtitleBackgroundColor const ( DvbSubtitleBackgroundColorNone DvbSubtitleBackgroundColor = "NONE" DvbSubtitleBackgroundColorBlack DvbSubtitleBackgroundColor = "BLACK" DvbSubtitleBackgroundColorWhite DvbSubtitleBackgroundColor = "WHITE" DvbSubtitleBackgroundColorAuto DvbSubtitleBackgroundColor = "AUTO" ) // Values returns all known values for DvbSubtitleBackgroundColor. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (DvbSubtitleBackgroundColor) Values() []DvbSubtitleBackgroundColor { return []DvbSubtitleBackgroundColor{ "NONE", "BLACK", "WHITE", "AUTO", } } type DvbSubtitleFontColor string // Enum values for DvbSubtitleFontColor const ( DvbSubtitleFontColorWhite DvbSubtitleFontColor = "WHITE" DvbSubtitleFontColorBlack DvbSubtitleFontColor = "BLACK" DvbSubtitleFontColorYellow DvbSubtitleFontColor = "YELLOW" DvbSubtitleFontColorRed DvbSubtitleFontColor = "RED" DvbSubtitleFontColorGreen DvbSubtitleFontColor = "GREEN" DvbSubtitleFontColorBlue DvbSubtitleFontColor = "BLUE" DvbSubtitleFontColorHex DvbSubtitleFontColor = "HEX" DvbSubtitleFontColorAuto DvbSubtitleFontColor = "AUTO" ) // Values returns all known values for DvbSubtitleFontColor. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (DvbSubtitleFontColor) Values() []DvbSubtitleFontColor { return []DvbSubtitleFontColor{ "WHITE", "BLACK", "YELLOW", "RED", "GREEN", "BLUE", "HEX", "AUTO", } } type DvbSubtitleOutlineColor string // Enum values for DvbSubtitleOutlineColor const ( DvbSubtitleOutlineColorBlack DvbSubtitleOutlineColor = "BLACK" DvbSubtitleOutlineColorWhite DvbSubtitleOutlineColor = "WHITE" DvbSubtitleOutlineColorYellow DvbSubtitleOutlineColor = "YELLOW" DvbSubtitleOutlineColorRed DvbSubtitleOutlineColor = "RED" DvbSubtitleOutlineColorGreen DvbSubtitleOutlineColor = "GREEN" DvbSubtitleOutlineColorBlue DvbSubtitleOutlineColor = "BLUE" DvbSubtitleOutlineColorAuto DvbSubtitleOutlineColor = "AUTO" ) // Values returns all known values for DvbSubtitleOutlineColor. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (DvbSubtitleOutlineColor) Values() []DvbSubtitleOutlineColor { return []DvbSubtitleOutlineColor{ "BLACK", "WHITE", "YELLOW", "RED", "GREEN", "BLUE", "AUTO", } } type DvbSubtitleShadowColor string // Enum values for DvbSubtitleShadowColor const ( DvbSubtitleShadowColorNone DvbSubtitleShadowColor = "NONE" DvbSubtitleShadowColorBlack DvbSubtitleShadowColor = "BLACK" DvbSubtitleShadowColorWhite DvbSubtitleShadowColor = "WHITE" DvbSubtitleShadowColorAuto DvbSubtitleShadowColor = "AUTO" ) // Values returns all known values for DvbSubtitleShadowColor. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (DvbSubtitleShadowColor) Values() []DvbSubtitleShadowColor { return []DvbSubtitleShadowColor{ "NONE", "BLACK", "WHITE", "AUTO", } } type DvbSubtitleStylePassthrough string // Enum values for DvbSubtitleStylePassthrough const ( DvbSubtitleStylePassthroughEnabled DvbSubtitleStylePassthrough = "ENABLED" DvbSubtitleStylePassthroughDisabled DvbSubtitleStylePassthrough = "DISABLED" ) // Values returns all known values for DvbSubtitleStylePassthrough. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (DvbSubtitleStylePassthrough) Values() []DvbSubtitleStylePassthrough { return []DvbSubtitleStylePassthrough{ "ENABLED", "DISABLED", } } type DvbSubtitleTeletextSpacing string // Enum values for DvbSubtitleTeletextSpacing const ( DvbSubtitleTeletextSpacingFixedGrid DvbSubtitleTeletextSpacing = "FIXED_GRID" DvbSubtitleTeletextSpacingProportional DvbSubtitleTeletextSpacing = "PROPORTIONAL" DvbSubtitleTeletextSpacingAuto DvbSubtitleTeletextSpacing = "AUTO" ) // Values returns all known values for DvbSubtitleTeletextSpacing. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (DvbSubtitleTeletextSpacing) Values() []DvbSubtitleTeletextSpacing { return []DvbSubtitleTeletextSpacing{ "FIXED_GRID", "PROPORTIONAL", "AUTO", } } type DvbSubtitlingType string // Enum values for DvbSubtitlingType const ( DvbSubtitlingTypeHearingImpaired DvbSubtitlingType = "HEARING_IMPAIRED" DvbSubtitlingTypeStandard DvbSubtitlingType = "STANDARD" ) // Values returns all known values for DvbSubtitlingType. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (DvbSubtitlingType) Values() []DvbSubtitlingType { return []DvbSubtitlingType{ "HEARING_IMPAIRED", "STANDARD", } } type Eac3AtmosBitstreamMode string // Enum values for Eac3AtmosBitstreamMode const ( Eac3AtmosBitstreamModeCompleteMain Eac3AtmosBitstreamMode = "COMPLETE_MAIN" ) // Values returns all known values for Eac3AtmosBitstreamMode. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Eac3AtmosBitstreamMode) Values() []Eac3AtmosBitstreamMode { return []Eac3AtmosBitstreamMode{ "COMPLETE_MAIN", } } type Eac3AtmosCodingMode string // Enum values for Eac3AtmosCodingMode const ( Eac3AtmosCodingModeCodingModeAuto Eac3AtmosCodingMode = "CODING_MODE_AUTO" Eac3AtmosCodingModeCodingMode514 Eac3AtmosCodingMode = "CODING_MODE_5_1_4" Eac3AtmosCodingModeCodingMode714 Eac3AtmosCodingMode = "CODING_MODE_7_1_4" Eac3AtmosCodingModeCodingMode916 Eac3AtmosCodingMode = "CODING_MODE_9_1_6" ) // Values returns all known values for Eac3AtmosCodingMode. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Eac3AtmosCodingMode) Values() []Eac3AtmosCodingMode { return []Eac3AtmosCodingMode{ "CODING_MODE_AUTO", "CODING_MODE_5_1_4", "CODING_MODE_7_1_4", "CODING_MODE_9_1_6", } } type Eac3AtmosDialogueIntelligence string // Enum values for Eac3AtmosDialogueIntelligence const ( Eac3AtmosDialogueIntelligenceEnabled Eac3AtmosDialogueIntelligence = "ENABLED" Eac3AtmosDialogueIntelligenceDisabled Eac3AtmosDialogueIntelligence = "DISABLED" ) // Values returns all known values for Eac3AtmosDialogueIntelligence. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (Eac3AtmosDialogueIntelligence) Values() []Eac3AtmosDialogueIntelligence { return []Eac3AtmosDialogueIntelligence{ "ENABLED", "DISABLED", } } type Eac3AtmosDownmixControl string // Enum values for Eac3AtmosDownmixControl const ( Eac3AtmosDownmixControlSpecified Eac3AtmosDownmixControl = "SPECIFIED" Eac3AtmosDownmixControlInitializeFromSource Eac3AtmosDownmixControl = "INITIALIZE_FROM_SOURCE" ) // Values returns all known values for Eac3AtmosDownmixControl. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Eac3AtmosDownmixControl) Values() []Eac3AtmosDownmixControl { return []Eac3AtmosDownmixControl{ "SPECIFIED", "INITIALIZE_FROM_SOURCE", } } type Eac3AtmosDynamicRangeCompressionLine string // Enum values for Eac3AtmosDynamicRangeCompressionLine const ( Eac3AtmosDynamicRangeCompressionLineNone Eac3AtmosDynamicRangeCompressionLine = "NONE" Eac3AtmosDynamicRangeCompressionLineFilmStandard Eac3AtmosDynamicRangeCompressionLine = "FILM_STANDARD" Eac3AtmosDynamicRangeCompressionLineFilmLight Eac3AtmosDynamicRangeCompressionLine = "FILM_LIGHT" Eac3AtmosDynamicRangeCompressionLineMusicStandard Eac3AtmosDynamicRangeCompressionLine = "MUSIC_STANDARD" Eac3AtmosDynamicRangeCompressionLineMusicLight Eac3AtmosDynamicRangeCompressionLine = "MUSIC_LIGHT" Eac3AtmosDynamicRangeCompressionLineSpeech Eac3AtmosDynamicRangeCompressionLine = "SPEECH" ) // Values returns all known values for Eac3AtmosDynamicRangeCompressionLine. Note // that this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (Eac3AtmosDynamicRangeCompressionLine) Values() []Eac3AtmosDynamicRangeCompressionLine { return []Eac3AtmosDynamicRangeCompressionLine{ "NONE", "FILM_STANDARD", "FILM_LIGHT", "MUSIC_STANDARD", "MUSIC_LIGHT", "SPEECH", } } type Eac3AtmosDynamicRangeCompressionRf string // Enum values for Eac3AtmosDynamicRangeCompressionRf const ( Eac3AtmosDynamicRangeCompressionRfNone Eac3AtmosDynamicRangeCompressionRf = "NONE" Eac3AtmosDynamicRangeCompressionRfFilmStandard Eac3AtmosDynamicRangeCompressionRf = "FILM_STANDARD" Eac3AtmosDynamicRangeCompressionRfFilmLight Eac3AtmosDynamicRangeCompressionRf = "FILM_LIGHT" Eac3AtmosDynamicRangeCompressionRfMusicStandard Eac3AtmosDynamicRangeCompressionRf = "MUSIC_STANDARD" Eac3AtmosDynamicRangeCompressionRfMusicLight Eac3AtmosDynamicRangeCompressionRf = "MUSIC_LIGHT" Eac3AtmosDynamicRangeCompressionRfSpeech Eac3AtmosDynamicRangeCompressionRf = "SPEECH" ) // Values returns all known values for Eac3AtmosDynamicRangeCompressionRf. Note // that this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (Eac3AtmosDynamicRangeCompressionRf) Values() []Eac3AtmosDynamicRangeCompressionRf { return []Eac3AtmosDynamicRangeCompressionRf{ "NONE", "FILM_STANDARD", "FILM_LIGHT", "MUSIC_STANDARD", "MUSIC_LIGHT", "SPEECH", } } type Eac3AtmosDynamicRangeControl string // Enum values for Eac3AtmosDynamicRangeControl const ( Eac3AtmosDynamicRangeControlSpecified Eac3AtmosDynamicRangeControl = "SPECIFIED" Eac3AtmosDynamicRangeControlInitializeFromSource Eac3AtmosDynamicRangeControl = "INITIALIZE_FROM_SOURCE" ) // Values returns all known values for Eac3AtmosDynamicRangeControl. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (Eac3AtmosDynamicRangeControl) Values() []Eac3AtmosDynamicRangeControl { return []Eac3AtmosDynamicRangeControl{ "SPECIFIED", "INITIALIZE_FROM_SOURCE", } } type Eac3AtmosMeteringMode string // Enum values for Eac3AtmosMeteringMode const ( Eac3AtmosMeteringModeLeqA Eac3AtmosMeteringMode = "LEQ_A" Eac3AtmosMeteringModeItuBs17701 Eac3AtmosMeteringMode = "ITU_BS_1770_1" Eac3AtmosMeteringModeItuBs17702 Eac3AtmosMeteringMode = "ITU_BS_1770_2" Eac3AtmosMeteringModeItuBs17703 Eac3AtmosMeteringMode = "ITU_BS_1770_3" Eac3AtmosMeteringModeItuBs17704 Eac3AtmosMeteringMode = "ITU_BS_1770_4" ) // Values returns all known values for Eac3AtmosMeteringMode. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Eac3AtmosMeteringMode) Values() []Eac3AtmosMeteringMode { return []Eac3AtmosMeteringMode{ "LEQ_A", "ITU_BS_1770_1", "ITU_BS_1770_2", "ITU_BS_1770_3", "ITU_BS_1770_4", } } type Eac3AtmosStereoDownmix string // Enum values for Eac3AtmosStereoDownmix const ( Eac3AtmosStereoDownmixNotIndicated Eac3AtmosStereoDownmix = "NOT_INDICATED" Eac3AtmosStereoDownmixStereo Eac3AtmosStereoDownmix = "STEREO" Eac3AtmosStereoDownmixSurround Eac3AtmosStereoDownmix = "SURROUND" Eac3AtmosStereoDownmixDpl2 Eac3AtmosStereoDownmix = "DPL2" ) // Values returns all known values for Eac3AtmosStereoDownmix. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Eac3AtmosStereoDownmix) Values() []Eac3AtmosStereoDownmix { return []Eac3AtmosStereoDownmix{ "NOT_INDICATED", "STEREO", "SURROUND", "DPL2", } } type Eac3AtmosSurroundExMode string // Enum values for Eac3AtmosSurroundExMode const ( Eac3AtmosSurroundExModeNotIndicated Eac3AtmosSurroundExMode = "NOT_INDICATED" Eac3AtmosSurroundExModeEnabled Eac3AtmosSurroundExMode = "ENABLED" Eac3AtmosSurroundExModeDisabled Eac3AtmosSurroundExMode = "DISABLED" ) // Values returns all known values for Eac3AtmosSurroundExMode. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Eac3AtmosSurroundExMode) Values() []Eac3AtmosSurroundExMode { return []Eac3AtmosSurroundExMode{ "NOT_INDICATED", "ENABLED", "DISABLED", } } type Eac3AttenuationControl string // Enum values for Eac3AttenuationControl const ( Eac3AttenuationControlAttenuate3Db Eac3AttenuationControl = "ATTENUATE_3_DB" Eac3AttenuationControlNone Eac3AttenuationControl = "NONE" ) // Values returns all known values for Eac3AttenuationControl. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Eac3AttenuationControl) Values() []Eac3AttenuationControl { return []Eac3AttenuationControl{ "ATTENUATE_3_DB", "NONE", } } type Eac3BitstreamMode string // Enum values for Eac3BitstreamMode const ( Eac3BitstreamModeCompleteMain Eac3BitstreamMode = "COMPLETE_MAIN" Eac3BitstreamModeCommentary Eac3BitstreamMode = "COMMENTARY" Eac3BitstreamModeEmergency Eac3BitstreamMode = "EMERGENCY" Eac3BitstreamModeHearingImpaired Eac3BitstreamMode = "HEARING_IMPAIRED" Eac3BitstreamModeVisuallyImpaired Eac3BitstreamMode = "VISUALLY_IMPAIRED" ) // Values returns all known values for Eac3BitstreamMode. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Eac3BitstreamMode) Values() []Eac3BitstreamMode { return []Eac3BitstreamMode{ "COMPLETE_MAIN", "COMMENTARY", "EMERGENCY", "HEARING_IMPAIRED", "VISUALLY_IMPAIRED", } } type Eac3CodingMode string // Enum values for Eac3CodingMode const ( Eac3CodingModeCodingMode10 Eac3CodingMode = "CODING_MODE_1_0" Eac3CodingModeCodingMode20 Eac3CodingMode = "CODING_MODE_2_0" Eac3CodingModeCodingMode32 Eac3CodingMode = "CODING_MODE_3_2" ) // Values returns all known values for Eac3CodingMode. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Eac3CodingMode) Values() []Eac3CodingMode { return []Eac3CodingMode{ "CODING_MODE_1_0", "CODING_MODE_2_0", "CODING_MODE_3_2", } } type Eac3DcFilter string // Enum values for Eac3DcFilter const ( Eac3DcFilterEnabled Eac3DcFilter = "ENABLED" Eac3DcFilterDisabled Eac3DcFilter = "DISABLED" ) // Values returns all known values for Eac3DcFilter. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Eac3DcFilter) Values() []Eac3DcFilter { return []Eac3DcFilter{ "ENABLED", "DISABLED", } } type Eac3DynamicRangeCompressionLine string // Enum values for Eac3DynamicRangeCompressionLine const ( Eac3DynamicRangeCompressionLineNone Eac3DynamicRangeCompressionLine = "NONE" Eac3DynamicRangeCompressionLineFilmStandard Eac3DynamicRangeCompressionLine = "FILM_STANDARD" Eac3DynamicRangeCompressionLineFilmLight Eac3DynamicRangeCompressionLine = "FILM_LIGHT" Eac3DynamicRangeCompressionLineMusicStandard Eac3DynamicRangeCompressionLine = "MUSIC_STANDARD" Eac3DynamicRangeCompressionLineMusicLight Eac3DynamicRangeCompressionLine = "MUSIC_LIGHT" Eac3DynamicRangeCompressionLineSpeech Eac3DynamicRangeCompressionLine = "SPEECH" ) // Values returns all known values for Eac3DynamicRangeCompressionLine. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (Eac3DynamicRangeCompressionLine) Values() []Eac3DynamicRangeCompressionLine { return []Eac3DynamicRangeCompressionLine{ "NONE", "FILM_STANDARD", "FILM_LIGHT", "MUSIC_STANDARD", "MUSIC_LIGHT", "SPEECH", } } type Eac3DynamicRangeCompressionRf string // Enum values for Eac3DynamicRangeCompressionRf const ( Eac3DynamicRangeCompressionRfNone Eac3DynamicRangeCompressionRf = "NONE" Eac3DynamicRangeCompressionRfFilmStandard Eac3DynamicRangeCompressionRf = "FILM_STANDARD" Eac3DynamicRangeCompressionRfFilmLight Eac3DynamicRangeCompressionRf = "FILM_LIGHT" Eac3DynamicRangeCompressionRfMusicStandard Eac3DynamicRangeCompressionRf = "MUSIC_STANDARD" Eac3DynamicRangeCompressionRfMusicLight Eac3DynamicRangeCompressionRf = "MUSIC_LIGHT" Eac3DynamicRangeCompressionRfSpeech Eac3DynamicRangeCompressionRf = "SPEECH" ) // Values returns all known values for Eac3DynamicRangeCompressionRf. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (Eac3DynamicRangeCompressionRf) Values() []Eac3DynamicRangeCompressionRf { return []Eac3DynamicRangeCompressionRf{ "NONE", "FILM_STANDARD", "FILM_LIGHT", "MUSIC_STANDARD", "MUSIC_LIGHT", "SPEECH", } } type Eac3LfeControl string // Enum values for Eac3LfeControl const ( Eac3LfeControlLfe Eac3LfeControl = "LFE" Eac3LfeControlNoLfe Eac3LfeControl = "NO_LFE" ) // Values returns all known values for Eac3LfeControl. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Eac3LfeControl) Values() []Eac3LfeControl { return []Eac3LfeControl{ "LFE", "NO_LFE", } } type Eac3LfeFilter string // Enum values for Eac3LfeFilter const ( Eac3LfeFilterEnabled Eac3LfeFilter = "ENABLED" Eac3LfeFilterDisabled Eac3LfeFilter = "DISABLED" ) // Values returns all known values for Eac3LfeFilter. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Eac3LfeFilter) Values() []Eac3LfeFilter { return []Eac3LfeFilter{ "ENABLED", "DISABLED", } } type Eac3MetadataControl string // Enum values for Eac3MetadataControl const ( Eac3MetadataControlFollowInput Eac3MetadataControl = "FOLLOW_INPUT" Eac3MetadataControlUseConfigured Eac3MetadataControl = "USE_CONFIGURED" ) // Values returns all known values for Eac3MetadataControl. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Eac3MetadataControl) Values() []Eac3MetadataControl { return []Eac3MetadataControl{ "FOLLOW_INPUT", "USE_CONFIGURED", } } type Eac3PassthroughControl string // Enum values for Eac3PassthroughControl const ( Eac3PassthroughControlWhenPossible Eac3PassthroughControl = "WHEN_POSSIBLE" Eac3PassthroughControlNoPassthrough Eac3PassthroughControl = "NO_PASSTHROUGH" ) // Values returns all known values for Eac3PassthroughControl. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Eac3PassthroughControl) Values() []Eac3PassthroughControl { return []Eac3PassthroughControl{ "WHEN_POSSIBLE", "NO_PASSTHROUGH", } } type Eac3PhaseControl string // Enum values for Eac3PhaseControl const ( Eac3PhaseControlShift90Degrees Eac3PhaseControl = "SHIFT_90_DEGREES" Eac3PhaseControlNoShift Eac3PhaseControl = "NO_SHIFT" ) // Values returns all known values for Eac3PhaseControl. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Eac3PhaseControl) Values() []Eac3PhaseControl { return []Eac3PhaseControl{ "SHIFT_90_DEGREES", "NO_SHIFT", } } type Eac3StereoDownmix string // Enum values for Eac3StereoDownmix const ( Eac3StereoDownmixNotIndicated Eac3StereoDownmix = "NOT_INDICATED" Eac3StereoDownmixLoRo Eac3StereoDownmix = "LO_RO" Eac3StereoDownmixLtRt Eac3StereoDownmix = "LT_RT" Eac3StereoDownmixDpl2 Eac3StereoDownmix = "DPL2" ) // Values returns all known values for Eac3StereoDownmix. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Eac3StereoDownmix) Values() []Eac3StereoDownmix { return []Eac3StereoDownmix{ "NOT_INDICATED", "LO_RO", "LT_RT", "DPL2", } } type Eac3SurroundExMode string // Enum values for Eac3SurroundExMode const ( Eac3SurroundExModeNotIndicated Eac3SurroundExMode = "NOT_INDICATED" Eac3SurroundExModeEnabled Eac3SurroundExMode = "ENABLED" Eac3SurroundExModeDisabled Eac3SurroundExMode = "DISABLED" ) // Values returns all known values for Eac3SurroundExMode. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Eac3SurroundExMode) Values() []Eac3SurroundExMode { return []Eac3SurroundExMode{ "NOT_INDICATED", "ENABLED", "DISABLED", } } type Eac3SurroundMode string // Enum values for Eac3SurroundMode const ( Eac3SurroundModeNotIndicated Eac3SurroundMode = "NOT_INDICATED" Eac3SurroundModeEnabled Eac3SurroundMode = "ENABLED" Eac3SurroundModeDisabled Eac3SurroundMode = "DISABLED" ) // Values returns all known values for Eac3SurroundMode. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Eac3SurroundMode) Values() []Eac3SurroundMode { return []Eac3SurroundMode{ "NOT_INDICATED", "ENABLED", "DISABLED", } } type EmbeddedConvert608To708 string // Enum values for EmbeddedConvert608To708 const ( EmbeddedConvert608To708Upconvert EmbeddedConvert608To708 = "UPCONVERT" EmbeddedConvert608To708Disabled EmbeddedConvert608To708 = "DISABLED" ) // Values returns all known values for EmbeddedConvert608To708. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (EmbeddedConvert608To708) Values() []EmbeddedConvert608To708 { return []EmbeddedConvert608To708{ "UPCONVERT", "DISABLED", } } type EmbeddedTerminateCaptions string // Enum values for EmbeddedTerminateCaptions const ( EmbeddedTerminateCaptionsEndOfInput EmbeddedTerminateCaptions = "END_OF_INPUT" EmbeddedTerminateCaptionsDisabled EmbeddedTerminateCaptions = "DISABLED" ) // Values returns all known values for EmbeddedTerminateCaptions. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (EmbeddedTerminateCaptions) Values() []EmbeddedTerminateCaptions { return []EmbeddedTerminateCaptions{ "END_OF_INPUT", "DISABLED", } } type EmbeddedTimecodeOverride string // Enum values for EmbeddedTimecodeOverride const ( EmbeddedTimecodeOverrideNone EmbeddedTimecodeOverride = "NONE" EmbeddedTimecodeOverrideUseMdpm EmbeddedTimecodeOverride = "USE_MDPM" ) // Values returns all known values for EmbeddedTimecodeOverride. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (EmbeddedTimecodeOverride) Values() []EmbeddedTimecodeOverride { return []EmbeddedTimecodeOverride{ "NONE", "USE_MDPM", } } type F4vMoovPlacement string // Enum values for F4vMoovPlacement const ( F4vMoovPlacementProgressiveDownload F4vMoovPlacement = "PROGRESSIVE_DOWNLOAD" F4vMoovPlacementNormal F4vMoovPlacement = "NORMAL" ) // Values returns all known values for F4vMoovPlacement. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (F4vMoovPlacement) Values() []F4vMoovPlacement { return []F4vMoovPlacement{ "PROGRESSIVE_DOWNLOAD", "NORMAL", } } type FileSourceConvert608To708 string // Enum values for FileSourceConvert608To708 const ( FileSourceConvert608To708Upconvert FileSourceConvert608To708 = "UPCONVERT" FileSourceConvert608To708Disabled FileSourceConvert608To708 = "DISABLED" ) // Values returns all known values for FileSourceConvert608To708. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (FileSourceConvert608To708) Values() []FileSourceConvert608To708 { return []FileSourceConvert608To708{ "UPCONVERT", "DISABLED", } } type FileSourceTimeDeltaUnits string // Enum values for FileSourceTimeDeltaUnits const ( FileSourceTimeDeltaUnitsSeconds FileSourceTimeDeltaUnits = "SECONDS" FileSourceTimeDeltaUnitsMilliseconds FileSourceTimeDeltaUnits = "MILLISECONDS" ) // Values returns all known values for FileSourceTimeDeltaUnits. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (FileSourceTimeDeltaUnits) Values() []FileSourceTimeDeltaUnits { return []FileSourceTimeDeltaUnits{ "SECONDS", "MILLISECONDS", } } type FontScript string // Enum values for FontScript const ( FontScriptAutomatic FontScript = "AUTOMATIC" FontScriptHans FontScript = "HANS" FontScriptHant FontScript = "HANT" ) // Values returns all known values for FontScript. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (FontScript) Values() []FontScript { return []FontScript{ "AUTOMATIC", "HANS", "HANT", } } type H264AdaptiveQuantization string // Enum values for H264AdaptiveQuantization const ( H264AdaptiveQuantizationOff H264AdaptiveQuantization = "OFF" H264AdaptiveQuantizationAuto H264AdaptiveQuantization = "AUTO" H264AdaptiveQuantizationLow H264AdaptiveQuantization = "LOW" H264AdaptiveQuantizationMedium H264AdaptiveQuantization = "MEDIUM" H264AdaptiveQuantizationHigh H264AdaptiveQuantization = "HIGH" H264AdaptiveQuantizationHigher H264AdaptiveQuantization = "HIGHER" H264AdaptiveQuantizationMax H264AdaptiveQuantization = "MAX" ) // Values returns all known values for H264AdaptiveQuantization. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (H264AdaptiveQuantization) Values() []H264AdaptiveQuantization { return []H264AdaptiveQuantization{ "OFF", "AUTO", "LOW", "MEDIUM", "HIGH", "HIGHER", "MAX", } } type H264CodecLevel string // Enum values for H264CodecLevel const ( H264CodecLevelAuto H264CodecLevel = "AUTO" H264CodecLevelLevel1 H264CodecLevel = "LEVEL_1" H264CodecLevelLevel11 H264CodecLevel = "LEVEL_1_1" H264CodecLevelLevel12 H264CodecLevel = "LEVEL_1_2" H264CodecLevelLevel13 H264CodecLevel = "LEVEL_1_3" H264CodecLevelLevel2 H264CodecLevel = "LEVEL_2" H264CodecLevelLevel21 H264CodecLevel = "LEVEL_2_1" H264CodecLevelLevel22 H264CodecLevel = "LEVEL_2_2" H264CodecLevelLevel3 H264CodecLevel = "LEVEL_3" H264CodecLevelLevel31 H264CodecLevel = "LEVEL_3_1" H264CodecLevelLevel32 H264CodecLevel = "LEVEL_3_2" H264CodecLevelLevel4 H264CodecLevel = "LEVEL_4" H264CodecLevelLevel41 H264CodecLevel = "LEVEL_4_1" H264CodecLevelLevel42 H264CodecLevel = "LEVEL_4_2" H264CodecLevelLevel5 H264CodecLevel = "LEVEL_5" H264CodecLevelLevel51 H264CodecLevel = "LEVEL_5_1" H264CodecLevelLevel52 H264CodecLevel = "LEVEL_5_2" ) // Values returns all known values for H264CodecLevel. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (H264CodecLevel) Values() []H264CodecLevel { return []H264CodecLevel{ "AUTO", "LEVEL_1", "LEVEL_1_1", "LEVEL_1_2", "LEVEL_1_3", "LEVEL_2", "LEVEL_2_1", "LEVEL_2_2", "LEVEL_3", "LEVEL_3_1", "LEVEL_3_2", "LEVEL_4", "LEVEL_4_1", "LEVEL_4_2", "LEVEL_5", "LEVEL_5_1", "LEVEL_5_2", } } type H264CodecProfile string // Enum values for H264CodecProfile const ( H264CodecProfileBaseline H264CodecProfile = "BASELINE" H264CodecProfileHigh H264CodecProfile = "HIGH" H264CodecProfileHigh10bit H264CodecProfile = "HIGH_10BIT" H264CodecProfileHigh422 H264CodecProfile = "HIGH_422" H264CodecProfileHigh42210bit H264CodecProfile = "HIGH_422_10BIT" H264CodecProfileMain H264CodecProfile = "MAIN" ) // Values returns all known values for H264CodecProfile. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (H264CodecProfile) Values() []H264CodecProfile { return []H264CodecProfile{ "BASELINE", "HIGH", "HIGH_10BIT", "HIGH_422", "HIGH_422_10BIT", "MAIN", } } type H264DynamicSubGop string // Enum values for H264DynamicSubGop const ( H264DynamicSubGopAdaptive H264DynamicSubGop = "ADAPTIVE" H264DynamicSubGopStatic H264DynamicSubGop = "STATIC" ) // Values returns all known values for H264DynamicSubGop. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (H264DynamicSubGop) Values() []H264DynamicSubGop { return []H264DynamicSubGop{ "ADAPTIVE", "STATIC", } } type H264EntropyEncoding string // Enum values for H264EntropyEncoding const ( H264EntropyEncodingCabac H264EntropyEncoding = "CABAC" H264EntropyEncodingCavlc H264EntropyEncoding = "CAVLC" ) // Values returns all known values for H264EntropyEncoding. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (H264EntropyEncoding) Values() []H264EntropyEncoding { return []H264EntropyEncoding{ "CABAC", "CAVLC", } } type H264FieldEncoding string // Enum values for H264FieldEncoding const ( H264FieldEncodingPaff H264FieldEncoding = "PAFF" H264FieldEncodingForceField H264FieldEncoding = "FORCE_FIELD" H264FieldEncodingMbaff H264FieldEncoding = "MBAFF" ) // Values returns all known values for H264FieldEncoding. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (H264FieldEncoding) Values() []H264FieldEncoding { return []H264FieldEncoding{ "PAFF", "FORCE_FIELD", "MBAFF", } } type H264FlickerAdaptiveQuantization string // Enum values for H264FlickerAdaptiveQuantization const ( H264FlickerAdaptiveQuantizationDisabled H264FlickerAdaptiveQuantization = "DISABLED" H264FlickerAdaptiveQuantizationEnabled H264FlickerAdaptiveQuantization = "ENABLED" ) // Values returns all known values for H264FlickerAdaptiveQuantization. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (H264FlickerAdaptiveQuantization) Values() []H264FlickerAdaptiveQuantization { return []H264FlickerAdaptiveQuantization{ "DISABLED", "ENABLED", } } type H264FramerateControl string // Enum values for H264FramerateControl const ( H264FramerateControlInitializeFromSource H264FramerateControl = "INITIALIZE_FROM_SOURCE" H264FramerateControlSpecified H264FramerateControl = "SPECIFIED" ) // Values returns all known values for H264FramerateControl. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (H264FramerateControl) Values() []H264FramerateControl { return []H264FramerateControl{ "INITIALIZE_FROM_SOURCE", "SPECIFIED", } } type H264FramerateConversionAlgorithm string // Enum values for H264FramerateConversionAlgorithm const ( H264FramerateConversionAlgorithmDuplicateDrop H264FramerateConversionAlgorithm = "DUPLICATE_DROP" H264FramerateConversionAlgorithmInterpolate H264FramerateConversionAlgorithm = "INTERPOLATE" H264FramerateConversionAlgorithmFrameformer H264FramerateConversionAlgorithm = "FRAMEFORMER" ) // Values returns all known values for H264FramerateConversionAlgorithm. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (H264FramerateConversionAlgorithm) Values() []H264FramerateConversionAlgorithm { return []H264FramerateConversionAlgorithm{ "DUPLICATE_DROP", "INTERPOLATE", "FRAMEFORMER", } } type H264GopBReference string // Enum values for H264GopBReference const ( H264GopBReferenceDisabled H264GopBReference = "DISABLED" H264GopBReferenceEnabled H264GopBReference = "ENABLED" ) // Values returns all known values for H264GopBReference. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (H264GopBReference) Values() []H264GopBReference { return []H264GopBReference{ "DISABLED", "ENABLED", } } type H264GopSizeUnits string // Enum values for H264GopSizeUnits const ( H264GopSizeUnitsFrames H264GopSizeUnits = "FRAMES" H264GopSizeUnitsSeconds H264GopSizeUnits = "SECONDS" H264GopSizeUnitsAuto H264GopSizeUnits = "AUTO" ) // Values returns all known values for H264GopSizeUnits. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (H264GopSizeUnits) Values() []H264GopSizeUnits { return []H264GopSizeUnits{ "FRAMES", "SECONDS", "AUTO", } } type H264InterlaceMode string // Enum values for H264InterlaceMode const ( H264InterlaceModeProgressive H264InterlaceMode = "PROGRESSIVE" H264InterlaceModeTopField H264InterlaceMode = "TOP_FIELD" H264InterlaceModeBottomField H264InterlaceMode = "BOTTOM_FIELD" H264InterlaceModeFollowTopField H264InterlaceMode = "FOLLOW_TOP_FIELD" H264InterlaceModeFollowBottomField H264InterlaceMode = "FOLLOW_BOTTOM_FIELD" ) // Values returns all known values for H264InterlaceMode. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (H264InterlaceMode) Values() []H264InterlaceMode { return []H264InterlaceMode{ "PROGRESSIVE", "TOP_FIELD", "BOTTOM_FIELD", "FOLLOW_TOP_FIELD", "FOLLOW_BOTTOM_FIELD", } } type H264ParControl string // Enum values for H264ParControl const ( H264ParControlInitializeFromSource H264ParControl = "INITIALIZE_FROM_SOURCE" H264ParControlSpecified H264ParControl = "SPECIFIED" ) // Values returns all known values for H264ParControl. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (H264ParControl) Values() []H264ParControl { return []H264ParControl{ "INITIALIZE_FROM_SOURCE", "SPECIFIED", } } type H264QualityTuningLevel string // Enum values for H264QualityTuningLevel const ( H264QualityTuningLevelSinglePass H264QualityTuningLevel = "SINGLE_PASS" H264QualityTuningLevelSinglePassHq H264QualityTuningLevel = "SINGLE_PASS_HQ" H264QualityTuningLevelMultiPassHq H264QualityTuningLevel = "MULTI_PASS_HQ" ) // Values returns all known values for H264QualityTuningLevel. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (H264QualityTuningLevel) Values() []H264QualityTuningLevel { return []H264QualityTuningLevel{ "SINGLE_PASS", "SINGLE_PASS_HQ", "MULTI_PASS_HQ", } } type H264RateControlMode string // Enum values for H264RateControlMode const ( H264RateControlModeVbr H264RateControlMode = "VBR" H264RateControlModeCbr H264RateControlMode = "CBR" H264RateControlModeQvbr H264RateControlMode = "QVBR" ) // Values returns all known values for H264RateControlMode. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (H264RateControlMode) Values() []H264RateControlMode { return []H264RateControlMode{ "VBR", "CBR", "QVBR", } } type H264RepeatPps string // Enum values for H264RepeatPps const ( H264RepeatPpsDisabled H264RepeatPps = "DISABLED" H264RepeatPpsEnabled H264RepeatPps = "ENABLED" ) // Values returns all known values for H264RepeatPps. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (H264RepeatPps) Values() []H264RepeatPps { return []H264RepeatPps{ "DISABLED", "ENABLED", } } type H264ScanTypeConversionMode string // Enum values for H264ScanTypeConversionMode const ( H264ScanTypeConversionModeInterlaced H264ScanTypeConversionMode = "INTERLACED" H264ScanTypeConversionModeInterlacedOptimize H264ScanTypeConversionMode = "INTERLACED_OPTIMIZE" ) // Values returns all known values for H264ScanTypeConversionMode. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (H264ScanTypeConversionMode) Values() []H264ScanTypeConversionMode { return []H264ScanTypeConversionMode{ "INTERLACED", "INTERLACED_OPTIMIZE", } } type H264SceneChangeDetect string // Enum values for H264SceneChangeDetect const ( H264SceneChangeDetectDisabled H264SceneChangeDetect = "DISABLED" H264SceneChangeDetectEnabled H264SceneChangeDetect = "ENABLED" H264SceneChangeDetectTransitionDetection H264SceneChangeDetect = "TRANSITION_DETECTION" ) // Values returns all known values for H264SceneChangeDetect. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (H264SceneChangeDetect) Values() []H264SceneChangeDetect { return []H264SceneChangeDetect{ "DISABLED", "ENABLED", "TRANSITION_DETECTION", } } type H264SlowPal string // Enum values for H264SlowPal const ( H264SlowPalDisabled H264SlowPal = "DISABLED" H264SlowPalEnabled H264SlowPal = "ENABLED" ) // Values returns all known values for H264SlowPal. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (H264SlowPal) Values() []H264SlowPal { return []H264SlowPal{ "DISABLED", "ENABLED", } } type H264SpatialAdaptiveQuantization string // Enum values for H264SpatialAdaptiveQuantization const ( H264SpatialAdaptiveQuantizationDisabled H264SpatialAdaptiveQuantization = "DISABLED" H264SpatialAdaptiveQuantizationEnabled H264SpatialAdaptiveQuantization = "ENABLED" ) // Values returns all known values for H264SpatialAdaptiveQuantization. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (H264SpatialAdaptiveQuantization) Values() []H264SpatialAdaptiveQuantization { return []H264SpatialAdaptiveQuantization{ "DISABLED", "ENABLED", } } type H264Syntax string // Enum values for H264Syntax const ( H264SyntaxDefault H264Syntax = "DEFAULT" H264SyntaxRp2027 H264Syntax = "RP2027" ) // Values returns all known values for H264Syntax. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (H264Syntax) Values() []H264Syntax { return []H264Syntax{ "DEFAULT", "RP2027", } } type H264Telecine string // Enum values for H264Telecine const ( H264TelecineNone H264Telecine = "NONE" H264TelecineSoft H264Telecine = "SOFT" H264TelecineHard H264Telecine = "HARD" ) // Values returns all known values for H264Telecine. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (H264Telecine) Values() []H264Telecine { return []H264Telecine{ "NONE", "SOFT", "HARD", } } type H264TemporalAdaptiveQuantization string // Enum values for H264TemporalAdaptiveQuantization const ( H264TemporalAdaptiveQuantizationDisabled H264TemporalAdaptiveQuantization = "DISABLED" H264TemporalAdaptiveQuantizationEnabled H264TemporalAdaptiveQuantization = "ENABLED" ) // Values returns all known values for H264TemporalAdaptiveQuantization. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (H264TemporalAdaptiveQuantization) Values() []H264TemporalAdaptiveQuantization { return []H264TemporalAdaptiveQuantization{ "DISABLED", "ENABLED", } } type H264UnregisteredSeiTimecode string // Enum values for H264UnregisteredSeiTimecode const ( H264UnregisteredSeiTimecodeDisabled H264UnregisteredSeiTimecode = "DISABLED" H264UnregisteredSeiTimecodeEnabled H264UnregisteredSeiTimecode = "ENABLED" ) // Values returns all known values for H264UnregisteredSeiTimecode. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (H264UnregisteredSeiTimecode) Values() []H264UnregisteredSeiTimecode { return []H264UnregisteredSeiTimecode{ "DISABLED", "ENABLED", } } type H265AdaptiveQuantization string // Enum values for H265AdaptiveQuantization const ( H265AdaptiveQuantizationOff H265AdaptiveQuantization = "OFF" H265AdaptiveQuantizationLow H265AdaptiveQuantization = "LOW" H265AdaptiveQuantizationMedium H265AdaptiveQuantization = "MEDIUM" H265AdaptiveQuantizationHigh H265AdaptiveQuantization = "HIGH" H265AdaptiveQuantizationHigher H265AdaptiveQuantization = "HIGHER" H265AdaptiveQuantizationMax H265AdaptiveQuantization = "MAX" H265AdaptiveQuantizationAuto H265AdaptiveQuantization = "AUTO" ) // Values returns all known values for H265AdaptiveQuantization. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (H265AdaptiveQuantization) Values() []H265AdaptiveQuantization { return []H265AdaptiveQuantization{ "OFF", "LOW", "MEDIUM", "HIGH", "HIGHER", "MAX", "AUTO", } } type H265AlternateTransferFunctionSei string // Enum values for H265AlternateTransferFunctionSei const ( H265AlternateTransferFunctionSeiDisabled H265AlternateTransferFunctionSei = "DISABLED" H265AlternateTransferFunctionSeiEnabled H265AlternateTransferFunctionSei = "ENABLED" ) // Values returns all known values for H265AlternateTransferFunctionSei. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (H265AlternateTransferFunctionSei) Values() []H265AlternateTransferFunctionSei { return []H265AlternateTransferFunctionSei{ "DISABLED", "ENABLED", } } type H265CodecLevel string // Enum values for H265CodecLevel const ( H265CodecLevelAuto H265CodecLevel = "AUTO" H265CodecLevelLevel1 H265CodecLevel = "LEVEL_1" H265CodecLevelLevel2 H265CodecLevel = "LEVEL_2" H265CodecLevelLevel21 H265CodecLevel = "LEVEL_2_1" H265CodecLevelLevel3 H265CodecLevel = "LEVEL_3" H265CodecLevelLevel31 H265CodecLevel = "LEVEL_3_1" H265CodecLevelLevel4 H265CodecLevel = "LEVEL_4" H265CodecLevelLevel41 H265CodecLevel = "LEVEL_4_1" H265CodecLevelLevel5 H265CodecLevel = "LEVEL_5" H265CodecLevelLevel51 H265CodecLevel = "LEVEL_5_1" H265CodecLevelLevel52 H265CodecLevel = "LEVEL_5_2" H265CodecLevelLevel6 H265CodecLevel = "LEVEL_6" H265CodecLevelLevel61 H265CodecLevel = "LEVEL_6_1" H265CodecLevelLevel62 H265CodecLevel = "LEVEL_6_2" ) // Values returns all known values for H265CodecLevel. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (H265CodecLevel) Values() []H265CodecLevel { return []H265CodecLevel{ "AUTO", "LEVEL_1", "LEVEL_2", "LEVEL_2_1", "LEVEL_3", "LEVEL_3_1", "LEVEL_4", "LEVEL_4_1", "LEVEL_5", "LEVEL_5_1", "LEVEL_5_2", "LEVEL_6", "LEVEL_6_1", "LEVEL_6_2", } } type H265CodecProfile string // Enum values for H265CodecProfile const ( H265CodecProfileMainMain H265CodecProfile = "MAIN_MAIN" H265CodecProfileMainHigh H265CodecProfile = "MAIN_HIGH" H265CodecProfileMain10Main H265CodecProfile = "MAIN10_MAIN" H265CodecProfileMain10High H265CodecProfile = "MAIN10_HIGH" H265CodecProfileMain4228bitMain H265CodecProfile = "MAIN_422_8BIT_MAIN" H265CodecProfileMain4228bitHigh H265CodecProfile = "MAIN_422_8BIT_HIGH" H265CodecProfileMain42210bitMain H265CodecProfile = "MAIN_422_10BIT_MAIN" H265CodecProfileMain42210bitHigh H265CodecProfile = "MAIN_422_10BIT_HIGH" ) // Values returns all known values for H265CodecProfile. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (H265CodecProfile) Values() []H265CodecProfile { return []H265CodecProfile{ "MAIN_MAIN", "MAIN_HIGH", "MAIN10_MAIN", "MAIN10_HIGH", "MAIN_422_8BIT_MAIN", "MAIN_422_8BIT_HIGH", "MAIN_422_10BIT_MAIN", "MAIN_422_10BIT_HIGH", } } type H265DynamicSubGop string // Enum values for H265DynamicSubGop const ( H265DynamicSubGopAdaptive H265DynamicSubGop = "ADAPTIVE" H265DynamicSubGopStatic H265DynamicSubGop = "STATIC" ) // Values returns all known values for H265DynamicSubGop. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (H265DynamicSubGop) Values() []H265DynamicSubGop { return []H265DynamicSubGop{ "ADAPTIVE", "STATIC", } } type H265FlickerAdaptiveQuantization string // Enum values for H265FlickerAdaptiveQuantization const ( H265FlickerAdaptiveQuantizationDisabled H265FlickerAdaptiveQuantization = "DISABLED" H265FlickerAdaptiveQuantizationEnabled H265FlickerAdaptiveQuantization = "ENABLED" ) // Values returns all known values for H265FlickerAdaptiveQuantization. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (H265FlickerAdaptiveQuantization) Values() []H265FlickerAdaptiveQuantization { return []H265FlickerAdaptiveQuantization{ "DISABLED", "ENABLED", } } type H265FramerateControl string // Enum values for H265FramerateControl const ( H265FramerateControlInitializeFromSource H265FramerateControl = "INITIALIZE_FROM_SOURCE" H265FramerateControlSpecified H265FramerateControl = "SPECIFIED" ) // Values returns all known values for H265FramerateControl. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (H265FramerateControl) Values() []H265FramerateControl { return []H265FramerateControl{ "INITIALIZE_FROM_SOURCE", "SPECIFIED", } } type H265FramerateConversionAlgorithm string // Enum values for H265FramerateConversionAlgorithm const ( H265FramerateConversionAlgorithmDuplicateDrop H265FramerateConversionAlgorithm = "DUPLICATE_DROP" H265FramerateConversionAlgorithmInterpolate H265FramerateConversionAlgorithm = "INTERPOLATE" H265FramerateConversionAlgorithmFrameformer H265FramerateConversionAlgorithm = "FRAMEFORMER" ) // Values returns all known values for H265FramerateConversionAlgorithm. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (H265FramerateConversionAlgorithm) Values() []H265FramerateConversionAlgorithm { return []H265FramerateConversionAlgorithm{ "DUPLICATE_DROP", "INTERPOLATE", "FRAMEFORMER", } } type H265GopBReference string // Enum values for H265GopBReference const ( H265GopBReferenceDisabled H265GopBReference = "DISABLED" H265GopBReferenceEnabled H265GopBReference = "ENABLED" ) // Values returns all known values for H265GopBReference. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (H265GopBReference) Values() []H265GopBReference { return []H265GopBReference{ "DISABLED", "ENABLED", } } type H265GopSizeUnits string // Enum values for H265GopSizeUnits const ( H265GopSizeUnitsFrames H265GopSizeUnits = "FRAMES" H265GopSizeUnitsSeconds H265GopSizeUnits = "SECONDS" H265GopSizeUnitsAuto H265GopSizeUnits = "AUTO" ) // Values returns all known values for H265GopSizeUnits. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (H265GopSizeUnits) Values() []H265GopSizeUnits { return []H265GopSizeUnits{ "FRAMES", "SECONDS", "AUTO", } } type H265InterlaceMode string // Enum values for H265InterlaceMode const ( H265InterlaceModeProgressive H265InterlaceMode = "PROGRESSIVE" H265InterlaceModeTopField H265InterlaceMode = "TOP_FIELD" H265InterlaceModeBottomField H265InterlaceMode = "BOTTOM_FIELD" H265InterlaceModeFollowTopField H265InterlaceMode = "FOLLOW_TOP_FIELD" H265InterlaceModeFollowBottomField H265InterlaceMode = "FOLLOW_BOTTOM_FIELD" ) // Values returns all known values for H265InterlaceMode. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (H265InterlaceMode) Values() []H265InterlaceMode { return []H265InterlaceMode{ "PROGRESSIVE", "TOP_FIELD", "BOTTOM_FIELD", "FOLLOW_TOP_FIELD", "FOLLOW_BOTTOM_FIELD", } } type H265ParControl string // Enum values for H265ParControl const ( H265ParControlInitializeFromSource H265ParControl = "INITIALIZE_FROM_SOURCE" H265ParControlSpecified H265ParControl = "SPECIFIED" ) // Values returns all known values for H265ParControl. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (H265ParControl) Values() []H265ParControl { return []H265ParControl{ "INITIALIZE_FROM_SOURCE", "SPECIFIED", } } type H265QualityTuningLevel string // Enum values for H265QualityTuningLevel const ( H265QualityTuningLevelSinglePass H265QualityTuningLevel = "SINGLE_PASS" H265QualityTuningLevelSinglePassHq H265QualityTuningLevel = "SINGLE_PASS_HQ" H265QualityTuningLevelMultiPassHq H265QualityTuningLevel = "MULTI_PASS_HQ" ) // Values returns all known values for H265QualityTuningLevel. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (H265QualityTuningLevel) Values() []H265QualityTuningLevel { return []H265QualityTuningLevel{ "SINGLE_PASS", "SINGLE_PASS_HQ", "MULTI_PASS_HQ", } } type H265RateControlMode string // Enum values for H265RateControlMode const ( H265RateControlModeVbr H265RateControlMode = "VBR" H265RateControlModeCbr H265RateControlMode = "CBR" H265RateControlModeQvbr H265RateControlMode = "QVBR" ) // Values returns all known values for H265RateControlMode. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (H265RateControlMode) Values() []H265RateControlMode { return []H265RateControlMode{ "VBR", "CBR", "QVBR", } } type H265SampleAdaptiveOffsetFilterMode string // Enum values for H265SampleAdaptiveOffsetFilterMode const ( H265SampleAdaptiveOffsetFilterModeDefault H265SampleAdaptiveOffsetFilterMode = "DEFAULT" H265SampleAdaptiveOffsetFilterModeAdaptive H265SampleAdaptiveOffsetFilterMode = "ADAPTIVE" H265SampleAdaptiveOffsetFilterModeOff H265SampleAdaptiveOffsetFilterMode = "OFF" ) // Values returns all known values for H265SampleAdaptiveOffsetFilterMode. Note // that this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (H265SampleAdaptiveOffsetFilterMode) Values() []H265SampleAdaptiveOffsetFilterMode { return []H265SampleAdaptiveOffsetFilterMode{ "DEFAULT", "ADAPTIVE", "OFF", } } type H265ScanTypeConversionMode string // Enum values for H265ScanTypeConversionMode const ( H265ScanTypeConversionModeInterlaced H265ScanTypeConversionMode = "INTERLACED" H265ScanTypeConversionModeInterlacedOptimize H265ScanTypeConversionMode = "INTERLACED_OPTIMIZE" ) // Values returns all known values for H265ScanTypeConversionMode. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (H265ScanTypeConversionMode) Values() []H265ScanTypeConversionMode { return []H265ScanTypeConversionMode{ "INTERLACED", "INTERLACED_OPTIMIZE", } } type H265SceneChangeDetect string // Enum values for H265SceneChangeDetect const ( H265SceneChangeDetectDisabled H265SceneChangeDetect = "DISABLED" H265SceneChangeDetectEnabled H265SceneChangeDetect = "ENABLED" H265SceneChangeDetectTransitionDetection H265SceneChangeDetect = "TRANSITION_DETECTION" ) // Values returns all known values for H265SceneChangeDetect. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (H265SceneChangeDetect) Values() []H265SceneChangeDetect { return []H265SceneChangeDetect{ "DISABLED", "ENABLED", "TRANSITION_DETECTION", } } type H265SlowPal string // Enum values for H265SlowPal const ( H265SlowPalDisabled H265SlowPal = "DISABLED" H265SlowPalEnabled H265SlowPal = "ENABLED" ) // Values returns all known values for H265SlowPal. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (H265SlowPal) Values() []H265SlowPal { return []H265SlowPal{ "DISABLED", "ENABLED", } } type H265SpatialAdaptiveQuantization string // Enum values for H265SpatialAdaptiveQuantization const ( H265SpatialAdaptiveQuantizationDisabled H265SpatialAdaptiveQuantization = "DISABLED" H265SpatialAdaptiveQuantizationEnabled H265SpatialAdaptiveQuantization = "ENABLED" ) // Values returns all known values for H265SpatialAdaptiveQuantization. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (H265SpatialAdaptiveQuantization) Values() []H265SpatialAdaptiveQuantization { return []H265SpatialAdaptiveQuantization{ "DISABLED", "ENABLED", } } type H265Telecine string // Enum values for H265Telecine const ( H265TelecineNone H265Telecine = "NONE" H265TelecineSoft H265Telecine = "SOFT" H265TelecineHard H265Telecine = "HARD" ) // Values returns all known values for H265Telecine. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (H265Telecine) Values() []H265Telecine { return []H265Telecine{ "NONE", "SOFT", "HARD", } } type H265TemporalAdaptiveQuantization string // Enum values for H265TemporalAdaptiveQuantization const ( H265TemporalAdaptiveQuantizationDisabled H265TemporalAdaptiveQuantization = "DISABLED" H265TemporalAdaptiveQuantizationEnabled H265TemporalAdaptiveQuantization = "ENABLED" ) // Values returns all known values for H265TemporalAdaptiveQuantization. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (H265TemporalAdaptiveQuantization) Values() []H265TemporalAdaptiveQuantization { return []H265TemporalAdaptiveQuantization{ "DISABLED", "ENABLED", } } type H265TemporalIds string // Enum values for H265TemporalIds const ( H265TemporalIdsDisabled H265TemporalIds = "DISABLED" H265TemporalIdsEnabled H265TemporalIds = "ENABLED" ) // Values returns all known values for H265TemporalIds. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (H265TemporalIds) Values() []H265TemporalIds { return []H265TemporalIds{ "DISABLED", "ENABLED", } } type H265Tiles string // Enum values for H265Tiles const ( H265TilesDisabled H265Tiles = "DISABLED" H265TilesEnabled H265Tiles = "ENABLED" ) // Values returns all known values for H265Tiles. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (H265Tiles) Values() []H265Tiles { return []H265Tiles{ "DISABLED", "ENABLED", } } type H265UnregisteredSeiTimecode string // Enum values for H265UnregisteredSeiTimecode const ( H265UnregisteredSeiTimecodeDisabled H265UnregisteredSeiTimecode = "DISABLED" H265UnregisteredSeiTimecodeEnabled H265UnregisteredSeiTimecode = "ENABLED" ) // Values returns all known values for H265UnregisteredSeiTimecode. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (H265UnregisteredSeiTimecode) Values() []H265UnregisteredSeiTimecode { return []H265UnregisteredSeiTimecode{ "DISABLED", "ENABLED", } } type H265WriteMp4PackagingType string // Enum values for H265WriteMp4PackagingType const ( H265WriteMp4PackagingTypeHvc1 H265WriteMp4PackagingType = "HVC1" H265WriteMp4PackagingTypeHev1 H265WriteMp4PackagingType = "HEV1" ) // Values returns all known values for H265WriteMp4PackagingType. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (H265WriteMp4PackagingType) Values() []H265WriteMp4PackagingType { return []H265WriteMp4PackagingType{ "HVC1", "HEV1", } } type HDRToSDRToneMapper string // Enum values for HDRToSDRToneMapper const ( HDRToSDRToneMapperPreserveDetails HDRToSDRToneMapper = "PRESERVE_DETAILS" HDRToSDRToneMapperVibrant HDRToSDRToneMapper = "VIBRANT" ) // Values returns all known values for HDRToSDRToneMapper. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (HDRToSDRToneMapper) Values() []HDRToSDRToneMapper { return []HDRToSDRToneMapper{ "PRESERVE_DETAILS", "VIBRANT", } } type HlsAdMarkers string // Enum values for HlsAdMarkers const ( HlsAdMarkersElemental HlsAdMarkers = "ELEMENTAL" HlsAdMarkersElementalScte35 HlsAdMarkers = "ELEMENTAL_SCTE35" ) // Values returns all known values for HlsAdMarkers. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (HlsAdMarkers) Values() []HlsAdMarkers { return []HlsAdMarkers{ "ELEMENTAL", "ELEMENTAL_SCTE35", } } type HlsAudioOnlyContainer string // Enum values for HlsAudioOnlyContainer const ( HlsAudioOnlyContainerAutomatic HlsAudioOnlyContainer = "AUTOMATIC" HlsAudioOnlyContainerM2ts HlsAudioOnlyContainer = "M2TS" ) // Values returns all known values for HlsAudioOnlyContainer. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (HlsAudioOnlyContainer) Values() []HlsAudioOnlyContainer { return []HlsAudioOnlyContainer{ "AUTOMATIC", "M2TS", } } type HlsAudioOnlyHeader string // Enum values for HlsAudioOnlyHeader const ( HlsAudioOnlyHeaderInclude HlsAudioOnlyHeader = "INCLUDE" HlsAudioOnlyHeaderExclude HlsAudioOnlyHeader = "EXCLUDE" ) // Values returns all known values for HlsAudioOnlyHeader. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (HlsAudioOnlyHeader) Values() []HlsAudioOnlyHeader { return []HlsAudioOnlyHeader{ "INCLUDE", "EXCLUDE", } } type HlsAudioTrackType string // Enum values for HlsAudioTrackType const ( HlsAudioTrackTypeAlternateAudioAutoSelectDefault HlsAudioTrackType = "ALTERNATE_AUDIO_AUTO_SELECT_DEFAULT" HlsAudioTrackTypeAlternateAudioAutoSelect HlsAudioTrackType = "ALTERNATE_AUDIO_AUTO_SELECT" HlsAudioTrackTypeAlternateAudioNotAutoSelect HlsAudioTrackType = "ALTERNATE_AUDIO_NOT_AUTO_SELECT" HlsAudioTrackTypeAudioOnlyVariantStream HlsAudioTrackType = "AUDIO_ONLY_VARIANT_STREAM" ) // Values returns all known values for HlsAudioTrackType. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (HlsAudioTrackType) Values() []HlsAudioTrackType { return []HlsAudioTrackType{ "ALTERNATE_AUDIO_AUTO_SELECT_DEFAULT", "ALTERNATE_AUDIO_AUTO_SELECT", "ALTERNATE_AUDIO_NOT_AUTO_SELECT", "AUDIO_ONLY_VARIANT_STREAM", } } type HlsCaptionLanguageSetting string // Enum values for HlsCaptionLanguageSetting const ( HlsCaptionLanguageSettingInsert HlsCaptionLanguageSetting = "INSERT" HlsCaptionLanguageSettingOmit HlsCaptionLanguageSetting = "OMIT" HlsCaptionLanguageSettingNone HlsCaptionLanguageSetting = "NONE" ) // Values returns all known values for HlsCaptionLanguageSetting. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (HlsCaptionLanguageSetting) Values() []HlsCaptionLanguageSetting { return []HlsCaptionLanguageSetting{ "INSERT", "OMIT", "NONE", } } type HlsCaptionSegmentLengthControl string // Enum values for HlsCaptionSegmentLengthControl const ( HlsCaptionSegmentLengthControlLargeSegments HlsCaptionSegmentLengthControl = "LARGE_SEGMENTS" HlsCaptionSegmentLengthControlMatchVideo HlsCaptionSegmentLengthControl = "MATCH_VIDEO" ) // Values returns all known values for HlsCaptionSegmentLengthControl. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (HlsCaptionSegmentLengthControl) Values() []HlsCaptionSegmentLengthControl { return []HlsCaptionSegmentLengthControl{ "LARGE_SEGMENTS", "MATCH_VIDEO", } } type HlsClientCache string // Enum values for HlsClientCache const ( HlsClientCacheDisabled HlsClientCache = "DISABLED" HlsClientCacheEnabled HlsClientCache = "ENABLED" ) // Values returns all known values for HlsClientCache. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (HlsClientCache) Values() []HlsClientCache { return []HlsClientCache{ "DISABLED", "ENABLED", } } type HlsCodecSpecification string // Enum values for HlsCodecSpecification const ( HlsCodecSpecificationRfc6381 HlsCodecSpecification = "RFC_6381" HlsCodecSpecificationRfc4281 HlsCodecSpecification = "RFC_4281" ) // Values returns all known values for HlsCodecSpecification. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (HlsCodecSpecification) Values() []HlsCodecSpecification { return []HlsCodecSpecification{ "RFC_6381", "RFC_4281", } } type HlsDescriptiveVideoServiceFlag string // Enum values for HlsDescriptiveVideoServiceFlag const ( HlsDescriptiveVideoServiceFlagDontFlag HlsDescriptiveVideoServiceFlag = "DONT_FLAG" HlsDescriptiveVideoServiceFlagFlag HlsDescriptiveVideoServiceFlag = "FLAG" ) // Values returns all known values for HlsDescriptiveVideoServiceFlag. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (HlsDescriptiveVideoServiceFlag) Values() []HlsDescriptiveVideoServiceFlag { return []HlsDescriptiveVideoServiceFlag{ "DONT_FLAG", "FLAG", } } type HlsDirectoryStructure string // Enum values for HlsDirectoryStructure const ( HlsDirectoryStructureSingleDirectory HlsDirectoryStructure = "SINGLE_DIRECTORY" HlsDirectoryStructureSubdirectoryPerStream HlsDirectoryStructure = "SUBDIRECTORY_PER_STREAM" ) // Values returns all known values for HlsDirectoryStructure. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (HlsDirectoryStructure) Values() []HlsDirectoryStructure { return []HlsDirectoryStructure{ "SINGLE_DIRECTORY", "SUBDIRECTORY_PER_STREAM", } } type HlsEncryptionType string // Enum values for HlsEncryptionType const ( HlsEncryptionTypeAes128 HlsEncryptionType = "AES128" HlsEncryptionTypeSampleAes HlsEncryptionType = "SAMPLE_AES" ) // Values returns all known values for HlsEncryptionType. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (HlsEncryptionType) Values() []HlsEncryptionType { return []HlsEncryptionType{ "AES128", "SAMPLE_AES", } } type HlsIFrameOnlyManifest string // Enum values for HlsIFrameOnlyManifest const ( HlsIFrameOnlyManifestInclude HlsIFrameOnlyManifest = "INCLUDE" HlsIFrameOnlyManifestExclude HlsIFrameOnlyManifest = "EXCLUDE" ) // Values returns all known values for HlsIFrameOnlyManifest. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (HlsIFrameOnlyManifest) Values() []HlsIFrameOnlyManifest { return []HlsIFrameOnlyManifest{ "INCLUDE", "EXCLUDE", } } type HlsImageBasedTrickPlay string // Enum values for HlsImageBasedTrickPlay const ( HlsImageBasedTrickPlayNone HlsImageBasedTrickPlay = "NONE" HlsImageBasedTrickPlayThumbnail HlsImageBasedTrickPlay = "THUMBNAIL" HlsImageBasedTrickPlayThumbnailAndFullframe HlsImageBasedTrickPlay = "THUMBNAIL_AND_FULLFRAME" HlsImageBasedTrickPlayAdvanced HlsImageBasedTrickPlay = "ADVANCED" ) // Values returns all known values for HlsImageBasedTrickPlay. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (HlsImageBasedTrickPlay) Values() []HlsImageBasedTrickPlay { return []HlsImageBasedTrickPlay{ "NONE", "THUMBNAIL", "THUMBNAIL_AND_FULLFRAME", "ADVANCED", } } type HlsInitializationVectorInManifest string // Enum values for HlsInitializationVectorInManifest const ( HlsInitializationVectorInManifestInclude HlsInitializationVectorInManifest = "INCLUDE" HlsInitializationVectorInManifestExclude HlsInitializationVectorInManifest = "EXCLUDE" ) // Values returns all known values for HlsInitializationVectorInManifest. Note // that this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (HlsInitializationVectorInManifest) Values() []HlsInitializationVectorInManifest { return []HlsInitializationVectorInManifest{ "INCLUDE", "EXCLUDE", } } type HlsIntervalCadence string // Enum values for HlsIntervalCadence const ( HlsIntervalCadenceFollowIframe HlsIntervalCadence = "FOLLOW_IFRAME" HlsIntervalCadenceFollowCustom HlsIntervalCadence = "FOLLOW_CUSTOM" ) // Values returns all known values for HlsIntervalCadence. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (HlsIntervalCadence) Values() []HlsIntervalCadence { return []HlsIntervalCadence{ "FOLLOW_IFRAME", "FOLLOW_CUSTOM", } } type HlsKeyProviderType string // Enum values for HlsKeyProviderType const ( HlsKeyProviderTypeSpeke HlsKeyProviderType = "SPEKE" HlsKeyProviderTypeStaticKey HlsKeyProviderType = "STATIC_KEY" ) // Values returns all known values for HlsKeyProviderType. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (HlsKeyProviderType) Values() []HlsKeyProviderType { return []HlsKeyProviderType{ "SPEKE", "STATIC_KEY", } } type HlsManifestCompression string // Enum values for HlsManifestCompression const ( HlsManifestCompressionGzip HlsManifestCompression = "GZIP" HlsManifestCompressionNone HlsManifestCompression = "NONE" ) // Values returns all known values for HlsManifestCompression. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (HlsManifestCompression) Values() []HlsManifestCompression { return []HlsManifestCompression{ "GZIP", "NONE", } } type HlsManifestDurationFormat string // Enum values for HlsManifestDurationFormat const ( HlsManifestDurationFormatFloatingPoint HlsManifestDurationFormat = "FLOATING_POINT" HlsManifestDurationFormatInteger HlsManifestDurationFormat = "INTEGER" ) // Values returns all known values for HlsManifestDurationFormat. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (HlsManifestDurationFormat) Values() []HlsManifestDurationFormat { return []HlsManifestDurationFormat{ "FLOATING_POINT", "INTEGER", } } type HlsOfflineEncrypted string // Enum values for HlsOfflineEncrypted const ( HlsOfflineEncryptedEnabled HlsOfflineEncrypted = "ENABLED" HlsOfflineEncryptedDisabled HlsOfflineEncrypted = "DISABLED" ) // Values returns all known values for HlsOfflineEncrypted. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (HlsOfflineEncrypted) Values() []HlsOfflineEncrypted { return []HlsOfflineEncrypted{ "ENABLED", "DISABLED", } } type HlsOutputSelection string // Enum values for HlsOutputSelection const ( HlsOutputSelectionManifestsAndSegments HlsOutputSelection = "MANIFESTS_AND_SEGMENTS" HlsOutputSelectionSegmentsOnly HlsOutputSelection = "SEGMENTS_ONLY" ) // Values returns all known values for HlsOutputSelection. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (HlsOutputSelection) Values() []HlsOutputSelection { return []HlsOutputSelection{ "MANIFESTS_AND_SEGMENTS", "SEGMENTS_ONLY", } } type HlsProgramDateTime string // Enum values for HlsProgramDateTime const ( HlsProgramDateTimeInclude HlsProgramDateTime = "INCLUDE" HlsProgramDateTimeExclude HlsProgramDateTime = "EXCLUDE" ) // Values returns all known values for HlsProgramDateTime. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (HlsProgramDateTime) Values() []HlsProgramDateTime { return []HlsProgramDateTime{ "INCLUDE", "EXCLUDE", } } type HlsProgressiveWriteHlsManifest string // Enum values for HlsProgressiveWriteHlsManifest const ( HlsProgressiveWriteHlsManifestEnabled HlsProgressiveWriteHlsManifest = "ENABLED" HlsProgressiveWriteHlsManifestDisabled HlsProgressiveWriteHlsManifest = "DISABLED" ) // Values returns all known values for HlsProgressiveWriteHlsManifest. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (HlsProgressiveWriteHlsManifest) Values() []HlsProgressiveWriteHlsManifest { return []HlsProgressiveWriteHlsManifest{ "ENABLED", "DISABLED", } } type HlsSegmentControl string // Enum values for HlsSegmentControl const ( HlsSegmentControlSingleFile HlsSegmentControl = "SINGLE_FILE" HlsSegmentControlSegmentedFiles HlsSegmentControl = "SEGMENTED_FILES" ) // Values returns all known values for HlsSegmentControl. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (HlsSegmentControl) Values() []HlsSegmentControl { return []HlsSegmentControl{ "SINGLE_FILE", "SEGMENTED_FILES", } } type HlsSegmentLengthControl string // Enum values for HlsSegmentLengthControl const ( HlsSegmentLengthControlExact HlsSegmentLengthControl = "EXACT" HlsSegmentLengthControlGopMultiple HlsSegmentLengthControl = "GOP_MULTIPLE" ) // Values returns all known values for HlsSegmentLengthControl. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (HlsSegmentLengthControl) Values() []HlsSegmentLengthControl { return []HlsSegmentLengthControl{ "EXACT", "GOP_MULTIPLE", } } type HlsStreamInfResolution string // Enum values for HlsStreamInfResolution const ( HlsStreamInfResolutionInclude HlsStreamInfResolution = "INCLUDE" HlsStreamInfResolutionExclude HlsStreamInfResolution = "EXCLUDE" ) // Values returns all known values for HlsStreamInfResolution. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (HlsStreamInfResolution) Values() []HlsStreamInfResolution { return []HlsStreamInfResolution{ "INCLUDE", "EXCLUDE", } } type HlsTargetDurationCompatibilityMode string // Enum values for HlsTargetDurationCompatibilityMode const ( HlsTargetDurationCompatibilityModeLegacy HlsTargetDurationCompatibilityMode = "LEGACY" HlsTargetDurationCompatibilityModeSpecCompliant HlsTargetDurationCompatibilityMode = "SPEC_COMPLIANT" ) // Values returns all known values for HlsTargetDurationCompatibilityMode. Note // that this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (HlsTargetDurationCompatibilityMode) Values() []HlsTargetDurationCompatibilityMode { return []HlsTargetDurationCompatibilityMode{ "LEGACY", "SPEC_COMPLIANT", } } type HlsTimedMetadataId3Frame string // Enum values for HlsTimedMetadataId3Frame const ( HlsTimedMetadataId3FrameNone HlsTimedMetadataId3Frame = "NONE" HlsTimedMetadataId3FramePriv HlsTimedMetadataId3Frame = "PRIV" HlsTimedMetadataId3FrameTdrl HlsTimedMetadataId3Frame = "TDRL" ) // Values returns all known values for HlsTimedMetadataId3Frame. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (HlsTimedMetadataId3Frame) Values() []HlsTimedMetadataId3Frame { return []HlsTimedMetadataId3Frame{ "NONE", "PRIV", "TDRL", } } type ImscAccessibilitySubs string // Enum values for ImscAccessibilitySubs const ( ImscAccessibilitySubsDisabled ImscAccessibilitySubs = "DISABLED" ImscAccessibilitySubsEnabled ImscAccessibilitySubs = "ENABLED" ) // Values returns all known values for ImscAccessibilitySubs. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ImscAccessibilitySubs) Values() []ImscAccessibilitySubs { return []ImscAccessibilitySubs{ "DISABLED", "ENABLED", } } type ImscStylePassthrough string // Enum values for ImscStylePassthrough const ( ImscStylePassthroughEnabled ImscStylePassthrough = "ENABLED" ImscStylePassthroughDisabled ImscStylePassthrough = "DISABLED" ) // Values returns all known values for ImscStylePassthrough. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ImscStylePassthrough) Values() []ImscStylePassthrough { return []ImscStylePassthrough{ "ENABLED", "DISABLED", } } type InputDeblockFilter string // Enum values for InputDeblockFilter const ( InputDeblockFilterEnabled InputDeblockFilter = "ENABLED" InputDeblockFilterDisabled InputDeblockFilter = "DISABLED" ) // Values returns all known values for InputDeblockFilter. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (InputDeblockFilter) Values() []InputDeblockFilter { return []InputDeblockFilter{ "ENABLED", "DISABLED", } } type InputDenoiseFilter string // Enum values for InputDenoiseFilter const ( InputDenoiseFilterEnabled InputDenoiseFilter = "ENABLED" InputDenoiseFilterDisabled InputDenoiseFilter = "DISABLED" ) // Values returns all known values for InputDenoiseFilter. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (InputDenoiseFilter) Values() []InputDenoiseFilter { return []InputDenoiseFilter{ "ENABLED", "DISABLED", } } type InputFilterEnable string // Enum values for InputFilterEnable const ( InputFilterEnableAuto InputFilterEnable = "AUTO" InputFilterEnableDisable InputFilterEnable = "DISABLE" InputFilterEnableForce InputFilterEnable = "FORCE" ) // Values returns all known values for InputFilterEnable. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (InputFilterEnable) Values() []InputFilterEnable { return []InputFilterEnable{ "AUTO", "DISABLE", "FORCE", } } type InputPolicy string // Enum values for InputPolicy const ( InputPolicyAllowed InputPolicy = "ALLOWED" InputPolicyDisallowed InputPolicy = "DISALLOWED" ) // Values returns all known values for InputPolicy. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (InputPolicy) Values() []InputPolicy { return []InputPolicy{ "ALLOWED", "DISALLOWED", } } type InputPsiControl string // Enum values for InputPsiControl const ( InputPsiControlIgnorePsi InputPsiControl = "IGNORE_PSI" InputPsiControlUsePsi InputPsiControl = "USE_PSI" ) // Values returns all known values for InputPsiControl. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (InputPsiControl) Values() []InputPsiControl { return []InputPsiControl{ "IGNORE_PSI", "USE_PSI", } } type InputRotate string // Enum values for InputRotate const ( InputRotateDegree0 InputRotate = "DEGREE_0" InputRotateDegrees90 InputRotate = "DEGREES_90" InputRotateDegrees180 InputRotate = "DEGREES_180" InputRotateDegrees270 InputRotate = "DEGREES_270" InputRotateAuto InputRotate = "AUTO" ) // Values returns all known values for InputRotate. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (InputRotate) Values() []InputRotate { return []InputRotate{ "DEGREE_0", "DEGREES_90", "DEGREES_180", "DEGREES_270", "AUTO", } } type InputSampleRange string // Enum values for InputSampleRange const ( InputSampleRangeFollow InputSampleRange = "FOLLOW" InputSampleRangeFullRange InputSampleRange = "FULL_RANGE" InputSampleRangeLimitedRange InputSampleRange = "LIMITED_RANGE" ) // Values returns all known values for InputSampleRange. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (InputSampleRange) Values() []InputSampleRange { return []InputSampleRange{ "FOLLOW", "FULL_RANGE", "LIMITED_RANGE", } } type InputScanType string // Enum values for InputScanType const ( InputScanTypeAuto InputScanType = "AUTO" InputScanTypePsf InputScanType = "PSF" ) // Values returns all known values for InputScanType. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (InputScanType) Values() []InputScanType { return []InputScanType{ "AUTO", "PSF", } } type InputTimecodeSource string // Enum values for InputTimecodeSource const ( InputTimecodeSourceEmbedded InputTimecodeSource = "EMBEDDED" InputTimecodeSourceZerobased InputTimecodeSource = "ZEROBASED" InputTimecodeSourceSpecifiedstart InputTimecodeSource = "SPECIFIEDSTART" ) // Values returns all known values for InputTimecodeSource. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (InputTimecodeSource) Values() []InputTimecodeSource { return []InputTimecodeSource{ "EMBEDDED", "ZEROBASED", "SPECIFIEDSTART", } } type JobPhase string // Enum values for JobPhase const ( JobPhaseProbing JobPhase = "PROBING" JobPhaseTranscoding JobPhase = "TRANSCODING" JobPhaseUploading JobPhase = "UPLOADING" ) // Values returns all known values for JobPhase. Note that this can be expanded in // the future, and so it is only as up to date as the client. The ordering of this // slice is not guaranteed to be stable across updates. func (JobPhase) Values() []JobPhase { return []JobPhase{ "PROBING", "TRANSCODING", "UPLOADING", } } type JobStatus string // Enum values for JobStatus const ( JobStatusSubmitted JobStatus = "SUBMITTED" JobStatusProgressing JobStatus = "PROGRESSING" JobStatusComplete JobStatus = "COMPLETE" JobStatusCanceled JobStatus = "CANCELED" JobStatusError JobStatus = "ERROR" ) // Values returns all known values for JobStatus. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (JobStatus) Values() []JobStatus { return []JobStatus{ "SUBMITTED", "PROGRESSING", "COMPLETE", "CANCELED", "ERROR", } } type JobTemplateListBy string // Enum values for JobTemplateListBy const ( JobTemplateListByName JobTemplateListBy = "NAME" JobTemplateListByCreationDate JobTemplateListBy = "CREATION_DATE" JobTemplateListBySystem JobTemplateListBy = "SYSTEM" ) // Values returns all known values for JobTemplateListBy. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (JobTemplateListBy) Values() []JobTemplateListBy { return []JobTemplateListBy{ "NAME", "CREATION_DATE", "SYSTEM", } } type LanguageCode string // Enum values for LanguageCode const ( LanguageCodeEng LanguageCode = "ENG" LanguageCodeSpa LanguageCode = "SPA" LanguageCodeFra LanguageCode = "FRA" LanguageCodeDeu LanguageCode = "DEU" LanguageCodeGer LanguageCode = "GER" LanguageCodeZho LanguageCode = "ZHO" LanguageCodeAra LanguageCode = "ARA" LanguageCodeHin LanguageCode = "HIN" LanguageCodeJpn LanguageCode = "JPN" LanguageCodeRus LanguageCode = "RUS" LanguageCodePor LanguageCode = "POR" LanguageCodeIta LanguageCode = "ITA" LanguageCodeUrd LanguageCode = "URD" LanguageCodeVie LanguageCode = "VIE" LanguageCodeKor LanguageCode = "KOR" LanguageCodePan LanguageCode = "PAN" LanguageCodeAbk LanguageCode = "ABK" LanguageCodeAar LanguageCode = "AAR" LanguageCodeAfr LanguageCode = "AFR" LanguageCodeAka LanguageCode = "AKA" LanguageCodeSqi LanguageCode = "SQI" LanguageCodeAmh LanguageCode = "AMH" LanguageCodeArg LanguageCode = "ARG" LanguageCodeHye LanguageCode = "HYE" LanguageCodeAsm LanguageCode = "ASM" LanguageCodeAva LanguageCode = "AVA" LanguageCodeAve LanguageCode = "AVE" LanguageCodeAym LanguageCode = "AYM" LanguageCodeAze LanguageCode = "AZE" LanguageCodeBam LanguageCode = "BAM" LanguageCodeBak LanguageCode = "BAK" LanguageCodeEus LanguageCode = "EUS" LanguageCodeBel LanguageCode = "BEL" LanguageCodeBen LanguageCode = "BEN" LanguageCodeBih LanguageCode = "BIH" LanguageCodeBis LanguageCode = "BIS" LanguageCodeBos LanguageCode = "BOS" LanguageCodeBre LanguageCode = "BRE" LanguageCodeBul LanguageCode = "BUL" LanguageCodeMya LanguageCode = "MYA" LanguageCodeCat LanguageCode = "CAT" LanguageCodeKhm LanguageCode = "KHM" LanguageCodeCha LanguageCode = "CHA" LanguageCodeChe LanguageCode = "CHE" LanguageCodeNya LanguageCode = "NYA" LanguageCodeChu LanguageCode = "CHU" LanguageCodeChv LanguageCode = "CHV" LanguageCodeCor LanguageCode = "COR" LanguageCodeCos LanguageCode = "COS" LanguageCodeCre LanguageCode = "CRE" LanguageCodeHrv LanguageCode = "HRV" LanguageCodeCes LanguageCode = "CES" LanguageCodeDan LanguageCode = "DAN" LanguageCodeDiv LanguageCode = "DIV" LanguageCodeNld LanguageCode = "NLD" LanguageCodeDzo LanguageCode = "DZO" LanguageCodeEnm LanguageCode = "ENM" LanguageCodeEpo LanguageCode = "EPO" LanguageCodeEst LanguageCode = "EST" LanguageCodeEwe LanguageCode = "EWE" LanguageCodeFao LanguageCode = "FAO" LanguageCodeFij LanguageCode = "FIJ" LanguageCodeFin LanguageCode = "FIN" LanguageCodeFrm LanguageCode = "FRM" LanguageCodeFul LanguageCode = "FUL" LanguageCodeGla LanguageCode = "GLA" LanguageCodeGlg LanguageCode = "GLG" LanguageCodeLug LanguageCode = "LUG" LanguageCodeKat LanguageCode = "KAT" LanguageCodeEll LanguageCode = "ELL" LanguageCodeGrn LanguageCode = "GRN" LanguageCodeGuj LanguageCode = "GUJ" LanguageCodeHat LanguageCode = "HAT" LanguageCodeHau LanguageCode = "HAU" LanguageCodeHeb LanguageCode = "HEB" LanguageCodeHer LanguageCode = "HER" LanguageCodeHmo LanguageCode = "HMO" LanguageCodeHun LanguageCode = "HUN" LanguageCodeIsl LanguageCode = "ISL" LanguageCodeIdo LanguageCode = "IDO" LanguageCodeIbo LanguageCode = "IBO" LanguageCodeInd LanguageCode = "IND" LanguageCodeIna LanguageCode = "INA" LanguageCodeIle LanguageCode = "ILE" LanguageCodeIku LanguageCode = "IKU" LanguageCodeIpk LanguageCode = "IPK" LanguageCodeGle LanguageCode = "GLE" LanguageCodeJav LanguageCode = "JAV" LanguageCodeKal LanguageCode = "KAL" LanguageCodeKan LanguageCode = "KAN" LanguageCodeKau LanguageCode = "KAU" LanguageCodeKas LanguageCode = "KAS" LanguageCodeKaz LanguageCode = "KAZ" LanguageCodeKik LanguageCode = "KIK" LanguageCodeKin LanguageCode = "KIN" LanguageCodeKir LanguageCode = "KIR" LanguageCodeKom LanguageCode = "KOM" LanguageCodeKon LanguageCode = "KON" LanguageCodeKua LanguageCode = "KUA" LanguageCodeKur LanguageCode = "KUR" LanguageCodeLao LanguageCode = "LAO" LanguageCodeLat LanguageCode = "LAT" LanguageCodeLav LanguageCode = "LAV" LanguageCodeLim LanguageCode = "LIM" LanguageCodeLin LanguageCode = "LIN" LanguageCodeLit LanguageCode = "LIT" LanguageCodeLub LanguageCode = "LUB" LanguageCodeLtz LanguageCode = "LTZ" LanguageCodeMkd LanguageCode = "MKD" LanguageCodeMlg LanguageCode = "MLG" LanguageCodeMsa LanguageCode = "MSA" LanguageCodeMal LanguageCode = "MAL" LanguageCodeMlt LanguageCode = "MLT" LanguageCodeGlv LanguageCode = "GLV" LanguageCodeMri LanguageCode = "MRI" LanguageCodeMar LanguageCode = "MAR" LanguageCodeMah LanguageCode = "MAH" LanguageCodeMon LanguageCode = "MON" LanguageCodeNau LanguageCode = "NAU" LanguageCodeNav LanguageCode = "NAV" LanguageCodeNde LanguageCode = "NDE" LanguageCodeNbl LanguageCode = "NBL" LanguageCodeNdo LanguageCode = "NDO" LanguageCodeNep LanguageCode = "NEP" LanguageCodeSme LanguageCode = "SME" LanguageCodeNor LanguageCode = "NOR" LanguageCodeNob LanguageCode = "NOB" LanguageCodeNno LanguageCode = "NNO" LanguageCodeOci LanguageCode = "OCI" LanguageCodeOji LanguageCode = "OJI" LanguageCodeOri LanguageCode = "ORI" LanguageCodeOrm LanguageCode = "ORM" LanguageCodeOss LanguageCode = "OSS" LanguageCodePli LanguageCode = "PLI" LanguageCodeFas LanguageCode = "FAS" LanguageCodePol LanguageCode = "POL" LanguageCodePus LanguageCode = "PUS" LanguageCodeQue LanguageCode = "QUE" LanguageCodeQaa LanguageCode = "QAA" LanguageCodeRon LanguageCode = "RON" LanguageCodeRoh LanguageCode = "ROH" LanguageCodeRun LanguageCode = "RUN" LanguageCodeSmo LanguageCode = "SMO" LanguageCodeSag LanguageCode = "SAG" LanguageCodeSan LanguageCode = "SAN" LanguageCodeSrd LanguageCode = "SRD" LanguageCodeSrb LanguageCode = "SRB" LanguageCodeSna LanguageCode = "SNA" LanguageCodeIii LanguageCode = "III" LanguageCodeSnd LanguageCode = "SND" LanguageCodeSin LanguageCode = "SIN" LanguageCodeSlk LanguageCode = "SLK" LanguageCodeSlv LanguageCode = "SLV" LanguageCodeSom LanguageCode = "SOM" LanguageCodeSot LanguageCode = "SOT" LanguageCodeSun LanguageCode = "SUN" LanguageCodeSwa LanguageCode = "SWA" LanguageCodeSsw LanguageCode = "SSW" LanguageCodeSwe LanguageCode = "SWE" LanguageCodeTgl LanguageCode = "TGL" LanguageCodeTah LanguageCode = "TAH" LanguageCodeTgk LanguageCode = "TGK" LanguageCodeTam LanguageCode = "TAM" LanguageCodeTat LanguageCode = "TAT" LanguageCodeTel LanguageCode = "TEL" LanguageCodeTha LanguageCode = "THA" LanguageCodeBod LanguageCode = "BOD" LanguageCodeTir LanguageCode = "TIR" LanguageCodeTon LanguageCode = "TON" LanguageCodeTso LanguageCode = "TSO" LanguageCodeTsn LanguageCode = "TSN" LanguageCodeTur LanguageCode = "TUR" LanguageCodeTuk LanguageCode = "TUK" LanguageCodeTwi LanguageCode = "TWI" LanguageCodeUig LanguageCode = "UIG" LanguageCodeUkr LanguageCode = "UKR" LanguageCodeUzb LanguageCode = "UZB" LanguageCodeVen LanguageCode = "VEN" LanguageCodeVol LanguageCode = "VOL" LanguageCodeWln LanguageCode = "WLN" LanguageCodeCym LanguageCode = "CYM" LanguageCodeFry LanguageCode = "FRY" LanguageCodeWol LanguageCode = "WOL" LanguageCodeXho LanguageCode = "XHO" LanguageCodeYid LanguageCode = "YID" LanguageCodeYor LanguageCode = "YOR" LanguageCodeZha LanguageCode = "ZHA" LanguageCodeZul LanguageCode = "ZUL" LanguageCodeOrj LanguageCode = "ORJ" LanguageCodeQpc LanguageCode = "QPC" LanguageCodeTng LanguageCode = "TNG" LanguageCodeSrp LanguageCode = "SRP" ) // Values returns all known values for LanguageCode. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (LanguageCode) Values() []LanguageCode { return []LanguageCode{ "ENG", "SPA", "FRA", "DEU", "GER", "ZHO", "ARA", "HIN", "JPN", "RUS", "POR", "ITA", "URD", "VIE", "KOR", "PAN", "ABK", "AAR", "AFR", "AKA", "SQI", "AMH", "ARG", "HYE", "ASM", "AVA", "AVE", "AYM", "AZE", "BAM", "BAK", "EUS", "BEL", "BEN", "BIH", "BIS", "BOS", "BRE", "BUL", "MYA", "CAT", "KHM", "CHA", "CHE", "NYA", "CHU", "CHV", "COR", "COS", "CRE", "HRV", "CES", "DAN", "DIV", "NLD", "DZO", "ENM", "EPO", "EST", "EWE", "FAO", "FIJ", "FIN", "FRM", "FUL", "GLA", "GLG", "LUG", "KAT", "ELL", "GRN", "GUJ", "HAT", "HAU", "HEB", "HER", "HMO", "HUN", "ISL", "IDO", "IBO", "IND", "INA", "ILE", "IKU", "IPK", "GLE", "JAV", "KAL", "KAN", "KAU", "KAS", "KAZ", "KIK", "KIN", "KIR", "KOM", "KON", "KUA", "KUR", "LAO", "LAT", "LAV", "LIM", "LIN", "LIT", "LUB", "LTZ", "MKD", "MLG", "MSA", "MAL", "MLT", "GLV", "MRI", "MAR", "MAH", "MON", "NAU", "NAV", "NDE", "NBL", "NDO", "NEP", "SME", "NOR", "NOB", "NNO", "OCI", "OJI", "ORI", "ORM", "OSS", "PLI", "FAS", "POL", "PUS", "QUE", "QAA", "RON", "ROH", "RUN", "SMO", "SAG", "SAN", "SRD", "SRB", "SNA", "III", "SND", "SIN", "SLK", "SLV", "SOM", "SOT", "SUN", "SWA", "SSW", "SWE", "TGL", "TAH", "TGK", "TAM", "TAT", "TEL", "THA", "BOD", "TIR", "TON", "TSO", "TSN", "TUR", "TUK", "TWI", "UIG", "UKR", "UZB", "VEN", "VOL", "WLN", "CYM", "FRY", "WOL", "XHO", "YID", "YOR", "ZHA", "ZUL", "ORJ", "QPC", "TNG", "SRP", } } type M2tsAudioBufferModel string // Enum values for M2tsAudioBufferModel const ( M2tsAudioBufferModelDvb M2tsAudioBufferModel = "DVB" M2tsAudioBufferModelAtsc M2tsAudioBufferModel = "ATSC" ) // Values returns all known values for M2tsAudioBufferModel. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (M2tsAudioBufferModel) Values() []M2tsAudioBufferModel { return []M2tsAudioBufferModel{ "DVB", "ATSC", } } type M2tsAudioDuration string // Enum values for M2tsAudioDuration const ( M2tsAudioDurationDefaultCodecDuration M2tsAudioDuration = "DEFAULT_CODEC_DURATION" M2tsAudioDurationMatchVideoDuration M2tsAudioDuration = "MATCH_VIDEO_DURATION" ) // Values returns all known values for M2tsAudioDuration. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (M2tsAudioDuration) Values() []M2tsAudioDuration { return []M2tsAudioDuration{ "DEFAULT_CODEC_DURATION", "MATCH_VIDEO_DURATION", } } type M2tsBufferModel string // Enum values for M2tsBufferModel const ( M2tsBufferModelMultiplex M2tsBufferModel = "MULTIPLEX" M2tsBufferModelNone M2tsBufferModel = "NONE" ) // Values returns all known values for M2tsBufferModel. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (M2tsBufferModel) Values() []M2tsBufferModel { return []M2tsBufferModel{ "MULTIPLEX", "NONE", } } type M2tsDataPtsControl string // Enum values for M2tsDataPtsControl const ( M2tsDataPtsControlAuto M2tsDataPtsControl = "AUTO" M2tsDataPtsControlAlignToVideo M2tsDataPtsControl = "ALIGN_TO_VIDEO" ) // Values returns all known values for M2tsDataPtsControl. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (M2tsDataPtsControl) Values() []M2tsDataPtsControl { return []M2tsDataPtsControl{ "AUTO", "ALIGN_TO_VIDEO", } } type M2tsEbpAudioInterval string // Enum values for M2tsEbpAudioInterval const ( M2tsEbpAudioIntervalVideoAndFixedIntervals M2tsEbpAudioInterval = "VIDEO_AND_FIXED_INTERVALS" M2tsEbpAudioIntervalVideoInterval M2tsEbpAudioInterval = "VIDEO_INTERVAL" ) // Values returns all known values for M2tsEbpAudioInterval. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (M2tsEbpAudioInterval) Values() []M2tsEbpAudioInterval { return []M2tsEbpAudioInterval{ "VIDEO_AND_FIXED_INTERVALS", "VIDEO_INTERVAL", } } type M2tsEbpPlacement string // Enum values for M2tsEbpPlacement const ( M2tsEbpPlacementVideoAndAudioPids M2tsEbpPlacement = "VIDEO_AND_AUDIO_PIDS" M2tsEbpPlacementVideoPid M2tsEbpPlacement = "VIDEO_PID" ) // Values returns all known values for M2tsEbpPlacement. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (M2tsEbpPlacement) Values() []M2tsEbpPlacement { return []M2tsEbpPlacement{ "VIDEO_AND_AUDIO_PIDS", "VIDEO_PID", } } type M2tsEsRateInPes string // Enum values for M2tsEsRateInPes const ( M2tsEsRateInPesInclude M2tsEsRateInPes = "INCLUDE" M2tsEsRateInPesExclude M2tsEsRateInPes = "EXCLUDE" ) // Values returns all known values for M2tsEsRateInPes. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (M2tsEsRateInPes) Values() []M2tsEsRateInPes { return []M2tsEsRateInPes{ "INCLUDE", "EXCLUDE", } } type M2tsForceTsVideoEbpOrder string // Enum values for M2tsForceTsVideoEbpOrder const ( M2tsForceTsVideoEbpOrderForce M2tsForceTsVideoEbpOrder = "FORCE" M2tsForceTsVideoEbpOrderDefault M2tsForceTsVideoEbpOrder = "DEFAULT" ) // Values returns all known values for M2tsForceTsVideoEbpOrder. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (M2tsForceTsVideoEbpOrder) Values() []M2tsForceTsVideoEbpOrder { return []M2tsForceTsVideoEbpOrder{ "FORCE", "DEFAULT", } } type M2tsKlvMetadata string // Enum values for M2tsKlvMetadata const ( M2tsKlvMetadataPassthrough M2tsKlvMetadata = "PASSTHROUGH" M2tsKlvMetadataNone M2tsKlvMetadata = "NONE" ) // Values returns all known values for M2tsKlvMetadata. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (M2tsKlvMetadata) Values() []M2tsKlvMetadata { return []M2tsKlvMetadata{ "PASSTHROUGH", "NONE", } } type M2tsNielsenId3 string // Enum values for M2tsNielsenId3 const ( M2tsNielsenId3Insert M2tsNielsenId3 = "INSERT" M2tsNielsenId3None M2tsNielsenId3 = "NONE" ) // Values returns all known values for M2tsNielsenId3. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (M2tsNielsenId3) Values() []M2tsNielsenId3 { return []M2tsNielsenId3{ "INSERT", "NONE", } } type M2tsPcrControl string // Enum values for M2tsPcrControl const ( M2tsPcrControlPcrEveryPesPacket M2tsPcrControl = "PCR_EVERY_PES_PACKET" M2tsPcrControlConfiguredPcrPeriod M2tsPcrControl = "CONFIGURED_PCR_PERIOD" ) // Values returns all known values for M2tsPcrControl. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (M2tsPcrControl) Values() []M2tsPcrControl { return []M2tsPcrControl{ "PCR_EVERY_PES_PACKET", "CONFIGURED_PCR_PERIOD", } } type M2tsRateMode string // Enum values for M2tsRateMode const ( M2tsRateModeVbr M2tsRateMode = "VBR" M2tsRateModeCbr M2tsRateMode = "CBR" ) // Values returns all known values for M2tsRateMode. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (M2tsRateMode) Values() []M2tsRateMode { return []M2tsRateMode{ "VBR", "CBR", } } type M2tsScte35Source string // Enum values for M2tsScte35Source const ( M2tsScte35SourcePassthrough M2tsScte35Source = "PASSTHROUGH" M2tsScte35SourceNone M2tsScte35Source = "NONE" ) // Values returns all known values for M2tsScte35Source. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (M2tsScte35Source) Values() []M2tsScte35Source { return []M2tsScte35Source{ "PASSTHROUGH", "NONE", } } type M2tsSegmentationMarkers string // Enum values for M2tsSegmentationMarkers const ( M2tsSegmentationMarkersNone M2tsSegmentationMarkers = "NONE" M2tsSegmentationMarkersRaiSegstart M2tsSegmentationMarkers = "RAI_SEGSTART" M2tsSegmentationMarkersRaiAdapt M2tsSegmentationMarkers = "RAI_ADAPT" M2tsSegmentationMarkersPsiSegstart M2tsSegmentationMarkers = "PSI_SEGSTART" M2tsSegmentationMarkersEbp M2tsSegmentationMarkers = "EBP" M2tsSegmentationMarkersEbpLegacy M2tsSegmentationMarkers = "EBP_LEGACY" ) // Values returns all known values for M2tsSegmentationMarkers. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (M2tsSegmentationMarkers) Values() []M2tsSegmentationMarkers { return []M2tsSegmentationMarkers{ "NONE", "RAI_SEGSTART", "RAI_ADAPT", "PSI_SEGSTART", "EBP", "EBP_LEGACY", } } type M2tsSegmentationStyle string // Enum values for M2tsSegmentationStyle const ( M2tsSegmentationStyleMaintainCadence M2tsSegmentationStyle = "MAINTAIN_CADENCE" M2tsSegmentationStyleResetCadence M2tsSegmentationStyle = "RESET_CADENCE" ) // Values returns all known values for M2tsSegmentationStyle. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (M2tsSegmentationStyle) Values() []M2tsSegmentationStyle { return []M2tsSegmentationStyle{ "MAINTAIN_CADENCE", "RESET_CADENCE", } } type M3u8AudioDuration string // Enum values for M3u8AudioDuration const ( M3u8AudioDurationDefaultCodecDuration M3u8AudioDuration = "DEFAULT_CODEC_DURATION" M3u8AudioDurationMatchVideoDuration M3u8AudioDuration = "MATCH_VIDEO_DURATION" ) // Values returns all known values for M3u8AudioDuration. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (M3u8AudioDuration) Values() []M3u8AudioDuration { return []M3u8AudioDuration{ "DEFAULT_CODEC_DURATION", "MATCH_VIDEO_DURATION", } } type M3u8DataPtsControl string // Enum values for M3u8DataPtsControl const ( M3u8DataPtsControlAuto M3u8DataPtsControl = "AUTO" M3u8DataPtsControlAlignToVideo M3u8DataPtsControl = "ALIGN_TO_VIDEO" ) // Values returns all known values for M3u8DataPtsControl. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (M3u8DataPtsControl) Values() []M3u8DataPtsControl { return []M3u8DataPtsControl{ "AUTO", "ALIGN_TO_VIDEO", } } type M3u8NielsenId3 string // Enum values for M3u8NielsenId3 const ( M3u8NielsenId3Insert M3u8NielsenId3 = "INSERT" M3u8NielsenId3None M3u8NielsenId3 = "NONE" ) // Values returns all known values for M3u8NielsenId3. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (M3u8NielsenId3) Values() []M3u8NielsenId3 { return []M3u8NielsenId3{ "INSERT", "NONE", } } type M3u8PcrControl string // Enum values for M3u8PcrControl const ( M3u8PcrControlPcrEveryPesPacket M3u8PcrControl = "PCR_EVERY_PES_PACKET" M3u8PcrControlConfiguredPcrPeriod M3u8PcrControl = "CONFIGURED_PCR_PERIOD" ) // Values returns all known values for M3u8PcrControl. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (M3u8PcrControl) Values() []M3u8PcrControl { return []M3u8PcrControl{ "PCR_EVERY_PES_PACKET", "CONFIGURED_PCR_PERIOD", } } type M3u8Scte35Source string // Enum values for M3u8Scte35Source const ( M3u8Scte35SourcePassthrough M3u8Scte35Source = "PASSTHROUGH" M3u8Scte35SourceNone M3u8Scte35Source = "NONE" ) // Values returns all known values for M3u8Scte35Source. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (M3u8Scte35Source) Values() []M3u8Scte35Source { return []M3u8Scte35Source{ "PASSTHROUGH", "NONE", } } type MotionImageInsertionMode string // Enum values for MotionImageInsertionMode const ( MotionImageInsertionModeMov MotionImageInsertionMode = "MOV" MotionImageInsertionModePng MotionImageInsertionMode = "PNG" ) // Values returns all known values for MotionImageInsertionMode. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (MotionImageInsertionMode) Values() []MotionImageInsertionMode { return []MotionImageInsertionMode{ "MOV", "PNG", } } type MotionImagePlayback string // Enum values for MotionImagePlayback const ( MotionImagePlaybackOnce MotionImagePlayback = "ONCE" MotionImagePlaybackRepeat MotionImagePlayback = "REPEAT" ) // Values returns all known values for MotionImagePlayback. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (MotionImagePlayback) Values() []MotionImagePlayback { return []MotionImagePlayback{ "ONCE", "REPEAT", } } type MovClapAtom string // Enum values for MovClapAtom const ( MovClapAtomInclude MovClapAtom = "INCLUDE" MovClapAtomExclude MovClapAtom = "EXCLUDE" ) // Values returns all known values for MovClapAtom. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (MovClapAtom) Values() []MovClapAtom { return []MovClapAtom{ "INCLUDE", "EXCLUDE", } } type MovCslgAtom string // Enum values for MovCslgAtom const ( MovCslgAtomInclude MovCslgAtom = "INCLUDE" MovCslgAtomExclude MovCslgAtom = "EXCLUDE" ) // Values returns all known values for MovCslgAtom. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (MovCslgAtom) Values() []MovCslgAtom { return []MovCslgAtom{ "INCLUDE", "EXCLUDE", } } type MovMpeg2FourCCControl string // Enum values for MovMpeg2FourCCControl const ( MovMpeg2FourCCControlXdcam MovMpeg2FourCCControl = "XDCAM" MovMpeg2FourCCControlMpeg MovMpeg2FourCCControl = "MPEG" ) // Values returns all known values for MovMpeg2FourCCControl. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (MovMpeg2FourCCControl) Values() []MovMpeg2FourCCControl { return []MovMpeg2FourCCControl{ "XDCAM", "MPEG", } } type MovPaddingControl string // Enum values for MovPaddingControl const ( MovPaddingControlOmneon MovPaddingControl = "OMNEON" MovPaddingControlNone MovPaddingControl = "NONE" ) // Values returns all known values for MovPaddingControl. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (MovPaddingControl) Values() []MovPaddingControl { return []MovPaddingControl{ "OMNEON", "NONE", } } type MovReference string // Enum values for MovReference const ( MovReferenceSelfContained MovReference = "SELF_CONTAINED" MovReferenceExternal MovReference = "EXTERNAL" ) // Values returns all known values for MovReference. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (MovReference) Values() []MovReference { return []MovReference{ "SELF_CONTAINED", "EXTERNAL", } } type Mp3RateControlMode string // Enum values for Mp3RateControlMode const ( Mp3RateControlModeCbr Mp3RateControlMode = "CBR" Mp3RateControlModeVbr Mp3RateControlMode = "VBR" ) // Values returns all known values for Mp3RateControlMode. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Mp3RateControlMode) Values() []Mp3RateControlMode { return []Mp3RateControlMode{ "CBR", "VBR", } } type Mp4CslgAtom string // Enum values for Mp4CslgAtom const ( Mp4CslgAtomInclude Mp4CslgAtom = "INCLUDE" Mp4CslgAtomExclude Mp4CslgAtom = "EXCLUDE" ) // Values returns all known values for Mp4CslgAtom. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (Mp4CslgAtom) Values() []Mp4CslgAtom { return []Mp4CslgAtom{ "INCLUDE", "EXCLUDE", } } type Mp4FreeSpaceBox string // Enum values for Mp4FreeSpaceBox const ( Mp4FreeSpaceBoxInclude Mp4FreeSpaceBox = "INCLUDE" Mp4FreeSpaceBoxExclude Mp4FreeSpaceBox = "EXCLUDE" ) // Values returns all known values for Mp4FreeSpaceBox. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Mp4FreeSpaceBox) Values() []Mp4FreeSpaceBox { return []Mp4FreeSpaceBox{ "INCLUDE", "EXCLUDE", } } type Mp4MoovPlacement string // Enum values for Mp4MoovPlacement const ( Mp4MoovPlacementProgressiveDownload Mp4MoovPlacement = "PROGRESSIVE_DOWNLOAD" Mp4MoovPlacementNormal Mp4MoovPlacement = "NORMAL" ) // Values returns all known values for Mp4MoovPlacement. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Mp4MoovPlacement) Values() []Mp4MoovPlacement { return []Mp4MoovPlacement{ "PROGRESSIVE_DOWNLOAD", "NORMAL", } } type MpdAccessibilityCaptionHints string // Enum values for MpdAccessibilityCaptionHints const ( MpdAccessibilityCaptionHintsInclude MpdAccessibilityCaptionHints = "INCLUDE" MpdAccessibilityCaptionHintsExclude MpdAccessibilityCaptionHints = "EXCLUDE" ) // Values returns all known values for MpdAccessibilityCaptionHints. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (MpdAccessibilityCaptionHints) Values() []MpdAccessibilityCaptionHints { return []MpdAccessibilityCaptionHints{ "INCLUDE", "EXCLUDE", } } type MpdAudioDuration string // Enum values for MpdAudioDuration const ( MpdAudioDurationDefaultCodecDuration MpdAudioDuration = "DEFAULT_CODEC_DURATION" MpdAudioDurationMatchVideoDuration MpdAudioDuration = "MATCH_VIDEO_DURATION" ) // Values returns all known values for MpdAudioDuration. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (MpdAudioDuration) Values() []MpdAudioDuration { return []MpdAudioDuration{ "DEFAULT_CODEC_DURATION", "MATCH_VIDEO_DURATION", } } type MpdCaptionContainerType string // Enum values for MpdCaptionContainerType const ( MpdCaptionContainerTypeRaw MpdCaptionContainerType = "RAW" MpdCaptionContainerTypeFragmentedMp4 MpdCaptionContainerType = "FRAGMENTED_MP4" ) // Values returns all known values for MpdCaptionContainerType. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (MpdCaptionContainerType) Values() []MpdCaptionContainerType { return []MpdCaptionContainerType{ "RAW", "FRAGMENTED_MP4", } } type MpdKlvMetadata string // Enum values for MpdKlvMetadata const ( MpdKlvMetadataNone MpdKlvMetadata = "NONE" MpdKlvMetadataPassthrough MpdKlvMetadata = "PASSTHROUGH" ) // Values returns all known values for MpdKlvMetadata. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (MpdKlvMetadata) Values() []MpdKlvMetadata { return []MpdKlvMetadata{ "NONE", "PASSTHROUGH", } } type MpdManifestMetadataSignaling string // Enum values for MpdManifestMetadataSignaling const ( MpdManifestMetadataSignalingEnabled MpdManifestMetadataSignaling = "ENABLED" MpdManifestMetadataSignalingDisabled MpdManifestMetadataSignaling = "DISABLED" ) // Values returns all known values for MpdManifestMetadataSignaling. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (MpdManifestMetadataSignaling) Values() []MpdManifestMetadataSignaling { return []MpdManifestMetadataSignaling{ "ENABLED", "DISABLED", } } type MpdScte35Esam string // Enum values for MpdScte35Esam const ( MpdScte35EsamInsert MpdScte35Esam = "INSERT" MpdScte35EsamNone MpdScte35Esam = "NONE" ) // Values returns all known values for MpdScte35Esam. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (MpdScte35Esam) Values() []MpdScte35Esam { return []MpdScte35Esam{ "INSERT", "NONE", } } type MpdScte35Source string // Enum values for MpdScte35Source const ( MpdScte35SourcePassthrough MpdScte35Source = "PASSTHROUGH" MpdScte35SourceNone MpdScte35Source = "NONE" ) // Values returns all known values for MpdScte35Source. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (MpdScte35Source) Values() []MpdScte35Source { return []MpdScte35Source{ "PASSTHROUGH", "NONE", } } type MpdTimedMetadata string // Enum values for MpdTimedMetadata const ( MpdTimedMetadataPassthrough MpdTimedMetadata = "PASSTHROUGH" MpdTimedMetadataNone MpdTimedMetadata = "NONE" ) // Values returns all known values for MpdTimedMetadata. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (MpdTimedMetadata) Values() []MpdTimedMetadata { return []MpdTimedMetadata{ "PASSTHROUGH", "NONE", } } type MpdTimedMetadataBoxVersion string // Enum values for MpdTimedMetadataBoxVersion const ( MpdTimedMetadataBoxVersionVersion0 MpdTimedMetadataBoxVersion = "VERSION_0" MpdTimedMetadataBoxVersionVersion1 MpdTimedMetadataBoxVersion = "VERSION_1" ) // Values returns all known values for MpdTimedMetadataBoxVersion. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (MpdTimedMetadataBoxVersion) Values() []MpdTimedMetadataBoxVersion { return []MpdTimedMetadataBoxVersion{ "VERSION_0", "VERSION_1", } } type Mpeg2AdaptiveQuantization string // Enum values for Mpeg2AdaptiveQuantization const ( Mpeg2AdaptiveQuantizationOff Mpeg2AdaptiveQuantization = "OFF" Mpeg2AdaptiveQuantizationLow Mpeg2AdaptiveQuantization = "LOW" Mpeg2AdaptiveQuantizationMedium Mpeg2AdaptiveQuantization = "MEDIUM" Mpeg2AdaptiveQuantizationHigh Mpeg2AdaptiveQuantization = "HIGH" ) // Values returns all known values for Mpeg2AdaptiveQuantization. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (Mpeg2AdaptiveQuantization) Values() []Mpeg2AdaptiveQuantization { return []Mpeg2AdaptiveQuantization{ "OFF", "LOW", "MEDIUM", "HIGH", } } type Mpeg2CodecLevel string // Enum values for Mpeg2CodecLevel const ( Mpeg2CodecLevelAuto Mpeg2CodecLevel = "AUTO" Mpeg2CodecLevelLow Mpeg2CodecLevel = "LOW" Mpeg2CodecLevelMain Mpeg2CodecLevel = "MAIN" Mpeg2CodecLevelHigh1440 Mpeg2CodecLevel = "HIGH1440" Mpeg2CodecLevelHigh Mpeg2CodecLevel = "HIGH" ) // Values returns all known values for Mpeg2CodecLevel. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Mpeg2CodecLevel) Values() []Mpeg2CodecLevel { return []Mpeg2CodecLevel{ "AUTO", "LOW", "MAIN", "HIGH1440", "HIGH", } } type Mpeg2CodecProfile string // Enum values for Mpeg2CodecProfile const ( Mpeg2CodecProfileMain Mpeg2CodecProfile = "MAIN" Mpeg2CodecProfileProfile422 Mpeg2CodecProfile = "PROFILE_422" ) // Values returns all known values for Mpeg2CodecProfile. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Mpeg2CodecProfile) Values() []Mpeg2CodecProfile { return []Mpeg2CodecProfile{ "MAIN", "PROFILE_422", } } type Mpeg2DynamicSubGop string // Enum values for Mpeg2DynamicSubGop const ( Mpeg2DynamicSubGopAdaptive Mpeg2DynamicSubGop = "ADAPTIVE" Mpeg2DynamicSubGopStatic Mpeg2DynamicSubGop = "STATIC" ) // Values returns all known values for Mpeg2DynamicSubGop. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Mpeg2DynamicSubGop) Values() []Mpeg2DynamicSubGop { return []Mpeg2DynamicSubGop{ "ADAPTIVE", "STATIC", } } type Mpeg2FramerateControl string // Enum values for Mpeg2FramerateControl const ( Mpeg2FramerateControlInitializeFromSource Mpeg2FramerateControl = "INITIALIZE_FROM_SOURCE" Mpeg2FramerateControlSpecified Mpeg2FramerateControl = "SPECIFIED" ) // Values returns all known values for Mpeg2FramerateControl. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Mpeg2FramerateControl) Values() []Mpeg2FramerateControl { return []Mpeg2FramerateControl{ "INITIALIZE_FROM_SOURCE", "SPECIFIED", } } type Mpeg2FramerateConversionAlgorithm string // Enum values for Mpeg2FramerateConversionAlgorithm const ( Mpeg2FramerateConversionAlgorithmDuplicateDrop Mpeg2FramerateConversionAlgorithm = "DUPLICATE_DROP" Mpeg2FramerateConversionAlgorithmInterpolate Mpeg2FramerateConversionAlgorithm = "INTERPOLATE" Mpeg2FramerateConversionAlgorithmFrameformer Mpeg2FramerateConversionAlgorithm = "FRAMEFORMER" ) // Values returns all known values for Mpeg2FramerateConversionAlgorithm. Note // that this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (Mpeg2FramerateConversionAlgorithm) Values() []Mpeg2FramerateConversionAlgorithm { return []Mpeg2FramerateConversionAlgorithm{ "DUPLICATE_DROP", "INTERPOLATE", "FRAMEFORMER", } } type Mpeg2GopSizeUnits string // Enum values for Mpeg2GopSizeUnits const ( Mpeg2GopSizeUnitsFrames Mpeg2GopSizeUnits = "FRAMES" Mpeg2GopSizeUnitsSeconds Mpeg2GopSizeUnits = "SECONDS" ) // Values returns all known values for Mpeg2GopSizeUnits. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Mpeg2GopSizeUnits) Values() []Mpeg2GopSizeUnits { return []Mpeg2GopSizeUnits{ "FRAMES", "SECONDS", } } type Mpeg2InterlaceMode string // Enum values for Mpeg2InterlaceMode const ( Mpeg2InterlaceModeProgressive Mpeg2InterlaceMode = "PROGRESSIVE" Mpeg2InterlaceModeTopField Mpeg2InterlaceMode = "TOP_FIELD" Mpeg2InterlaceModeBottomField Mpeg2InterlaceMode = "BOTTOM_FIELD" Mpeg2InterlaceModeFollowTopField Mpeg2InterlaceMode = "FOLLOW_TOP_FIELD" Mpeg2InterlaceModeFollowBottomField Mpeg2InterlaceMode = "FOLLOW_BOTTOM_FIELD" ) // Values returns all known values for Mpeg2InterlaceMode. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Mpeg2InterlaceMode) Values() []Mpeg2InterlaceMode { return []Mpeg2InterlaceMode{ "PROGRESSIVE", "TOP_FIELD", "BOTTOM_FIELD", "FOLLOW_TOP_FIELD", "FOLLOW_BOTTOM_FIELD", } } type Mpeg2IntraDcPrecision string // Enum values for Mpeg2IntraDcPrecision const ( Mpeg2IntraDcPrecisionAuto Mpeg2IntraDcPrecision = "AUTO" Mpeg2IntraDcPrecisionIntraDcPrecision8 Mpeg2IntraDcPrecision = "INTRA_DC_PRECISION_8" Mpeg2IntraDcPrecisionIntraDcPrecision9 Mpeg2IntraDcPrecision = "INTRA_DC_PRECISION_9" Mpeg2IntraDcPrecisionIntraDcPrecision10 Mpeg2IntraDcPrecision = "INTRA_DC_PRECISION_10" Mpeg2IntraDcPrecisionIntraDcPrecision11 Mpeg2IntraDcPrecision = "INTRA_DC_PRECISION_11" ) // Values returns all known values for Mpeg2IntraDcPrecision. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Mpeg2IntraDcPrecision) Values() []Mpeg2IntraDcPrecision { return []Mpeg2IntraDcPrecision{ "AUTO", "INTRA_DC_PRECISION_8", "INTRA_DC_PRECISION_9", "INTRA_DC_PRECISION_10", "INTRA_DC_PRECISION_11", } } type Mpeg2ParControl string // Enum values for Mpeg2ParControl const ( Mpeg2ParControlInitializeFromSource Mpeg2ParControl = "INITIALIZE_FROM_SOURCE" Mpeg2ParControlSpecified Mpeg2ParControl = "SPECIFIED" ) // Values returns all known values for Mpeg2ParControl. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Mpeg2ParControl) Values() []Mpeg2ParControl { return []Mpeg2ParControl{ "INITIALIZE_FROM_SOURCE", "SPECIFIED", } } type Mpeg2QualityTuningLevel string // Enum values for Mpeg2QualityTuningLevel const ( Mpeg2QualityTuningLevelSinglePass Mpeg2QualityTuningLevel = "SINGLE_PASS" Mpeg2QualityTuningLevelMultiPass Mpeg2QualityTuningLevel = "MULTI_PASS" ) // Values returns all known values for Mpeg2QualityTuningLevel. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Mpeg2QualityTuningLevel) Values() []Mpeg2QualityTuningLevel { return []Mpeg2QualityTuningLevel{ "SINGLE_PASS", "MULTI_PASS", } } type Mpeg2RateControlMode string // Enum values for Mpeg2RateControlMode const ( Mpeg2RateControlModeVbr Mpeg2RateControlMode = "VBR" Mpeg2RateControlModeCbr Mpeg2RateControlMode = "CBR" ) // Values returns all known values for Mpeg2RateControlMode. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Mpeg2RateControlMode) Values() []Mpeg2RateControlMode { return []Mpeg2RateControlMode{ "VBR", "CBR", } } type Mpeg2ScanTypeConversionMode string // Enum values for Mpeg2ScanTypeConversionMode const ( Mpeg2ScanTypeConversionModeInterlaced Mpeg2ScanTypeConversionMode = "INTERLACED" Mpeg2ScanTypeConversionModeInterlacedOptimize Mpeg2ScanTypeConversionMode = "INTERLACED_OPTIMIZE" ) // Values returns all known values for Mpeg2ScanTypeConversionMode. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (Mpeg2ScanTypeConversionMode) Values() []Mpeg2ScanTypeConversionMode { return []Mpeg2ScanTypeConversionMode{ "INTERLACED", "INTERLACED_OPTIMIZE", } } type Mpeg2SceneChangeDetect string // Enum values for Mpeg2SceneChangeDetect const ( Mpeg2SceneChangeDetectDisabled Mpeg2SceneChangeDetect = "DISABLED" Mpeg2SceneChangeDetectEnabled Mpeg2SceneChangeDetect = "ENABLED" ) // Values returns all known values for Mpeg2SceneChangeDetect. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Mpeg2SceneChangeDetect) Values() []Mpeg2SceneChangeDetect { return []Mpeg2SceneChangeDetect{ "DISABLED", "ENABLED", } } type Mpeg2SlowPal string // Enum values for Mpeg2SlowPal const ( Mpeg2SlowPalDisabled Mpeg2SlowPal = "DISABLED" Mpeg2SlowPalEnabled Mpeg2SlowPal = "ENABLED" ) // Values returns all known values for Mpeg2SlowPal. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Mpeg2SlowPal) Values() []Mpeg2SlowPal { return []Mpeg2SlowPal{ "DISABLED", "ENABLED", } } type Mpeg2SpatialAdaptiveQuantization string // Enum values for Mpeg2SpatialAdaptiveQuantization const ( Mpeg2SpatialAdaptiveQuantizationDisabled Mpeg2SpatialAdaptiveQuantization = "DISABLED" Mpeg2SpatialAdaptiveQuantizationEnabled Mpeg2SpatialAdaptiveQuantization = "ENABLED" ) // Values returns all known values for Mpeg2SpatialAdaptiveQuantization. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (Mpeg2SpatialAdaptiveQuantization) Values() []Mpeg2SpatialAdaptiveQuantization { return []Mpeg2SpatialAdaptiveQuantization{ "DISABLED", "ENABLED", } } type Mpeg2Syntax string // Enum values for Mpeg2Syntax const ( Mpeg2SyntaxDefault Mpeg2Syntax = "DEFAULT" Mpeg2SyntaxD10 Mpeg2Syntax = "D_10" ) // Values returns all known values for Mpeg2Syntax. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (Mpeg2Syntax) Values() []Mpeg2Syntax { return []Mpeg2Syntax{ "DEFAULT", "D_10", } } type Mpeg2Telecine string // Enum values for Mpeg2Telecine const ( Mpeg2TelecineNone Mpeg2Telecine = "NONE" Mpeg2TelecineSoft Mpeg2Telecine = "SOFT" Mpeg2TelecineHard Mpeg2Telecine = "HARD" ) // Values returns all known values for Mpeg2Telecine. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Mpeg2Telecine) Values() []Mpeg2Telecine { return []Mpeg2Telecine{ "NONE", "SOFT", "HARD", } } type Mpeg2TemporalAdaptiveQuantization string // Enum values for Mpeg2TemporalAdaptiveQuantization const ( Mpeg2TemporalAdaptiveQuantizationDisabled Mpeg2TemporalAdaptiveQuantization = "DISABLED" Mpeg2TemporalAdaptiveQuantizationEnabled Mpeg2TemporalAdaptiveQuantization = "ENABLED" ) // Values returns all known values for Mpeg2TemporalAdaptiveQuantization. Note // that this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (Mpeg2TemporalAdaptiveQuantization) Values() []Mpeg2TemporalAdaptiveQuantization { return []Mpeg2TemporalAdaptiveQuantization{ "DISABLED", "ENABLED", } } type MsSmoothAudioDeduplication string // Enum values for MsSmoothAudioDeduplication const ( MsSmoothAudioDeduplicationCombineDuplicateStreams MsSmoothAudioDeduplication = "COMBINE_DUPLICATE_STREAMS" MsSmoothAudioDeduplicationNone MsSmoothAudioDeduplication = "NONE" ) // Values returns all known values for MsSmoothAudioDeduplication. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (MsSmoothAudioDeduplication) Values() []MsSmoothAudioDeduplication { return []MsSmoothAudioDeduplication{ "COMBINE_DUPLICATE_STREAMS", "NONE", } } type MsSmoothFragmentLengthControl string // Enum values for MsSmoothFragmentLengthControl const ( MsSmoothFragmentLengthControlExact MsSmoothFragmentLengthControl = "EXACT" MsSmoothFragmentLengthControlGopMultiple MsSmoothFragmentLengthControl = "GOP_MULTIPLE" ) // Values returns all known values for MsSmoothFragmentLengthControl. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (MsSmoothFragmentLengthControl) Values() []MsSmoothFragmentLengthControl { return []MsSmoothFragmentLengthControl{ "EXACT", "GOP_MULTIPLE", } } type MsSmoothManifestEncoding string // Enum values for MsSmoothManifestEncoding const ( MsSmoothManifestEncodingUtf8 MsSmoothManifestEncoding = "UTF8" MsSmoothManifestEncodingUtf16 MsSmoothManifestEncoding = "UTF16" ) // Values returns all known values for MsSmoothManifestEncoding. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (MsSmoothManifestEncoding) Values() []MsSmoothManifestEncoding { return []MsSmoothManifestEncoding{ "UTF8", "UTF16", } } type MxfAfdSignaling string // Enum values for MxfAfdSignaling const ( MxfAfdSignalingNoCopy MxfAfdSignaling = "NO_COPY" MxfAfdSignalingCopyFromVideo MxfAfdSignaling = "COPY_FROM_VIDEO" ) // Values returns all known values for MxfAfdSignaling. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (MxfAfdSignaling) Values() []MxfAfdSignaling { return []MxfAfdSignaling{ "NO_COPY", "COPY_FROM_VIDEO", } } type MxfProfile string // Enum values for MxfProfile const ( MxfProfileD10 MxfProfile = "D_10" MxfProfileXdcam MxfProfile = "XDCAM" MxfProfileOp1a MxfProfile = "OP1A" MxfProfileXavc MxfProfile = "XAVC" MxfProfileXdcamRdd9 MxfProfile = "XDCAM_RDD9" ) // Values returns all known values for MxfProfile. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (MxfProfile) Values() []MxfProfile { return []MxfProfile{ "D_10", "XDCAM", "OP1A", "XAVC", "XDCAM_RDD9", } } type MxfXavcDurationMode string // Enum values for MxfXavcDurationMode const ( MxfXavcDurationModeAllowAnyDuration MxfXavcDurationMode = "ALLOW_ANY_DURATION" MxfXavcDurationModeDropFramesForCompliance MxfXavcDurationMode = "DROP_FRAMES_FOR_COMPLIANCE" ) // Values returns all known values for MxfXavcDurationMode. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (MxfXavcDurationMode) Values() []MxfXavcDurationMode { return []MxfXavcDurationMode{ "ALLOW_ANY_DURATION", "DROP_FRAMES_FOR_COMPLIANCE", } } type NielsenActiveWatermarkProcessType string // Enum values for NielsenActiveWatermarkProcessType const ( NielsenActiveWatermarkProcessTypeNaes2AndNw NielsenActiveWatermarkProcessType = "NAES2_AND_NW" NielsenActiveWatermarkProcessTypeCbet NielsenActiveWatermarkProcessType = "CBET" NielsenActiveWatermarkProcessTypeNaes2AndNwAndCbet NielsenActiveWatermarkProcessType = "NAES2_AND_NW_AND_CBET" ) // Values returns all known values for NielsenActiveWatermarkProcessType. Note // that this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (NielsenActiveWatermarkProcessType) Values() []NielsenActiveWatermarkProcessType { return []NielsenActiveWatermarkProcessType{ "NAES2_AND_NW", "CBET", "NAES2_AND_NW_AND_CBET", } } type NielsenSourceWatermarkStatusType string // Enum values for NielsenSourceWatermarkStatusType const ( NielsenSourceWatermarkStatusTypeClean NielsenSourceWatermarkStatusType = "CLEAN" NielsenSourceWatermarkStatusTypeWatermarked NielsenSourceWatermarkStatusType = "WATERMARKED" ) // Values returns all known values for NielsenSourceWatermarkStatusType. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (NielsenSourceWatermarkStatusType) Values() []NielsenSourceWatermarkStatusType { return []NielsenSourceWatermarkStatusType{ "CLEAN", "WATERMARKED", } } type NielsenUniqueTicPerAudioTrackType string // Enum values for NielsenUniqueTicPerAudioTrackType const ( NielsenUniqueTicPerAudioTrackTypeReserveUniqueTicsPerTrack NielsenUniqueTicPerAudioTrackType = "RESERVE_UNIQUE_TICS_PER_TRACK" NielsenUniqueTicPerAudioTrackTypeSameTicsPerTrack NielsenUniqueTicPerAudioTrackType = "SAME_TICS_PER_TRACK" ) // Values returns all known values for NielsenUniqueTicPerAudioTrackType. Note // that this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (NielsenUniqueTicPerAudioTrackType) Values() []NielsenUniqueTicPerAudioTrackType { return []NielsenUniqueTicPerAudioTrackType{ "RESERVE_UNIQUE_TICS_PER_TRACK", "SAME_TICS_PER_TRACK", } } type NoiseFilterPostTemporalSharpening string // Enum values for NoiseFilterPostTemporalSharpening const ( NoiseFilterPostTemporalSharpeningDisabled NoiseFilterPostTemporalSharpening = "DISABLED" NoiseFilterPostTemporalSharpeningEnabled NoiseFilterPostTemporalSharpening = "ENABLED" NoiseFilterPostTemporalSharpeningAuto NoiseFilterPostTemporalSharpening = "AUTO" ) // Values returns all known values for NoiseFilterPostTemporalSharpening. Note // that this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (NoiseFilterPostTemporalSharpening) Values() []NoiseFilterPostTemporalSharpening { return []NoiseFilterPostTemporalSharpening{ "DISABLED", "ENABLED", "AUTO", } } type NoiseFilterPostTemporalSharpeningStrength string // Enum values for NoiseFilterPostTemporalSharpeningStrength const ( NoiseFilterPostTemporalSharpeningStrengthLow NoiseFilterPostTemporalSharpeningStrength = "LOW" NoiseFilterPostTemporalSharpeningStrengthMedium NoiseFilterPostTemporalSharpeningStrength = "MEDIUM" NoiseFilterPostTemporalSharpeningStrengthHigh NoiseFilterPostTemporalSharpeningStrength = "HIGH" ) // Values returns all known values for NoiseFilterPostTemporalSharpeningStrength. // Note that this can be expanded in the future, and so it is only as up to date as // the client. The ordering of this slice is not guaranteed to be stable across // updates. func (NoiseFilterPostTemporalSharpeningStrength) Values() []NoiseFilterPostTemporalSharpeningStrength { return []NoiseFilterPostTemporalSharpeningStrength{ "LOW", "MEDIUM", "HIGH", } } type NoiseReducerFilter string // Enum values for NoiseReducerFilter const ( NoiseReducerFilterBilateral NoiseReducerFilter = "BILATERAL" NoiseReducerFilterMean NoiseReducerFilter = "MEAN" NoiseReducerFilterGaussian NoiseReducerFilter = "GAUSSIAN" NoiseReducerFilterLanczos NoiseReducerFilter = "LANCZOS" NoiseReducerFilterSharpen NoiseReducerFilter = "SHARPEN" NoiseReducerFilterConserve NoiseReducerFilter = "CONSERVE" NoiseReducerFilterSpatial NoiseReducerFilter = "SPATIAL" NoiseReducerFilterTemporal NoiseReducerFilter = "TEMPORAL" ) // Values returns all known values for NoiseReducerFilter. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (NoiseReducerFilter) Values() []NoiseReducerFilter { return []NoiseReducerFilter{ "BILATERAL", "MEAN", "GAUSSIAN", "LANCZOS", "SHARPEN", "CONSERVE", "SPATIAL", "TEMPORAL", } } type Order string // Enum values for Order const ( OrderAscending Order = "ASCENDING" OrderDescending Order = "DESCENDING" ) // Values returns all known values for Order. Note that this can be expanded in // the future, and so it is only as up to date as the client. The ordering of this // slice is not guaranteed to be stable across updates. func (Order) Values() []Order { return []Order{ "ASCENDING", "DESCENDING", } } type OutputGroupType string // Enum values for OutputGroupType const ( OutputGroupTypeHlsGroupSettings OutputGroupType = "HLS_GROUP_SETTINGS" OutputGroupTypeDashIsoGroupSettings OutputGroupType = "DASH_ISO_GROUP_SETTINGS" OutputGroupTypeFileGroupSettings OutputGroupType = "FILE_GROUP_SETTINGS" OutputGroupTypeMsSmoothGroupSettings OutputGroupType = "MS_SMOOTH_GROUP_SETTINGS" OutputGroupTypeCmafGroupSettings OutputGroupType = "CMAF_GROUP_SETTINGS" ) // Values returns all known values for OutputGroupType. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (OutputGroupType) Values() []OutputGroupType { return []OutputGroupType{ "HLS_GROUP_SETTINGS", "DASH_ISO_GROUP_SETTINGS", "FILE_GROUP_SETTINGS", "MS_SMOOTH_GROUP_SETTINGS", "CMAF_GROUP_SETTINGS", } } type OutputSdt string // Enum values for OutputSdt const ( OutputSdtSdtFollow OutputSdt = "SDT_FOLLOW" OutputSdtSdtFollowIfPresent OutputSdt = "SDT_FOLLOW_IF_PRESENT" OutputSdtSdtManual OutputSdt = "SDT_MANUAL" OutputSdtSdtNone OutputSdt = "SDT_NONE" ) // Values returns all known values for OutputSdt. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (OutputSdt) Values() []OutputSdt { return []OutputSdt{ "SDT_FOLLOW", "SDT_FOLLOW_IF_PRESENT", "SDT_MANUAL", "SDT_NONE", } } type PadVideo string // Enum values for PadVideo const ( PadVideoDisabled PadVideo = "DISABLED" PadVideoBlack PadVideo = "BLACK" ) // Values returns all known values for PadVideo. Note that this can be expanded in // the future, and so it is only as up to date as the client. The ordering of this // slice is not guaranteed to be stable across updates. func (PadVideo) Values() []PadVideo { return []PadVideo{ "DISABLED", "BLACK", } } type PresetListBy string // Enum values for PresetListBy const ( PresetListByName PresetListBy = "NAME" PresetListByCreationDate PresetListBy = "CREATION_DATE" PresetListBySystem PresetListBy = "SYSTEM" ) // Values returns all known values for PresetListBy. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (PresetListBy) Values() []PresetListBy { return []PresetListBy{ "NAME", "CREATION_DATE", "SYSTEM", } } type PricingPlan string // Enum values for PricingPlan const ( PricingPlanOnDemand PricingPlan = "ON_DEMAND" PricingPlanReserved PricingPlan = "RESERVED" ) // Values returns all known values for PricingPlan. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (PricingPlan) Values() []PricingPlan { return []PricingPlan{ "ON_DEMAND", "RESERVED", } } type ProresChromaSampling string // Enum values for ProresChromaSampling const ( ProresChromaSamplingPreserve444Sampling ProresChromaSampling = "PRESERVE_444_SAMPLING" ProresChromaSamplingSubsampleTo422 ProresChromaSampling = "SUBSAMPLE_TO_422" ) // Values returns all known values for ProresChromaSampling. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ProresChromaSampling) Values() []ProresChromaSampling { return []ProresChromaSampling{ "PRESERVE_444_SAMPLING", "SUBSAMPLE_TO_422", } } type ProresCodecProfile string // Enum values for ProresCodecProfile const ( ProresCodecProfileAppleProres422 ProresCodecProfile = "APPLE_PRORES_422" ProresCodecProfileAppleProres422Hq ProresCodecProfile = "APPLE_PRORES_422_HQ" ProresCodecProfileAppleProres422Lt ProresCodecProfile = "APPLE_PRORES_422_LT" ProresCodecProfileAppleProres422Proxy ProresCodecProfile = "APPLE_PRORES_422_PROXY" ProresCodecProfileAppleProres4444 ProresCodecProfile = "APPLE_PRORES_4444" ProresCodecProfileAppleProres4444Xq ProresCodecProfile = "APPLE_PRORES_4444_XQ" ) // Values returns all known values for ProresCodecProfile. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ProresCodecProfile) Values() []ProresCodecProfile { return []ProresCodecProfile{ "APPLE_PRORES_422", "APPLE_PRORES_422_HQ", "APPLE_PRORES_422_LT", "APPLE_PRORES_422_PROXY", "APPLE_PRORES_4444", "APPLE_PRORES_4444_XQ", } } type ProresFramerateControl string // Enum values for ProresFramerateControl const ( ProresFramerateControlInitializeFromSource ProresFramerateControl = "INITIALIZE_FROM_SOURCE" ProresFramerateControlSpecified ProresFramerateControl = "SPECIFIED" ) // Values returns all known values for ProresFramerateControl. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ProresFramerateControl) Values() []ProresFramerateControl { return []ProresFramerateControl{ "INITIALIZE_FROM_SOURCE", "SPECIFIED", } } type ProresFramerateConversionAlgorithm string // Enum values for ProresFramerateConversionAlgorithm const ( ProresFramerateConversionAlgorithmDuplicateDrop ProresFramerateConversionAlgorithm = "DUPLICATE_DROP" ProresFramerateConversionAlgorithmInterpolate ProresFramerateConversionAlgorithm = "INTERPOLATE" ProresFramerateConversionAlgorithmFrameformer ProresFramerateConversionAlgorithm = "FRAMEFORMER" ) // Values returns all known values for ProresFramerateConversionAlgorithm. Note // that this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (ProresFramerateConversionAlgorithm) Values() []ProresFramerateConversionAlgorithm { return []ProresFramerateConversionAlgorithm{ "DUPLICATE_DROP", "INTERPOLATE", "FRAMEFORMER", } } type ProresInterlaceMode string // Enum values for ProresInterlaceMode const ( ProresInterlaceModeProgressive ProresInterlaceMode = "PROGRESSIVE" ProresInterlaceModeTopField ProresInterlaceMode = "TOP_FIELD" ProresInterlaceModeBottomField ProresInterlaceMode = "BOTTOM_FIELD" ProresInterlaceModeFollowTopField ProresInterlaceMode = "FOLLOW_TOP_FIELD" ProresInterlaceModeFollowBottomField ProresInterlaceMode = "FOLLOW_BOTTOM_FIELD" ) // Values returns all known values for ProresInterlaceMode. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ProresInterlaceMode) Values() []ProresInterlaceMode { return []ProresInterlaceMode{ "PROGRESSIVE", "TOP_FIELD", "BOTTOM_FIELD", "FOLLOW_TOP_FIELD", "FOLLOW_BOTTOM_FIELD", } } type ProresParControl string // Enum values for ProresParControl const ( ProresParControlInitializeFromSource ProresParControl = "INITIALIZE_FROM_SOURCE" ProresParControlSpecified ProresParControl = "SPECIFIED" ) // Values returns all known values for ProresParControl. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ProresParControl) Values() []ProresParControl { return []ProresParControl{ "INITIALIZE_FROM_SOURCE", "SPECIFIED", } } type ProresScanTypeConversionMode string // Enum values for ProresScanTypeConversionMode const ( ProresScanTypeConversionModeInterlaced ProresScanTypeConversionMode = "INTERLACED" ProresScanTypeConversionModeInterlacedOptimize ProresScanTypeConversionMode = "INTERLACED_OPTIMIZE" ) // Values returns all known values for ProresScanTypeConversionMode. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (ProresScanTypeConversionMode) Values() []ProresScanTypeConversionMode { return []ProresScanTypeConversionMode{ "INTERLACED", "INTERLACED_OPTIMIZE", } } type ProresSlowPal string // Enum values for ProresSlowPal const ( ProresSlowPalDisabled ProresSlowPal = "DISABLED" ProresSlowPalEnabled ProresSlowPal = "ENABLED" ) // Values returns all known values for ProresSlowPal. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ProresSlowPal) Values() []ProresSlowPal { return []ProresSlowPal{ "DISABLED", "ENABLED", } } type ProresTelecine string // Enum values for ProresTelecine const ( ProresTelecineNone ProresTelecine = "NONE" ProresTelecineHard ProresTelecine = "HARD" ) // Values returns all known values for ProresTelecine. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ProresTelecine) Values() []ProresTelecine { return []ProresTelecine{ "NONE", "HARD", } } type QueueListBy string // Enum values for QueueListBy const ( QueueListByName QueueListBy = "NAME" QueueListByCreationDate QueueListBy = "CREATION_DATE" ) // Values returns all known values for QueueListBy. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (QueueListBy) Values() []QueueListBy { return []QueueListBy{ "NAME", "CREATION_DATE", } } type QueueStatus string // Enum values for QueueStatus const ( QueueStatusActive QueueStatus = "ACTIVE" QueueStatusPaused QueueStatus = "PAUSED" ) // Values returns all known values for QueueStatus. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (QueueStatus) Values() []QueueStatus { return []QueueStatus{ "ACTIVE", "PAUSED", } } type RenewalType string // Enum values for RenewalType const ( RenewalTypeAutoRenew RenewalType = "AUTO_RENEW" RenewalTypeExpire RenewalType = "EXPIRE" ) // Values returns all known values for RenewalType. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (RenewalType) Values() []RenewalType { return []RenewalType{ "AUTO_RENEW", "EXPIRE", } } type RequiredFlag string // Enum values for RequiredFlag const ( RequiredFlagEnabled RequiredFlag = "ENABLED" RequiredFlagDisabled RequiredFlag = "DISABLED" ) // Values returns all known values for RequiredFlag. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (RequiredFlag) Values() []RequiredFlag { return []RequiredFlag{ "ENABLED", "DISABLED", } } type ReservationPlanStatus string // Enum values for ReservationPlanStatus const ( ReservationPlanStatusActive ReservationPlanStatus = "ACTIVE" ReservationPlanStatusExpired ReservationPlanStatus = "EXPIRED" ) // Values returns all known values for ReservationPlanStatus. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ReservationPlanStatus) Values() []ReservationPlanStatus { return []ReservationPlanStatus{ "ACTIVE", "EXPIRED", } } type RespondToAfd string // Enum values for RespondToAfd const ( RespondToAfdNone RespondToAfd = "NONE" RespondToAfdRespond RespondToAfd = "RESPOND" RespondToAfdPassthrough RespondToAfd = "PASSTHROUGH" ) // Values returns all known values for RespondToAfd. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (RespondToAfd) Values() []RespondToAfd { return []RespondToAfd{ "NONE", "RESPOND", "PASSTHROUGH", } } type RuleType string // Enum values for RuleType const ( RuleTypeMinTopRenditionSize RuleType = "MIN_TOP_RENDITION_SIZE" RuleTypeMinBottomRenditionSize RuleType = "MIN_BOTTOM_RENDITION_SIZE" RuleTypeForceIncludeRenditions RuleType = "FORCE_INCLUDE_RENDITIONS" RuleTypeAllowedRenditions RuleType = "ALLOWED_RENDITIONS" ) // Values returns all known values for RuleType. Note that this can be expanded in // the future, and so it is only as up to date as the client. The ordering of this // slice is not guaranteed to be stable across updates. func (RuleType) Values() []RuleType { return []RuleType{ "MIN_TOP_RENDITION_SIZE", "MIN_BOTTOM_RENDITION_SIZE", "FORCE_INCLUDE_RENDITIONS", "ALLOWED_RENDITIONS", } } type S3ObjectCannedAcl string // Enum values for S3ObjectCannedAcl const ( S3ObjectCannedAclPublicRead S3ObjectCannedAcl = "PUBLIC_READ" S3ObjectCannedAclAuthenticatedRead S3ObjectCannedAcl = "AUTHENTICATED_READ" S3ObjectCannedAclBucketOwnerRead S3ObjectCannedAcl = "BUCKET_OWNER_READ" S3ObjectCannedAclBucketOwnerFullControl S3ObjectCannedAcl = "BUCKET_OWNER_FULL_CONTROL" ) // Values returns all known values for S3ObjectCannedAcl. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (S3ObjectCannedAcl) Values() []S3ObjectCannedAcl { return []S3ObjectCannedAcl{ "PUBLIC_READ", "AUTHENTICATED_READ", "BUCKET_OWNER_READ", "BUCKET_OWNER_FULL_CONTROL", } } type S3ServerSideEncryptionType string // Enum values for S3ServerSideEncryptionType const ( S3ServerSideEncryptionTypeServerSideEncryptionS3 S3ServerSideEncryptionType = "SERVER_SIDE_ENCRYPTION_S3" S3ServerSideEncryptionTypeServerSideEncryptionKms S3ServerSideEncryptionType = "SERVER_SIDE_ENCRYPTION_KMS" ) // Values returns all known values for S3ServerSideEncryptionType. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (S3ServerSideEncryptionType) Values() []S3ServerSideEncryptionType { return []S3ServerSideEncryptionType{ "SERVER_SIDE_ENCRYPTION_S3", "SERVER_SIDE_ENCRYPTION_KMS", } } type SampleRangeConversion string // Enum values for SampleRangeConversion const ( SampleRangeConversionLimitedRangeSqueeze SampleRangeConversion = "LIMITED_RANGE_SQUEEZE" SampleRangeConversionNone SampleRangeConversion = "NONE" SampleRangeConversionLimitedRangeClip SampleRangeConversion = "LIMITED_RANGE_CLIP" ) // Values returns all known values for SampleRangeConversion. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (SampleRangeConversion) Values() []SampleRangeConversion { return []SampleRangeConversion{ "LIMITED_RANGE_SQUEEZE", "NONE", "LIMITED_RANGE_CLIP", } } type ScalingBehavior string // Enum values for ScalingBehavior const ( ScalingBehaviorDefault ScalingBehavior = "DEFAULT" ScalingBehaviorStretchToOutput ScalingBehavior = "STRETCH_TO_OUTPUT" ) // Values returns all known values for ScalingBehavior. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (ScalingBehavior) Values() []ScalingBehavior { return []ScalingBehavior{ "DEFAULT", "STRETCH_TO_OUTPUT", } } type SccDestinationFramerate string // Enum values for SccDestinationFramerate const ( SccDestinationFramerateFramerate2397 SccDestinationFramerate = "FRAMERATE_23_97" SccDestinationFramerateFramerate24 SccDestinationFramerate = "FRAMERATE_24" SccDestinationFramerateFramerate25 SccDestinationFramerate = "FRAMERATE_25" SccDestinationFramerateFramerate2997Dropframe SccDestinationFramerate = "FRAMERATE_29_97_DROPFRAME" SccDestinationFramerateFramerate2997NonDropframe SccDestinationFramerate = "FRAMERATE_29_97_NON_DROPFRAME" ) // Values returns all known values for SccDestinationFramerate. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (SccDestinationFramerate) Values() []SccDestinationFramerate { return []SccDestinationFramerate{ "FRAMERATE_23_97", "FRAMERATE_24", "FRAMERATE_25", "FRAMERATE_29_97_DROPFRAME", "FRAMERATE_29_97_NON_DROPFRAME", } } type SimulateReservedQueue string // Enum values for SimulateReservedQueue const ( SimulateReservedQueueDisabled SimulateReservedQueue = "DISABLED" SimulateReservedQueueEnabled SimulateReservedQueue = "ENABLED" ) // Values returns all known values for SimulateReservedQueue. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (SimulateReservedQueue) Values() []SimulateReservedQueue { return []SimulateReservedQueue{ "DISABLED", "ENABLED", } } type SrtStylePassthrough string // Enum values for SrtStylePassthrough const ( SrtStylePassthroughEnabled SrtStylePassthrough = "ENABLED" SrtStylePassthroughDisabled SrtStylePassthrough = "DISABLED" ) // Values returns all known values for SrtStylePassthrough. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (SrtStylePassthrough) Values() []SrtStylePassthrough { return []SrtStylePassthrough{ "ENABLED", "DISABLED", } } type StatusUpdateInterval string // Enum values for StatusUpdateInterval const ( StatusUpdateIntervalSeconds10 StatusUpdateInterval = "SECONDS_10" StatusUpdateIntervalSeconds12 StatusUpdateInterval = "SECONDS_12" StatusUpdateIntervalSeconds15 StatusUpdateInterval = "SECONDS_15" StatusUpdateIntervalSeconds20 StatusUpdateInterval = "SECONDS_20" StatusUpdateIntervalSeconds30 StatusUpdateInterval = "SECONDS_30" StatusUpdateIntervalSeconds60 StatusUpdateInterval = "SECONDS_60" StatusUpdateIntervalSeconds120 StatusUpdateInterval = "SECONDS_120" StatusUpdateIntervalSeconds180 StatusUpdateInterval = "SECONDS_180" StatusUpdateIntervalSeconds240 StatusUpdateInterval = "SECONDS_240" StatusUpdateIntervalSeconds300 StatusUpdateInterval = "SECONDS_300" StatusUpdateIntervalSeconds360 StatusUpdateInterval = "SECONDS_360" StatusUpdateIntervalSeconds420 StatusUpdateInterval = "SECONDS_420" StatusUpdateIntervalSeconds480 StatusUpdateInterval = "SECONDS_480" StatusUpdateIntervalSeconds540 StatusUpdateInterval = "SECONDS_540" StatusUpdateIntervalSeconds600 StatusUpdateInterval = "SECONDS_600" ) // Values returns all known values for StatusUpdateInterval. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (StatusUpdateInterval) Values() []StatusUpdateInterval { return []StatusUpdateInterval{ "SECONDS_10", "SECONDS_12", "SECONDS_15", "SECONDS_20", "SECONDS_30", "SECONDS_60", "SECONDS_120", "SECONDS_180", "SECONDS_240", "SECONDS_300", "SECONDS_360", "SECONDS_420", "SECONDS_480", "SECONDS_540", "SECONDS_600", } } type TeletextPageType string // Enum values for TeletextPageType const ( TeletextPageTypePageTypeInitial TeletextPageType = "PAGE_TYPE_INITIAL" TeletextPageTypePageTypeSubtitle TeletextPageType = "PAGE_TYPE_SUBTITLE" TeletextPageTypePageTypeAddlInfo TeletextPageType = "PAGE_TYPE_ADDL_INFO" TeletextPageTypePageTypeProgramSchedule TeletextPageType = "PAGE_TYPE_PROGRAM_SCHEDULE" TeletextPageTypePageTypeHearingImpairedSubtitle TeletextPageType = "PAGE_TYPE_HEARING_IMPAIRED_SUBTITLE" ) // Values returns all known values for TeletextPageType. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (TeletextPageType) Values() []TeletextPageType { return []TeletextPageType{ "PAGE_TYPE_INITIAL", "PAGE_TYPE_SUBTITLE", "PAGE_TYPE_ADDL_INFO", "PAGE_TYPE_PROGRAM_SCHEDULE", "PAGE_TYPE_HEARING_IMPAIRED_SUBTITLE", } } type TimecodeBurninPosition string // Enum values for TimecodeBurninPosition const ( TimecodeBurninPositionTopCenter TimecodeBurninPosition = "TOP_CENTER" TimecodeBurninPositionTopLeft TimecodeBurninPosition = "TOP_LEFT" TimecodeBurninPositionTopRight TimecodeBurninPosition = "TOP_RIGHT" TimecodeBurninPositionMiddleLeft TimecodeBurninPosition = "MIDDLE_LEFT" TimecodeBurninPositionMiddleCenter TimecodeBurninPosition = "MIDDLE_CENTER" TimecodeBurninPositionMiddleRight TimecodeBurninPosition = "MIDDLE_RIGHT" TimecodeBurninPositionBottomLeft TimecodeBurninPosition = "BOTTOM_LEFT" TimecodeBurninPositionBottomCenter TimecodeBurninPosition = "BOTTOM_CENTER" TimecodeBurninPositionBottomRight TimecodeBurninPosition = "BOTTOM_RIGHT" ) // Values returns all known values for TimecodeBurninPosition. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (TimecodeBurninPosition) Values() []TimecodeBurninPosition { return []TimecodeBurninPosition{ "TOP_CENTER", "TOP_LEFT", "TOP_RIGHT", "MIDDLE_LEFT", "MIDDLE_CENTER", "MIDDLE_RIGHT", "BOTTOM_LEFT", "BOTTOM_CENTER", "BOTTOM_RIGHT", } } type TimecodeSource string // Enum values for TimecodeSource const ( TimecodeSourceEmbedded TimecodeSource = "EMBEDDED" TimecodeSourceZerobased TimecodeSource = "ZEROBASED" TimecodeSourceSpecifiedstart TimecodeSource = "SPECIFIEDSTART" ) // Values returns all known values for TimecodeSource. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (TimecodeSource) Values() []TimecodeSource { return []TimecodeSource{ "EMBEDDED", "ZEROBASED", "SPECIFIEDSTART", } } type TimedMetadata string // Enum values for TimedMetadata const ( TimedMetadataPassthrough TimedMetadata = "PASSTHROUGH" TimedMetadataNone TimedMetadata = "NONE" ) // Values returns all known values for TimedMetadata. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (TimedMetadata) Values() []TimedMetadata { return []TimedMetadata{ "PASSTHROUGH", "NONE", } } type TtmlStylePassthrough string // Enum values for TtmlStylePassthrough const ( TtmlStylePassthroughEnabled TtmlStylePassthrough = "ENABLED" TtmlStylePassthroughDisabled TtmlStylePassthrough = "DISABLED" ) // Values returns all known values for TtmlStylePassthrough. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (TtmlStylePassthrough) Values() []TtmlStylePassthrough { return []TtmlStylePassthrough{ "ENABLED", "DISABLED", } } type Type string // Enum values for Type const ( TypeSystem Type = "SYSTEM" TypeCustom Type = "CUSTOM" ) // Values returns all known values for Type. Note that this can be expanded in the // future, and so it is only as up to date as the client. The ordering of this // slice is not guaranteed to be stable across updates. func (Type) Values() []Type { return []Type{ "SYSTEM", "CUSTOM", } } type Vc3Class string // Enum values for Vc3Class const ( Vc3ClassClass1458bit Vc3Class = "CLASS_145_8BIT" Vc3ClassClass2208bit Vc3Class = "CLASS_220_8BIT" Vc3ClassClass22010bit Vc3Class = "CLASS_220_10BIT" ) // Values returns all known values for Vc3Class. Note that this can be expanded in // the future, and so it is only as up to date as the client. The ordering of this // slice is not guaranteed to be stable across updates. func (Vc3Class) Values() []Vc3Class { return []Vc3Class{ "CLASS_145_8BIT", "CLASS_220_8BIT", "CLASS_220_10BIT", } } type Vc3FramerateControl string // Enum values for Vc3FramerateControl const ( Vc3FramerateControlInitializeFromSource Vc3FramerateControl = "INITIALIZE_FROM_SOURCE" Vc3FramerateControlSpecified Vc3FramerateControl = "SPECIFIED" ) // Values returns all known values for Vc3FramerateControl. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Vc3FramerateControl) Values() []Vc3FramerateControl { return []Vc3FramerateControl{ "INITIALIZE_FROM_SOURCE", "SPECIFIED", } } type Vc3FramerateConversionAlgorithm string // Enum values for Vc3FramerateConversionAlgorithm const ( Vc3FramerateConversionAlgorithmDuplicateDrop Vc3FramerateConversionAlgorithm = "DUPLICATE_DROP" Vc3FramerateConversionAlgorithmInterpolate Vc3FramerateConversionAlgorithm = "INTERPOLATE" Vc3FramerateConversionAlgorithmFrameformer Vc3FramerateConversionAlgorithm = "FRAMEFORMER" ) // Values returns all known values for Vc3FramerateConversionAlgorithm. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (Vc3FramerateConversionAlgorithm) Values() []Vc3FramerateConversionAlgorithm { return []Vc3FramerateConversionAlgorithm{ "DUPLICATE_DROP", "INTERPOLATE", "FRAMEFORMER", } } type Vc3InterlaceMode string // Enum values for Vc3InterlaceMode const ( Vc3InterlaceModeInterlaced Vc3InterlaceMode = "INTERLACED" Vc3InterlaceModeProgressive Vc3InterlaceMode = "PROGRESSIVE" ) // Values returns all known values for Vc3InterlaceMode. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Vc3InterlaceMode) Values() []Vc3InterlaceMode { return []Vc3InterlaceMode{ "INTERLACED", "PROGRESSIVE", } } type Vc3ScanTypeConversionMode string // Enum values for Vc3ScanTypeConversionMode const ( Vc3ScanTypeConversionModeInterlaced Vc3ScanTypeConversionMode = "INTERLACED" Vc3ScanTypeConversionModeInterlacedOptimize Vc3ScanTypeConversionMode = "INTERLACED_OPTIMIZE" ) // Values returns all known values for Vc3ScanTypeConversionMode. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (Vc3ScanTypeConversionMode) Values() []Vc3ScanTypeConversionMode { return []Vc3ScanTypeConversionMode{ "INTERLACED", "INTERLACED_OPTIMIZE", } } type Vc3SlowPal string // Enum values for Vc3SlowPal const ( Vc3SlowPalDisabled Vc3SlowPal = "DISABLED" Vc3SlowPalEnabled Vc3SlowPal = "ENABLED" ) // Values returns all known values for Vc3SlowPal. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (Vc3SlowPal) Values() []Vc3SlowPal { return []Vc3SlowPal{ "DISABLED", "ENABLED", } } type Vc3Telecine string // Enum values for Vc3Telecine const ( Vc3TelecineNone Vc3Telecine = "NONE" Vc3TelecineHard Vc3Telecine = "HARD" ) // Values returns all known values for Vc3Telecine. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (Vc3Telecine) Values() []Vc3Telecine { return []Vc3Telecine{ "NONE", "HARD", } } type VchipAction string // Enum values for VchipAction const ( VchipActionPassthrough VchipAction = "PASSTHROUGH" VchipActionStrip VchipAction = "STRIP" ) // Values returns all known values for VchipAction. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (VchipAction) Values() []VchipAction { return []VchipAction{ "PASSTHROUGH", "STRIP", } } type VideoCodec string // Enum values for VideoCodec const ( VideoCodecAv1 VideoCodec = "AV1" VideoCodecAvcIntra VideoCodec = "AVC_INTRA" VideoCodecFrameCapture VideoCodec = "FRAME_CAPTURE" VideoCodecH264 VideoCodec = "H_264" VideoCodecH265 VideoCodec = "H_265" VideoCodecMpeg2 VideoCodec = "MPEG2" VideoCodecPassthrough VideoCodec = "PASSTHROUGH" VideoCodecProres VideoCodec = "PRORES" VideoCodecVc3 VideoCodec = "VC3" VideoCodecVp8 VideoCodec = "VP8" VideoCodecVp9 VideoCodec = "VP9" VideoCodecXavc VideoCodec = "XAVC" ) // Values returns all known values for VideoCodec. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (VideoCodec) Values() []VideoCodec { return []VideoCodec{ "AV1", "AVC_INTRA", "FRAME_CAPTURE", "H_264", "H_265", "MPEG2", "PASSTHROUGH", "PRORES", "VC3", "VP8", "VP9", "XAVC", } } type VideoTimecodeInsertion string // Enum values for VideoTimecodeInsertion const ( VideoTimecodeInsertionDisabled VideoTimecodeInsertion = "DISABLED" VideoTimecodeInsertionPicTimingSei VideoTimecodeInsertion = "PIC_TIMING_SEI" ) // Values returns all known values for VideoTimecodeInsertion. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (VideoTimecodeInsertion) Values() []VideoTimecodeInsertion { return []VideoTimecodeInsertion{ "DISABLED", "PIC_TIMING_SEI", } } type Vp8FramerateControl string // Enum values for Vp8FramerateControl const ( Vp8FramerateControlInitializeFromSource Vp8FramerateControl = "INITIALIZE_FROM_SOURCE" Vp8FramerateControlSpecified Vp8FramerateControl = "SPECIFIED" ) // Values returns all known values for Vp8FramerateControl. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Vp8FramerateControl) Values() []Vp8FramerateControl { return []Vp8FramerateControl{ "INITIALIZE_FROM_SOURCE", "SPECIFIED", } } type Vp8FramerateConversionAlgorithm string // Enum values for Vp8FramerateConversionAlgorithm const ( Vp8FramerateConversionAlgorithmDuplicateDrop Vp8FramerateConversionAlgorithm = "DUPLICATE_DROP" Vp8FramerateConversionAlgorithmInterpolate Vp8FramerateConversionAlgorithm = "INTERPOLATE" Vp8FramerateConversionAlgorithmFrameformer Vp8FramerateConversionAlgorithm = "FRAMEFORMER" ) // Values returns all known values for Vp8FramerateConversionAlgorithm. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (Vp8FramerateConversionAlgorithm) Values() []Vp8FramerateConversionAlgorithm { return []Vp8FramerateConversionAlgorithm{ "DUPLICATE_DROP", "INTERPOLATE", "FRAMEFORMER", } } type Vp8ParControl string // Enum values for Vp8ParControl const ( Vp8ParControlInitializeFromSource Vp8ParControl = "INITIALIZE_FROM_SOURCE" Vp8ParControlSpecified Vp8ParControl = "SPECIFIED" ) // Values returns all known values for Vp8ParControl. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Vp8ParControl) Values() []Vp8ParControl { return []Vp8ParControl{ "INITIALIZE_FROM_SOURCE", "SPECIFIED", } } type Vp8QualityTuningLevel string // Enum values for Vp8QualityTuningLevel const ( Vp8QualityTuningLevelMultiPass Vp8QualityTuningLevel = "MULTI_PASS" Vp8QualityTuningLevelMultiPassHq Vp8QualityTuningLevel = "MULTI_PASS_HQ" ) // Values returns all known values for Vp8QualityTuningLevel. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Vp8QualityTuningLevel) Values() []Vp8QualityTuningLevel { return []Vp8QualityTuningLevel{ "MULTI_PASS", "MULTI_PASS_HQ", } } type Vp8RateControlMode string // Enum values for Vp8RateControlMode const ( Vp8RateControlModeVbr Vp8RateControlMode = "VBR" ) // Values returns all known values for Vp8RateControlMode. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Vp8RateControlMode) Values() []Vp8RateControlMode { return []Vp8RateControlMode{ "VBR", } } type Vp9FramerateControl string // Enum values for Vp9FramerateControl const ( Vp9FramerateControlInitializeFromSource Vp9FramerateControl = "INITIALIZE_FROM_SOURCE" Vp9FramerateControlSpecified Vp9FramerateControl = "SPECIFIED" ) // Values returns all known values for Vp9FramerateControl. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Vp9FramerateControl) Values() []Vp9FramerateControl { return []Vp9FramerateControl{ "INITIALIZE_FROM_SOURCE", "SPECIFIED", } } type Vp9FramerateConversionAlgorithm string // Enum values for Vp9FramerateConversionAlgorithm const ( Vp9FramerateConversionAlgorithmDuplicateDrop Vp9FramerateConversionAlgorithm = "DUPLICATE_DROP" Vp9FramerateConversionAlgorithmInterpolate Vp9FramerateConversionAlgorithm = "INTERPOLATE" Vp9FramerateConversionAlgorithmFrameformer Vp9FramerateConversionAlgorithm = "FRAMEFORMER" ) // Values returns all known values for Vp9FramerateConversionAlgorithm. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (Vp9FramerateConversionAlgorithm) Values() []Vp9FramerateConversionAlgorithm { return []Vp9FramerateConversionAlgorithm{ "DUPLICATE_DROP", "INTERPOLATE", "FRAMEFORMER", } } type Vp9ParControl string // Enum values for Vp9ParControl const ( Vp9ParControlInitializeFromSource Vp9ParControl = "INITIALIZE_FROM_SOURCE" Vp9ParControlSpecified Vp9ParControl = "SPECIFIED" ) // Values returns all known values for Vp9ParControl. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Vp9ParControl) Values() []Vp9ParControl { return []Vp9ParControl{ "INITIALIZE_FROM_SOURCE", "SPECIFIED", } } type Vp9QualityTuningLevel string // Enum values for Vp9QualityTuningLevel const ( Vp9QualityTuningLevelMultiPass Vp9QualityTuningLevel = "MULTI_PASS" Vp9QualityTuningLevelMultiPassHq Vp9QualityTuningLevel = "MULTI_PASS_HQ" ) // Values returns all known values for Vp9QualityTuningLevel. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Vp9QualityTuningLevel) Values() []Vp9QualityTuningLevel { return []Vp9QualityTuningLevel{ "MULTI_PASS", "MULTI_PASS_HQ", } } type Vp9RateControlMode string // Enum values for Vp9RateControlMode const ( Vp9RateControlModeVbr Vp9RateControlMode = "VBR" ) // Values returns all known values for Vp9RateControlMode. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (Vp9RateControlMode) Values() []Vp9RateControlMode { return []Vp9RateControlMode{ "VBR", } } type WatermarkingStrength string // Enum values for WatermarkingStrength const ( WatermarkingStrengthLightest WatermarkingStrength = "LIGHTEST" WatermarkingStrengthLighter WatermarkingStrength = "LIGHTER" WatermarkingStrengthDefault WatermarkingStrength = "DEFAULT" WatermarkingStrengthStronger WatermarkingStrength = "STRONGER" WatermarkingStrengthStrongest WatermarkingStrength = "STRONGEST" ) // Values returns all known values for WatermarkingStrength. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (WatermarkingStrength) Values() []WatermarkingStrength { return []WatermarkingStrength{ "LIGHTEST", "LIGHTER", "DEFAULT", "STRONGER", "STRONGEST", } } type WavFormat string // Enum values for WavFormat const ( WavFormatRiff WavFormat = "RIFF" WavFormatRf64 WavFormat = "RF64" ) // Values returns all known values for WavFormat. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (WavFormat) Values() []WavFormat { return []WavFormat{ "RIFF", "RF64", } } type WebvttAccessibilitySubs string // Enum values for WebvttAccessibilitySubs const ( WebvttAccessibilitySubsDisabled WebvttAccessibilitySubs = "DISABLED" WebvttAccessibilitySubsEnabled WebvttAccessibilitySubs = "ENABLED" ) // Values returns all known values for WebvttAccessibilitySubs. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (WebvttAccessibilitySubs) Values() []WebvttAccessibilitySubs { return []WebvttAccessibilitySubs{ "DISABLED", "ENABLED", } } type WebvttStylePassthrough string // Enum values for WebvttStylePassthrough const ( WebvttStylePassthroughEnabled WebvttStylePassthrough = "ENABLED" WebvttStylePassthroughDisabled WebvttStylePassthrough = "DISABLED" WebvttStylePassthroughStrict WebvttStylePassthrough = "STRICT" ) // Values returns all known values for WebvttStylePassthrough. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (WebvttStylePassthrough) Values() []WebvttStylePassthrough { return []WebvttStylePassthrough{ "ENABLED", "DISABLED", "STRICT", } } type Xavc4kIntraCbgProfileClass string // Enum values for Xavc4kIntraCbgProfileClass const ( Xavc4kIntraCbgProfileClassClass100 Xavc4kIntraCbgProfileClass = "CLASS_100" Xavc4kIntraCbgProfileClassClass300 Xavc4kIntraCbgProfileClass = "CLASS_300" Xavc4kIntraCbgProfileClassClass480 Xavc4kIntraCbgProfileClass = "CLASS_480" ) // Values returns all known values for Xavc4kIntraCbgProfileClass. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (Xavc4kIntraCbgProfileClass) Values() []Xavc4kIntraCbgProfileClass { return []Xavc4kIntraCbgProfileClass{ "CLASS_100", "CLASS_300", "CLASS_480", } } type Xavc4kIntraVbrProfileClass string // Enum values for Xavc4kIntraVbrProfileClass const ( Xavc4kIntraVbrProfileClassClass100 Xavc4kIntraVbrProfileClass = "CLASS_100" Xavc4kIntraVbrProfileClassClass300 Xavc4kIntraVbrProfileClass = "CLASS_300" Xavc4kIntraVbrProfileClassClass480 Xavc4kIntraVbrProfileClass = "CLASS_480" ) // Values returns all known values for Xavc4kIntraVbrProfileClass. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (Xavc4kIntraVbrProfileClass) Values() []Xavc4kIntraVbrProfileClass { return []Xavc4kIntraVbrProfileClass{ "CLASS_100", "CLASS_300", "CLASS_480", } } type Xavc4kProfileBitrateClass string // Enum values for Xavc4kProfileBitrateClass const ( Xavc4kProfileBitrateClassBitrateClass100 Xavc4kProfileBitrateClass = "BITRATE_CLASS_100" Xavc4kProfileBitrateClassBitrateClass140 Xavc4kProfileBitrateClass = "BITRATE_CLASS_140" Xavc4kProfileBitrateClassBitrateClass200 Xavc4kProfileBitrateClass = "BITRATE_CLASS_200" ) // Values returns all known values for Xavc4kProfileBitrateClass. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (Xavc4kProfileBitrateClass) Values() []Xavc4kProfileBitrateClass { return []Xavc4kProfileBitrateClass{ "BITRATE_CLASS_100", "BITRATE_CLASS_140", "BITRATE_CLASS_200", } } type Xavc4kProfileCodecProfile string // Enum values for Xavc4kProfileCodecProfile const ( Xavc4kProfileCodecProfileHigh Xavc4kProfileCodecProfile = "HIGH" Xavc4kProfileCodecProfileHigh422 Xavc4kProfileCodecProfile = "HIGH_422" ) // Values returns all known values for Xavc4kProfileCodecProfile. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (Xavc4kProfileCodecProfile) Values() []Xavc4kProfileCodecProfile { return []Xavc4kProfileCodecProfile{ "HIGH", "HIGH_422", } } type Xavc4kProfileQualityTuningLevel string // Enum values for Xavc4kProfileQualityTuningLevel const ( Xavc4kProfileQualityTuningLevelSinglePass Xavc4kProfileQualityTuningLevel = "SINGLE_PASS" Xavc4kProfileQualityTuningLevelSinglePassHq Xavc4kProfileQualityTuningLevel = "SINGLE_PASS_HQ" Xavc4kProfileQualityTuningLevelMultiPassHq Xavc4kProfileQualityTuningLevel = "MULTI_PASS_HQ" ) // Values returns all known values for Xavc4kProfileQualityTuningLevel. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (Xavc4kProfileQualityTuningLevel) Values() []Xavc4kProfileQualityTuningLevel { return []Xavc4kProfileQualityTuningLevel{ "SINGLE_PASS", "SINGLE_PASS_HQ", "MULTI_PASS_HQ", } } type XavcAdaptiveQuantization string // Enum values for XavcAdaptiveQuantization const ( XavcAdaptiveQuantizationOff XavcAdaptiveQuantization = "OFF" XavcAdaptiveQuantizationAuto XavcAdaptiveQuantization = "AUTO" XavcAdaptiveQuantizationLow XavcAdaptiveQuantization = "LOW" XavcAdaptiveQuantizationMedium XavcAdaptiveQuantization = "MEDIUM" XavcAdaptiveQuantizationHigh XavcAdaptiveQuantization = "HIGH" XavcAdaptiveQuantizationHigher XavcAdaptiveQuantization = "HIGHER" XavcAdaptiveQuantizationMax XavcAdaptiveQuantization = "MAX" ) // Values returns all known values for XavcAdaptiveQuantization. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (XavcAdaptiveQuantization) Values() []XavcAdaptiveQuantization { return []XavcAdaptiveQuantization{ "OFF", "AUTO", "LOW", "MEDIUM", "HIGH", "HIGHER", "MAX", } } type XavcEntropyEncoding string // Enum values for XavcEntropyEncoding const ( XavcEntropyEncodingAuto XavcEntropyEncoding = "AUTO" XavcEntropyEncodingCabac XavcEntropyEncoding = "CABAC" XavcEntropyEncodingCavlc XavcEntropyEncoding = "CAVLC" ) // Values returns all known values for XavcEntropyEncoding. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (XavcEntropyEncoding) Values() []XavcEntropyEncoding { return []XavcEntropyEncoding{ "AUTO", "CABAC", "CAVLC", } } type XavcFlickerAdaptiveQuantization string // Enum values for XavcFlickerAdaptiveQuantization const ( XavcFlickerAdaptiveQuantizationDisabled XavcFlickerAdaptiveQuantization = "DISABLED" XavcFlickerAdaptiveQuantizationEnabled XavcFlickerAdaptiveQuantization = "ENABLED" ) // Values returns all known values for XavcFlickerAdaptiveQuantization. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (XavcFlickerAdaptiveQuantization) Values() []XavcFlickerAdaptiveQuantization { return []XavcFlickerAdaptiveQuantization{ "DISABLED", "ENABLED", } } type XavcFramerateControl string // Enum values for XavcFramerateControl const ( XavcFramerateControlInitializeFromSource XavcFramerateControl = "INITIALIZE_FROM_SOURCE" XavcFramerateControlSpecified XavcFramerateControl = "SPECIFIED" ) // Values returns all known values for XavcFramerateControl. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (XavcFramerateControl) Values() []XavcFramerateControl { return []XavcFramerateControl{ "INITIALIZE_FROM_SOURCE", "SPECIFIED", } } type XavcFramerateConversionAlgorithm string // Enum values for XavcFramerateConversionAlgorithm const ( XavcFramerateConversionAlgorithmDuplicateDrop XavcFramerateConversionAlgorithm = "DUPLICATE_DROP" XavcFramerateConversionAlgorithmInterpolate XavcFramerateConversionAlgorithm = "INTERPOLATE" XavcFramerateConversionAlgorithmFrameformer XavcFramerateConversionAlgorithm = "FRAMEFORMER" ) // Values returns all known values for XavcFramerateConversionAlgorithm. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (XavcFramerateConversionAlgorithm) Values() []XavcFramerateConversionAlgorithm { return []XavcFramerateConversionAlgorithm{ "DUPLICATE_DROP", "INTERPOLATE", "FRAMEFORMER", } } type XavcGopBReference string // Enum values for XavcGopBReference const ( XavcGopBReferenceDisabled XavcGopBReference = "DISABLED" XavcGopBReferenceEnabled XavcGopBReference = "ENABLED" ) // Values returns all known values for XavcGopBReference. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (XavcGopBReference) Values() []XavcGopBReference { return []XavcGopBReference{ "DISABLED", "ENABLED", } } type XavcHdIntraCbgProfileClass string // Enum values for XavcHdIntraCbgProfileClass const ( XavcHdIntraCbgProfileClassClass50 XavcHdIntraCbgProfileClass = "CLASS_50" XavcHdIntraCbgProfileClassClass100 XavcHdIntraCbgProfileClass = "CLASS_100" XavcHdIntraCbgProfileClassClass200 XavcHdIntraCbgProfileClass = "CLASS_200" ) // Values returns all known values for XavcHdIntraCbgProfileClass. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (XavcHdIntraCbgProfileClass) Values() []XavcHdIntraCbgProfileClass { return []XavcHdIntraCbgProfileClass{ "CLASS_50", "CLASS_100", "CLASS_200", } } type XavcHdProfileBitrateClass string // Enum values for XavcHdProfileBitrateClass const ( XavcHdProfileBitrateClassBitrateClass25 XavcHdProfileBitrateClass = "BITRATE_CLASS_25" XavcHdProfileBitrateClassBitrateClass35 XavcHdProfileBitrateClass = "BITRATE_CLASS_35" XavcHdProfileBitrateClassBitrateClass50 XavcHdProfileBitrateClass = "BITRATE_CLASS_50" ) // Values returns all known values for XavcHdProfileBitrateClass. Note that this // can be expanded in the future, and so it is only as up to date as the client. // The ordering of this slice is not guaranteed to be stable across updates. func (XavcHdProfileBitrateClass) Values() []XavcHdProfileBitrateClass { return []XavcHdProfileBitrateClass{ "BITRATE_CLASS_25", "BITRATE_CLASS_35", "BITRATE_CLASS_50", } } type XavcHdProfileQualityTuningLevel string // Enum values for XavcHdProfileQualityTuningLevel const ( XavcHdProfileQualityTuningLevelSinglePass XavcHdProfileQualityTuningLevel = "SINGLE_PASS" XavcHdProfileQualityTuningLevelSinglePassHq XavcHdProfileQualityTuningLevel = "SINGLE_PASS_HQ" XavcHdProfileQualityTuningLevelMultiPassHq XavcHdProfileQualityTuningLevel = "MULTI_PASS_HQ" ) // Values returns all known values for XavcHdProfileQualityTuningLevel. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (XavcHdProfileQualityTuningLevel) Values() []XavcHdProfileQualityTuningLevel { return []XavcHdProfileQualityTuningLevel{ "SINGLE_PASS", "SINGLE_PASS_HQ", "MULTI_PASS_HQ", } } type XavcHdProfileTelecine string // Enum values for XavcHdProfileTelecine const ( XavcHdProfileTelecineNone XavcHdProfileTelecine = "NONE" XavcHdProfileTelecineHard XavcHdProfileTelecine = "HARD" ) // Values returns all known values for XavcHdProfileTelecine. Note that this can // be expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (XavcHdProfileTelecine) Values() []XavcHdProfileTelecine { return []XavcHdProfileTelecine{ "NONE", "HARD", } } type XavcInterlaceMode string // Enum values for XavcInterlaceMode const ( XavcInterlaceModeProgressive XavcInterlaceMode = "PROGRESSIVE" XavcInterlaceModeTopField XavcInterlaceMode = "TOP_FIELD" XavcInterlaceModeBottomField XavcInterlaceMode = "BOTTOM_FIELD" XavcInterlaceModeFollowTopField XavcInterlaceMode = "FOLLOW_TOP_FIELD" XavcInterlaceModeFollowBottomField XavcInterlaceMode = "FOLLOW_BOTTOM_FIELD" ) // Values returns all known values for XavcInterlaceMode. Note that this can be // expanded in the future, and so it is only as up to date as the client. The // ordering of this slice is not guaranteed to be stable across updates. func (XavcInterlaceMode) Values() []XavcInterlaceMode { return []XavcInterlaceMode{ "PROGRESSIVE", "TOP_FIELD", "BOTTOM_FIELD", "FOLLOW_TOP_FIELD", "FOLLOW_BOTTOM_FIELD", } } type XavcProfile string // Enum values for XavcProfile const ( XavcProfileXavcHdIntraCbg XavcProfile = "XAVC_HD_INTRA_CBG" XavcProfileXavc4kIntraCbg XavcProfile = "XAVC_4K_INTRA_CBG" XavcProfileXavc4kIntraVbr XavcProfile = "XAVC_4K_INTRA_VBR" XavcProfileXavcHd XavcProfile = "XAVC_HD" XavcProfileXavc4k XavcProfile = "XAVC_4K" ) // Values returns all known values for XavcProfile. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (XavcProfile) Values() []XavcProfile { return []XavcProfile{ "XAVC_HD_INTRA_CBG", "XAVC_4K_INTRA_CBG", "XAVC_4K_INTRA_VBR", "XAVC_HD", "XAVC_4K", } } type XavcSlowPal string // Enum values for XavcSlowPal const ( XavcSlowPalDisabled XavcSlowPal = "DISABLED" XavcSlowPalEnabled XavcSlowPal = "ENABLED" ) // Values returns all known values for XavcSlowPal. Note that this can be expanded // in the future, and so it is only as up to date as the client. The ordering of // this slice is not guaranteed to be stable across updates. func (XavcSlowPal) Values() []XavcSlowPal { return []XavcSlowPal{ "DISABLED", "ENABLED", } } type XavcSpatialAdaptiveQuantization string // Enum values for XavcSpatialAdaptiveQuantization const ( XavcSpatialAdaptiveQuantizationDisabled XavcSpatialAdaptiveQuantization = "DISABLED" XavcSpatialAdaptiveQuantizationEnabled XavcSpatialAdaptiveQuantization = "ENABLED" ) // Values returns all known values for XavcSpatialAdaptiveQuantization. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (XavcSpatialAdaptiveQuantization) Values() []XavcSpatialAdaptiveQuantization { return []XavcSpatialAdaptiveQuantization{ "DISABLED", "ENABLED", } } type XavcTemporalAdaptiveQuantization string // Enum values for XavcTemporalAdaptiveQuantization const ( XavcTemporalAdaptiveQuantizationDisabled XavcTemporalAdaptiveQuantization = "DISABLED" XavcTemporalAdaptiveQuantizationEnabled XavcTemporalAdaptiveQuantization = "ENABLED" ) // Values returns all known values for XavcTemporalAdaptiveQuantization. Note that // this can be expanded in the future, and so it is only as up to date as the // client. The ordering of this slice is not guaranteed to be stable across // updates. func (XavcTemporalAdaptiveQuantization) Values() []XavcTemporalAdaptiveQuantization { return []XavcTemporalAdaptiveQuantization{ "DISABLED", "ENABLED", } }
8,594
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package types import ( "fmt" smithy "github.com/aws/smithy-go" ) // The service can't process your request because of a problem in the request. // Please check your request form and syntax. type BadRequestException struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde } func (e *BadRequestException) Error() string { return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) } func (e *BadRequestException) ErrorMessage() string { if e.Message == nil { return "" } return *e.Message } func (e *BadRequestException) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { return "BadRequestException" } return *e.ErrorCodeOverride } func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service couldn't complete your request because there is a conflict with the // current state of the resource. type ConflictException struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde } func (e *ConflictException) Error() string { return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) } func (e *ConflictException) ErrorMessage() string { if e.Message == nil { return "" } return *e.Message } func (e *ConflictException) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { return "ConflictException" } return *e.ErrorCodeOverride } func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // You don't have permissions for this action with the credentials you sent. type ForbiddenException struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde } func (e *ForbiddenException) Error() string { return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) } func (e *ForbiddenException) ErrorMessage() string { if e.Message == nil { return "" } return *e.Message } func (e *ForbiddenException) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { return "ForbiddenException" } return *e.ErrorCodeOverride } func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The service encountered an unexpected condition and can't fulfill your request. type InternalServerErrorException struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde } func (e *InternalServerErrorException) Error() string { return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) } func (e *InternalServerErrorException) ErrorMessage() string { if e.Message == nil { return "" } return *e.Message } func (e *InternalServerErrorException) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { return "InternalServerErrorException" } return *e.ErrorCodeOverride } func (e *InternalServerErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } // The resource you requested doesn't exist. type NotFoundException struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde } func (e *NotFoundException) Error() string { return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) } func (e *NotFoundException) ErrorMessage() string { if e.Message == nil { return "" } return *e.Message } func (e *NotFoundException) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { return "NotFoundException" } return *e.ErrorCodeOverride } func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // Too many requests have been sent in too short of a time. The service limits the // rate at which it will accept requests. type TooManyRequestsException struct { Message *string ErrorCodeOverride *string noSmithyDocumentSerde } func (e *TooManyRequestsException) Error() string { return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) } func (e *TooManyRequestsException) ErrorMessage() string { if e.Message == nil { return "" } return *e.Message } func (e *TooManyRequestsException) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { return "TooManyRequestsException" } return *e.ErrorCodeOverride } func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
168
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package types import ( smithydocument "github.com/aws/smithy-go/document" "time" ) // Required when you set (Codec) under (AudioDescriptions)>(CodecSettings) to the // value AAC. The service accepts one of two mutually exclusive groups of AAC // settings--VBR and CBR. To select one of these modes, set the value of Bitrate // control mode (rateControlMode) to "VBR" or "CBR". In VBR mode, you control the // audio quality with the setting VBR quality (vbrQuality). In CBR mode, you use // the setting Bitrate (bitrate). Defaults and valid values depend on the rate // control mode. type AacSettings struct { // Choose BROADCASTER_MIXED_AD when the input contains pre-mixed main audio + // audio description (AD) as a stereo pair. The value for AudioType will be set to // 3, which signals to downstream systems that this stream contains "broadcaster // mixed AD". Note that the input received by the encoder must contain pre-mixed // audio; the encoder does not perform the mixing. When you choose // BROADCASTER_MIXED_AD, the encoder ignores any values you provide in AudioType // and FollowInputAudioType. Choose NORMAL when the input does not contain // pre-mixed audio + audio description (AD). In this case, the encoder will use any // values you provide for AudioType and FollowInputAudioType. AudioDescriptionBroadcasterMix AacAudioDescriptionBroadcasterMix // Specify the average bitrate in bits per second. The set of valid values for // this setting is: 6000, 8000, 10000, 12000, 14000, 16000, 20000, 24000, 28000, // 32000, 40000, 48000, 56000, 64000, 80000, 96000, 112000, 128000, 160000, 192000, // 224000, 256000, 288000, 320000, 384000, 448000, 512000, 576000, 640000, 768000, // 896000, 1024000. The value you set is also constrained by the values that you // choose for Profile (codecProfile), Bitrate control mode (codingMode), and Sample // rate (sampleRate). Default values depend on Bitrate control mode and Profile. Bitrate int32 // AAC Profile. CodecProfile AacCodecProfile // The Coding mode that you specify determines the number of audio channels and // the audio channel layout metadata in your AAC output. Valid coding modes depend // on the Rate control mode and Profile that you select. The following list shows // the number of audio channels and channel layout for each coding mode. * 1.0 // Audio Description (Receiver Mix): One channel, C. Includes audio description // data from your stereo input. For more information see ETSI TS 101 154 Annex E. * // 1.0 Mono: One channel, C. * 2.0 Stereo: Two channels, L, R. * 5.1 Surround: Six // channels, C, L, R, Ls, Rs, LFE. CodingMode AacCodingMode // Rate Control Mode. RateControlMode AacRateControlMode // Enables LATM/LOAS AAC output. Note that if you use LATM/LOAS AAC in an output, // you must choose "No container" for the output container. RawFormat AacRawFormat // Specify the Sample rate in Hz. Valid sample rates depend on the Profile and // Coding mode that you select. The following list shows valid sample rates for // each Profile and Coding mode. * LC Profile, Coding mode 1.0, 2.0, and Receiver // Mix: 8000, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 88200, 96000. * LC // Profile, Coding mode 5.1: 32000, 44100, 48000, 96000. * HEV1 Profile, Coding // mode 1.0 and Receiver Mix: 22050, 24000, 32000, 44100, 48000. * HEV1 Profile, // Coding mode 2.0 and 5.1: 32000, 44100, 48000, 96000. * HEV2 Profile, Coding mode // 2.0: 22050, 24000, 32000, 44100, 48000. SampleRate int32 // Use MPEG-2 AAC instead of MPEG-4 AAC audio for raw or MPEG-2 Transport Stream // containers. Specification AacSpecification // VBR Quality Level - Only used if rate_control_mode is VBR. VbrQuality AacVbrQuality noSmithyDocumentSerde } // Required when you set (Codec) under (AudioDescriptions)>(CodecSettings) to the // value AC3. type Ac3Settings struct { // Specify the average bitrate in bits per second. The bitrate that you specify // must be a multiple of 8000 within the allowed minimum and maximum values. Leave // blank to use the default bitrate for the coding mode you select according ETSI // TS 102 366. Valid bitrates for coding mode 1/0: Default: 96000. Minimum: 64000. // Maximum: 128000. Valid bitrates for coding mode 1/1: Default: 192000. Minimum: // 128000. Maximum: 384000. Valid bitrates for coding mode 2/0: Default: 192000. // Minimum: 128000. Maximum: 384000. Valid bitrates for coding mode 3/2 with FLE: // Default: 384000. Minimum: 384000. Maximum: 640000. Bitrate int32 // Specify the bitstream mode for the AC-3 stream that the encoder emits. For more // information about the AC3 bitstream mode, see ATSC A/52-2012 (Annex E). BitstreamMode Ac3BitstreamMode // Dolby Digital coding mode. Determines number of channels. CodingMode Ac3CodingMode // Sets the dialnorm for the output. If blank and input audio is Dolby Digital, // dialnorm will be passed through. Dialnorm int32 // Choose the Dolby Digital dynamic range control (DRC) profile that MediaConvert // uses when encoding the metadata in the Dolby Digital stream for the line // operating mode. Related setting: When you use this setting, MediaConvert ignores // any value you provide for Dynamic range compression profile // (DynamicRangeCompressionProfile). For information about the Dolby Digital DRC // operating modes and profiles, see the Dynamic Range Control chapter of the Dolby // Metadata Guide at // https://developer.dolby.com/globalassets/professional/documents/dolby-metadata-guide.pdf. DynamicRangeCompressionLine Ac3DynamicRangeCompressionLine // When you want to add Dolby dynamic range compression (DRC) signaling to your // output stream, we recommend that you use the mode-specific settings instead of // Dynamic range compression profile (DynamicRangeCompressionProfile). The // mode-specific settings are Dynamic range compression profile, line mode // (dynamicRangeCompressionLine) and Dynamic range compression profile, RF mode // (dynamicRangeCompressionRf). Note that when you specify values for all three // settings, MediaConvert ignores the value of this setting in favor of the // mode-specific settings. If you do use this setting instead of the mode-specific // settings, choose None (NONE) to leave out DRC signaling. Keep the default Film // standard (FILM_STANDARD) to set the profile to Dolby's film standard profile for // all operating modes. DynamicRangeCompressionProfile Ac3DynamicRangeCompressionProfile // Choose the Dolby Digital dynamic range control (DRC) profile that MediaConvert // uses when encoding the metadata in the Dolby Digital stream for the RF operating // mode. Related setting: When you use this setting, MediaConvert ignores any value // you provide for Dynamic range compression profile // (DynamicRangeCompressionProfile). For information about the Dolby Digital DRC // operating modes and profiles, see the Dynamic Range Control chapter of the Dolby // Metadata Guide at // https://developer.dolby.com/globalassets/professional/documents/dolby-metadata-guide.pdf. DynamicRangeCompressionRf Ac3DynamicRangeCompressionRf // Applies a 120Hz lowpass filter to the LFE channel prior to encoding. Only valid // with 3_2_LFE coding mode. LfeFilter Ac3LfeFilter // When set to FOLLOW_INPUT, encoder metadata will be sourced from the DD, DD+, or // DolbyE decoder that supplied this audio data. If audio was not supplied from one // of these streams, then the static metadata settings will be used. MetadataControl Ac3MetadataControl // This value is always 48000. It represents the sample rate in Hz. SampleRate int32 noSmithyDocumentSerde } // Accelerated transcoding can significantly speed up jobs with long, visually // complex content. type AccelerationSettings struct { // Specify the conditions when the service will run your job with accelerated // transcoding. // // This member is required. Mode AccelerationMode noSmithyDocumentSerde } // Optional settings for Advanced input filter when you set Advanced input filter // to Enabled. type AdvancedInputFilterSettings struct { // Add texture and detail to areas of your input video content that were lost // after applying the Advanced input filter. To adaptively add texture and reduce // softness: Choose Enabled. To not add any texture: Keep the default value, // Disabled. We recommend that you choose Disabled for input video content that // doesn't have texture, including screen recordings, computer graphics, or // cartoons. AddTexture AdvancedInputFilterAddTexture // Optionally specify the amount of sharpening to apply when you use the Advanced // input filter. Sharpening adds contrast to the edges of your video content and // can reduce softness. To apply no sharpening: Keep the default value, Off. To // apply a minimal amount of sharpening choose Low, or for the maximum choose High. Sharpening AdvancedInputFilterSharpen noSmithyDocumentSerde } // Required when you set (Codec) under (AudioDescriptions)>(CodecSettings) to the // value AIFF. type AiffSettings struct { // Specify Bit depth (BitDepth), in bits per sample, to choose the encoding // quality for this audio track. BitDepth int32 // Specify the number of channels in this output audio track. Valid values are 1 // and even numbers up to 64. For example, 1, 2, 4, 6, and so on, up to 64. Channels int32 // Sample rate in hz. SampleRate int32 noSmithyDocumentSerde } // Use Allowed renditions to specify a list of possible resolutions in your ABR // stack. * MediaConvert will create an ABR stack exclusively from the list of // resolutions that you specify. * Some resolutions in the Allowed renditions list // may not be included, however you can force a resolution to be included by // setting Required to ENABLED. * You must specify at least one resolution that is // greater than or equal to any resolutions that you specify in Min top rendition // size or Min bottom rendition size. * If you specify Allowed renditions, you must // not specify a separate rule for Force include renditions. type AllowedRenditionSize struct { // Use Height to define the video resolution height, in pixels, for this rule. Height int32 // Set to ENABLED to force a rendition to be included. Required RequiredFlag // Use Width to define the video resolution width, in pixels, for this rule. Width int32 noSmithyDocumentSerde } // Settings for ancillary captions source. type AncillarySourceSettings struct { // Specify whether this set of input captions appears in your outputs in both 608 // and 708 format. If you choose Upconvert (UPCONVERT), MediaConvert includes the // captions data in two ways: it passes the 608 data through using the 608 // compatibility bytes fields of the 708 wrapper, and it also translates the 608 // data into 708. Convert608To708 AncillaryConvert608To708 // Specifies the 608 channel number in the ancillary data track from which to // extract captions. Unused for passthrough. SourceAncillaryChannelNumber int32 // By default, the service terminates any unterminated captions at the end of each // input. If you want the caption to continue onto your next input, disable this // setting. TerminateCaptions AncillaryTerminateCaptions noSmithyDocumentSerde } // When you mimic a multi-channel audio layout with multiple mono-channel tracks, // you can tag each channel layout manually. For example, you would tag the tracks // that contain your left, right, and center audio with Left (L), Right (R), and // Center (C), respectively. When you don't specify a value, MediaConvert labels // your track as Center (C) by default. To use audio layout tagging, your output // must be in a QuickTime (.mov) container; your audio codec must be AAC, WAV, or // AIFF; and you must set up your audio track to have only one channel. type AudioChannelTaggingSettings struct { // You can add a tag for this mono-channel audio track to mimic its placement in a // multi-channel layout. For example, if this track is the left surround channel, // choose Left surround (LS). ChannelTag AudioChannelTag noSmithyDocumentSerde } // Settings related to audio encoding. The settings in this group vary depending // on the value that you choose for your audio codec. type AudioCodecSettings struct { // Required when you set (Codec) under (AudioDescriptions)>(CodecSettings) to the // value AAC. The service accepts one of two mutually exclusive groups of AAC // settings--VBR and CBR. To select one of these modes, set the value of Bitrate // control mode (rateControlMode) to "VBR" or "CBR". In VBR mode, you control the // audio quality with the setting VBR quality (vbrQuality). In CBR mode, you use // the setting Bitrate (bitrate). Defaults and valid values depend on the rate // control mode. AacSettings *AacSettings // Required when you set (Codec) under (AudioDescriptions)>(CodecSettings) to the // value AC3. Ac3Settings *Ac3Settings // Required when you set (Codec) under (AudioDescriptions)>(CodecSettings) to the // value AIFF. AiffSettings *AiffSettings // Choose the audio codec for this output. Note that the option Dolby Digital // passthrough (PASSTHROUGH) applies only to Dolby Digital and Dolby Digital Plus // audio inputs. Make sure that you choose a codec that's supported with your // output container: // https://docs.aws.amazon.com/mediaconvert/latest/ug/reference-codecs-containers.html#reference-codecs-containers-output-audio // For audio-only outputs, make sure that both your input audio codec and your // output audio codec are supported for audio-only workflows. For more information, // see: // https://docs.aws.amazon.com/mediaconvert/latest/ug/reference-codecs-containers-input.html#reference-codecs-containers-input-audio-only // and // https://docs.aws.amazon.com/mediaconvert/latest/ug/reference-codecs-containers.html#audio-only-output Codec AudioCodec // Required when you set (Codec) under (AudioDescriptions)>(CodecSettings) to the // value EAC3_ATMOS. Eac3AtmosSettings *Eac3AtmosSettings // Required when you set (Codec) under (AudioDescriptions)>(CodecSettings) to the // value EAC3. Eac3Settings *Eac3Settings // Required when you set (Codec) under (AudioDescriptions)>(CodecSettings) to the // value MP2. Mp2Settings *Mp2Settings // Required when you set Codec, under AudioDescriptions>CodecSettings, to the // value MP3. Mp3Settings *Mp3Settings // Required when you set Codec, under AudioDescriptions>CodecSettings, to the // value OPUS. OpusSettings *OpusSettings // Required when you set Codec, under AudioDescriptions>CodecSettings, to the // value Vorbis. VorbisSettings *VorbisSettings // Required when you set (Codec) under (AudioDescriptions)>(CodecSettings) to the // value WAV. WavSettings *WavSettings noSmithyDocumentSerde } // Settings related to one audio tab on the MediaConvert console. In your job // JSON, an instance of AudioDescription is equivalent to one audio tab in the // console. Usually, one audio tab corresponds to one output audio track. Depending // on how you set up your input audio selectors and whether you use audio selector // groups, one audio tab can correspond to a group of output audio tracks. type AudioDescription struct { // When you mimic a multi-channel audio layout with multiple mono-channel tracks, // you can tag each channel layout manually. For example, you would tag the tracks // that contain your left, right, and center audio with Left (L), Right (R), and // Center (C), respectively. When you don't specify a value, MediaConvert labels // your track as Center (C) by default. To use audio layout tagging, your output // must be in a QuickTime (.mov) container; your audio codec must be AAC, WAV, or // AIFF; and you must set up your audio track to have only one channel. AudioChannelTaggingSettings *AudioChannelTaggingSettings // Advanced audio normalization settings. Ignore these settings unless you need to // comply with a loudness standard. AudioNormalizationSettings *AudioNormalizationSettings // Specifies which audio data to use from each input. In the simplest case, // specify an "Audio Selector":#inputs-audio_selector by name based on its order // within each input. For example if you specify "Audio Selector 3", then the third // audio selector will be used from each input. If an input does not have an "Audio // Selector 3", then the audio selector marked as "default" in that input will be // used. If there is no audio selector marked as "default", silence will be // inserted for the duration of that input. Alternatively, an "Audio Selector // Group":#inputs-audio_selector_group name may be specified, with similar // default/silence behavior. If no audio_source_name is specified, then "Audio // Selector 1" will be chosen automatically. AudioSourceName *string // Applies only if Follow Input Audio Type is unchecked (false). A number between // 0 and 255. The following are defined in ISO-IEC 13818-1: 0 = Undefined, 1 = // Clean Effects, 2 = Hearing Impaired, 3 = Visually Impaired Commentary, 4-255 = // Reserved. AudioType int32 // When set to FOLLOW_INPUT, if the input contains an ISO 639 audio_type, then // that value is passed through to the output. If the input contains no ISO 639 // audio_type, the value in Audio Type is included in the output. Otherwise the // value in Audio Type is included in the output. Note that this field and // audioType are both ignored if audioDescriptionBroadcasterMix is set to // BROADCASTER_MIXED_AD. AudioTypeControl AudioTypeControl // Settings related to audio encoding. The settings in this group vary depending // on the value that you choose for your audio codec. CodecSettings *AudioCodecSettings // Specify the language for this audio output track. The service puts this // language code into your output audio track when you set Language code control // (AudioLanguageCodeControl) to Use configured (USE_CONFIGURED). The service also // uses your specified custom language code when you set Language code control // (AudioLanguageCodeControl) to Follow input (FOLLOW_INPUT), but your input file // doesn't specify a language code. For all outputs, you can use an ISO 639-2 or // ISO 639-3 code. For streaming outputs, you can also use any other code in the // full RFC-5646 specification. Streaming outputs are those that are in one of the // following output groups: CMAF, DASH ISO, Apple HLS, or Microsoft Smooth // Streaming. CustomLanguageCode *string // Indicates the language of the audio output track. The ISO 639 language // specified in the 'Language Code' drop down will be used when 'Follow Input // Language Code' is not selected or when 'Follow Input Language Code' is selected // but there is no ISO 639 language code specified by the input. LanguageCode LanguageCode // Specify which source for language code takes precedence for this audio track. // When you choose Follow input (FOLLOW_INPUT), the service uses the language code // from the input track if it's present. If there's no languge code on the input // track, the service uses the code that you specify in the setting Language code // (languageCode or customLanguageCode). When you choose Use configured // (USE_CONFIGURED), the service uses the language code that you specify. LanguageCodeControl AudioLanguageCodeControl // Advanced audio remixing settings. RemixSettings *RemixSettings // Specify a label for this output audio stream. For example, "English", "Director // commentary", or "track_2". For streaming outputs, MediaConvert passes this // information into destination manifests for display on the end-viewer's player // device. For outputs in other output groups, the service ignores this setting. StreamName *string noSmithyDocumentSerde } // Advanced audio normalization settings. Ignore these settings unless you need to // comply with a loudness standard. type AudioNormalizationSettings struct { // Choose one of the following audio normalization algorithms: ITU-R BS.1770-1: // Ungated loudness. A measurement of ungated average loudness for an entire piece // of content, suitable for measurement of short-form content under ATSC // recommendation A/85. Supports up to 5.1 audio channels. ITU-R BS.1770-2: Gated // loudness. A measurement of gated average loudness compliant with the // requirements of EBU-R128. Supports up to 5.1 audio channels. ITU-R BS.1770-3: // Modified peak. The same loudness measurement algorithm as 1770-2, with an // updated true peak measurement. ITU-R BS.1770-4: Higher channel count. Allows for // more audio channels than the other algorithms, including configurations such as // 7.1. Algorithm AudioNormalizationAlgorithm // When enabled the output audio is corrected using the chosen algorithm. If // disabled, the audio will be measured but not adjusted. AlgorithmControl AudioNormalizationAlgorithmControl // Content measuring above this level will be corrected to the target level. // Content measuring below this level will not be corrected. CorrectionGateLevel int32 // If set to LOG, log each output's audio track loudness to a CSV file. LoudnessLogging AudioNormalizationLoudnessLogging // If set to TRUE_PEAK, calculate and log the TruePeak for each output's audio // track loudness. PeakCalculation AudioNormalizationPeakCalculation // When you use Audio normalization (AudioNormalizationSettings), optionally use // this setting to specify a target loudness. If you don't specify a value here, // the encoder chooses a value for you, based on the algorithm that you choose for // Algorithm (algorithm). If you choose algorithm 1770-1, the encoder will choose // -24 LKFS; otherwise, the encoder will choose -23 LKFS. TargetLkfs float64 // Specify the True-peak limiter threshold in decibels relative to full scale // (dBFS). The peak inter-audio sample loudness in your output will be limited to // the value that you specify, without affecting the overall target LKFS. Enter a // value from 0 to -8. Leave blank to use the default value 0. TruePeakLimiterThreshold float64 noSmithyDocumentSerde } // Use Audio selectors (AudioSelectors) to specify a track or set of tracks from // the input that you will use in your outputs. You can use multiple Audio // selectors per input. type AudioSelector struct { // Apply audio timing corrections to help synchronize audio and video in your // output. To apply timing corrections, your input must meet the following // requirements: * Container: MP4, or MOV, with an accurate time-to-sample (STTS) // table. * Audio track: AAC. Choose from the following audio timing correction // settings: * Disabled (Default): Apply no correction. * Auto: Recommended for // most inputs. MediaConvert analyzes the audio timing in your input and determines // which correction setting to use, if needed. * Track: Adjust the duration of each // audio frame by a constant amount to align the audio track length with STTS // duration. Track-level correction does not affect pitch, and is recommended for // tonal audio content such as music. * Frame: Adjust the duration of each audio // frame by a variable amount to align audio frames with STTS timestamps. No // corrections are made to already-aligned frames. Frame-level correction may // affect the pitch of corrected frames, and is recommended for atonal audio // content such as speech or percussion. AudioDurationCorrection AudioDurationCorrection // Selects a specific language code from within an audio source, using the ISO // 639-2 or ISO 639-3 three-letter language code CustomLanguageCode *string // Enable this setting on one audio selector to set it as the default for the job. // The service uses this default for outputs where it can't find the specified // input audio. If you don't set a default, those outputs have no audio. DefaultSelection AudioDefaultSelection // Specifies audio data from an external file source. ExternalAudioFileInput *string // Settings specific to audio sources in an HLS alternate rendition group. Specify // the properties (renditionGroupId, renditionName or renditionLanguageCode) to // identify the unique audio track among the alternative rendition groups present // in the HLS manifest. If no unique track is found, or multiple tracks match the // properties provided, the job fails. If no properties in // hlsRenditionGroupSettings are specified, the default audio track within the // video segment is chosen. If there is no audio within video segment, the // alternative audio with DEFAULT=YES is chosen instead. HlsRenditionGroupSettings *HlsRenditionGroupSettings // Selects a specific language code from within an audio source. LanguageCode LanguageCode // Specifies a time delta in milliseconds to offset the audio from the input video. Offset int32 // Selects a specific PID from within an audio source (e.g. 257 selects PID 0x101). Pids []int32 // Use this setting for input streams that contain Dolby E, to have the service // extract specific program data from the track. To select multiple programs, // create multiple selectors with the same Track and different Program numbers. In // the console, this setting is visible when you set Selector type to Track. Choose // the program number from the dropdown list. If you are sending a JSON file, // provide the program ID, which is part of the audio metadata. If your input file // has incorrect metadata, you can choose All channels instead of a program number // to have the service ignore the program IDs and include all the programs in the // track. ProgramSelection int32 // Use these settings to reorder the audio channels of one input to match those of // another input. This allows you to combine the two files into a single output, // one after the other. RemixSettings *RemixSettings // Specifies the type of the audio selector. SelectorType AudioSelectorType // Identify a track from the input audio to include in this selector by entering // the track index number. To include several tracks in a single audio selector, // specify multiple tracks as follows. Using the console, enter a comma-separated // list. For examle, type "1,2,3" to include tracks 1 through 3. Specifying // directly in your JSON job file, provide the track numbers in an array. For // example, "tracks": [1,2,3]. Tracks []int32 noSmithyDocumentSerde } // Use audio selector groups to combine multiple sidecar audio inputs so that you // can assign them to a single output audio tab (AudioDescription). Note that, if // you're working with embedded audio, it's simpler to assign multiple input tracks // into a single audio selector rather than use an audio selector group. type AudioSelectorGroup struct { // Name of an Audio Selector within the same input to include in the group. Audio // selector names are standardized, based on their order within the input (e.g., // "Audio Selector 1"). The audio selector name parameter can be repeated to add // any number of audio selectors to the group. AudioSelectorNames []string noSmithyDocumentSerde } // Specify one or more Automated ABR rule types. Note: Force include and Allowed // renditions are mutually exclusive. type AutomatedAbrRule struct { // When customer adds the allowed renditions rule for auto ABR ladder, they are // required to add at leat one rendition to allowedRenditions list AllowedRenditions []AllowedRenditionSize // When customer adds the force include renditions rule for auto ABR ladder, they // are required to add at leat one rendition to forceIncludeRenditions list ForceIncludeRenditions []ForceIncludeRenditionSize // Use Min bottom rendition size to specify a minimum size for the lowest // resolution in your ABR stack. * The lowest resolution in your ABR stack will be // equal to or greater than the value that you enter. For example: If you specify // 640x360 the lowest resolution in your ABR stack will be equal to or greater than // to 640x360. * If you specify a Min top rendition size rule, the value that you // specify for Min bottom rendition size must be less than, or equal to, Min top // rendition size. MinBottomRenditionSize *MinBottomRenditionSize // Use Min top rendition size to specify a minimum size for the highest resolution // in your ABR stack. * The highest resolution in your ABR stack will be equal to // or greater than the value that you enter. For example: If you specify 1280x720 // the highest resolution in your ABR stack will be equal to or greater than // 1280x720. * If you specify a value for Max resolution, the value that you // specify for Min top rendition size must be less than, or equal to, Max // resolution. MinTopRenditionSize *MinTopRenditionSize // Use Min top rendition size to specify a minimum size for the highest resolution // in your ABR stack. * The highest resolution in your ABR stack will be equal to // or greater than the value that you enter. For example: If you specify 1280x720 // the highest resolution in your ABR stack will be equal to or greater than // 1280x720. * If you specify a value for Max resolution, the value that you // specify for Min top rendition size must be less than, or equal to, Max // resolution. Use Min bottom rendition size to specify a minimum size for the // lowest resolution in your ABR stack. * The lowest resolution in your ABR stack // will be equal to or greater than the value that you enter. For example: If you // specify 640x360 the lowest resolution in your ABR stack will be equal to or // greater than to 640x360. * If you specify a Min top rendition size rule, the // value that you specify for Min bottom rendition size must be less than, or equal // to, Min top rendition size. Use Force include renditions to specify one or more // resolutions to include your ABR stack. * (Recommended) To optimize automated // ABR, specify as few resolutions as possible. * (Required) The number of // resolutions that you specify must be equal to, or less than, the Max renditions // setting. * If you specify a Min top rendition size rule, specify at least one // resolution that is equal to, or greater than, Min top rendition size. * If you // specify a Min bottom rendition size rule, only specify resolutions that are // equal to, or greater than, Min bottom rendition size. * If you specify a Force // include renditions rule, do not specify a separate rule for Allowed renditions. // * Note: The ABR stack may include other resolutions that you do not specify // here, depending on the Max renditions setting. Use Allowed renditions to specify // a list of possible resolutions in your ABR stack. * (Required) The number of // resolutions that you specify must be equal to, or greater than, the Max // renditions setting. * MediaConvert will create an ABR stack exclusively from the // list of resolutions that you specify. * Some resolutions in the Allowed // renditions list may not be included, however you can force a resolution to be // included by setting Required to ENABLED. * You must specify at least one // resolution that is greater than or equal to any resolutions that you specify in // Min top rendition size or Min bottom rendition size. * If you specify Allowed // renditions, you must not specify a separate rule for Force include renditions. Type RuleType noSmithyDocumentSerde } // Use automated ABR to have MediaConvert set up the renditions in your ABR // package for you automatically, based on characteristics of your input video. // This feature optimizes video quality while minimizing the overall size of your // ABR package. type AutomatedAbrSettings struct { // Optional. The maximum target bit rate used in your automated ABR stack. Use // this value to set an upper limit on the bandwidth consumed by the // highest-quality rendition. This is the rendition that is delivered to viewers // with the fastest internet connections. If you don't specify a value, // MediaConvert uses 8,000,000 (8 mb/s) by default. MaxAbrBitrate int32 // Optional. The maximum number of renditions that MediaConvert will create in // your automated ABR stack. The number of renditions is determined automatically, // based on analysis of each job, but will never exceed this limit. When you set // this to Auto in the console, which is equivalent to excluding it from your JSON // job specification, MediaConvert defaults to a limit of 15. MaxRenditions int32 // Optional. The minimum target bitrate used in your automated ABR stack. Use this // value to set a lower limit on the bitrate of video delivered to viewers with // slow internet connections. If you don't specify a value, MediaConvert uses // 600,000 (600 kb/s) by default. MinAbrBitrate int32 // Optional. Use Automated ABR rules to specify restrictions for the rendition // sizes MediaConvert will create in your ABR stack. You can use these rules if // your ABR workflow has specific rendition size requirements, but you still want // MediaConvert to optimize for video quality and overall file size. Rules []AutomatedAbrRule noSmithyDocumentSerde } // Use automated encoding to have MediaConvert choose your encoding settings for // you, based on characteristics of your input video. type AutomatedEncodingSettings struct { // Use automated ABR to have MediaConvert set up the renditions in your ABR // package for you automatically, based on characteristics of your input video. // This feature optimizes video quality while minimizing the overall size of your // ABR package. AbrSettings *AutomatedAbrSettings noSmithyDocumentSerde } // Settings for quality-defined variable bitrate encoding with the AV1 codec. Use // these settings only when you set QVBR for Rate control mode (RateControlMode). type Av1QvbrSettings struct { // Use this setting only when you set Rate control mode (RateControlMode) to QVBR. // Specify the target quality level for this output. MediaConvert determines the // right number of bits to use for each part of the video to maintain the video // quality that you specify. When you keep the default value, AUTO, MediaConvert // picks a quality level for you, based on characteristics of your input video. If // you prefer to specify a quality level, specify a number from 1 through 10. Use // higher numbers for greater quality. Level 10 results in nearly lossless // compression. The quality level for most broadcast-quality transcodes is between // 6 and 9. Optionally, to specify a value between whole numbers, also provide a // value for the setting qvbrQualityLevelFineTune. For example, if you want your // QVBR quality level to be 7.33, set qvbrQualityLevel to 7 and set // qvbrQualityLevelFineTune to .33. QvbrQualityLevel int32 // Optional. Specify a value here to set the QVBR quality to a level that is // between whole numbers. For example, if you want your QVBR quality level to be // 7.33, set qvbrQualityLevel to 7 and set qvbrQualityLevelFineTune to .33. // MediaConvert rounds your QVBR quality level to the nearest third of a whole // number. For example, if you set qvbrQualityLevel to 7 and you set // qvbrQualityLevelFineTune to .25, your actual QVBR quality level is 7.33. QvbrQualityLevelFineTune float64 noSmithyDocumentSerde } // Required when you set Codec, under VideoDescription>CodecSettings to the value // AV1. type Av1Settings struct { // Specify the strength of any adaptive quantization filters that you enable. The // value that you choose here applies to Spatial adaptive quantization // (spatialAdaptiveQuantization). AdaptiveQuantization Av1AdaptiveQuantization // Specify the Bit depth (Av1BitDepth). You can choose 8-bit (BIT_8) or 10-bit // (BIT_10). BitDepth Av1BitDepth // If you are using the console, use the Framerate setting to specify the frame // rate for this output. If you want to keep the same frame rate as the input // video, choose Follow source. If you want to do frame rate conversion, choose a // frame rate from the dropdown list or choose Custom. The framerates shown in the // dropdown list are decimal approximations of fractions. If you choose Custom, // specify your frame rate as a fraction. If you are creating your transcoding job // specification as a JSON file without the console, use FramerateControl to // specify which value the service uses for the frame rate for this output. Choose // INITIALIZE_FROM_SOURCE if you want the service to use the frame rate from the // input. Choose SPECIFIED if you want the service to use the frame rate you // specify in the settings FramerateNumerator and FramerateDenominator. FramerateControl Av1FramerateControl // Choose the method that you want MediaConvert to use when increasing or // decreasing the frame rate. For numerically simple conversions, such as 60 fps to // 30 fps: We recommend that you keep the default value, Drop duplicate. For // numerically complex conversions, to avoid stutter: Choose Interpolate. This // results in a smooth picture, but might introduce undesirable video artifacts. // For complex frame rate conversions, especially if your source video has already // been converted from its original cadence: Choose FrameFormer to do // motion-compensated interpolation. FrameFormer uses the best conversion method // frame by frame. Note that using FrameFormer increases the transcoding time and // incurs a significant add-on cost. When you choose FrameFormer, your input video // resolution must be at least 128x96. FramerateConversionAlgorithm Av1FramerateConversionAlgorithm // When you use the API for transcode jobs that use frame rate conversion, specify // the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use // FramerateDenominator to specify the denominator of this fraction. In this // example, use 1001 for the value of FramerateDenominator. When you use the // console for transcode jobs that use frame rate conversion, provide the value as // a decimal number for Framerate. In this example, specify 23.976. FramerateDenominator int32 // When you use the API for transcode jobs that use frame rate conversion, specify // the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use // FramerateNumerator to specify the numerator of this fraction. In this example, // use 24000 for the value of FramerateNumerator. When you use the console for // transcode jobs that use frame rate conversion, provide the value as a decimal // number for Framerate. In this example, specify 23.976. FramerateNumerator int32 // Specify the GOP length (keyframe interval) in frames. With AV1, MediaConvert // doesn't support GOP length in seconds. This value must be greater than zero and // preferably equal to 1 + ((numberBFrames + 1) * x), where x is an integer value. GopSize float64 // Maximum bitrate in bits/second. For example, enter five megabits per second as // 5000000. Required when Rate control mode is QVBR. MaxBitrate int32 // Specify from the number of B-frames, in the range of 0-15. For AV1 encoding, we // recommend using 7 or 15. Choose a larger number for a lower bitrate and smaller // file size; choose a smaller number for better video quality. NumberBFramesBetweenReferenceFrames int32 // Settings for quality-defined variable bitrate encoding with the H.265 codec. // Use these settings only when you set QVBR for Rate control mode // (RateControlMode). QvbrSettings *Av1QvbrSettings // 'With AV1 outputs, for rate control mode, MediaConvert supports only // quality-defined variable bitrate (QVBR). You can''t use CBR or VBR.' RateControlMode Av1RateControlMode // Specify the number of slices per picture. This value must be 1, 2, 4, 8, 16, or // 32. For progressive pictures, this value must be less than or equal to the // number of macroblock rows. For interlaced pictures, this value must be less than // or equal to half the number of macroblock rows. Slices int32 // Keep the default value, Enabled (ENABLED), to adjust quantization within each // frame based on spatial variation of content complexity. When you enable this // feature, the encoder uses fewer bits on areas that can sustain more distortion // with no noticeable visual degradation and uses more bits on areas where any // small distortion will be noticeable. For example, complex textured blocks are // encoded with fewer bits and smooth textured blocks are encoded with more bits. // Enabling this feature will almost always improve your video quality. Note, // though, that this feature doesn't take into account where the viewer's attention // is likely to be. If viewers are likely to be focusing their attention on a part // of the screen with a lot of complex texture, you might choose to disable this // feature. Related setting: When you enable spatial adaptive quantization, set the // value for Adaptive quantization (adaptiveQuantization) depending on your // content. For homogeneous content, such as cartoons and video games, set it to // Low. For content with a wider variety of textures, set it to High or Higher. SpatialAdaptiveQuantization Av1SpatialAdaptiveQuantization noSmithyDocumentSerde } // Use ad avail blanking settings to specify your output content during SCTE-35 // triggered ad avails. You can blank your video or overlay it with an image. // MediaConvert also removes any audio and embedded captions during the ad avail. // For more information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/ad-avail-blanking.html. type AvailBlanking struct { // Blanking image to be used. Leave empty for solid black. Only bmp and png images // are supported. AvailBlankingImage *string noSmithyDocumentSerde } // Required when you choose AVC-Intra for your output video codec. For more // information about the AVC-Intra settings, see the relevant specification. For // detailed information about SD and HD in AVC-Intra, see // https://ieeexplore.ieee.org/document/7290936. For information about 4K/2K in // AVC-Intra, see https://pro-av.panasonic.net/en/avc-ultra/AVC-ULTRAoverview.pdf. type AvcIntraSettings struct { // Specify the AVC-Intra class of your output. The AVC-Intra class selection // determines the output video bit rate depending on the frame rate of the output. // Outputs with higher class values have higher bitrates and improved image // quality. Note that for Class 4K/2K, MediaConvert supports only 4:2:2 chroma // subsampling. AvcIntraClass AvcIntraClass // Optional when you set AVC-Intra class (avcIntraClass) to Class 4K/2K // (CLASS_4K_2K). When you set AVC-Intra class to a different value, this object // isn't allowed. AvcIntraUhdSettings *AvcIntraUhdSettings // If you are using the console, use the Framerate setting to specify the frame // rate for this output. If you want to keep the same frame rate as the input // video, choose Follow source. If you want to do frame rate conversion, choose a // frame rate from the dropdown list or choose Custom. The framerates shown in the // dropdown list are decimal approximations of fractions. If you choose Custom, // specify your frame rate as a fraction. If you are creating your transcoding job // specification as a JSON file without the console, use FramerateControl to // specify which value the service uses for the frame rate for this output. Choose // INITIALIZE_FROM_SOURCE if you want the service to use the frame rate from the // input. Choose SPECIFIED if you want the service to use the frame rate you // specify in the settings FramerateNumerator and FramerateDenominator. FramerateControl AvcIntraFramerateControl // Choose the method that you want MediaConvert to use when increasing or // decreasing the frame rate. For numerically simple conversions, such as 60 fps to // 30 fps: We recommend that you keep the default value, Drop duplicate. For // numerically complex conversions, to avoid stutter: Choose Interpolate. This // results in a smooth picture, but might introduce undesirable video artifacts. // For complex frame rate conversions, especially if your source video has already // been converted from its original cadence: Choose FrameFormer to do // motion-compensated interpolation. FrameFormer uses the best conversion method // frame by frame. Note that using FrameFormer increases the transcoding time and // incurs a significant add-on cost. When you choose FrameFormer, your input video // resolution must be at least 128x96. FramerateConversionAlgorithm AvcIntraFramerateConversionAlgorithm // When you use the API for transcode jobs that use frame rate conversion, specify // the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use // FramerateDenominator to specify the denominator of this fraction. In this // example, use 1001 for the value of FramerateDenominator. When you use the // console for transcode jobs that use frame rate conversion, provide the value as // a decimal number for Framerate. In this example, specify 23.976. FramerateDenominator int32 // When you use the API for transcode jobs that use frame rate conversion, specify // the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use // FramerateNumerator to specify the numerator of this fraction. In this example, // use 24000 for the value of FramerateNumerator. When you use the console for // transcode jobs that use frame rate conversion, provide the value as a decimal // number for Framerate. In this example, specify 23.976. FramerateNumerator int32 // Choose the scan line type for the output. Keep the default value, Progressive // (PROGRESSIVE) to create a progressive output, regardless of the scan type of // your input. Use Top field first (TOP_FIELD) or Bottom field first (BOTTOM_FIELD) // to create an output that's interlaced with the same field polarity throughout. // Use Follow, default top (FOLLOW_TOP_FIELD) or Follow, default bottom // (FOLLOW_BOTTOM_FIELD) to produce outputs with the same field polarity as the // source. For jobs that have multiple inputs, the output field polarity might // change over the course of the output. Follow behavior depends on the input scan // type. If the source is interlaced, the output will be interlaced with the same // polarity as the source. If the source is progressive, the output will be // interlaced with top field bottom field first, depending on which of the Follow // options you choose. InterlaceMode AvcIntraInterlaceMode // Use this setting for interlaced outputs, when your output frame rate is half of // your input frame rate. In this situation, choose Optimized interlacing // (INTERLACED_OPTIMIZE) to create a better quality interlaced output. In this // case, each progressive frame from the input corresponds to an interlaced field // in the output. Keep the default value, Basic interlacing (INTERLACED), for all // other output frame rates. With basic interlacing, MediaConvert performs any // frame rate conversion first and then interlaces the frames. When you choose // Optimized interlacing and you set your output frame rate to a value that isn't // suitable for optimized interlacing, MediaConvert automatically falls back to // basic interlacing. Required settings: To use optimized interlacing, you must set // Telecine (telecine) to None (NONE) or Soft (SOFT). You can't use optimized // interlacing for hard telecine outputs. You must also set Interlace mode // (interlaceMode) to a value other than Progressive (PROGRESSIVE). ScanTypeConversionMode AvcIntraScanTypeConversionMode // Ignore this setting unless your input frame rate is 23.976 or 24 frames per // second (fps). Enable slow PAL to create a 25 fps output. When you enable slow // PAL, MediaConvert relabels the video frames to 25 fps and resamples your audio // to keep it synchronized with the video. Note that enabling this setting will // slightly reduce the duration of your video. Required settings: You must also set // Framerate to 25. In your JSON job specification, set (framerateControl) to // (SPECIFIED), (framerateNumerator) to 25 and (framerateDenominator) to 1. SlowPal AvcIntraSlowPal // When you do frame rate conversion from 23.976 frames per second (fps) to 29.97 // fps, and your output scan type is interlaced, you can optionally enable hard // telecine (HARD) to create a smoother picture. When you keep the default value, // None (NONE), MediaConvert does a standard frame rate conversion to 29.97 without // doing anything with the field polarity to create a smoother picture. Telecine AvcIntraTelecine noSmithyDocumentSerde } // Optional when you set AVC-Intra class (avcIntraClass) to Class 4K/2K // (CLASS_4K_2K). When you set AVC-Intra class to a different value, this object // isn't allowed. type AvcIntraUhdSettings struct { // Optional. Use Quality tuning level (qualityTuningLevel) to choose how many // transcoding passes MediaConvert does with your video. When you choose Multi-pass // (MULTI_PASS), your video quality is better and your output bitrate is more // accurate. That is, the actual bitrate of your output is closer to the target // bitrate defined in the specification. When you choose Single-pass (SINGLE_PASS), // your encoding time is faster. The default behavior is Single-pass (SINGLE_PASS). QualityTuningLevel AvcIntraUhdQualityTuningLevel noSmithyDocumentSerde } // The Bandwidth reduction filter increases the video quality of your output // relative to its bitrate. Use to lower the bitrate of your constant quality QVBR // output, with little or no perceptual decrease in quality. Or, use to increase // the video quality of outputs with other rate control modes relative to the // bitrate that you specify. Bandwidth reduction increases further when your input // is low quality or noisy. Outputs that use this feature incur pro-tier pricing. // When you include Bandwidth reduction filter, you cannot include the Noise // reducer preprocessor. type BandwidthReductionFilter struct { // Optionally specify the level of sharpening to apply when you use the Bandwidth // reduction filter. Sharpening adds contrast to the edges of your video content // and can reduce softness. Keep the default value Off to apply no sharpening. Set // Sharpening strength to Low to apply a minimal amount of sharpening, or High to // apply a maximum amount of sharpening. Sharpening BandwidthReductionFilterSharpening // Specify the strength of the Bandwidth reduction filter. For most workflows, we // recommend that you choose Auto to reduce the bandwidth of your output with // little to no perceptual decrease in video quality. For high quality and high // bitrate outputs, choose Low. For the most bandwidth reduction, choose High. We // recommend that you choose High for low bitrate outputs. Note that High may incur // a slight increase in the softness of your output. Strength BandwidthReductionFilterStrength noSmithyDocumentSerde } // Burn-in is a captions delivery method, rather than a captions format. Burn-in // writes the captions directly on your video frames, replacing pixels of video // content with the captions. Set up burn-in captions in the same output as your // video. For more information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/burn-in-output-captions.html. // When you work directly in your JSON job specification, include this object and // any required children when you set destinationType to BURN_IN. type BurninDestinationSettings struct { // Specify the alignment of your captions. If no explicit x_position is provided, // setting alignment to centered will placethe captions at the bottom center of the // output. Similarly, setting a left alignment willalign captions to the bottom // left of the output. If x and y positions are given in conjunction with the // alignment parameter, the font will be justified (either left or centered) // relative to those coordinates. Alignment BurninSubtitleAlignment // Ignore this setting unless Style passthrough (StylePassthrough) is set to // Enabled and Font color (FontColor) set to Black, Yellow, Red, Green, Blue, or // Hex. Use Apply font color (ApplyFontColor) for additional font color controls. // When you choose White text only (WHITE_TEXT_ONLY), or leave blank, your font // color setting only applies to white text in your input captions. For example, if // your font color setting is Yellow, and your input captions have red and white // text, your output captions will have red and yellow text. When you choose // ALL_TEXT, your font color setting applies to all of your output captions text. ApplyFontColor BurninSubtitleApplyFontColor // Specify the color of the rectangle behind the captions. Leave background color // (BackgroundColor) blank and set Style passthrough (StylePassthrough) to enabled // to use the background color data from your input captions, if present. BackgroundColor BurninSubtitleBackgroundColor // Specify the opacity of the background rectangle. Enter a value from 0 to 255, // where 0 is transparent and 255 is opaque. If Style passthrough // (StylePassthrough) is set to enabled, leave blank to pass through the background // style information in your input captions to your output captions. If Style // passthrough is set to disabled, leave blank to use a value of 0 and remove all // backgrounds from your output captions. BackgroundOpacity int32 // Specify the font that you want the service to use for your burn in captions // when your input captions specify a font that MediaConvert doesn't support. When // you set Fallback font (FallbackFont) to best match (BEST_MATCH), or leave blank, // MediaConvert uses a supported font that most closely matches the font that your // input captions specify. When there are multiple unsupported fonts in your input // captions, MediaConvert matches each font with the supported font that matches // best. When you explicitly choose a replacement font, MediaConvert uses that font // to replace all unsupported fonts from your input. FallbackFont BurninSubtitleFallbackFont // Specify the color of the burned-in captions text. Leave Font color (FontColor) // blank and set Style passthrough (StylePassthrough) to enabled to use the font // color data from your input captions, if present. FontColor BurninSubtitleFontColor // Specify the opacity of the burned-in captions. 255 is opaque; 0 is transparent. FontOpacity int32 // Specify the Font resolution (FontResolution) in DPI (dots per inch). FontResolution int32 // Set Font script (FontScript) to Automatically determined (AUTOMATIC), or leave // blank, to automatically determine the font script in your input captions. // Otherwise, set to Simplified Chinese (HANS) or Traditional Chinese (HANT) if // your input font script uses Simplified or Traditional Chinese. FontScript FontScript // Specify the Font size (FontSize) in pixels. Must be a positive integer. Set to // 0, or leave blank, for automatic font size. FontSize int32 // Ignore this setting unless your Font color is set to Hex. Enter either six or // eight hexidecimal digits, representing red, green, and blue, with two optional // extra digits for alpha. For example a value of 1122AABB is a red value of 0x11, // a green value of 0x22, a blue value of 0xAA, and an alpha value of 0xBB. HexFontColor *string // Specify font outline color. Leave Outline color (OutlineColor) blank and set // Style passthrough (StylePassthrough) to enabled to use the font outline color // data from your input captions, if present. OutlineColor BurninSubtitleOutlineColor // Specify the Outline size (OutlineSize) of the caption text, in pixels. Leave // Outline size blank and set Style passthrough (StylePassthrough) to enabled to // use the outline size data from your input captions, if present. OutlineSize int32 // Specify the color of the shadow cast by the captions. Leave Shadow color // (ShadowColor) blank and set Style passthrough (StylePassthrough) to enabled to // use the shadow color data from your input captions, if present. ShadowColor BurninSubtitleShadowColor // Specify the opacity of the shadow. Enter a value from 0 to 255, where 0 is // transparent and 255 is opaque. If Style passthrough (StylePassthrough) is set to // Enabled, leave Shadow opacity (ShadowOpacity) blank to pass through the shadow // style information in your input captions to your output captions. If Style // passthrough is set to disabled, leave blank to use a value of 0 and remove all // shadows from your output captions. ShadowOpacity int32 // Specify the horizontal offset of the shadow, relative to the captions in // pixels. A value of -2 would result in a shadow offset 2 pixels to the left. ShadowXOffset int32 // Specify the vertical offset of the shadow relative to the captions in pixels. A // value of -2 would result in a shadow offset 2 pixels above the text. Leave // Shadow y-offset (ShadowYOffset) blank and set Style passthrough // (StylePassthrough) to enabled to use the shadow y-offset data from your input // captions, if present. ShadowYOffset int32 // Set Style passthrough (StylePassthrough) to ENABLED to use the available style, // color, and position information from your input captions. MediaConvert uses // default settings for any missing style and position information in your input // captions. Set Style passthrough to DISABLED, or leave blank, to ignore the style // and position information from your input captions and use default settings: // white text with black outlining, bottom-center positioning, and automatic // sizing. Whether you set Style passthrough to enabled or not, you can also choose // to manually override any of the individual style and position settings. StylePassthrough BurnInSubtitleStylePassthrough // Specify whether the text spacing (TeletextSpacing) in your captions is set by // the captions grid, or varies depending on letter width. Choose fixed grid // (FIXED_GRID) to conform to the spacing specified in the captions file more // accurately. Choose proportional (PROPORTIONAL) to make the text easier to read // for closed captions. TeletextSpacing BurninSubtitleTeletextSpacing // Specify the horizontal position (XPosition) of the captions, relative to the // left side of the output in pixels. A value of 10 would result in the captions // starting 10 pixels from the left of the output. If no explicit x_position is // provided, the horizontal caption position will be determined by the alignment // parameter. XPosition int32 // Specify the vertical position (YPosition) of the captions, relative to the top // of the output in pixels. A value of 10 would result in the captions starting 10 // pixels from the top of the output. If no explicit y_position is provided, the // caption will be positioned towards the bottom of the output. YPosition int32 noSmithyDocumentSerde } // This object holds groups of settings related to captions for one output. For // each output that has captions, include one instance of CaptionDescriptions. type CaptionDescription struct { // Specifies which "Caption Selector":#inputs-caption_selector to use from each // input when generating captions. The name should be of the format "Caption // Selector ", which denotes that the Nth Caption Selector will be used from each // input. CaptionSelectorName *string // Specify the language for this captions output track. For most captions output // formats, the encoder puts this language information in the output captions // metadata. If your output captions format is DVB-Sub or Burn in, the encoder uses // this language information when automatically selecting the font script for // rendering the captions text. For all outputs, you can use an ISO 639-2 or ISO // 639-3 code. For streaming outputs, you can also use any other code in the full // RFC-5646 specification. Streaming outputs are those that are in one of the // following output groups: CMAF, DASH ISO, Apple HLS, or Microsoft Smooth // Streaming. CustomLanguageCode *string // Settings related to one captions tab on the MediaConvert console. In your job // JSON, an instance of captions DestinationSettings is equivalent to one captions // tab in the console. Usually, one captions tab corresponds to one output captions // track. Depending on your output captions format, one tab might correspond to a // set of output captions tracks. For more information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/including-captions.html. DestinationSettings *CaptionDestinationSettings // Specify the language of this captions output track. For most captions output // formats, the encoder puts this language information in the output captions // metadata. If your output captions format is DVB-Sub or Burn in, the encoder uses // this language information to choose the font language for rendering the captions // text. LanguageCode LanguageCode // Specify a label for this set of output captions. For example, "English", // "Director commentary", or "track_2". For streaming outputs, MediaConvert passes // this information into destination manifests for display on the end-viewer's // player device. For outputs in other output groups, the service ignores this // setting. LanguageDescription *string noSmithyDocumentSerde } // Caption Description for preset type CaptionDescriptionPreset struct { // Specify the language for this captions output track. For most captions output // formats, the encoder puts this language information in the output captions // metadata. If your output captions format is DVB-Sub or Burn in, the encoder uses // this language information when automatically selecting the font script for // rendering the captions text. For all outputs, you can use an ISO 639-2 or ISO // 639-3 code. For streaming outputs, you can also use any other code in the full // RFC-5646 specification. Streaming outputs are those that are in one of the // following output groups: CMAF, DASH ISO, Apple HLS, or Microsoft Smooth // Streaming. CustomLanguageCode *string // Settings related to one captions tab on the MediaConvert console. In your job // JSON, an instance of captions DestinationSettings is equivalent to one captions // tab in the console. Usually, one captions tab corresponds to one output captions // track. Depending on your output captions format, one tab might correspond to a // set of output captions tracks. For more information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/including-captions.html. DestinationSettings *CaptionDestinationSettings // Specify the language of this captions output track. For most captions output // formats, the encoder puts this language information in the output captions // metadata. If your output captions format is DVB-Sub or Burn in, the encoder uses // this language information to choose the font language for rendering the captions // text. LanguageCode LanguageCode // Specify a label for this set of output captions. For example, "English", // "Director commentary", or "track_2". For streaming outputs, MediaConvert passes // this information into destination manifests for display on the end-viewer's // player device. For outputs in other output groups, the service ignores this // setting. LanguageDescription *string noSmithyDocumentSerde } // Settings related to one captions tab on the MediaConvert console. In your job // JSON, an instance of captions DestinationSettings is equivalent to one captions // tab in the console. Usually, one captions tab corresponds to one output captions // track. Depending on your output captions format, one tab might correspond to a // set of output captions tracks. For more information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/including-captions.html. type CaptionDestinationSettings struct { // Burn-in is a captions delivery method, rather than a captions format. Burn-in // writes the captions directly on your video frames, replacing pixels of video // content with the captions. Set up burn-in captions in the same output as your // video. For more information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/burn-in-output-captions.html. // When you work directly in your JSON job specification, include this object and // any required children when you set destinationType to BURN_IN. BurninDestinationSettings *BurninDestinationSettings // Specify the format for this set of captions on this output. The default format // is embedded without SCTE-20. Note that your choice of video output container // constrains your choice of output captions format. For more information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/captions-support-tables.html. // If you are using SCTE-20 and you want to create an output that complies with the // SCTE-43 spec, choose SCTE-20 plus embedded (SCTE20_PLUS_EMBEDDED). To create a // non-compliant output where the embedded captions come first, choose Embedded // plus SCTE-20 (EMBEDDED_PLUS_SCTE20). DestinationType CaptionDestinationType // Settings related to DVB-Sub captions. Set up DVB-Sub captions in the same // output as your video. For more information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/dvb-sub-output-captions.html. // When you work directly in your JSON job specification, include this object and // any required children when you set destinationType to DVB_SUB. DvbSubDestinationSettings *DvbSubDestinationSettings // Settings related to CEA/EIA-608 and CEA/EIA-708 (also called embedded or // ancillary) captions. Set up embedded captions in the same output as your video. // For more information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/embedded-output-captions.html. // When you work directly in your JSON job specification, include this object and // any required children when you set destinationType to EMBEDDED, // EMBEDDED_PLUS_SCTE20, or SCTE20_PLUS_EMBEDDED. EmbeddedDestinationSettings *EmbeddedDestinationSettings // Settings related to IMSC captions. IMSC is a sidecar format that holds captions // in a file that is separate from the video container. Set up sidecar captions in // the same output group, but different output from your video. For more // information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/ttml-and-webvtt-output-captions.html. // When you work directly in your JSON job specification, include this object and // any required children when you set destinationType to IMSC. ImscDestinationSettings *ImscDestinationSettings // Settings related to SCC captions. SCC is a sidecar format that holds captions // in a file that is separate from the video container. Set up sidecar captions in // the same output group, but different output from your video. For more // information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/scc-srt-output-captions.html. // When you work directly in your JSON job specification, include this object and // any required children when you set destinationType to SCC. SccDestinationSettings *SccDestinationSettings // Settings related to SRT captions. SRT is a sidecar format that holds captions // in a file that is separate from the video container. Set up sidecar captions in // the same output group, but different output from your video. When you work // directly in your JSON job specification, include this object and any required // children when you set destinationType to SRT. SrtDestinationSettings *SrtDestinationSettings // Settings related to teletext captions. Set up teletext captions in the same // output as your video. For more information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/teletext-output-captions.html. // When you work directly in your JSON job specification, include this object and // any required children when you set destinationType to TELETEXT. TeletextDestinationSettings *TeletextDestinationSettings // Settings related to TTML captions. TTML is a sidecar format that holds captions // in a file that is separate from the video container. Set up sidecar captions in // the same output group, but different output from your video. For more // information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/ttml-and-webvtt-output-captions.html. // When you work directly in your JSON job specification, include this object and // any required children when you set destinationType to TTML. TtmlDestinationSettings *TtmlDestinationSettings // Settings related to WebVTT captions. WebVTT is a sidecar format that holds // captions in a file that is separate from the video container. Set up sidecar // captions in the same output group, but different output from your video. For // more information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/ttml-and-webvtt-output-captions.html. // When you work directly in your JSON job specification, include this object and // any required children when you set destinationType to WebVTT. WebvttDestinationSettings *WebvttDestinationSettings noSmithyDocumentSerde } // Use captions selectors to specify the captions data from your input that you // use in your outputs. You can use up to 100 captions selectors per input. type CaptionSelector struct { // The specific language to extract from source, using the ISO 639-2 or ISO 639-3 // three-letter language code. If input is SCTE-27, complete this field and/or PID // to select the caption language to extract. If input is DVB-Sub and output is // Burn-in, complete this field and/or PID to select the caption language to // extract. If input is DVB-Sub that is being passed through, omit this field (and // PID field); there is no way to extract a specific language with pass-through // captions. CustomLanguageCode *string // The specific language to extract from source. If input is SCTE-27, complete // this field and/or PID to select the caption language to extract. If input is // DVB-Sub and output is Burn-in, complete this field and/or PID to select the // caption language to extract. If input is DVB-Sub that is being passed through, // omit this field (and PID field); there is no way to extract a specific language // with pass-through captions. LanguageCode LanguageCode // If your input captions are SCC, TTML, STL, SMI, SRT, or IMSC in an xml file, // specify the URI of the input captions source file. If your input captions are // IMSC in an IMF package, use TrackSourceSettings instead of FileSoureSettings. SourceSettings *CaptionSourceSettings noSmithyDocumentSerde } // Ignore this setting unless your input captions format is SCC. To have the // service compensate for differing frame rates between your input captions and // input video, specify the frame rate of the captions file. Specify this value as // a fraction. When you work directly in your JSON job specification, use the // settings framerateNumerator and framerateDenominator. For example, you might // specify 24 / 1 for 24 fps, 25 / 1 for 25 fps, 24000 / 1001 for 23.976 fps, or // 30000 / 1001 for 29.97 fps. type CaptionSourceFramerate struct { // Specify the denominator of the fraction that represents the frame rate for the // setting Caption source frame rate (CaptionSourceFramerate). Use this setting // along with the setting Framerate numerator (framerateNumerator). FramerateDenominator int32 // Specify the numerator of the fraction that represents the frame rate for the // setting Caption source frame rate (CaptionSourceFramerate). Use this setting // along with the setting Framerate denominator (framerateDenominator). FramerateNumerator int32 noSmithyDocumentSerde } // If your input captions are SCC, TTML, STL, SMI, SRT, or IMSC in an xml file, // specify the URI of the input captions source file. If your input captions are // IMSC in an IMF package, use TrackSourceSettings instead of FileSoureSettings. type CaptionSourceSettings struct { // Settings for ancillary captions source. AncillarySourceSettings *AncillarySourceSettings // DVB Sub Source Settings DvbSubSourceSettings *DvbSubSourceSettings // Settings for embedded captions Source EmbeddedSourceSettings *EmbeddedSourceSettings // If your input captions are SCC, SMI, SRT, STL, TTML, WebVTT, or IMSC 1.1 in an // xml file, specify the URI of the input caption source file. If your caption // source is IMSC in an IMF package, use TrackSourceSettings instead of // FileSoureSettings. FileSourceSettings *FileSourceSettings // Use Source (SourceType) to identify the format of your input captions. The // service cannot auto-detect caption format. SourceType CaptionSourceType // Settings specific to Teletext caption sources, including Page number. TeletextSourceSettings *TeletextSourceSettings // Settings specific to caption sources that are specified by track number. // Currently, this is only IMSC captions in an IMF package. If your caption source // is IMSC 1.1 in a separate xml file, use FileSourceSettings instead of // TrackSourceSettings. TrackSourceSettings *TrackSourceSettings // Settings specific to WebVTT sources in HLS alternative rendition group. Specify // the properties (renditionGroupId, renditionName or renditionLanguageCode) to // identify the unique subtitle track among the alternative rendition groups // present in the HLS manifest. If no unique track is found, or multiple tracks // match the specified properties, the job fails. If there is only one subtitle // track in the rendition group, the settings can be left empty and the default // subtitle track will be chosen. If your caption source is a sidecar file, use // FileSourceSettings instead of WebvttHlsSourceSettings. WebvttHlsSourceSettings *WebvttHlsSourceSettings noSmithyDocumentSerde } // Channel mapping (ChannelMapping) contains the group of fields that hold the // remixing value for each channel, in dB. Specify remix values to indicate how // much of the content from your input audio channel you want in your output audio // channels. Each instance of the InputChannels or InputChannelsFineTune array // specifies these values for one output channel. Use one instance of this array // for each output channel. In the console, each array corresponds to a column in // the graphical depiction of the mapping matrix. The rows of the graphical matrix // correspond to input channels. Valid values are within the range from -60 (mute) // through 6. A setting of 0 passes the input channel unchanged to the output // channel (no attenuation or amplification). Use InputChannels or // InputChannelsFineTune to specify your remix values. Don't use both. type ChannelMapping struct { // In your JSON job specification, include one child of OutputChannels for each // audio channel that you want in your output. Each child should contain one // instance of InputChannels or InputChannelsFineTune. OutputChannels []OutputChannelMapping noSmithyDocumentSerde } // Specify YUV limits and RGB tolerances when you set Sample range conversion to // Limited range clip. type ClipLimits struct { // Specify the Maximum RGB color sample range tolerance for your output. // MediaConvert corrects any YUV values that, when converted to RGB, would be // outside the upper tolerance that you specify. Enter an integer from 90 to 105 as // an offset percentage to the maximum possible value. Leave blank to use the // default value 100. When you specify a value for Maximum RGB tolerance, you must // set Sample range conversion to Limited range clip. MaximumRGBTolerance int32 // Specify the Maximum YUV color sample limit. MediaConvert conforms any pixels in // your input above the value that you specify to typical limited range bounds. // Enter an integer from 920 to 1023. Leave blank to use the default value 940. The // value that you enter applies to 10-bit ranges. For 8-bit ranges, MediaConvert // automatically scales this value down. When you specify a value for Maximum YUV, // you must set Sample range conversion to Limited range clip. MaximumYUV int32 // Specify the Minimum RGB color sample range tolerance for your output. // MediaConvert corrects any YUV values that, when converted to RGB, would be // outside the lower tolerance that you specify. Enter an integer from -5 to 10 as // an offset percentage to the minimum possible value. Leave blank to use the // default value 0. When you specify a value for Minimum RGB tolerance, you must // set Sample range conversion to Limited range clip. MinimumRGBTolerance int32 // Specify the Minimum YUV color sample limit. MediaConvert conforms any pixels in // your input below the value that you specify to typical limited range bounds. // Enter an integer from 0 to 128. Leave blank to use the default value 64. The // value that you enter applies to 10-bit ranges. For 8-bit ranges, MediaConvert // automatically scales this value down. When you specify a value for Minumum YUV, // you must set Sample range conversion to Limited range clip. MinimumYUV int32 noSmithyDocumentSerde } // Specify the details for each pair of HLS and DASH additional manifests that you // want the service to generate for this CMAF output group. Each pair of manifests // can reference a different subset of outputs in the group. type CmafAdditionalManifest struct { // Specify a name modifier that the service adds to the name of this manifest to // make it different from the file names of the other main manifests in the output // group. For example, say that the default main manifest for your HLS group is // film-name.m3u8. If you enter "-no-premium" for this setting, then the file name // the service generates for this top-level manifest is film-name-no-premium.m3u8. // For HLS output groups, specify a manifestNameModifier that is different from the // nameModifier of the output. The service uses the output name modifier to create // unique names for the individual variant manifests. ManifestNameModifier *string // Specify the outputs that you want this additional top-level manifest to // reference. SelectedOutputs []string noSmithyDocumentSerde } // Settings for CMAF encryption type CmafEncryptionSettings struct { // This is a 128-bit, 16-byte hex value represented by a 32-character text string. // If this parameter is not set then the Initialization Vector will follow the // segment number by default. ConstantInitializationVector *string // Specify the encryption scheme that you want the service to use when encrypting // your CMAF segments. Choose AES-CBC subsample (SAMPLE-AES) or AES_CTR (AES-CTR). EncryptionMethod CmafEncryptionType // When you use DRM with CMAF outputs, choose whether the service writes the // 128-bit encryption initialization vector in the HLS and DASH manifests. InitializationVectorInManifest CmafInitializationVectorInManifest // If your output group type is CMAF, use these settings when doing DRM encryption // with a SPEKE-compliant key provider. If your output group type is HLS, DASH, or // Microsoft Smooth, use the SpekeKeyProvider settings instead. SpekeKeyProvider *SpekeKeyProviderCmaf // Use these settings to set up encryption with a static key provider. StaticKeyProvider *StaticKeyProvider // Specify whether your DRM encryption key is static or from a key provider that // follows the SPEKE standard. For more information about SPEKE, see // https://docs.aws.amazon.com/speke/latest/documentation/what-is-speke.html. Type CmafKeyProviderType noSmithyDocumentSerde } // Settings related to your CMAF output package. For more information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/outputs-file-ABR.html. When // you work directly in your JSON job specification, include this object and any // required children when you set Type, under OutputGroupSettings, to // CMAF_GROUP_SETTINGS. type CmafGroupSettings struct { // By default, the service creates one top-level .m3u8 HLS manifest and one top // -level .mpd DASH manifest for each CMAF output group in your job. These default // manifests reference every output in the output group. To create additional // top-level manifests that reference a subset of the outputs in the output group, // specify a list of them here. For each additional manifest that you specify, the // service creates one HLS manifest and one DASH manifest. AdditionalManifests []CmafAdditionalManifest // A partial URI prefix that will be put in the manifest file at the top level // BaseURL element. Can be used if streams are delivered from a different URL than // the manifest file. BaseUrl *string // Disable this setting only when your workflow requires the #EXT-X-ALLOW-CACHE:no // tag. Otherwise, keep the default value Enabled (ENABLED) and control caching in // your video distribution set up. For example, use the Cache-Control http header. ClientCache CmafClientCache // Specification to use (RFC-6381 or the default RFC-4281) during m3u8 playlist // generation. CodecSpecification CmafCodecSpecification // Specify how MediaConvert writes SegmentTimeline in your output DASH manifest. // To write a SegmentTimeline in each video Representation: Keep the default value, // Basic. To write a common SegmentTimeline in the video AdaptationSet: Choose // Compact. Note that MediaConvert will still write a SegmentTimeline in any // Representation that does not share a common timeline. To write a video // AdaptationSet for each different output framerate, and a common SegmentTimeline // in each AdaptationSet: Choose Distinct. DashManifestStyle DashManifestStyle // Use Destination (Destination) to specify the S3 output location and the output // filename base. Destination accepts format identifiers. If you do not specify the // base filename in the URI, the service will use the filename of the input file. // If your job has multiple inputs, the service uses the filename of the first // input file. Destination *string // Settings associated with the destination. Will vary based on the type of // destination DestinationSettings *DestinationSettings // DRM settings. Encryption *CmafEncryptionSettings // Specify the length, in whole seconds, of the mp4 fragments. When you don't // specify a value, MediaConvert defaults to 2. Related setting: Use Fragment // length control (FragmentLengthControl) to specify whether the encoder enforces // this value strictly. FragmentLength int32 // Specify whether MediaConvert generates images for trick play. Keep the default // value, None (NONE), to not generate any images. Choose Thumbnail (THUMBNAIL) to // generate tiled thumbnails. Choose Thumbnail and full frame // (THUMBNAIL_AND_FULLFRAME) to generate tiled thumbnails and full-resolution // images of single frames. When you enable Write HLS manifest (WriteHlsManifest), // MediaConvert creates a child manifest for each set of images that you generate // and adds corresponding entries to the parent manifest. When you enable Write // DASH manifest (WriteDashManifest), MediaConvert adds an entry in the .mpd // manifest for each set of images that you generate. A common application for // these images is Roku trick mode. The thumbnails and full-frame images that // MediaConvert creates with this feature are compatible with this Roku // specification: // https://developer.roku.com/docs/developer-program/media-playback/trick-mode/hls-and-dash.md ImageBasedTrickPlay CmafImageBasedTrickPlay // Tile and thumbnail settings applicable when imageBasedTrickPlay is ADVANCED ImageBasedTrickPlaySettings *CmafImageBasedTrickPlaySettings // When set to GZIP, compresses HLS playlist. ManifestCompression CmafManifestCompression // Indicates whether the output manifest should use floating point values for // segment duration. ManifestDurationFormat CmafManifestDurationFormat // Minimum time of initially buffered media that is needed to ensure smooth // playout. MinBufferTime int32 // Keep this setting at the default value of 0, unless you are troubleshooting a // problem with how devices play back the end of your video asset. If you know that // player devices are hanging on the final segment of your video because the length // of your final segment is too short, use this setting to specify a minimum final // segment length, in seconds. Choose a value that is greater than or equal to 1 // and less than your segment length. When you specify a value for this setting, // the encoder will combine any final segment that is shorter than the length that // you specify with the previous segment. For example, your segment length is 3 // seconds and your final segment is .5 seconds without a minimum final segment // length; when you set the minimum final segment length to 1, your final segment // is 3.5 seconds. MinFinalSegmentLength float64 // Specify how the value for bandwidth is determined for each video Representation // in your output MPD manifest. We recommend that you choose a MPD manifest // bandwidth type that is compatible with your downstream player configuration. // Max: Use the same value that you specify for Max bitrate in the video output, in // bits per second. Average: Use the calculated average bitrate of the encoded // video output, in bits per second. MpdManifestBandwidthType CmafMpdManifestBandwidthType // Specify whether your DASH profile is on-demand or main. When you choose Main // profile (MAIN_PROFILE), the service signals // urn:mpeg:dash:profile:isoff-main:2011 in your .mpd DASH manifest. When you // choose On-demand (ON_DEMAND_PROFILE), the service signals // urn:mpeg:dash:profile:isoff-on-demand:2011 in your .mpd. When you choose // On-demand, you must also set the output group setting Segment control // (SegmentControl) to Single file (SINGLE_FILE). MpdProfile CmafMpdProfile // Use this setting only when your output video stream has B-frames, which causes // the initial presentation time stamp (PTS) to be offset from the initial decode // time stamp (DTS). Specify how MediaConvert handles PTS when writing time stamps // in output DASH manifests. Choose Match initial PTS (MATCH_INITIAL_PTS) when you // want MediaConvert to use the initial PTS as the first time stamp in the // manifest. Choose Zero-based (ZERO_BASED) to have MediaConvert ignore the initial // PTS in the video stream and instead write the initial time stamp as zero in the // manifest. For outputs that don't have B-frames, the time stamps in your DASH // manifests start at zero regardless of your choice here. PtsOffsetHandlingForBFrames CmafPtsOffsetHandlingForBFrames // When set to SINGLE_FILE, a single output file is generated, which is internally // segmented using the Fragment Length and Segment Length. When set to // SEGMENTED_FILES, separate segment files will be created. SegmentControl CmafSegmentControl // Specify the length, in whole seconds, of each segment. When you don't specify a // value, MediaConvert defaults to 10. Related settings: Use Segment length control // (SegmentLengthControl) to specify whether the encoder enforces this value // strictly. Use Segment control (CmafSegmentControl) to specify whether // MediaConvert creates separate segment files or one content file that has // metadata to mark the segment boundaries. SegmentLength int32 // Specify how you want MediaConvert to determine the segment length. Choose Exact // (EXACT) to have the encoder use the exact length that you specify with the // setting Segment length (SegmentLength). This might result in extra I-frames. // Choose Multiple of GOP (GOP_MULTIPLE) to have the encoder round up the segment // lengths to match the next GOP boundary. SegmentLengthControl CmafSegmentLengthControl // Include or exclude RESOLUTION attribute for video in EXT-X-STREAM-INF tag of // variant manifest. StreamInfResolution CmafStreamInfResolution // When set to LEGACY, the segment target duration is always rounded up to the // nearest integer value above its current value in seconds. When set to // SPEC\_COMPLIANT, the segment target duration is rounded up to the nearest // integer value if fraction seconds are greater than or equal to 0.5 (>= 0.5) and // rounded down if less than 0.5 (< 0.5). You may need to use LEGACY if your client // needs to ensure that the target duration is always longer than the actual // duration of the segment. Some older players may experience interrupted playback // when the actual duration of a track in a segment is longer than the target // duration. TargetDurationCompatibilityMode CmafTargetDurationCompatibilityMode // Specify the video sample composition time offset mode in the output fMP4 TRUN // box. For wider player compatibility, set Video composition offsets to Unsigned // or leave blank. The earliest presentation time may be greater than zero, and // sample composition time offsets will increment using unsigned integers. For // strict fMP4 video and audio timing, set Video composition offsets to Signed. The // earliest presentation time will be equal to zero, and sample composition time // offsets will increment using signed integers. VideoCompositionOffsets CmafVideoCompositionOffsets // When set to ENABLED, a DASH MPD manifest will be generated for this output. WriteDashManifest CmafWriteDASHManifest // When set to ENABLED, an Apple HLS manifest will be generated for this output. WriteHlsManifest CmafWriteHLSManifest // When you enable Precise segment duration in DASH manifests // (writeSegmentTimelineInRepresentation), your DASH manifest shows precise segment // durations. The segment duration information appears inside the SegmentTimeline // element, inside SegmentTemplate at the Representation level. When this feature // isn't enabled, the segment durations in your DASH manifest are approximate. The // segment duration information appears in the duration attribute of the // SegmentTemplate element. WriteSegmentTimelineInRepresentation CmafWriteSegmentTimelineInRepresentation noSmithyDocumentSerde } // Tile and thumbnail settings applicable when imageBasedTrickPlay is ADVANCED type CmafImageBasedTrickPlaySettings struct { // The cadence MediaConvert follows for generating thumbnails. If set to // FOLLOW_IFRAME, MediaConvert generates thumbnails for each IDR frame in the // output (matching the GOP cadence). If set to FOLLOW_CUSTOM, MediaConvert // generates thumbnails according to the interval you specify in thumbnailInterval. IntervalCadence CmafIntervalCadence // Height of each thumbnail within each tile image, in pixels. Leave blank to // maintain aspect ratio with thumbnail width. If following the aspect ratio would // lead to a total tile height greater than 4096, then the job will be rejected. // Must be divisible by 2. ThumbnailHeight int32 // Enter the interval, in seconds, that MediaConvert uses to generate thumbnails. // If the interval you enter doesn't align with the output frame rate, MediaConvert // automatically rounds the interval to align with the output frame rate. For // example, if the output frame rate is 29.97 frames per second and you enter 5, // MediaConvert uses a 150 frame interval to generate thumbnails. ThumbnailInterval float64 // Width of each thumbnail within each tile image, in pixels. Default is 312. Must // be divisible by 8. ThumbnailWidth int32 // Number of thumbnails in each column of a tile image. Set a value between 2 and // 2048. Must be divisible by 2. TileHeight int32 // Number of thumbnails in each row of a tile image. Set a value between 1 and 512. TileWidth int32 noSmithyDocumentSerde } // These settings relate to the fragmented MP4 container for the segments in your // CMAF outputs. type CmfcSettings struct { // Specify this setting only when your output will be consumed by a downstream // repackaging workflow that is sensitive to very small duration differences // between video and audio. For this situation, choose Match video duration // (MATCH_VIDEO_DURATION). In all other cases, keep the default value, Default // codec duration (DEFAULT_CODEC_DURATION). When you choose Match video duration, // MediaConvert pads the output audio streams with silence or trims them to ensure // that the total duration of each audio stream is at least as long as the total // duration of the video stream. After padding or trimming, the audio stream // duration is no more than one frame longer than the video stream. MediaConvert // applies audio padding or trimming only to the end of the last segment of the // output. For unsegmented outputs, MediaConvert adds padding only to the end of // the file. When you keep the default value, any minor discrepancies between audio // and video duration will depend on your output audio codec. AudioDuration CmfcAudioDuration // Specify the audio rendition group for this audio rendition. Specify up to one // value for each audio output in your output group. This value appears in your HLS // parent manifest in the EXT-X-MEDIA tag of TYPE=AUDIO, as the value for the // GROUP-ID attribute. For example, if you specify "audio_aac_1" for Audio group // ID, it appears in your manifest like this: // #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio_aac_1". Related setting: To associate // the rendition group that this audio track belongs to with a video rendition, // include the same value that you provide here for that video output's setting // Audio rendition sets (audioRenditionSets). AudioGroupId *string // List the audio rendition groups that you want included with this video // rendition. Use a comma-separated list. For example, say you want to include the // audio rendition groups that have the audio group IDs "audio_aac_1" and // "audio_dolby". Then you would specify this value: "audio_aac_1,audio_dolby". // Related setting: The rendition groups that you include in your comma-separated // list should all match values that you specify in the setting Audio group ID // (AudioGroupId) for audio renditions in the same output group as this video // rendition. Default behavior: If you don't specify anything here and for Audio // group ID, MediaConvert puts each audio variant in its own audio rendition group // and associates it with every video variant. Each value in your list appears in // your HLS parent manifest in the EXT-X-STREAM-INF tag as the value for the AUDIO // attribute. To continue the previous example, say that the file name for the // child manifest for your video rendition is "amazing_video_1.m3u8". Then, in your // parent manifest, each value will appear on separate lines, like this: // #EXT-X-STREAM-INF:AUDIO="audio_aac_1"... amazing_video_1.m3u8 // #EXT-X-STREAM-INF:AUDIO="audio_dolby"... amazing_video_1.m3u8 AudioRenditionSets *string // Use this setting to control the values that MediaConvert puts in your HLS // parent playlist to control how the client player selects which audio track to // play. The other options for this setting determine the values that MediaConvert // writes for the DEFAULT and AUTOSELECT attributes of the EXT-X-MEDIA entry for // the audio variant. For more information about these attributes, see the Apple // documentation article // https://developer.apple.com/documentation/http_live_streaming/example_playlists_for_http_live_streaming/adding_alternate_media_to_a_playlist. // Choose Alternate audio, auto select, default // (ALTERNATE_AUDIO_AUTO_SELECT_DEFAULT) to set DEFAULT=YES and AUTOSELECT=YES. // Choose this value for only one variant in your output group. Choose Alternate // audio, auto select, not default (ALTERNATE_AUDIO_AUTO_SELECT) to set DEFAULT=NO // and AUTOSELECT=YES. Choose Alternate Audio, Not Auto Select to set DEFAULT=NO // and AUTOSELECT=NO. When you don't specify a value for this setting, MediaConvert // defaults to Alternate audio, auto select, default. When there is more than one // variant in your output group, you must explicitly choose a value for this // setting. AudioTrackType CmfcAudioTrackType // Specify whether to flag this audio track as descriptive video service (DVS) in // your HLS parent manifest. When you choose Flag (FLAG), MediaConvert includes the // parameter CHARACTERISTICS="public.accessibility.describes-video" in the // EXT-X-MEDIA entry for this track. When you keep the default choice, Don't flag // (DONT_FLAG), MediaConvert leaves this parameter out. The DVS flag can help with // accessibility on Apple devices. For more information, see the Apple // documentation. DescriptiveVideoServiceFlag CmfcDescriptiveVideoServiceFlag // Choose Include (INCLUDE) to have MediaConvert generate an HLS child manifest // that lists only the I-frames for this rendition, in addition to your regular // manifest for this rendition. You might use this manifest as part of a workflow // that creates preview functions for your video. MediaConvert adds both the // I-frame only child manifest and the regular child manifest to the parent // manifest. When you don't need the I-frame only child manifest, keep the default // value Exclude (EXCLUDE). IFrameOnlyManifest CmfcIFrameOnlyManifest // To include key-length-value metadata in this output: Set KLV metadata insertion // to Passthrough. MediaConvert reads KLV metadata present in your input and writes // each instance to a separate event message box in the output, according to MISB // ST1910.1. To exclude this KLV metadata: Set KLV metadata insertion to None or // leave blank. KlvMetadata CmfcKlvMetadata // To add an InbandEventStream element in your output MPD manifest for each type // of event message, set Manifest metadata signaling to Enabled. For ID3 event // messages, the InbandEventStream element schemeIdUri will be same value that you // specify for ID3 metadata scheme ID URI. For SCTE35 event messages, the // InbandEventStream element schemeIdUri will be "urn:scte:scte35:2013:bin". To // leave these elements out of your output MPD manifest, set Manifest metadata // signaling to Disabled. To enable Manifest metadata signaling, you must also set // SCTE-35 source to Passthrough, ESAM SCTE-35 to insert, or ID3 metadata // (TimedMetadata) to Passthrough. ManifestMetadataSignaling CmfcManifestMetadataSignaling // Use this setting only when you specify SCTE-35 markers from ESAM. Choose INSERT // to put SCTE-35 markers in this output at the insertion points that you specify // in an ESAM XML document. Provide the document in the setting SCC XML (sccXml). Scte35Esam CmfcScte35Esam // Ignore this setting unless you have SCTE-35 markers in your input video file. // Choose Passthrough (PASSTHROUGH) if you want SCTE-35 markers that appear in your // input to also appear in this output. Choose None (NONE) if you don't want those // SCTE-35 markers in this output. Scte35Source CmfcScte35Source // To include ID3 metadata in this output: Set ID3 metadata (timedMetadata) to // Passthrough (PASSTHROUGH). Specify this ID3 metadata in Custom ID3 metadata // inserter (timedMetadataInsertion). MediaConvert writes each instance of ID3 // metadata in a separate Event Message (eMSG) box. To exclude this ID3 metadata: // Set ID3 metadata to None (NONE) or leave blank. TimedMetadata CmfcTimedMetadata // Specify the event message box (eMSG) version for ID3 timed metadata in your // output. For more information, see ISO/IEC 23009-1:2022 section 5.10.3.3.3 // Syntax. Leave blank to use the default value Version 0. When you specify Version // 1, you must also set ID3 metadata (timedMetadata) to Passthrough. TimedMetadataBoxVersion CmfcTimedMetadataBoxVersion // Specify the event message box (eMSG) scheme ID URI (scheme_id_uri) for ID3 // timed metadata in your output. For more information, see ISO/IEC 23009-1:2022 // section 5.10.3.3.4 Semantics. Leave blank to use the default value: // https://aomedia.org/emsg/ID3 When you specify a value for ID3 metadata scheme ID // URI, you must also set ID3 metadata (timedMetadata) to Passthrough. TimedMetadataSchemeIdUri *string // Specify the event message box (eMSG) value for ID3 timed metadata in your // output. For more information, see ISO/IEC 23009-1:2022 section 5.10.3.3.4 // Semantics. When you specify a value for ID3 Metadata Value, you must also set // ID3 metadata (timedMetadata) to Passthrough. TimedMetadataValue *string noSmithyDocumentSerde } // Settings for color correction. type ColorCorrector struct { // Brightness level. Brightness int32 // Specify YUV limits and RGB tolerances when you set Sample range conversion to // Limited range clip. ClipLimits *ClipLimits // Specify the color space you want for this output. The service supports // conversion between HDR formats, between SDR formats, from SDR to HDR, and from // HDR to SDR. SDR to HDR conversion doesn't upgrade the dynamic range. The // converted video has an HDR format, but visually appears the same as an // unconverted output. HDR to SDR conversion uses tone mapping to approximate the // outcome of manually regrading from HDR to SDR. When you specify an output color // space, MediaConvert uses the following color space metadata, which includes // color primaries, transfer characteristics, and matrix coefficients: // - HDR 10: BT.2020, PQ, BT.2020 non-constant // - HLG 2020: BT.2020, HLG, BT.2020 non-constant // - P3DCI (Theater): DCIP3, SMPTE 428M, BT.709 // - P3D65 (SDR): Display P3, sRGB, BT.709 // - P3D65 (HDR): Display P3, PQ, BT.709 ColorSpaceConversion ColorSpaceConversion // Contrast level. Contrast int32 // Use these settings when you convert to the HDR 10 color space. Specify the // SMPTE ST 2086 Mastering Display Color Volume static metadata that you want // signaled in the output. These values don't affect the pixel values that are // encoded in the video stream. They are intended to help the downstream video // player display content in a way that reflects the intentions of the the content // creator. When you set Color space conversion (ColorSpaceConversion) to HDR 10 // (FORCE_HDR10), these settings are required. You must set values for Max frame // average light level (maxFrameAverageLightLevel) and Max content light level // (maxContentLightLevel); these settings don't have a default value. The default // values for the other HDR 10 metadata settings are defined by the P3D65 color // space. For more information about MediaConvert HDR jobs, see // https://docs.aws.amazon.com/console/mediaconvert/hdr. Hdr10Metadata *Hdr10Metadata // Specify how MediaConvert maps brightness and colors from your HDR input to your // SDR output. The mode that you select represents a creative choice, with // different tradeoffs in the details and tones of your output. To maintain details // in bright or saturated areas of your output: Choose Preserve details. For some // sources, your SDR output may look less bright and less saturated when compared // to your HDR source. MediaConvert automatically applies this mode for HLG // sources, regardless of your choice. For a bright and saturated output: Choose // Vibrant. We recommend that you choose this mode when any of your source content // is HDR10, and for the best results when it is mastered for 1000 nits. You may // notice loss of details in bright or saturated areas of your output. HDR to SDR // tone mapping has no effect when your input is SDR. HdrToSdrToneMapper HDRToSDRToneMapper // Hue in degrees. Hue int32 // Specify how MediaConvert limits the color sample range for this output. To // create a limited range output from a full range input: Choose Limited range // squeeze. For full range inputs, MediaConvert performs a linear offset to color // samples equally across all pixels and frames. Color samples in 10-bit outputs // are limited to 64 through 940, and 8-bit outputs are limited to 16 through 235. // Note: For limited range inputs, values for color samples are passed through to // your output unchanged. MediaConvert does not limit the sample range. To correct // pixels in your input that are out of range or out of gamut: Choose Limited range // clip. Use for broadcast applications. MediaConvert conforms any pixels outside // of the values that you specify under Minimum YUV and Maximum YUV to limited // range bounds. MediaConvert also corrects any YUV values that, when converted to // RGB, would be outside the bounds you specify under Minimum RGB tolerance and // Maximum RGB tolerance. With either limited range conversion, MediaConvert writes // the sample range metadata in the output. SampleRangeConversion SampleRangeConversion // Saturation level. Saturation int32 // Specify the reference white level, in nits, for all of your SDR inputs. Use to // correct brightness levels within HDR10 outputs. The following color metadata // must be present in your SDR input: color primaries, transfer characteristics, // and matrix coefficients. If your SDR input has missing color metadata, or if you // want to correct input color metadata, manually specify a color space in the // input video selector. For 1,000 nit peak brightness displays, we recommend that // you set SDR reference white level to 203 (according to ITU-R BT.2408). Leave // blank to use the default value of 100, or specify an integer from 100 to 1000. SdrReferenceWhiteLevel int32 noSmithyDocumentSerde } // Container specific settings. type ContainerSettings struct { // These settings relate to the fragmented MP4 container for the segments in your // CMAF outputs. CmfcSettings *CmfcSettings // Container for this output. Some containers require a container settings object. // If not specified, the default object will be created. Container ContainerType // Settings for F4v container F4vSettings *F4vSettings // MPEG-2 TS container settings. These apply to outputs in a File output group // when the output's container (ContainerType) is MPEG-2 Transport Stream (M2TS). // In these assets, data is organized by the program map table (PMT). Each // transport stream program contains subsets of data, including audio, video, and // metadata. Each of these subsets of data has a numerical label called a packet // identifier (PID). Each transport stream program corresponds to one MediaConvert // output. The PMT lists the types of data in a program along with their PID. // Downstream systems and players use the program map table to look up the PID for // each type of data it accesses and then uses the PIDs to locate specific data // within the asset. M2tsSettings *M2tsSettings // These settings relate to the MPEG-2 transport stream (MPEG2-TS) container for // the MPEG2-TS segments in your HLS outputs. M3u8Settings *M3u8Settings // These settings relate to your QuickTime MOV output container. MovSettings *MovSettings // These settings relate to your MP4 output container. You can create audio only // outputs with this container. For more information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/supported-codecs-containers-audio-only.html#output-codecs-and-containers-supported-for-audio-only. Mp4Settings *Mp4Settings // These settings relate to the fragmented MP4 container for the segments in your // DASH outputs. MpdSettings *MpdSettings // These settings relate to your MXF output container. MxfSettings *MxfSettings noSmithyDocumentSerde } // Specify the details for each additional DASH manifest that you want the service // to generate for this output group. Each manifest can reference a different // subset of outputs in the group. type DashAdditionalManifest struct { // Specify a name modifier that the service adds to the name of this manifest to // make it different from the file names of the other main manifests in the output // group. For example, say that the default main manifest for your DASH group is // film-name.mpd. If you enter "-no-premium" for this setting, then the file name // the service generates for this top-level manifest is film-name-no-premium.mpd. ManifestNameModifier *string // Specify the outputs that you want this additional top-level manifest to // reference. SelectedOutputs []string noSmithyDocumentSerde } // Specifies DRM settings for DASH outputs. type DashIsoEncryptionSettings struct { // This setting can improve the compatibility of your output with video players on // obsolete devices. It applies only to DASH H.264 outputs with DRM encryption. // Choose Unencrypted SEI (UNENCRYPTED_SEI) only to correct problems with playback // on older devices. Otherwise, keep the default setting CENC v1 (CENC_V1). If you // choose Unencrypted SEI, for that output, the service will exclude the access // unit delimiter and will leave the SEI NAL units unencrypted. PlaybackDeviceCompatibility DashIsoPlaybackDeviceCompatibility // If your output group type is HLS, DASH, or Microsoft Smooth, use these settings // when doing DRM encryption with a SPEKE-compliant key provider. If your output // group type is CMAF, use the SpekeKeyProviderCmaf settings instead. SpekeKeyProvider *SpekeKeyProvider noSmithyDocumentSerde } // Settings related to your DASH output package. For more information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/outputs-file-ABR.html. When // you work directly in your JSON job specification, include this object and any // required children when you set Type, under OutputGroupSettings, to // DASH_ISO_GROUP_SETTINGS. type DashIsoGroupSettings struct { // By default, the service creates one .mpd DASH manifest for each DASH ISO output // group in your job. This default manifest references every output in the output // group. To create additional DASH manifests that reference a subset of the // outputs in the output group, specify a list of them here. AdditionalManifests []DashAdditionalManifest // Use this setting only when your audio codec is a Dolby one (AC3, EAC3, or // Atmos) and your downstream workflow requires that your DASH manifest use the // Dolby channel configuration tag, rather than the MPEG one. For example, you // might need to use this to make dynamic ad insertion work. Specify which audio // channel configuration scheme ID URI MediaConvert writes in your DASH manifest. // Keep the default value, MPEG channel configuration (MPEG_CHANNEL_CONFIGURATION), // to have MediaConvert write this: urn:mpeg:mpegB:cicp:ChannelConfiguration. // Choose Dolby channel configuration (DOLBY_CHANNEL_CONFIGURATION) to have // MediaConvert write this instead: // tag:dolby.com,2014:dash:audio_channel_configuration:2011. AudioChannelConfigSchemeIdUri DashIsoGroupAudioChannelConfigSchemeIdUri // A partial URI prefix that will be put in the manifest (.mpd) file at the top // level BaseURL element. Can be used if streams are delivered from a different URL // than the manifest file. BaseUrl *string // Specify how MediaConvert writes SegmentTimeline in your output DASH manifest. // To write a SegmentTimeline in each video Representation: Keep the default value, // Basic. To write a common SegmentTimeline in the video AdaptationSet: Choose // Compact. Note that MediaConvert will still write a SegmentTimeline in any // Representation that does not share a common timeline. To write a video // AdaptationSet for each different output framerate, and a common SegmentTimeline // in each AdaptationSet: Choose Distinct. DashManifestStyle DashManifestStyle // Use Destination (Destination) to specify the S3 output location and the output // filename base. Destination accepts format identifiers. If you do not specify the // base filename in the URI, the service will use the filename of the input file. // If your job has multiple inputs, the service uses the filename of the first // input file. Destination *string // Settings associated with the destination. Will vary based on the type of // destination DestinationSettings *DestinationSettings // DRM settings. Encryption *DashIsoEncryptionSettings // Length of fragments to generate (in seconds). Fragment length must be // compatible with GOP size and Framerate. Note that fragments will end on the next // keyframe after this number of seconds, so actual fragment length may be longer. // When Emit Single File is checked, the fragmentation is internal to a single // output file and it does not cause the creation of many output files as in other // output types. FragmentLength int32 // Supports HbbTV specification as indicated HbbtvCompliance DashIsoHbbtvCompliance // Specify whether MediaConvert generates images for trick play. Keep the default // value, None (NONE), to not generate any images. Choose Thumbnail (THUMBNAIL) to // generate tiled thumbnails. Choose Thumbnail and full frame // (THUMBNAIL_AND_FULLFRAME) to generate tiled thumbnails and full-resolution // images of single frames. MediaConvert adds an entry in the .mpd manifest for // each set of images that you generate. A common application for these images is // Roku trick mode. The thumbnails and full-frame images that MediaConvert creates // with this feature are compatible with this Roku specification: // https://developer.roku.com/docs/developer-program/media-playback/trick-mode/hls-and-dash.md ImageBasedTrickPlay DashIsoImageBasedTrickPlay // Tile and thumbnail settings applicable when imageBasedTrickPlay is ADVANCED ImageBasedTrickPlaySettings *DashIsoImageBasedTrickPlaySettings // Minimum time of initially buffered media that is needed to ensure smooth // playout. MinBufferTime int32 // Keep this setting at the default value of 0, unless you are troubleshooting a // problem with how devices play back the end of your video asset. If you know that // player devices are hanging on the final segment of your video because the length // of your final segment is too short, use this setting to specify a minimum final // segment length, in seconds. Choose a value that is greater than or equal to 1 // and less than your segment length. When you specify a value for this setting, // the encoder will combine any final segment that is shorter than the length that // you specify with the previous segment. For example, your segment length is 3 // seconds and your final segment is .5 seconds without a minimum final segment // length; when you set the minimum final segment length to 1, your final segment // is 3.5 seconds. MinFinalSegmentLength float64 // Specify how the value for bandwidth is determined for each video Representation // in your output MPD manifest. We recommend that you choose a MPD manifest // bandwidth type that is compatible with your downstream player configuration. // Max: Use the same value that you specify for Max bitrate in the video output, in // bits per second. Average: Use the calculated average bitrate of the encoded // video output, in bits per second. MpdManifestBandwidthType DashIsoMpdManifestBandwidthType // Specify whether your DASH profile is on-demand or main. When you choose Main // profile (MAIN_PROFILE), the service signals // urn:mpeg:dash:profile:isoff-main:2011 in your .mpd DASH manifest. When you // choose On-demand (ON_DEMAND_PROFILE), the service signals // urn:mpeg:dash:profile:isoff-on-demand:2011 in your .mpd. When you choose // On-demand, you must also set the output group setting Segment control // (SegmentControl) to Single file (SINGLE_FILE). MpdProfile DashIsoMpdProfile // Use this setting only when your output video stream has B-frames, which causes // the initial presentation time stamp (PTS) to be offset from the initial decode // time stamp (DTS). Specify how MediaConvert handles PTS when writing time stamps // in output DASH manifests. Choose Match initial PTS (MATCH_INITIAL_PTS) when you // want MediaConvert to use the initial PTS as the first time stamp in the // manifest. Choose Zero-based (ZERO_BASED) to have MediaConvert ignore the initial // PTS in the video stream and instead write the initial time stamp as zero in the // manifest. For outputs that don't have B-frames, the time stamps in your DASH // manifests start at zero regardless of your choice here. PtsOffsetHandlingForBFrames DashIsoPtsOffsetHandlingForBFrames // When set to SINGLE_FILE, a single output file is generated, which is internally // segmented using the Fragment Length and Segment Length. When set to // SEGMENTED_FILES, separate segment files will be created. SegmentControl DashIsoSegmentControl // Specify the length, in whole seconds, of each segment. When you don't specify a // value, MediaConvert defaults to 30. Related settings: Use Segment length control // (SegmentLengthControl) to specify whether the encoder enforces this value // strictly. Use Segment control (DashIsoSegmentControl) to specify whether // MediaConvert creates separate segment files or one content file that has // metadata to mark the segment boundaries. SegmentLength int32 // Specify how you want MediaConvert to determine the segment length. Choose Exact // (EXACT) to have the encoder use the exact length that you specify with the // setting Segment length (SegmentLength). This might result in extra I-frames. // Choose Multiple of GOP (GOP_MULTIPLE) to have the encoder round up the segment // lengths to match the next GOP boundary. SegmentLengthControl DashIsoSegmentLengthControl // Specify the video sample composition time offset mode in the output fMP4 TRUN // box. For wider player compatibility, set Video composition offsets to Unsigned // or leave blank. The earliest presentation time may be greater than zero, and // sample composition time offsets will increment using unsigned integers. For // strict fMP4 video and audio timing, set Video composition offsets to Signed. The // earliest presentation time will be equal to zero, and sample composition time // offsets will increment using signed integers. VideoCompositionOffsets DashIsoVideoCompositionOffsets // If you get an HTTP error in the 400 range when you play back your DASH output, // enable this setting and run your transcoding job again. When you enable this // setting, the service writes precise segment durations in the DASH manifest. The // segment duration information appears inside the SegmentTimeline element, inside // SegmentTemplate at the Representation level. When you don't enable this setting, // the service writes approximate segment durations in your DASH manifest. WriteSegmentTimelineInRepresentation DashIsoWriteSegmentTimelineInRepresentation noSmithyDocumentSerde } // Tile and thumbnail settings applicable when imageBasedTrickPlay is ADVANCED type DashIsoImageBasedTrickPlaySettings struct { // The cadence MediaConvert follows for generating thumbnails. If set to // FOLLOW_IFRAME, MediaConvert generates thumbnails for each IDR frame in the // output (matching the GOP cadence). If set to FOLLOW_CUSTOM, MediaConvert // generates thumbnails according to the interval you specify in thumbnailInterval. IntervalCadence DashIsoIntervalCadence // Height of each thumbnail within each tile image, in pixels. Leave blank to // maintain aspect ratio with thumbnail width. If following the aspect ratio would // lead to a total tile height greater than 4096, then the job will be rejected. // Must be divisible by 2. ThumbnailHeight int32 // Enter the interval, in seconds, that MediaConvert uses to generate thumbnails. // If the interval you enter doesn't align with the output frame rate, MediaConvert // automatically rounds the interval to align with the output frame rate. For // example, if the output frame rate is 29.97 frames per second and you enter 5, // MediaConvert uses a 150 frame interval to generate thumbnails. ThumbnailInterval float64 // Width of each thumbnail within each tile image, in pixels. Default is 312. Must // be divisible by 8. ThumbnailWidth int32 // Number of thumbnails in each column of a tile image. Set a value between 2 and // 2048. Must be divisible by 2. TileHeight int32 // Number of thumbnails in each row of a tile image. Set a value between 1 and 512. TileWidth int32 noSmithyDocumentSerde } // Settings for deinterlacer type Deinterlacer struct { // Only applies when you set Deinterlace mode to Deinterlace or Adaptive. // Interpolate produces sharper pictures, while blend produces smoother motion. If // your source file includes a ticker, such as a scrolling headline at the bottom // of the frame: Choose Interpolate ticker or Blend ticker. To apply field // doubling: Choose Linear interpolation. Note that Linear interpolation may // introduce video artifacts into your output. Algorithm DeinterlaceAlgorithm // - When set to NORMAL (default), the deinterlacer does not convert frames that // are tagged in metadata as progressive. It will only convert those that are // tagged as some other type. - When set to FORCE_ALL_FRAMES, the deinterlacer // converts every frame to progressive - even those that are already tagged as // progressive. Turn Force mode on only if there is a good chance that the metadata // has tagged frames as progressive when they are not progressive. Do not turn on // otherwise; processing frames that are already progressive into progressive will // probably result in lower quality video. Control DeinterlacerControl // Use Deinterlacer (DeinterlaceMode) to choose how the service will do // deinterlacing. Default is Deinterlace. - Deinterlace converts interlaced to // progressive. - Inverse telecine converts Hard Telecine 29.97i to progressive // 23.976p. - Adaptive auto-detects and converts to progressive. Mode DeinterlacerMode noSmithyDocumentSerde } // Settings associated with the destination. Will vary based on the type of // destination type DestinationSettings struct { // Settings associated with S3 destination S3Settings *S3DestinationSettings noSmithyDocumentSerde } // Create Dolby Vision Profile 5 or Profile 8.1 compatible video output. type DolbyVision struct { // Use these settings when you set DolbyVisionLevel6Mode to SPECIFY to override // the MaxCLL and MaxFALL values in your input with new values. L6Metadata *DolbyVisionLevel6Metadata // Use Dolby Vision Mode to choose how the service will handle Dolby Vision MaxCLL // and MaxFALL properies. L6Mode DolbyVisionLevel6Mode // Required when you set Dolby Vision Profile to Profile 8.1. When you set Content // mapping to None, content mapping is not applied to the HDR10-compatible signal. // Depending on the source peak nit level, clipping might occur on HDR devices // without Dolby Vision. When you set Content mapping to HDR10 1000, the transcoder // creates a 1,000 nits peak HDR10-compatible signal by applying static content // mapping to the source. This mode is speed-optimized for PQ10 sources with // metadata that is created from analysis. For graded Dolby Vision content, be // aware that creative intent might not be guaranteed with extreme 1,000 nits // trims. Mapping DolbyVisionMapping // Required when you enable Dolby Vision. Use Profile 5 to include // frame-interleaved Dolby Vision metadata in your output. Your input must include // Dolby Vision metadata or an HDR10 YUV color space. Use Profile 8.1 to include // frame-interleaved Dolby Vision metadata and HDR10 metadata in your output. Your // input must include Dolby Vision metadata. Profile DolbyVisionProfile noSmithyDocumentSerde } // Use these settings when you set DolbyVisionLevel6Mode to SPECIFY to override // the MaxCLL and MaxFALL values in your input with new values. type DolbyVisionLevel6Metadata struct { // Maximum Content Light Level. Static HDR metadata that corresponds to the // brightest pixel in the entire stream. Measured in nits. MaxCll int32 // Maximum Frame-Average Light Level. Static HDR metadata that corresponds to the // highest frame-average brightness in the entire stream. Measured in nits. MaxFall int32 noSmithyDocumentSerde } // Use these settings to insert a DVB Network Information Table (NIT) in the // transport stream of this output. When you work directly in your JSON job // specification, include this object only when your job has a transport stream // output and the container settings contain the object M2tsSettings. type DvbNitSettings struct { // The numeric value placed in the Network Information Table (NIT). NetworkId int32 // The network name text placed in the network_name_descriptor inside the Network // Information Table. Maximum length is 256 characters. NetworkName *string // The number of milliseconds between instances of this table in the output // transport stream. NitInterval int32 noSmithyDocumentSerde } // Use these settings to insert a DVB Service Description Table (SDT) in the // transport stream of this output. When you work directly in your JSON job // specification, include this object only when your job has a transport stream // output and the container settings contain the object M2tsSettings. type DvbSdtSettings struct { // Selects method of inserting SDT information into output stream. "Follow input // SDT" copies SDT information from input stream to output stream. "Follow input // SDT if present" copies SDT information from input stream to output stream if SDT // information is present in the input, otherwise it will fall back on the // user-defined values. Enter "SDT Manually" means user will enter the SDT // information. "No SDT" means output stream will not contain SDT information. OutputSdt OutputSdt // The number of milliseconds between instances of this table in the output // transport stream. SdtInterval int32 // The service name placed in the service_descriptor in the Service Description // Table. Maximum length is 256 characters. ServiceName *string // The service provider name placed in the service_descriptor in the Service // Description Table. Maximum length is 256 characters. ServiceProviderName *string noSmithyDocumentSerde } // Settings related to DVB-Sub captions. Set up DVB-Sub captions in the same // output as your video. For more information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/dvb-sub-output-captions.html. // When you work directly in your JSON job specification, include this object and // any required children when you set destinationType to DVB_SUB. type DvbSubDestinationSettings struct { // Specify the alignment of your captions. If no explicit x_position is provided, // setting alignment to centered will placethe captions at the bottom center of the // output. Similarly, setting a left alignment willalign captions to the bottom // left of the output. If x and y positions are given in conjunction with the // alignment parameter, the font will be justified (either left or centered) // relative to those coordinates. Within your job settings, all of your DVB-Sub // settings must be identical. Alignment DvbSubtitleAlignment // Ignore this setting unless Style Passthrough (StylePassthrough) is set to // Enabled and Font color (FontColor) set to Black, Yellow, Red, Green, Blue, or // Hex. Use Apply font color (ApplyFontColor) for additional font color controls. // When you choose White text only (WHITE_TEXT_ONLY), or leave blank, your font // color setting only applies to white text in your input captions. For example, if // your font color setting is Yellow, and your input captions have red and white // text, your output captions will have red and yellow text. When you choose // ALL_TEXT, your font color setting applies to all of your output captions text. ApplyFontColor DvbSubtitleApplyFontColor // Specify the color of the rectangle behind the captions. Leave background color // (BackgroundColor) blank and set Style passthrough (StylePassthrough) to enabled // to use the background color data from your input captions, if present. BackgroundColor DvbSubtitleBackgroundColor // Specify the opacity of the background rectangle. Enter a value from 0 to 255, // where 0 is transparent and 255 is opaque. If Style passthrough // (StylePassthrough) is set to enabled, leave blank to pass through the background // style information in your input captions to your output captions. If Style // passthrough is set to disabled, leave blank to use a value of 0 and remove all // backgrounds from your output captions. Within your job settings, all of your // DVB-Sub settings must be identical. BackgroundOpacity int32 // Specify how MediaConvert handles the display definition segment (DDS). To // exclude the DDS from this set of captions: Keep the default, None. To include // the DDS: Choose Specified. When you do, also specify the offset coordinates of // the display window with DDS x-coordinate and DDS y-coordinate. To include the // DDS, but not include display window data: Choose No display window. When you do, // you can write position metadata to the page composition segment (PCS) with DDS // x-coordinate and DDS y-coordinate. For video resolutions with a height of 576 // pixels or less, MediaConvert doesn't include the DDS, regardless of the value // you choose for DDS handling. All burn-in and DVB-Sub font settings must match. DdsHandling DvbddsHandling // Use this setting, along with DDS y-coordinate (ddsYCoordinate), to specify the // upper left corner of the display definition segment (DDS) display window. With // this setting, specify the distance, in pixels, between the left side of the // frame and the left side of the DDS display window. Keep the default value, 0, to // have MediaConvert automatically choose this offset. Related setting: When you // use this setting, you must set DDS handling (ddsHandling) to a value other than // None (NONE). MediaConvert uses these values to determine whether to write page // position data to the DDS or to the page composition segment (PCS). All burn-in // and DVB-Sub font settings must match. DdsXCoordinate int32 // Use this setting, along with DDS x-coordinate (ddsXCoordinate), to specify the // upper left corner of the display definition segment (DDS) display window. With // this setting, specify the distance, in pixels, between the top of the frame and // the top of the DDS display window. Keep the default value, 0, to have // MediaConvert automatically choose this offset. Related setting: When you use // this setting, you must set DDS handling (ddsHandling) to a value other than None // (NONE). MediaConvert uses these values to determine whether to write page // position data to the DDS or to the page composition segment (PCS). All burn-in // and DVB-Sub font settings must match. DdsYCoordinate int32 // Specify the font that you want the service to use for your burn in captions // when your input captions specify a font that MediaConvert doesn't support. When // you set Fallback font (FallbackFont) to best match (BEST_MATCH), or leave blank, // MediaConvert uses a supported font that most closely matches the font that your // input captions specify. When there are multiple unsupported fonts in your input // captions, MediaConvert matches each font with the supported font that matches // best. When you explicitly choose a replacement font, MediaConvert uses that font // to replace all unsupported fonts from your input. FallbackFont DvbSubSubtitleFallbackFont // Specify the color of the captions text. Leave Font color (FontColor) blank and // set Style passthrough (StylePassthrough) to enabled to use the font color data // from your input captions, if present. Within your job settings, all of your // DVB-Sub settings must be identical. FontColor DvbSubtitleFontColor // Specify the opacity of the burned-in captions. 255 is opaque; 0 is transparent. // Within your job settings, all of your DVB-Sub settings must be identical. FontOpacity int32 // Specify the Font resolution (FontResolution) in DPI (dots per inch). Within // your job settings, all of your DVB-Sub settings must be identical. FontResolution int32 // Set Font script (FontScript) to Automatically determined (AUTOMATIC), or leave // blank, to automatically determine the font script in your input captions. // Otherwise, set to Simplified Chinese (HANS) or Traditional Chinese (HANT) if // your input font script uses Simplified or Traditional Chinese. Within your job // settings, all of your DVB-Sub settings must be identical. FontScript FontScript // Specify the Font size (FontSize) in pixels. Must be a positive integer. Set to // 0, or leave blank, for automatic font size. Within your job settings, all of // your DVB-Sub settings must be identical. FontSize int32 // Specify the height, in pixels, of this set of DVB-Sub captions. The default // value is 576 pixels. Related setting: When you use this setting, you must set // DDS handling (ddsHandling) to a value other than None (NONE). All burn-in and // DVB-Sub font settings must match. Height int32 // Ignore this setting unless your Font color is set to Hex. Enter either six or // eight hexidecimal digits, representing red, green, and blue, with two optional // extra digits for alpha. For example a value of 1122AABB is a red value of 0x11, // a green value of 0x22, a blue value of 0xAA, and an alpha value of 0xBB. HexFontColor *string // Specify font outline color. Leave Outline color (OutlineColor) blank and set // Style passthrough (StylePassthrough) to enabled to use the font outline color // data from your input captions, if present. Within your job settings, all of your // DVB-Sub settings must be identical. OutlineColor DvbSubtitleOutlineColor // Specify the Outline size (OutlineSize) of the caption text, in pixels. Leave // Outline size blank and set Style passthrough (StylePassthrough) to enabled to // use the outline size data from your input captions, if present. Within your job // settings, all of your DVB-Sub settings must be identical. OutlineSize int32 // Specify the color of the shadow cast by the captions. Leave Shadow color // (ShadowColor) blank and set Style passthrough (StylePassthrough) to enabled to // use the shadow color data from your input captions, if present. Within your job // settings, all of your DVB-Sub settings must be identical. ShadowColor DvbSubtitleShadowColor // Specify the opacity of the shadow. Enter a value from 0 to 255, where 0 is // transparent and 255 is opaque. If Style passthrough (StylePassthrough) is set to // Enabled, leave Shadow opacity (ShadowOpacity) blank to pass through the shadow // style information in your input captions to your output captions. If Style // passthrough is set to disabled, leave blank to use a value of 0 and remove all // shadows from your output captions. Within your job settings, all of your DVB-Sub // settings must be identical. ShadowOpacity int32 // Specify the horizontal offset of the shadow, relative to the captions in // pixels. A value of -2 would result in a shadow offset 2 pixels to the left. // Within your job settings, all of your DVB-Sub settings must be identical. ShadowXOffset int32 // Specify the vertical offset of the shadow relative to the captions in pixels. A // value of -2 would result in a shadow offset 2 pixels above the text. Leave // Shadow y-offset (ShadowYOffset) blank and set Style passthrough // (StylePassthrough) to enabled to use the shadow y-offset data from your input // captions, if present. Within your job settings, all of your DVB-Sub settings // must be identical. ShadowYOffset int32 // Set Style passthrough (StylePassthrough) to ENABLED to use the available style, // color, and position information from your input captions. MediaConvert uses // default settings for any missing style and position information in your input // captions. Set Style passthrough to DISABLED, or leave blank, to ignore the style // and position information from your input captions and use default settings: // white text with black outlining, bottom-center positioning, and automatic // sizing. Whether you set Style passthrough to enabled or not, you can also choose // to manually override any of the individual style and position settings. StylePassthrough DvbSubtitleStylePassthrough // Specify whether your DVB subtitles are standard or for hearing impaired. Choose // hearing impaired if your subtitles include audio descriptions and dialogue. // Choose standard if your subtitles include only dialogue. SubtitlingType DvbSubtitlingType // Specify whether the Text spacing (TeletextSpacing) in your captions is set by // the captions grid, or varies depending on letter width. Choose fixed grid // (FIXED_GRID) to conform to the spacing specified in the captions file more // accurately. Choose proportional (PROPORTIONAL) to make the text easier to read // for closed captions. Within your job settings, all of your DVB-Sub settings must // be identical. TeletextSpacing DvbSubtitleTeletextSpacing // Specify the width, in pixels, of this set of DVB-Sub captions. The default // value is 720 pixels. Related setting: When you use this setting, you must set // DDS handling (ddsHandling) to a value other than None (NONE). All burn-in and // DVB-Sub font settings must match. Width int32 // Specify the horizontal position (XPosition) of the captions, relative to the // left side of the outputin pixels. A value of 10 would result in the captions // starting 10 pixels from the left ofthe output. If no explicit x_position is // provided, the horizontal caption position will bedetermined by the alignment // parameter. Within your job settings, all of your DVB-Sub settings must be // identical. XPosition int32 // Specify the vertical position (YPosition) of the captions, relative to the top // of the output in pixels. A value of 10 would result in the captions starting 10 // pixels from the top of the output. If no explicit y_position is provided, the // caption will be positioned towards the bottom of the output. Within your job // settings, all of your DVB-Sub settings must be identical. YPosition int32 noSmithyDocumentSerde } // DVB Sub Source Settings type DvbSubSourceSettings struct { // When using DVB-Sub with Burn-in, use this PID for the source content. Unused // for DVB-Sub passthrough. All DVB-Sub content is passed through, regardless of // selectors. Pid int32 noSmithyDocumentSerde } // Use these settings to insert a DVB Time and Date Table (TDT) in the transport // stream of this output. When you work directly in your JSON job specification, // include this object only when your job has a transport stream output and the // container settings contain the object M2tsSettings. type DvbTdtSettings struct { // The number of milliseconds between instances of this table in the output // transport stream. TdtInterval int32 noSmithyDocumentSerde } // Required when you set (Codec) under (AudioDescriptions)>(CodecSettings) to the // value EAC3_ATMOS. type Eac3AtmosSettings struct { // Specify the average bitrate for this output in bits per second. Valid values: // 384k, 448k, 576k, 640k, 768k, 1024k Default value: 448k Note that MediaConvert // supports 384k only with channel-based immersive (CBI) 7.1.4 and 5.1.4 inputs. // For CBI 9.1.6 and other input types, MediaConvert automatically increases your // output bitrate to 448k. Bitrate int32 // Specify the bitstream mode for the E-AC-3 stream that the encoder emits. For // more information about the EAC3 bitstream mode, see ATSC A/52-2012 (Annex E). BitstreamMode Eac3AtmosBitstreamMode // The coding mode for Dolby Digital Plus JOC (Atmos). CodingMode Eac3AtmosCodingMode // Enable Dolby Dialogue Intelligence to adjust loudness based on dialogue // analysis. DialogueIntelligence Eac3AtmosDialogueIntelligence // Specify whether MediaConvert should use any downmix metadata from your input // file. Keep the default value, Custom (SPECIFIED) to provide downmix values in // your job settings. Choose Follow source (INITIALIZE_FROM_SOURCE) to use the // metadata from your input. Related settings--Use these settings to specify your // downmix values: Left only/Right only surround (LoRoSurroundMixLevel), Left // total/Right total surround (LtRtSurroundMixLevel), Left total/Right total center // (LtRtCenterMixLevel), Left only/Right only center (LoRoCenterMixLevel), and // Stereo downmix (StereoDownmix). When you keep Custom (SPECIFIED) for Downmix // control (DownmixControl) and you don't specify values for the related settings, // MediaConvert uses default values for those settings. DownmixControl Eac3AtmosDownmixControl // Choose the Dolby dynamic range control (DRC) profile that MediaConvert uses // when encoding the metadata in the Dolby stream for the line operating mode. // Default value: Film light (ATMOS_STORAGE_DDP_COMPR_FILM_LIGHT) Related setting: // To have MediaConvert use the value you specify here, keep the default value, // Custom (SPECIFIED) for the setting Dynamic range control (DynamicRangeControl). // Otherwise, MediaConvert ignores Dynamic range compression line // (DynamicRangeCompressionLine). For information about the Dolby DRC operating // modes and profiles, see the Dynamic Range Control chapter of the Dolby Metadata // Guide at // https://developer.dolby.com/globalassets/professional/documents/dolby-metadata-guide.pdf. DynamicRangeCompressionLine Eac3AtmosDynamicRangeCompressionLine // Choose the Dolby dynamic range control (DRC) profile that MediaConvert uses // when encoding the metadata in the Dolby stream for the RF operating mode. // Default value: Film light (ATMOS_STORAGE_DDP_COMPR_FILM_LIGHT) Related setting: // To have MediaConvert use the value you specify here, keep the default value, // Custom (SPECIFIED) for the setting Dynamic range control (DynamicRangeControl). // Otherwise, MediaConvert ignores Dynamic range compression RF // (DynamicRangeCompressionRf). For information about the Dolby DRC operating modes // and profiles, see the Dynamic Range Control chapter of the Dolby Metadata Guide // at // https://developer.dolby.com/globalassets/professional/documents/dolby-metadata-guide.pdf. DynamicRangeCompressionRf Eac3AtmosDynamicRangeCompressionRf // Specify whether MediaConvert should use any dynamic range control metadata from // your input file. Keep the default value, Custom (SPECIFIED), to provide dynamic // range control values in your job settings. Choose Follow source // (INITIALIZE_FROM_SOURCE) to use the metadata from your input. Related // settings--Use these settings to specify your dynamic range control values: // Dynamic range compression line (DynamicRangeCompressionLine) and Dynamic range // compression RF (DynamicRangeCompressionRf). When you keep the value Custom // (SPECIFIED) for Dynamic range control (DynamicRangeControl) and you don't // specify values for the related settings, MediaConvert uses default values for // those settings. DynamicRangeControl Eac3AtmosDynamicRangeControl // Specify a value for the following Dolby Atmos setting: Left only/Right only // center mix (Lo/Ro center). MediaConvert uses this value for downmixing. Default // value: -3 dB (ATMOS_STORAGE_DDP_MIXLEV_MINUS_3_DB). Valid values: 3.0, 1.5, 0.0, // -1.5, -3.0, -4.5, and -6.0. Related setting: How the service uses this value // depends on the value that you choose for Stereo downmix // (Eac3AtmosStereoDownmix). Related setting: To have MediaConvert use this value, // keep the default value, Custom (SPECIFIED) for the setting Downmix control // (DownmixControl). Otherwise, MediaConvert ignores Left only/Right only center // (LoRoCenterMixLevel). LoRoCenterMixLevel float64 // Specify a value for the following Dolby Atmos setting: Left only/Right only // (Lo/Ro surround). MediaConvert uses this value for downmixing. Default value: -3 // dB (ATMOS_STORAGE_DDP_MIXLEV_MINUS_3_DB). Valid values: -1.5, -3.0, -4.5, -6.0, // and -60. The value -60 mutes the channel. Related setting: How the service uses // this value depends on the value that you choose for Stereo downmix // (Eac3AtmosStereoDownmix). Related setting: To have MediaConvert use this value, // keep the default value, Custom (SPECIFIED) for the setting Downmix control // (DownmixControl). Otherwise, MediaConvert ignores Left only/Right only surround // (LoRoSurroundMixLevel). LoRoSurroundMixLevel float64 // Specify a value for the following Dolby Atmos setting: Left total/Right total // center mix (Lt/Rt center). MediaConvert uses this value for downmixing. Default // value: -3 dB (ATMOS_STORAGE_DDP_MIXLEV_MINUS_3_DB) Valid values: 3.0, 1.5, 0.0, // -1.5, -3.0, -4.5, and -6.0. Related setting: How the service uses this value // depends on the value that you choose for Stereo downmix // (Eac3AtmosStereoDownmix). Related setting: To have MediaConvert use this value, // keep the default value, Custom (SPECIFIED) for the setting Downmix control // (DownmixControl). Otherwise, MediaConvert ignores Left total/Right total center // (LtRtCenterMixLevel). LtRtCenterMixLevel float64 // Specify a value for the following Dolby Atmos setting: Left total/Right total // surround mix (Lt/Rt surround). MediaConvert uses this value for downmixing. // Default value: -3 dB (ATMOS_STORAGE_DDP_MIXLEV_MINUS_3_DB) Valid values: -1.5, // -3.0, -4.5, -6.0, and -60. The value -60 mutes the channel. Related setting: How // the service uses this value depends on the value that you choose for Stereo // downmix (Eac3AtmosStereoDownmix). Related setting: To have MediaConvert use this // value, keep the default value, Custom (SPECIFIED) for the setting Downmix // control (DownmixControl). Otherwise, the service ignores Left total/Right total // surround (LtRtSurroundMixLevel). LtRtSurroundMixLevel float64 // Choose how the service meters the loudness of your audio. MeteringMode Eac3AtmosMeteringMode // This value is always 48000. It represents the sample rate in Hz. SampleRate int32 // Specify the percentage of audio content, from 0% to 100%, that must be speech // in order for the encoder to use the measured speech loudness as the overall // program loudness. Default value: 15% SpeechThreshold int32 // Choose how the service does stereo downmixing. Default value: Not indicated // (ATMOS_STORAGE_DDP_DMIXMOD_NOT_INDICATED) Related setting: To have MediaConvert // use this value, keep the default value, Custom (SPECIFIED) for the setting // Downmix control (DownmixControl). Otherwise, MediaConvert ignores Stereo downmix // (StereoDownmix). StereoDownmix Eac3AtmosStereoDownmix // Specify whether your input audio has an additional center rear surround channel // matrix encoded into your left and right surround channels. SurroundExMode Eac3AtmosSurroundExMode noSmithyDocumentSerde } // Required when you set (Codec) under (AudioDescriptions)>(CodecSettings) to the // value EAC3. type Eac3Settings struct { // If set to ATTENUATE_3_DB, applies a 3 dB attenuation to the surround channels. // Only used for 3/2 coding mode. AttenuationControl Eac3AttenuationControl // Specify the average bitrate in bits per second. The bitrate that you specify // must be a multiple of 8000 within the allowed minimum and maximum values. Leave // blank to use the default bitrate for the coding mode you select according ETSI // TS 102 366. Valid bitrates for coding mode 1/0: Default: 96000. Minimum: 32000. // Maximum: 3024000. Valid bitrates for coding mode 2/0: Default: 192000. Minimum: // 96000. Maximum: 3024000. Valid bitrates for coding mode 3/2: Default: 384000. // Minimum: 192000. Maximum: 3024000. Bitrate int32 // Specify the bitstream mode for the E-AC-3 stream that the encoder emits. For // more information about the EAC3 bitstream mode, see ATSC A/52-2012 (Annex E). BitstreamMode Eac3BitstreamMode // Dolby Digital Plus coding mode. Determines number of channels. CodingMode Eac3CodingMode // Activates a DC highpass filter for all input channels. DcFilter Eac3DcFilter // Sets the dialnorm for the output. If blank and input audio is Dolby Digital // Plus, dialnorm will be passed through. Dialnorm int32 // Choose the Dolby Digital dynamic range control (DRC) profile that MediaConvert // uses when encoding the metadata in the Dolby Digital stream for the line // operating mode. Related setting: When you use this setting, MediaConvert ignores // any value you provide for Dynamic range compression profile // (DynamicRangeCompressionProfile). For information about the Dolby Digital DRC // operating modes and profiles, see the Dynamic Range Control chapter of the Dolby // Metadata Guide at // https://developer.dolby.com/globalassets/professional/documents/dolby-metadata-guide.pdf. DynamicRangeCompressionLine Eac3DynamicRangeCompressionLine // Choose the Dolby Digital dynamic range control (DRC) profile that MediaConvert // uses when encoding the metadata in the Dolby Digital stream for the RF operating // mode. Related setting: When you use this setting, MediaConvert ignores any value // you provide for Dynamic range compression profile // (DynamicRangeCompressionProfile). For information about the Dolby Digital DRC // operating modes and profiles, see the Dynamic Range Control chapter of the Dolby // Metadata Guide at // https://developer.dolby.com/globalassets/professional/documents/dolby-metadata-guide.pdf. DynamicRangeCompressionRf Eac3DynamicRangeCompressionRf // When encoding 3/2 audio, controls whether the LFE channel is enabled LfeControl Eac3LfeControl // Applies a 120Hz lowpass filter to the LFE channel prior to encoding. Only valid // with 3_2_LFE coding mode. LfeFilter Eac3LfeFilter // Specify a value for the following Dolby Digital Plus setting: Left only/Right // only center mix (Lo/Ro center). MediaConvert uses this value for downmixing. How // the service uses this value depends on the value that you choose for Stereo // downmix (Eac3StereoDownmix). Valid values: 3.0, 1.5, 0.0, -1.5, -3.0, -4.5, // -6.0, and -60. The value -60 mutes the channel. This setting applies only if you // keep the default value of 3/2 - L, R, C, Ls, Rs (CODING_MODE_3_2) for the // setting Coding mode (Eac3CodingMode). If you choose a different value for Coding // mode, the service ignores Left only/Right only center (loRoCenterMixLevel). LoRoCenterMixLevel float64 // Specify a value for the following Dolby Digital Plus setting: Left only/Right // only (Lo/Ro surround). MediaConvert uses this value for downmixing. How the // service uses this value depends on the value that you choose for Stereo downmix // (Eac3StereoDownmix). Valid values: -1.5, -3.0, -4.5, -6.0, and -60. The value // -60 mutes the channel. This setting applies only if you keep the default value // of 3/2 - L, R, C, Ls, Rs (CODING_MODE_3_2) for the setting Coding mode // (Eac3CodingMode). If you choose a different value for Coding mode, the service // ignores Left only/Right only surround (loRoSurroundMixLevel). LoRoSurroundMixLevel float64 // Specify a value for the following Dolby Digital Plus setting: Left total/Right // total center mix (Lt/Rt center). MediaConvert uses this value for downmixing. // How the service uses this value depends on the value that you choose for Stereo // downmix (Eac3StereoDownmix). Valid values: 3.0, 1.5, 0.0, -1.5, -3.0, -4.5, // -6.0, and -60. The value -60 mutes the channel. This setting applies only if you // keep the default value of 3/2 - L, R, C, Ls, Rs (CODING_MODE_3_2) for the // setting Coding mode (Eac3CodingMode). If you choose a different value for Coding // mode, the service ignores Left total/Right total center (ltRtCenterMixLevel). LtRtCenterMixLevel float64 // Specify a value for the following Dolby Digital Plus setting: Left total/Right // total surround mix (Lt/Rt surround). MediaConvert uses this value for // downmixing. How the service uses this value depends on the value that you choose // for Stereo downmix (Eac3StereoDownmix). Valid values: -1.5, -3.0, -4.5, -6.0, // and -60. The value -60 mutes the channel. This setting applies only if you keep // the default value of 3/2 - L, R, C, Ls, Rs (CODING_MODE_3_2) for the setting // Coding mode (Eac3CodingMode). If you choose a different value for Coding mode, // the service ignores Left total/Right total surround (ltRtSurroundMixLevel). LtRtSurroundMixLevel float64 // When set to FOLLOW_INPUT, encoder metadata will be sourced from the DD, DD+, or // DolbyE decoder that supplied this audio data. If audio was not supplied from one // of these streams, then the static metadata settings will be used. MetadataControl Eac3MetadataControl // When set to WHEN_POSSIBLE, input DD+ audio will be passed through if it is // present on the input. this detection is dynamic over the life of the transcode. // Inputs that alternate between DD+ and non-DD+ content will have a consistent DD+ // output as the system alternates between passthrough and encoding. PassthroughControl Eac3PassthroughControl // Controls the amount of phase-shift applied to the surround channels. Only used // for 3/2 coding mode. PhaseControl Eac3PhaseControl // This value is always 48000. It represents the sample rate in Hz. SampleRate int32 // Choose how the service does stereo downmixing. This setting only applies if you // keep the default value of 3/2 - L, R, C, Ls, Rs (CODING_MODE_3_2) for the // setting Coding mode (Eac3CodingMode). If you choose a different value for Coding // mode, the service ignores Stereo downmix (Eac3StereoDownmix). StereoDownmix Eac3StereoDownmix // When encoding 3/2 audio, sets whether an extra center back surround channel is // matrix encoded into the left and right surround channels. SurroundExMode Eac3SurroundExMode // When encoding 2/0 audio, sets whether Dolby Surround is matrix encoded into the // two channels. SurroundMode Eac3SurroundMode noSmithyDocumentSerde } // Settings related to CEA/EIA-608 and CEA/EIA-708 (also called embedded or // ancillary) captions. Set up embedded captions in the same output as your video. // For more information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/embedded-output-captions.html. // When you work directly in your JSON job specification, include this object and // any required children when you set destinationType to EMBEDDED, // EMBEDDED_PLUS_SCTE20, or SCTE20_PLUS_EMBEDDED. type EmbeddedDestinationSettings struct { // Ignore this setting unless your input captions are SCC format and your output // captions are embedded in the video stream. Specify a CC number for each captions // channel in this output. If you have two channels, choose CC numbers that aren't // in the same field. For example, choose 1 and 3. For more information, see // https://docs.aws.amazon.com/console/mediaconvert/dual-scc-to-embedded. Destination608ChannelNumber int32 // Ignore this setting unless your input captions are SCC format and you want both // 608 and 708 captions embedded in your output stream. Optionally, specify the 708 // service number for each output captions channel. Choose a different number for // each channel. To use this setting, also set Force 608 to 708 upconvert // (Convert608To708) to Upconvert (UPCONVERT) in your input captions selector // settings. If you choose to upconvert but don't specify a 708 service number, // MediaConvert uses the number that you specify for CC channel number // (destination608ChannelNumber) for the 708 service number. For more information, // see https://docs.aws.amazon.com/console/mediaconvert/dual-scc-to-embedded. Destination708ServiceNumber int32 noSmithyDocumentSerde } // Settings for embedded captions Source type EmbeddedSourceSettings struct { // Specify whether this set of input captions appears in your outputs in both 608 // and 708 format. If you choose Upconvert (UPCONVERT), MediaConvert includes the // captions data in two ways: it passes the 608 data through using the 608 // compatibility bytes fields of the 708 wrapper, and it also translates the 608 // data into 708. Convert608To708 EmbeddedConvert608To708 // Specifies the 608/708 channel number within the video track from which to // extract captions. Unused for passthrough. Source608ChannelNumber int32 // Specifies the video track index used for extracting captions. The system only // supports one input video track, so this should always be set to '1'. Source608TrackNumber int32 // By default, the service terminates any unterminated captions at the end of each // input. If you want the caption to continue onto your next input, disable this // setting. TerminateCaptions EmbeddedTerminateCaptions noSmithyDocumentSerde } // Describes an account-specific API endpoint. type Endpoint struct { // URL of endpoint Url *string noSmithyDocumentSerde } // ESAM ManifestConfirmConditionNotification defined by OC-SP-ESAM-API-I03-131025. type EsamManifestConfirmConditionNotification struct { // Provide your ESAM ManifestConfirmConditionNotification XML document inside your // JSON job settings. Form the XML document as per OC-SP-ESAM-API-I03-131025. The // transcoder will use the Manifest Conditioning instructions in the message that // you supply. MccXml *string noSmithyDocumentSerde } // Settings for Event Signaling And Messaging (ESAM). If you don't do ad // insertion, you can ignore these settings. type EsamSettings struct { // Specifies an ESAM ManifestConfirmConditionNotification XML as per // OC-SP-ESAM-API-I03-131025. The transcoder uses the manifest conditioning // instructions that you provide in the setting MCC XML (mccXml). ManifestConfirmConditionNotification *EsamManifestConfirmConditionNotification // Specifies the stream distance, in milliseconds, between the SCTE 35 messages // that the transcoder places and the splice points that they refer to. If the time // between the start of the asset and the SCTE-35 message is less than this value, // then the transcoder places the SCTE-35 marker at the beginning of the stream. ResponseSignalPreroll int32 // Specifies an ESAM SignalProcessingNotification XML as per // OC-SP-ESAM-API-I03-131025. The transcoder uses the signal processing // instructions that you provide in the setting SCC XML (sccXml). SignalProcessingNotification *EsamSignalProcessingNotification noSmithyDocumentSerde } // ESAM SignalProcessingNotification data defined by OC-SP-ESAM-API-I03-131025. type EsamSignalProcessingNotification struct { // Provide your ESAM SignalProcessingNotification XML document inside your JSON // job settings. Form the XML document as per OC-SP-ESAM-API-I03-131025. The // transcoder will use the signal processing instructions in the message that you // supply. Provide your ESAM SignalProcessingNotification XML document inside your // JSON job settings. For your MPEG2-TS file outputs, if you want the service to // place SCTE-35 markers at the insertion points you specify in the XML document, // you must also enable SCTE-35 ESAM (scte35Esam). Note that you can either specify // an ESAM XML document or enable SCTE-35 passthrough. You can't do both. SccXml *string noSmithyDocumentSerde } // If your source content has EIA-608 Line 21 Data Services, enable this feature // to specify what MediaConvert does with the Extended Data Services (XDS) packets. // You can choose to pass through XDS packets, or remove them from the output. For // more information about XDS, see EIA-608 Line Data Services, section 9.5.1.5 05h // Content Advisory. type ExtendedDataServices struct { // The action to take on copy and redistribution control XDS packets. If you // select PASSTHROUGH, packets will not be changed. If you select STRIP, any // packets will be removed in output captions. CopyProtectionAction CopyProtectionAction // The action to take on content advisory XDS packets. If you select PASSTHROUGH, // packets will not be changed. If you select STRIP, any packets will be removed in // output captions. VchipAction VchipAction noSmithyDocumentSerde } // Settings for F4v container type F4vSettings struct { // If set to PROGRESSIVE_DOWNLOAD, the MOOV atom is relocated to the beginning of // the archive as required for progressive downloading. Otherwise it is placed // normally at the end. MoovPlacement F4vMoovPlacement noSmithyDocumentSerde } // Settings related to your File output group. MediaConvert uses this group of // settings to generate a single standalone file, rather than a streaming package. // When you work directly in your JSON job specification, include this object and // any required children when you set Type, under OutputGroupSettings, to // FILE_GROUP_SETTINGS. type FileGroupSettings struct { // Use Destination (Destination) to specify the S3 output location and the output // filename base. Destination accepts format identifiers. If you do not specify the // base filename in the URI, the service will use the filename of the input file. // If your job has multiple inputs, the service uses the filename of the first // input file. Destination *string // Settings associated with the destination. Will vary based on the type of // destination DestinationSettings *DestinationSettings noSmithyDocumentSerde } // If your input captions are SCC, SMI, SRT, STL, TTML, WebVTT, or IMSC 1.1 in an // xml file, specify the URI of the input caption source file. If your caption // source is IMSC in an IMF package, use TrackSourceSettings instead of // FileSoureSettings. type FileSourceSettings struct { // Specify whether this set of input captions appears in your outputs in both 608 // and 708 format. If you choose Upconvert (UPCONVERT), MediaConvert includes the // captions data in two ways: it passes the 608 data through using the 608 // compatibility bytes fields of the 708 wrapper, and it also translates the 608 // data into 708. Convert608To708 FileSourceConvert608To708 // Choose the presentation style of your input SCC captions. To use the same // presentation style as your input: Keep the default value, Disabled. To convert // paint-on captions to pop-on: Choose Enabled. We also recommend that you choose // Enabled if you notice additional repeated lines in your output captions. ConvertPaintToPop CaptionSourceConvertPaintOnToPopOn // Ignore this setting unless your input captions format is SCC. To have the // service compensate for differing frame rates between your input captions and // input video, specify the frame rate of the captions file. Specify this value as // a fraction. When you work directly in your JSON job specification, use the // settings framerateNumerator and framerateDenominator. For example, you might // specify 24 / 1 for 24 fps, 25 / 1 for 25 fps, 24000 / 1001 for 23.976 fps, or // 30000 / 1001 for 29.97 fps. Framerate *CaptionSourceFramerate // External caption file used for loading captions. Accepted file extensions are // 'scc', 'ttml', 'dfxp', 'stl', 'srt', 'xml', 'smi', 'webvtt', and 'vtt'. SourceFile *string // Optional. Use this setting when you need to adjust the sync between your // sidecar captions and your video. For more information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/time-delta-use-cases.html. // Enter a positive or negative number to modify the times in the captions file. // For example, type 15 to add 15 seconds to all the times in the captions file. // Type -5 to subtract 5 seconds from the times in the captions file. You can // optionally specify your time delta in milliseconds instead of seconds. When you // do so, set the related setting, Time delta units (TimeDeltaUnits) to // Milliseconds (MILLISECONDS). Note that, when you specify a time delta for // timecode-based caption sources, such as SCC and STL, and your time delta isn't a // multiple of the input frame rate, MediaConvert snaps the captions to the nearest // frame. For example, when your input video frame rate is 25 fps and you specify // 1010ms for time delta, MediaConvert delays your captions by 1000 ms. TimeDelta int32 // When you use the setting Time delta (TimeDelta) to adjust the sync between your // sidecar captions and your video, use this setting to specify the units for the // delta that you specify. When you don't specify a value for Time delta units // (TimeDeltaUnits), MediaConvert uses seconds by default. TimeDeltaUnits FileSourceTimeDeltaUnits noSmithyDocumentSerde } // Use Force include renditions to specify one or more resolutions to include your // ABR stack. * (Recommended) To optimize automated ABR, specify as few resolutions // as possible. * (Required) The number of resolutions that you specify must be // equal to, or less than, the Max renditions setting. * If you specify a Min top // rendition size rule, specify at least one resolution that is equal to, or // greater than, Min top rendition size. * If you specify a Min bottom rendition // size rule, only specify resolutions that are equal to, or greater than, Min // bottom rendition size. * If you specify a Force include renditions rule, do not // specify a separate rule for Allowed renditions. * Note: The ABR stack may // include other resolutions that you do not specify here, depending on the Max // renditions setting. type ForceIncludeRenditionSize struct { // Use Height to define the video resolution height, in pixels, for this rule. Height int32 // Use Width to define the video resolution width, in pixels, for this rule. Width int32 noSmithyDocumentSerde } // Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the // value FRAME_CAPTURE. type FrameCaptureSettings struct { // Frame capture will encode the first frame of the output stream, then one frame // every framerateDenominator/framerateNumerator seconds. For example, settings of // framerateNumerator = 1 and framerateDenominator = 3 (a rate of 1/3 frame per // second) will capture the first frame, then 1 frame every 3s. Files will be named // as filename.n.jpg where n is the 0-based sequence number of each Capture. FramerateDenominator int32 // Frame capture will encode the first frame of the output stream, then one frame // every framerateDenominator/framerateNumerator seconds. For example, settings of // framerateNumerator = 1 and framerateDenominator = 3 (a rate of 1/3 frame per // second) will capture the first frame, then 1 frame every 3s. Files will be named // as filename.NNNNNNN.jpg where N is the 0-based frame sequence number zero padded // to 7 decimal places. FramerateNumerator int32 // Maximum number of captures (encoded jpg output files). MaxCaptures int32 // JPEG Quality - a higher value equals higher quality. Quality int32 noSmithyDocumentSerde } // Settings for quality-defined variable bitrate encoding with the H.264 codec. // Use these settings only when you set QVBR for Rate control mode // (RateControlMode). type H264QvbrSettings struct { // Use this setting only when Rate control mode is QVBR and Quality tuning level // is Multi-pass HQ. For Max average bitrate values suited to the complexity of // your input video, the service limits the average bitrate of the video part of // this output to the value that you choose. That is, the total size of the video // element is less than or equal to the value you set multiplied by the number of // seconds of encoded output. MaxAverageBitrate int32 // Use this setting only when you set Rate control mode (RateControlMode) to QVBR. // Specify the target quality level for this output. MediaConvert determines the // right number of bits to use for each part of the video to maintain the video // quality that you specify. When you keep the default value, AUTO, MediaConvert // picks a quality level for you, based on characteristics of your input video. If // you prefer to specify a quality level, specify a number from 1 through 10. Use // higher numbers for greater quality. Level 10 results in nearly lossless // compression. The quality level for most broadcast-quality transcodes is between // 6 and 9. Optionally, to specify a value between whole numbers, also provide a // value for the setting qvbrQualityLevelFineTune. For example, if you want your // QVBR quality level to be 7.33, set qvbrQualityLevel to 7 and set // qvbrQualityLevelFineTune to .33. QvbrQualityLevel int32 // Optional. Specify a value here to set the QVBR quality to a level that is // between whole numbers. For example, if you want your QVBR quality level to be // 7.33, set qvbrQualityLevel to 7 and set qvbrQualityLevelFineTune to .33. // MediaConvert rounds your QVBR quality level to the nearest third of a whole // number. For example, if you set qvbrQualityLevel to 7 and you set // qvbrQualityLevelFineTune to .25, your actual QVBR quality level is 7.33. QvbrQualityLevelFineTune float64 noSmithyDocumentSerde } // Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the // value H_264. type H264Settings struct { // Keep the default value, Auto (AUTO), for this setting to have MediaConvert // automatically apply the best types of quantization for your video content. When // you want to apply your quantization settings manually, you must set // H264AdaptiveQuantization to a value other than Auto (AUTO). Use this setting to // specify the strength of any adaptive quantization filters that you enable. If // you don't want MediaConvert to do any adaptive quantization in this transcode, // set Adaptive quantization (H264AdaptiveQuantization) to Off (OFF). Related // settings: The value that you choose here applies to the following settings: // H264FlickerAdaptiveQuantization, H264SpatialAdaptiveQuantization, and // H264TemporalAdaptiveQuantization. AdaptiveQuantization H264AdaptiveQuantization // The Bandwidth reduction filter increases the video quality of your output // relative to its bitrate. Use to lower the bitrate of your constant quality QVBR // output, with little or no perceptual decrease in quality. Or, use to increase // the video quality of outputs with other rate control modes relative to the // bitrate that you specify. Bandwidth reduction increases further when your input // is low quality or noisy. Outputs that use this feature incur pro-tier pricing. // When you include Bandwidth reduction filter, you cannot include the Noise // reducer preprocessor. BandwidthReductionFilter *BandwidthReductionFilter // Specify the average bitrate in bits per second. Required for VBR and CBR. For // MS Smooth outputs, bitrates must be unique when rounded down to the nearest // multiple of 1000. Bitrate int32 // Specify an H.264 level that is consistent with your output video settings. If // you aren't sure what level to specify, choose Auto (AUTO). CodecLevel H264CodecLevel // H.264 Profile. High 4:2:2 and 10-bit profiles are only available with the AVC-I // License. CodecProfile H264CodecProfile // Specify whether to allow the number of B-frames in your output GOP structure to // vary or not depending on your input video content. To improve the subjective // video quality of your output that has high-motion content: Leave blank or keep // the default value Adaptive. MediaConvert will use fewer B-frames for high-motion // video content than low-motion content. The maximum number of B- frames is // limited by the value that you choose for B-frames between reference frames. To // use the same number B-frames for all types of content: Choose Static. DynamicSubGop H264DynamicSubGop // Entropy encoding mode. Use CABAC (must be in Main or High profile) or CAVLC. EntropyEncoding H264EntropyEncoding // The video encoding method for your MPEG-4 AVC output. Keep the default value, // PAFF, to have MediaConvert use PAFF encoding for interlaced outputs. Choose // Force field (FORCE_FIELD) to disable PAFF encoding and create separate // interlaced fields. Choose MBAFF to disable PAFF and have MediaConvert use MBAFF // encoding for interlaced outputs. FieldEncoding H264FieldEncoding // Only use this setting when you change the default value, AUTO, for the setting // H264AdaptiveQuantization. When you keep all defaults, excluding // H264AdaptiveQuantization and all other adaptive quantization from your JSON job // specification, MediaConvert automatically applies the best types of quantization // for your video content. When you set H264AdaptiveQuantization to a value other // than AUTO, the default value for H264FlickerAdaptiveQuantization is Disabled // (DISABLED). Change this value to Enabled (ENABLED) to reduce I-frame pop. // I-frame pop appears as a visual flicker that can arise when the encoder saves // bits by copying some macroblocks many times from frame to frame, and then // refreshes them at the I-frame. When you enable this setting, the encoder updates // these macroblocks slightly more often to smooth out the flicker. To manually // enable or disable H264FlickerAdaptiveQuantization, you must set Adaptive // quantization (H264AdaptiveQuantization) to a value other than AUTO. FlickerAdaptiveQuantization H264FlickerAdaptiveQuantization // If you are using the console, use the Framerate setting to specify the frame // rate for this output. If you want to keep the same frame rate as the input // video, choose Follow source. If you want to do frame rate conversion, choose a // frame rate from the dropdown list or choose Custom. The framerates shown in the // dropdown list are decimal approximations of fractions. If you choose Custom, // specify your frame rate as a fraction. If you are creating your transcoding job // specification as a JSON file without the console, use FramerateControl to // specify which value the service uses for the frame rate for this output. Choose // INITIALIZE_FROM_SOURCE if you want the service to use the frame rate from the // input. Choose SPECIFIED if you want the service to use the frame rate you // specify in the settings FramerateNumerator and FramerateDenominator. FramerateControl H264FramerateControl // Choose the method that you want MediaConvert to use when increasing or // decreasing the frame rate. For numerically simple conversions, such as 60 fps to // 30 fps: We recommend that you keep the default value, Drop duplicate. For // numerically complex conversions, to avoid stutter: Choose Interpolate. This // results in a smooth picture, but might introduce undesirable video artifacts. // For complex frame rate conversions, especially if your source video has already // been converted from its original cadence: Choose FrameFormer to do // motion-compensated interpolation. FrameFormer uses the best conversion method // frame by frame. Note that using FrameFormer increases the transcoding time and // incurs a significant add-on cost. When you choose FrameFormer, your input video // resolution must be at least 128x96. FramerateConversionAlgorithm H264FramerateConversionAlgorithm // When you use the API for transcode jobs that use frame rate conversion, specify // the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use // FramerateDenominator to specify the denominator of this fraction. In this // example, use 1001 for the value of FramerateDenominator. When you use the // console for transcode jobs that use frame rate conversion, provide the value as // a decimal number for Framerate. In this example, specify 23.976. FramerateDenominator int32 // When you use the API for transcode jobs that use frame rate conversion, specify // the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use // FramerateNumerator to specify the numerator of this fraction. In this example, // use 24000 for the value of FramerateNumerator. When you use the console for // transcode jobs that use frame rate conversion, provide the value as a decimal // number for Framerate. In this example, specify 23.976. FramerateNumerator int32 // Specify whether to allow B-frames to be referenced by other frame types. To use // reference B-frames when your GOP structure has 1 or more B-frames: Leave blank // or keep the default value Enabled. We recommend that you choose Enabled to help // improve the video quality of your output relative to its bitrate. To not use // reference B-frames: Choose Disabled. GopBReference H264GopBReference // Specify the relative frequency of open to closed GOPs in this output. For // example, if you want to allow four open GOPs and then require a closed GOP, set // this value to 5. We recommend that you have the transcoder automatically choose // this value for you based on characteristics of your input video. To enable this // automatic behavior, keep the default value by leaving this setting out of your // JSON job specification. In the console, do this by keeping the default empty // value. If you do explicitly specify a value, for segmented outputs, don't set // this value to 0. GopClosedCadence int32 // Use this setting only when you set GOP mode control (GopSizeUnits) to // Specified, frames (FRAMES) or Specified, seconds (SECONDS). Specify the GOP // length using a whole number of frames or a decimal value of seconds. // MediaConvert will interpret this value as frames or seconds depending on the // value you choose for GOP mode control (GopSizeUnits). If you want to allow // MediaConvert to automatically determine GOP size, leave GOP size blank and set // GOP mode control to Auto (AUTO). If your output group specifies HLS, DASH, or // CMAF, leave GOP size blank and set GOP mode control to Auto in each output in // your output group. GopSize float64 // Specify how the transcoder determines GOP size for this output. We recommend // that you have the transcoder automatically choose this value for you based on // characteristics of your input video. To enable this automatic behavior, choose // Auto (AUTO) and and leave GOP size (GopSize) blank. By default, if you don't // specify GOP mode control (GopSizeUnits), MediaConvert will use automatic // behavior. If your output group specifies HLS, DASH, or CMAF, set GOP mode // control to Auto and leave GOP size blank in each output in your output group. To // explicitly specify the GOP length, choose Specified, frames (FRAMES) or // Specified, seconds (SECONDS) and then provide the GOP length in the related // setting GOP size (GopSize). GopSizeUnits H264GopSizeUnits // If your downstream systems have strict buffer requirements: Specify the minimum // percentage of the HRD buffer that's available at the end of each encoded video // segment. For the best video quality: Set to 0 or leave blank to automatically // determine the final buffer fill percentage. HrdBufferFinalFillPercentage int32 // Percentage of the buffer that should initially be filled (HRD buffer model). HrdBufferInitialFillPercentage int32 // Size of buffer (HRD buffer model) in bits. For example, enter five megabits as // 5000000. HrdBufferSize int32 // Choose the scan line type for the output. Keep the default value, Progressive // (PROGRESSIVE) to create a progressive output, regardless of the scan type of // your input. Use Top field first (TOP_FIELD) or Bottom field first (BOTTOM_FIELD) // to create an output that's interlaced with the same field polarity throughout. // Use Follow, default top (FOLLOW_TOP_FIELD) or Follow, default bottom // (FOLLOW_BOTTOM_FIELD) to produce outputs with the same field polarity as the // source. For jobs that have multiple inputs, the output field polarity might // change over the course of the output. Follow behavior depends on the input scan // type. If the source is interlaced, the output will be interlaced with the same // polarity as the source. If the source is progressive, the output will be // interlaced with top field bottom field first, depending on which of the Follow // options you choose. InterlaceMode H264InterlaceMode // Maximum bitrate in bits/second. For example, enter five megabits per second as // 5000000. Required when Rate control mode is QVBR. MaxBitrate int32 // Use this setting only when you also enable Scene change detection // (SceneChangeDetect). This setting determines how the encoder manages the spacing // between I-frames that it inserts as part of the I-frame cadence and the I-frames // that it inserts for Scene change detection. We recommend that you have the // transcoder automatically choose this value for you based on characteristics of // your input video. To enable this automatic behavior, keep the default value by // leaving this setting out of your JSON job specification. In the console, do this // by keeping the default empty value. When you explicitly specify a value for this // setting, the encoder determines whether to skip a cadence-driven I-frame by the // value you set. For example, if you set Min I interval (minIInterval) to 5 and a // cadence-driven I-frame would fall within 5 frames of a scene-change I-frame, // then the encoder skips the cadence-driven I-frame. In this way, one GOP is // shrunk slightly and one GOP is stretched slightly. When the cadence-driven // I-frames are farther from the scene-change I-frame than the value you set, then // the encoder leaves all I-frames in place and the GOPs surrounding the scene // change are smaller than the usual cadence GOPs. MinIInterval int32 // Specify the number of B-frames between reference frames in this output. For the // best video quality: Leave blank. MediaConvert automatically determines the // number of B-frames to use based on the characteristics of your input video. To // manually specify the number of B-frames between reference frames: Enter an // integer from 0 to 7. NumberBFramesBetweenReferenceFrames int32 // Number of reference frames to use. The encoder may use more than requested if // using B-frames and/or interlaced encoding. NumberReferenceFrames int32 // Optional. Specify how the service determines the pixel aspect ratio (PAR) for // this output. The default behavior, Follow source (INITIALIZE_FROM_SOURCE), uses // the PAR from your input video for your output. To specify a different PAR in the // console, choose any value other than Follow source. To specify a different PAR // by editing the JSON job specification, choose SPECIFIED. When you choose // SPECIFIED for this setting, you must also specify values for the parNumerator // and parDenominator settings. ParControl H264ParControl // Required when you set Pixel aspect ratio (parControl) to SPECIFIED. On the // console, this corresponds to any value other than Follow source. When you // specify an output pixel aspect ratio (PAR) that is different from your input // video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC // widescreen, you would specify the ratio 40:33. In this example, the value for // parDenominator is 33. ParDenominator int32 // Required when you set Pixel aspect ratio (parControl) to SPECIFIED. On the // console, this corresponds to any value other than Follow source. When you // specify an output pixel aspect ratio (PAR) that is different from your input // video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC // widescreen, you would specify the ratio 40:33. In this example, the value for // parNumerator is 40. ParNumerator int32 // The Quality tuning level you choose represents a trade-off between the encoding // speed of your job and the output video quality. For the fastest encoding speed // at the cost of video quality: Choose Single pass. For a good balance between // encoding speed and video quality: Leave blank or keep the default value Single // pass HQ. For the best video quality, at the cost of encoding speed: Choose Multi // pass HQ. MediaConvert performs an analysis pass on your input followed by an // encoding pass. Outputs that use this feature incur pro-tier pricing. QualityTuningLevel H264QualityTuningLevel // Settings for quality-defined variable bitrate encoding with the H.265 codec. // Use these settings only when you set QVBR for Rate control mode // (RateControlMode). QvbrSettings *H264QvbrSettings // Use this setting to specify whether this output has a variable bitrate (VBR), // constant bitrate (CBR) or quality-defined variable bitrate (QVBR). RateControlMode H264RateControlMode // Places a PPS header on each encoded picture, even if repeated. RepeatPps H264RepeatPps // Use this setting for interlaced outputs, when your output frame rate is half of // your input frame rate. In this situation, choose Optimized interlacing // (INTERLACED_OPTIMIZE) to create a better quality interlaced output. In this // case, each progressive frame from the input corresponds to an interlaced field // in the output. Keep the default value, Basic interlacing (INTERLACED), for all // other output frame rates. With basic interlacing, MediaConvert performs any // frame rate conversion first and then interlaces the frames. When you choose // Optimized interlacing and you set your output frame rate to a value that isn't // suitable for optimized interlacing, MediaConvert automatically falls back to // basic interlacing. Required settings: To use optimized interlacing, you must set // Telecine (telecine) to None (NONE) or Soft (SOFT). You can't use optimized // interlacing for hard telecine outputs. You must also set Interlace mode // (interlaceMode) to a value other than Progressive (PROGRESSIVE). ScanTypeConversionMode H264ScanTypeConversionMode // Enable this setting to insert I-frames at scene changes that the service // automatically detects. This improves video quality and is enabled by default. If // this output uses QVBR, choose Transition detection (TRANSITION_DETECTION) for // further video quality improvement. For more information about QVBR, see // https://docs.aws.amazon.com/console/mediaconvert/cbr-vbr-qvbr. SceneChangeDetect H264SceneChangeDetect // Number of slices per picture. Must be less than or equal to the number of // macroblock rows for progressive pictures, and less than or equal to half the // number of macroblock rows for interlaced pictures. Slices int32 // Ignore this setting unless your input frame rate is 23.976 or 24 frames per // second (fps). Enable slow PAL to create a 25 fps output. When you enable slow // PAL, MediaConvert relabels the video frames to 25 fps and resamples your audio // to keep it synchronized with the video. Note that enabling this setting will // slightly reduce the duration of your video. Required settings: You must also set // Framerate to 25. In your JSON job specification, set (framerateControl) to // (SPECIFIED), (framerateNumerator) to 25 and (framerateDenominator) to 1. SlowPal H264SlowPal // Ignore this setting unless you need to comply with a specification that // requires a specific value. If you don't have a specification requirement, we // recommend that you adjust the softness of your output by using a lower value for // the setting Sharpness (sharpness) or by enabling a noise reducer filter // (noiseReducerFilter). The Softness (softness) setting specifies the quantization // matrices that the encoder uses. Keep the default value, 0, for flat // quantization. Choose the value 1 or 16 to use the default JVT softening // quantization matricies from the H.264 specification. Choose a value from 17 to // 128 to use planar interpolation. Increasing values from 17 to 128 result in // increasing reduction of high-frequency data. The value 128 results in the // softest video. Softness int32 // Only use this setting when you change the default value, Auto (AUTO), for the // setting H264AdaptiveQuantization. When you keep all defaults, excluding // H264AdaptiveQuantization and all other adaptive quantization from your JSON job // specification, MediaConvert automatically applies the best types of quantization // for your video content. When you set H264AdaptiveQuantization to a value other // than AUTO, the default value for H264SpatialAdaptiveQuantization is Enabled // (ENABLED). Keep this default value to adjust quantization within each frame // based on spatial variation of content complexity. When you enable this feature, // the encoder uses fewer bits on areas that can sustain more distortion with no // noticeable visual degradation and uses more bits on areas where any small // distortion will be noticeable. For example, complex textured blocks are encoded // with fewer bits and smooth textured blocks are encoded with more bits. Enabling // this feature will almost always improve your video quality. Note, though, that // this feature doesn't take into account where the viewer's attention is likely to // be. If viewers are likely to be focusing their attention on a part of the screen // with a lot of complex texture, you might choose to set // H264SpatialAdaptiveQuantization to Disabled (DISABLED). Related setting: When // you enable spatial adaptive quantization, set the value for Adaptive // quantization (H264AdaptiveQuantization) depending on your content. For // homogeneous content, such as cartoons and video games, set it to Low. For // content with a wider variety of textures, set it to High or Higher. To manually // enable or disable H264SpatialAdaptiveQuantization, you must set Adaptive // quantization (H264AdaptiveQuantization) to a value other than AUTO. SpatialAdaptiveQuantization H264SpatialAdaptiveQuantization // Produces a bitstream compliant with SMPTE RP-2027. Syntax H264Syntax // When you do frame rate conversion from 23.976 frames per second (fps) to 29.97 // fps, and your output scan type is interlaced, you can optionally enable hard or // soft telecine to create a smoother picture. Hard telecine (HARD) produces a // 29.97i output. Soft telecine (SOFT) produces an output with a 23.976 output that // signals to the video player device to do the conversion during play back. When // you keep the default value, None (NONE), MediaConvert does a standard frame rate // conversion to 29.97 without doing anything with the field polarity to create a // smoother picture. Telecine H264Telecine // Only use this setting when you change the default value, AUTO, for the setting // H264AdaptiveQuantization. When you keep all defaults, excluding // H264AdaptiveQuantization and all other adaptive quantization from your JSON job // specification, MediaConvert automatically applies the best types of quantization // for your video content. When you set H264AdaptiveQuantization to a value other // than AUTO, the default value for H264TemporalAdaptiveQuantization is Enabled // (ENABLED). Keep this default value to adjust quantization within each frame // based on temporal variation of content complexity. When you enable this feature, // the encoder uses fewer bits on areas of the frame that aren't moving and uses // more bits on complex objects with sharp edges that move a lot. For example, this // feature improves the readability of text tickers on newscasts and scoreboards on // sports matches. Enabling this feature will almost always improve your video // quality. Note, though, that this feature doesn't take into account where the // viewer's attention is likely to be. If viewers are likely to be focusing their // attention on a part of the screen that doesn't have moving objects with sharp // edges, such as sports athletes' faces, you might choose to set // H264TemporalAdaptiveQuantization to Disabled (DISABLED). Related setting: When // you enable temporal quantization, adjust the strength of the filter with the // setting Adaptive quantization (adaptiveQuantization). To manually enable or // disable H264TemporalAdaptiveQuantization, you must set Adaptive quantization // (H264AdaptiveQuantization) to a value other than AUTO. TemporalAdaptiveQuantization H264TemporalAdaptiveQuantization // Inserts timecode for each frame as 4 bytes of an unregistered SEI message. UnregisteredSeiTimecode H264UnregisteredSeiTimecode noSmithyDocumentSerde } // Settings for quality-defined variable bitrate encoding with the H.265 codec. // Use these settings only when you set QVBR for Rate control mode // (RateControlMode). type H265QvbrSettings struct { // Use this setting only when Rate control mode is QVBR and Quality tuning level // is Multi-pass HQ. For Max average bitrate values suited to the complexity of // your input video, the service limits the average bitrate of the video part of // this output to the value that you choose. That is, the total size of the video // element is less than or equal to the value you set multiplied by the number of // seconds of encoded output. MaxAverageBitrate int32 // Use this setting only when you set Rate control mode (RateControlMode) to QVBR. // Specify the target quality level for this output. MediaConvert determines the // right number of bits to use for each part of the video to maintain the video // quality that you specify. When you keep the default value, AUTO, MediaConvert // picks a quality level for you, based on characteristics of your input video. If // you prefer to specify a quality level, specify a number from 1 through 10. Use // higher numbers for greater quality. Level 10 results in nearly lossless // compression. The quality level for most broadcast-quality transcodes is between // 6 and 9. Optionally, to specify a value between whole numbers, also provide a // value for the setting qvbrQualityLevelFineTune. For example, if you want your // QVBR quality level to be 7.33, set qvbrQualityLevel to 7 and set // qvbrQualityLevelFineTune to .33. QvbrQualityLevel int32 // Optional. Specify a value here to set the QVBR quality to a level that is // between whole numbers. For example, if you want your QVBR quality level to be // 7.33, set qvbrQualityLevel to 7 and set qvbrQualityLevelFineTune to .33. // MediaConvert rounds your QVBR quality level to the nearest third of a whole // number. For example, if you set qvbrQualityLevel to 7 and you set // qvbrQualityLevelFineTune to .25, your actual QVBR quality level is 7.33. QvbrQualityLevelFineTune float64 noSmithyDocumentSerde } // Settings for H265 codec type H265Settings struct { // When you set Adaptive Quantization (H265AdaptiveQuantization) to Auto (AUTO), // or leave blank, MediaConvert automatically applies quantization to improve the // video quality of your output. Set Adaptive Quantization to Low (LOW), Medium // (MEDIUM), High (HIGH), Higher (HIGHER), or Max (MAX) to manually control the // strength of the quantization filter. When you do, you can specify a value for // Spatial Adaptive Quantization (H265SpatialAdaptiveQuantization), Temporal // Adaptive Quantization (H265TemporalAdaptiveQuantization), and Flicker Adaptive // Quantization (H265FlickerAdaptiveQuantization), to further control the // quantization filter. Set Adaptive Quantization to Off (OFF) to apply no // quantization to your output. AdaptiveQuantization H265AdaptiveQuantization // Enables Alternate Transfer Function SEI message for outputs using Hybrid Log // Gamma (HLG) Electro-Optical Transfer Function (EOTF). AlternateTransferFunctionSei H265AlternateTransferFunctionSei // The Bandwidth reduction filter increases the video quality of your output // relative to its bitrate. Use to lower the bitrate of your constant quality QVBR // output, with little or no perceptual decrease in quality. Or, use to increase // the video quality of outputs with other rate control modes relative to the // bitrate that you specify. Bandwidth reduction increases further when your input // is low quality or noisy. Outputs that use this feature incur pro-tier pricing. // When you include Bandwidth reduction filter, you cannot include the Noise // reducer preprocessor. BandwidthReductionFilter *BandwidthReductionFilter // Specify the average bitrate in bits per second. Required for VBR and CBR. For // MS Smooth outputs, bitrates must be unique when rounded down to the nearest // multiple of 1000. Bitrate int32 // H.265 Level. CodecLevel H265CodecLevel // Represents the Profile and Tier, per the HEVC (H.265) specification. Selections // are grouped as [Profile] / [Tier], so "Main/High" represents Main Profile with // High Tier. 4:2:2 profiles are only available with the HEVC 4:2:2 License. CodecProfile H265CodecProfile // Specify whether to allow the number of B-frames in your output GOP structure to // vary or not depending on your input video content. To improve the subjective // video quality of your output that has high-motion content: Leave blank or keep // the default value Adaptive. MediaConvert will use fewer B-frames for high-motion // video content than low-motion content. The maximum number of B- frames is // limited by the value that you choose for B-frames between reference frames. To // use the same number B-frames for all types of content: Choose Static. DynamicSubGop H265DynamicSubGop // Enable this setting to have the encoder reduce I-frame pop. I-frame pop appears // as a visual flicker that can arise when the encoder saves bits by copying some // macroblocks many times from frame to frame, and then refreshes them at the // I-frame. When you enable this setting, the encoder updates these macroblocks // slightly more often to smooth out the flicker. This setting is disabled by // default. Related setting: In addition to enabling this setting, you must also // set adaptiveQuantization to a value other than Off (OFF). FlickerAdaptiveQuantization H265FlickerAdaptiveQuantization // If you are using the console, use the Framerate setting to specify the frame // rate for this output. If you want to keep the same frame rate as the input // video, choose Follow source. If you want to do frame rate conversion, choose a // frame rate from the dropdown list or choose Custom. The framerates shown in the // dropdown list are decimal approximations of fractions. If you choose Custom, // specify your frame rate as a fraction. If you are creating your transcoding job // specification as a JSON file without the console, use FramerateControl to // specify which value the service uses for the frame rate for this output. Choose // INITIALIZE_FROM_SOURCE if you want the service to use the frame rate from the // input. Choose SPECIFIED if you want the service to use the frame rate you // specify in the settings FramerateNumerator and FramerateDenominator. FramerateControl H265FramerateControl // Choose the method that you want MediaConvert to use when increasing or // decreasing the frame rate. For numerically simple conversions, such as 60 fps to // 30 fps: We recommend that you keep the default value, Drop duplicate. For // numerically complex conversions, to avoid stutter: Choose Interpolate. This // results in a smooth picture, but might introduce undesirable video artifacts. // For complex frame rate conversions, especially if your source video has already // been converted from its original cadence: Choose FrameFormer to do // motion-compensated interpolation. FrameFormer uses the best conversion method // frame by frame. Note that using FrameFormer increases the transcoding time and // incurs a significant add-on cost. When you choose FrameFormer, your input video // resolution must be at least 128x96. FramerateConversionAlgorithm H265FramerateConversionAlgorithm // When you use the API for transcode jobs that use frame rate conversion, specify // the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use // FramerateDenominator to specify the denominator of this fraction. In this // example, use 1001 for the value of FramerateDenominator. When you use the // console for transcode jobs that use frame rate conversion, provide the value as // a decimal number for Framerate. In this example, specify 23.976. FramerateDenominator int32 // When you use the API for transcode jobs that use frame rate conversion, specify // the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use // FramerateNumerator to specify the numerator of this fraction. In this example, // use 24000 for the value of FramerateNumerator. When you use the console for // transcode jobs that use frame rate conversion, provide the value as a decimal // number for Framerate. In this example, specify 23.976. FramerateNumerator int32 // Specify whether to allow B-frames to be referenced by other frame types. To use // reference B-frames when your GOP structure has 1 or more B-frames: Leave blank // or keep the default value Enabled. We recommend that you choose Enabled to help // improve the video quality of your output relative to its bitrate. To not use // reference B-frames: Choose Disabled. GopBReference H265GopBReference // Specify the relative frequency of open to closed GOPs in this output. For // example, if you want to allow four open GOPs and then require a closed GOP, set // this value to 5. We recommend that you have the transcoder automatically choose // this value for you based on characteristics of your input video. To enable this // automatic behavior, keep the default value by leaving this setting out of your // JSON job specification. In the console, do this by keeping the default empty // value. If you do explicitly specify a value, for segmented outputs, don't set // this value to 0. GopClosedCadence int32 // Use this setting only when you set GOP mode control (GopSizeUnits) to // Specified, frames (FRAMES) or Specified, seconds (SECONDS). Specify the GOP // length using a whole number of frames or a decimal value of seconds. // MediaConvert will interpret this value as frames or seconds depending on the // value you choose for GOP mode control (GopSizeUnits). If you want to allow // MediaConvert to automatically determine GOP size, leave GOP size blank and set // GOP mode control to Auto (AUTO). If your output group specifies HLS, DASH, or // CMAF, leave GOP size blank and set GOP mode control to Auto in each output in // your output group. GopSize float64 // Specify how the transcoder determines GOP size for this output. We recommend // that you have the transcoder automatically choose this value for you based on // characteristics of your input video. To enable this automatic behavior, choose // Auto (AUTO) and and leave GOP size (GopSize) blank. By default, if you don't // specify GOP mode control (GopSizeUnits), MediaConvert will use automatic // behavior. If your output group specifies HLS, DASH, or CMAF, set GOP mode // control to Auto and leave GOP size blank in each output in your output group. To // explicitly specify the GOP length, choose Specified, frames (FRAMES) or // Specified, seconds (SECONDS) and then provide the GOP length in the related // setting GOP size (GopSize). GopSizeUnits H265GopSizeUnits // If your downstream systems have strict buffer requirements: Specify the minimum // percentage of the HRD buffer that's available at the end of each encoded video // segment. For the best video quality: Set to 0 or leave blank to automatically // determine the final buffer fill percentage. HrdBufferFinalFillPercentage int32 // Percentage of the buffer that should initially be filled (HRD buffer model). HrdBufferInitialFillPercentage int32 // Size of buffer (HRD buffer model) in bits. For example, enter five megabits as // 5000000. HrdBufferSize int32 // Choose the scan line type for the output. Keep the default value, Progressive // (PROGRESSIVE) to create a progressive output, regardless of the scan type of // your input. Use Top field first (TOP_FIELD) or Bottom field first (BOTTOM_FIELD) // to create an output that's interlaced with the same field polarity throughout. // Use Follow, default top (FOLLOW_TOP_FIELD) or Follow, default bottom // (FOLLOW_BOTTOM_FIELD) to produce outputs with the same field polarity as the // source. For jobs that have multiple inputs, the output field polarity might // change over the course of the output. Follow behavior depends on the input scan // type. If the source is interlaced, the output will be interlaced with the same // polarity as the source. If the source is progressive, the output will be // interlaced with top field bottom field first, depending on which of the Follow // options you choose. InterlaceMode H265InterlaceMode // Maximum bitrate in bits/second. For example, enter five megabits per second as // 5000000. Required when Rate control mode is QVBR. MaxBitrate int32 // Use this setting only when you also enable Scene change detection // (SceneChangeDetect). This setting determines how the encoder manages the spacing // between I-frames that it inserts as part of the I-frame cadence and the I-frames // that it inserts for Scene change detection. We recommend that you have the // transcoder automatically choose this value for you based on characteristics of // your input video. To enable this automatic behavior, keep the default value by // leaving this setting out of your JSON job specification. In the console, do this // by keeping the default empty value. When you explicitly specify a value for this // setting, the encoder determines whether to skip a cadence-driven I-frame by the // value you set. For example, if you set Min I interval (minIInterval) to 5 and a // cadence-driven I-frame would fall within 5 frames of a scene-change I-frame, // then the encoder skips the cadence-driven I-frame. In this way, one GOP is // shrunk slightly and one GOP is stretched slightly. When the cadence-driven // I-frames are farther from the scene-change I-frame than the value you set, then // the encoder leaves all I-frames in place and the GOPs surrounding the scene // change are smaller than the usual cadence GOPs. MinIInterval int32 // Specify the number of B-frames between reference frames in this output. For the // best video quality: Leave blank. MediaConvert automatically determines the // number of B-frames to use based on the characteristics of your input video. To // manually specify the number of B-frames between reference frames: Enter an // integer from 0 to 7. NumberBFramesBetweenReferenceFrames int32 // Number of reference frames to use. The encoder may use more than requested if // using B-frames and/or interlaced encoding. NumberReferenceFrames int32 // Optional. Specify how the service determines the pixel aspect ratio (PAR) for // this output. The default behavior, Follow source (INITIALIZE_FROM_SOURCE), uses // the PAR from your input video for your output. To specify a different PAR in the // console, choose any value other than Follow source. To specify a different PAR // by editing the JSON job specification, choose SPECIFIED. When you choose // SPECIFIED for this setting, you must also specify values for the parNumerator // and parDenominator settings. ParControl H265ParControl // Required when you set Pixel aspect ratio (parControl) to SPECIFIED. On the // console, this corresponds to any value other than Follow source. When you // specify an output pixel aspect ratio (PAR) that is different from your input // video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC // widescreen, you would specify the ratio 40:33. In this example, the value for // parDenominator is 33. ParDenominator int32 // Required when you set Pixel aspect ratio (parControl) to SPECIFIED. On the // console, this corresponds to any value other than Follow source. When you // specify an output pixel aspect ratio (PAR) that is different from your input // video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC // widescreen, you would specify the ratio 40:33. In this example, the value for // parNumerator is 40. ParNumerator int32 // Optional. Use Quality tuning level (qualityTuningLevel) to choose how you want // to trade off encoding speed for output video quality. The default behavior is // faster, lower quality, single-pass encoding. QualityTuningLevel H265QualityTuningLevel // Settings for quality-defined variable bitrate encoding with the H.265 codec. // Use these settings only when you set QVBR for Rate control mode // (RateControlMode). QvbrSettings *H265QvbrSettings // Use this setting to specify whether this output has a variable bitrate (VBR), // constant bitrate (CBR) or quality-defined variable bitrate (QVBR). RateControlMode H265RateControlMode // Specify Sample Adaptive Offset (SAO) filter strength. Adaptive mode dynamically // selects best strength based on content SampleAdaptiveOffsetFilterMode H265SampleAdaptiveOffsetFilterMode // Use this setting for interlaced outputs, when your output frame rate is half of // your input frame rate. In this situation, choose Optimized interlacing // (INTERLACED_OPTIMIZE) to create a better quality interlaced output. In this // case, each progressive frame from the input corresponds to an interlaced field // in the output. Keep the default value, Basic interlacing (INTERLACED), for all // other output frame rates. With basic interlacing, MediaConvert performs any // frame rate conversion first and then interlaces the frames. When you choose // Optimized interlacing and you set your output frame rate to a value that isn't // suitable for optimized interlacing, MediaConvert automatically falls back to // basic interlacing. Required settings: To use optimized interlacing, you must set // Telecine (telecine) to None (NONE) or Soft (SOFT). You can't use optimized // interlacing for hard telecine outputs. You must also set Interlace mode // (interlaceMode) to a value other than Progressive (PROGRESSIVE). ScanTypeConversionMode H265ScanTypeConversionMode // Enable this setting to insert I-frames at scene changes that the service // automatically detects. This improves video quality and is enabled by default. If // this output uses QVBR, choose Transition detection (TRANSITION_DETECTION) for // further video quality improvement. For more information about QVBR, see // https://docs.aws.amazon.com/console/mediaconvert/cbr-vbr-qvbr. SceneChangeDetect H265SceneChangeDetect // Number of slices per picture. Must be less than or equal to the number of // macroblock rows for progressive pictures, and less than or equal to half the // number of macroblock rows for interlaced pictures. Slices int32 // Ignore this setting unless your input frame rate is 23.976 or 24 frames per // second (fps). Enable slow PAL to create a 25 fps output. When you enable slow // PAL, MediaConvert relabels the video frames to 25 fps and resamples your audio // to keep it synchronized with the video. Note that enabling this setting will // slightly reduce the duration of your video. Required settings: You must also set // Framerate to 25. In your JSON job specification, set (framerateControl) to // (SPECIFIED), (framerateNumerator) to 25 and (framerateDenominator) to 1. SlowPal H265SlowPal // Keep the default value, Enabled (ENABLED), to adjust quantization within each // frame based on spatial variation of content complexity. When you enable this // feature, the encoder uses fewer bits on areas that can sustain more distortion // with no noticeable visual degradation and uses more bits on areas where any // small distortion will be noticeable. For example, complex textured blocks are // encoded with fewer bits and smooth textured blocks are encoded with more bits. // Enabling this feature will almost always improve your video quality. Note, // though, that this feature doesn't take into account where the viewer's attention // is likely to be. If viewers are likely to be focusing their attention on a part // of the screen with a lot of complex texture, you might choose to disable this // feature. Related setting: When you enable spatial adaptive quantization, set the // value for Adaptive quantization (adaptiveQuantization) depending on your // content. For homogeneous content, such as cartoons and video games, set it to // Low. For content with a wider variety of textures, set it to High or Higher. SpatialAdaptiveQuantization H265SpatialAdaptiveQuantization // This field applies only if the Streams > Advanced > Framerate (framerate) field // is set to 29.970. This field works with the Streams > Advanced > Preprocessors > // Deinterlacer field (deinterlace_mode) and the Streams > Advanced > Interlaced // Mode field (interlace_mode) to identify the scan type for the output: // Progressive, Interlaced, Hard Telecine or Soft Telecine. - Hard: produces 29.97i // output from 23.976 input. - Soft: produces 23.976; the player converts this // output to 29.97i. Telecine H265Telecine // Keep the default value, Enabled (ENABLED), to adjust quantization within each // frame based on temporal variation of content complexity. When you enable this // feature, the encoder uses fewer bits on areas of the frame that aren't moving // and uses more bits on complex objects with sharp edges that move a lot. For // example, this feature improves the readability of text tickers on newscasts and // scoreboards on sports matches. Enabling this feature will almost always improve // your video quality. Note, though, that this feature doesn't take into account // where the viewer's attention is likely to be. If viewers are likely to be // focusing their attention on a part of the screen that doesn't have moving // objects with sharp edges, such as sports athletes' faces, you might choose to // disable this feature. Related setting: When you enable temporal quantization, // adjust the strength of the filter with the setting Adaptive quantization // (adaptiveQuantization). TemporalAdaptiveQuantization H265TemporalAdaptiveQuantization // Enables temporal layer identifiers in the encoded bitstream. Up to 3 layers are // supported depending on GOP structure: I- and P-frames form one layer, reference // B-frames can form a second layer and non-reference b-frames can form a third // layer. Decoders can optionally decode only the lower temporal layers to generate // a lower frame rate output. For example, given a bitstream with temporal IDs and // with b-frames = 1 (i.e. IbPbPb display order), a decoder could decode all the // frames for full frame rate output or only the I and P frames (lowest temporal // layer) for a half frame rate output. TemporalIds H265TemporalIds // Enable use of tiles, allowing horizontal as well as vertical subdivision of the // encoded pictures. Tiles H265Tiles // Inserts timecode for each frame as 4 bytes of an unregistered SEI message. UnregisteredSeiTimecode H265UnregisteredSeiTimecode // If the location of parameter set NAL units doesn't matter in your workflow, // ignore this setting. Use this setting only with CMAF or DASH outputs, or with // standalone file outputs in an MPEG-4 container (MP4 outputs). Choose HVC1 to // mark your output as HVC1. This makes your output compliant with the following // specification: ISO IECJTC1 SC29 N13798 Text ISO/IEC FDIS 14496-15 3rd Edition. // For these outputs, the service stores parameter set NAL units in the sample // headers but not in the samples directly. For MP4 outputs, when you choose HVC1, // your output video might not work properly with some downstream systems and video // players. The service defaults to marking your output as HEV1. For these outputs, // the service writes parameter set NAL units directly into the samples. WriteMp4PackagingType H265WriteMp4PackagingType noSmithyDocumentSerde } // Use these settings to specify static color calibration metadata, as defined by // SMPTE ST 2086. These values don't affect the pixel values that are encoded in // the video stream. They are intended to help the downstream video player display // content in a way that reflects the intentions of the the content creator. type Hdr10Metadata struct { // HDR Master Display Information must be provided by a color grader, using color // grading tools. Range is 0 to 50,000, each increment represents 0.00002 in // CIE1931 color coordinate. Note that this setting is not for color correction. BluePrimaryX int32 // HDR Master Display Information must be provided by a color grader, using color // grading tools. Range is 0 to 50,000, each increment represents 0.00002 in // CIE1931 color coordinate. Note that this setting is not for color correction. BluePrimaryY int32 // HDR Master Display Information must be provided by a color grader, using color // grading tools. Range is 0 to 50,000, each increment represents 0.00002 in // CIE1931 color coordinate. Note that this setting is not for color correction. GreenPrimaryX int32 // HDR Master Display Information must be provided by a color grader, using color // grading tools. Range is 0 to 50,000, each increment represents 0.00002 in // CIE1931 color coordinate. Note that this setting is not for color correction. GreenPrimaryY int32 // Maximum light level among all samples in the coded video sequence, in units of // candelas per square meter. This setting doesn't have a default value; you must // specify a value that is suitable for the content. MaxContentLightLevel int32 // Maximum average light level of any frame in the coded video sequence, in units // of candelas per square meter. This setting doesn't have a default value; you // must specify a value that is suitable for the content. MaxFrameAverageLightLevel int32 // Nominal maximum mastering display luminance in units of of 0.0001 candelas per // square meter. MaxLuminance int32 // Nominal minimum mastering display luminance in units of of 0.0001 candelas per // square meter MinLuminance int32 // HDR Master Display Information must be provided by a color grader, using color // grading tools. Range is 0 to 50,000, each increment represents 0.00002 in // CIE1931 color coordinate. Note that this setting is not for color correction. RedPrimaryX int32 // HDR Master Display Information must be provided by a color grader, using color // grading tools. Range is 0 to 50,000, each increment represents 0.00002 in // CIE1931 color coordinate. Note that this setting is not for color correction. RedPrimaryY int32 // HDR Master Display Information must be provided by a color grader, using color // grading tools. Range is 0 to 50,000, each increment represents 0.00002 in // CIE1931 color coordinate. Note that this setting is not for color correction. WhitePointX int32 // HDR Master Display Information must be provided by a color grader, using color // grading tools. Range is 0 to 50,000, each increment represents 0.00002 in // CIE1931 color coordinate. Note that this setting is not for color correction. WhitePointY int32 noSmithyDocumentSerde } // Setting for HDR10+ metadata insertion type Hdr10Plus struct { // Specify the HDR10+ mastering display normalized peak luminance, in nits. This // is the normalized actual peak luminance of the mastering display, as defined by // ST 2094-40. MasteringMonitorNits int32 // Specify the HDR10+ target display nominal peak luminance, in nits. This is the // nominal maximum luminance of the target display as defined by ST 2094-40. TargetMonitorNits int32 noSmithyDocumentSerde } // Specify the details for each additional HLS manifest that you want the service // to generate for this output group. Each manifest can reference a different // subset of outputs in the group. type HlsAdditionalManifest struct { // Specify a name modifier that the service adds to the name of this manifest to // make it different from the file names of the other main manifests in the output // group. For example, say that the default main manifest for your HLS group is // film-name.m3u8. If you enter "-no-premium" for this setting, then the file name // the service generates for this top-level manifest is film-name-no-premium.m3u8. // For HLS output groups, specify a manifestNameModifier that is different from the // nameModifier of the output. The service uses the output name modifier to create // unique names for the individual variant manifests. ManifestNameModifier *string // Specify the outputs that you want this additional top-level manifest to // reference. SelectedOutputs []string noSmithyDocumentSerde } // Caption Language Mapping type HlsCaptionLanguageMapping struct { // Caption channel. CaptionChannel int32 // Specify the language for this captions channel, using the ISO 639-2 or ISO // 639-3 three-letter language code CustomLanguageCode *string // Specify the language, using the ISO 639-2 three-letter code listed at // https://www.loc.gov/standards/iso639-2/php/code_list.php. LanguageCode LanguageCode // Caption language description. LanguageDescription *string noSmithyDocumentSerde } // Settings for HLS encryption type HlsEncryptionSettings struct { // This is a 128-bit, 16-byte hex value represented by a 32-character text string. // If this parameter is not set then the Initialization Vector will follow the // segment number by default. ConstantInitializationVector *string // Encrypts the segments with the given encryption scheme. Leave blank to disable. // Selecting 'Disabled' in the web interface also disables encryption. EncryptionMethod HlsEncryptionType // The Initialization Vector is a 128-bit number used in conjunction with the key // for encrypting blocks. If set to INCLUDE, Initialization Vector is listed in the // manifest. Otherwise Initialization Vector is not in the manifest. InitializationVectorInManifest HlsInitializationVectorInManifest // Enable this setting to insert the EXT-X-SESSION-KEY element into the master // playlist. This allows for offline Apple HLS FairPlay content protection. OfflineEncrypted HlsOfflineEncrypted // If your output group type is HLS, DASH, or Microsoft Smooth, use these settings // when doing DRM encryption with a SPEKE-compliant key provider. If your output // group type is CMAF, use the SpekeKeyProviderCmaf settings instead. SpekeKeyProvider *SpekeKeyProvider // Use these settings to set up encryption with a static key provider. StaticKeyProvider *StaticKeyProvider // Specify whether your DRM encryption key is static or from a key provider that // follows the SPEKE standard. For more information about SPEKE, see // https://docs.aws.amazon.com/speke/latest/documentation/what-is-speke.html. Type HlsKeyProviderType noSmithyDocumentSerde } // Settings related to your HLS output package. For more information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/outputs-file-ABR.html. When // you work directly in your JSON job specification, include this object and any // required children when you set Type, under OutputGroupSettings, to // HLS_GROUP_SETTINGS. type HlsGroupSettings struct { // Choose one or more ad marker types to decorate your Apple HLS manifest. This // setting does not determine whether SCTE-35 markers appear in the outputs // themselves. AdMarkers []HlsAdMarkers // By default, the service creates one top-level .m3u8 HLS manifest for each HLS // output group in your job. This default manifest references every output in the // output group. To create additional top-level manifests that reference a subset // of the outputs in the output group, specify a list of them here. AdditionalManifests []HlsAdditionalManifest // Ignore this setting unless you are using FairPlay DRM with Verimatrix and you // encounter playback issues. Keep the default value, Include (INCLUDE), to output // audio-only headers. Choose Exclude (EXCLUDE) to remove the audio-only headers // from your audio segments. AudioOnlyHeader HlsAudioOnlyHeader // A partial URI prefix that will be prepended to each output in the media .m3u8 // file. Can be used if base manifest is delivered from a different URL than the // main .m3u8 file. BaseUrl *string // Language to be used on Caption outputs CaptionLanguageMappings []HlsCaptionLanguageMapping // Applies only to 608 Embedded output captions. Insert: Include CLOSED-CAPTIONS // lines in the manifest. Specify at least one language in the CC1 Language Code // field. One CLOSED-CAPTION line is added for each Language Code you specify. Make // sure to specify the languages in the order in which they appear in the original // source (if the source is embedded format) or the order of the caption selectors // (if the source is other than embedded). Otherwise, languages in the manifest // will not match up properly with the output captions. None: Include // CLOSED-CAPTIONS=NONE line in the manifest. Omit: Omit any CLOSED-CAPTIONS line // from the manifest. CaptionLanguageSetting HlsCaptionLanguageSetting // Set Caption segment length control (CaptionSegmentLengthControl) to Match video // (MATCH_VIDEO) to create caption segments that align with the video segments from // the first video output in this output group. For example, if the video segments // are 2 seconds long, your WebVTT segments will also be 2 seconds long. Keep the // default setting, Large segments (LARGE_SEGMENTS) to create caption segments that // are 300 seconds long. CaptionSegmentLengthControl HlsCaptionSegmentLengthControl // Disable this setting only when your workflow requires the #EXT-X-ALLOW-CACHE:no // tag. Otherwise, keep the default value Enabled (ENABLED) and control caching in // your video distribution set up. For example, use the Cache-Control http header. ClientCache HlsClientCache // Specification to use (RFC-6381 or the default RFC-4281) during m3u8 playlist // generation. CodecSpecification HlsCodecSpecification // Use Destination (Destination) to specify the S3 output location and the output // filename base. Destination accepts format identifiers. If you do not specify the // base filename in the URI, the service will use the filename of the input file. // If your job has multiple inputs, the service uses the filename of the first // input file. Destination *string // Settings associated with the destination. Will vary based on the type of // destination DestinationSettings *DestinationSettings // Indicates whether segments should be placed in subdirectories. DirectoryStructure HlsDirectoryStructure // DRM settings. Encryption *HlsEncryptionSettings // Specify whether MediaConvert generates images for trick play. Keep the default // value, None (NONE), to not generate any images. Choose Thumbnail (THUMBNAIL) to // generate tiled thumbnails. Choose Thumbnail and full frame // (THUMBNAIL_AND_FULLFRAME) to generate tiled thumbnails and full-resolution // images of single frames. MediaConvert creates a child manifest for each set of // images that you generate and adds corresponding entries to the parent manifest. // A common application for these images is Roku trick mode. The thumbnails and // full-frame images that MediaConvert creates with this feature are compatible // with this Roku specification: // https://developer.roku.com/docs/developer-program/media-playback/trick-mode/hls-and-dash.md ImageBasedTrickPlay HlsImageBasedTrickPlay // Tile and thumbnail settings applicable when imageBasedTrickPlay is ADVANCED ImageBasedTrickPlaySettings *HlsImageBasedTrickPlaySettings // When set to GZIP, compresses HLS playlist. ManifestCompression HlsManifestCompression // Indicates whether the output manifest should use floating point values for // segment duration. ManifestDurationFormat HlsManifestDurationFormat // Keep this setting at the default value of 0, unless you are troubleshooting a // problem with how devices play back the end of your video asset. If you know that // player devices are hanging on the final segment of your video because the length // of your final segment is too short, use this setting to specify a minimum final // segment length, in seconds. Choose a value that is greater than or equal to 1 // and less than your segment length. When you specify a value for this setting, // the encoder will combine any final segment that is shorter than the length that // you specify with the previous segment. For example, your segment length is 3 // seconds and your final segment is .5 seconds without a minimum final segment // length; when you set the minimum final segment length to 1, your final segment // is 3.5 seconds. MinFinalSegmentLength float64 // When set, Minimum Segment Size is enforced by looking ahead and back within the // specified range for a nearby avail and extending the segment size if needed. MinSegmentLength int32 // Indicates whether the .m3u8 manifest file should be generated for this HLS // output group. OutputSelection HlsOutputSelection // Includes or excludes EXT-X-PROGRAM-DATE-TIME tag in .m3u8 manifest files. The // value is calculated as follows: either the program date and time are initialized // using the input timecode source, or the time is initialized using the input // timecode source and the date is initialized using the timestamp_offset. ProgramDateTime HlsProgramDateTime // Period of insertion of EXT-X-PROGRAM-DATE-TIME entry, in seconds. ProgramDateTimePeriod int32 // Specify whether MediaConvert generates HLS manifests while your job is running // or when your job is complete. To generate HLS manifests while your job is // running: Choose Enabled. Use if you want to play back your content as soon as // it's available. MediaConvert writes the parent and child manifests after the // first three media segments are written to your destination S3 bucket. It then // writes new updated manifests after each additional segment is written. The // parent manifest includes the latest BANDWIDTH and AVERAGE-BANDWIDTH attributes, // and child manifests include the latest available media segment. When your job // completes, the final child playlists include an EXT-X-ENDLIST tag. To generate // HLS manifests only when your job completes: Choose Disabled. ProgressiveWriteHlsManifest HlsProgressiveWriteHlsManifest // When set to SINGLE_FILE, emits program as a single media resource (.ts) file, // uses #EXT-X-BYTERANGE tags to index segment for playback. SegmentControl HlsSegmentControl // Specify the length, in whole seconds, of each segment. When you don't specify a // value, MediaConvert defaults to 10. Related settings: Use Segment length control // (SegmentLengthControl) to specify whether the encoder enforces this value // strictly. Use Segment control (HlsSegmentControl) to specify whether // MediaConvert creates separate segment files or one content file that has // metadata to mark the segment boundaries. SegmentLength int32 // Specify how you want MediaConvert to determine the segment length. Choose Exact // (EXACT) to have the encoder use the exact length that you specify with the // setting Segment length (SegmentLength). This might result in extra I-frames. // Choose Multiple of GOP (GOP_MULTIPLE) to have the encoder round up the segment // lengths to match the next GOP boundary. SegmentLengthControl HlsSegmentLengthControl // Specify the number of segments to write to a subdirectory before starting a new // one. You must also set Directory structure to Subdirectory per stream for this // setting to have an effect. SegmentsPerSubdirectory int32 // Include or exclude RESOLUTION attribute for video in EXT-X-STREAM-INF tag of // variant manifest. StreamInfResolution HlsStreamInfResolution // When set to LEGACY, the segment target duration is always rounded up to the // nearest integer value above its current value in seconds. When set to // SPEC\_COMPLIANT, the segment target duration is rounded up to the nearest // integer value if fraction seconds are greater than or equal to 0.5 (>= 0.5) and // rounded down if less than 0.5 (< 0.5). You may need to use LEGACY if your client // needs to ensure that the target duration is always longer than the actual // duration of the segment. Some older players may experience interrupted playback // when the actual duration of a track in a segment is longer than the target // duration. TargetDurationCompatibilityMode HlsTargetDurationCompatibilityMode // Specify the type of the ID3 frame (timedMetadataId3Frame) to use for ID3 // timestamps (timedMetadataId3Period) in your output. To include ID3 timestamps: // Specify PRIV (PRIV) or TDRL (TDRL) and set ID3 metadata (timedMetadata) to // Passthrough (PASSTHROUGH). To exclude ID3 timestamps: Set ID3 timestamp frame // type to None (NONE). TimedMetadataId3Frame HlsTimedMetadataId3Frame // Specify the interval in seconds to write ID3 timestamps in your output. The // first timestamp starts at the output timecode and date, and increases // incrementally with each ID3 timestamp. To use the default interval of 10 // seconds: Leave blank. To include this metadata in your output: Set ID3 timestamp // frame type (timedMetadataId3Frame) to PRIV (PRIV) or TDRL (TDRL), and set ID3 // metadata (timedMetadata) to Passthrough (PASSTHROUGH). TimedMetadataId3Period int32 // Provides an extra millisecond delta offset to fine tune the timestamps. TimestampDeltaMilliseconds int32 noSmithyDocumentSerde } // Tile and thumbnail settings applicable when imageBasedTrickPlay is ADVANCED type HlsImageBasedTrickPlaySettings struct { // The cadence MediaConvert follows for generating thumbnails. If set to // FOLLOW_IFRAME, MediaConvert generates thumbnails for each IDR frame in the // output (matching the GOP cadence). If set to FOLLOW_CUSTOM, MediaConvert // generates thumbnails according to the interval you specify in thumbnailInterval. IntervalCadence HlsIntervalCadence // Height of each thumbnail within each tile image, in pixels. Leave blank to // maintain aspect ratio with thumbnail width. If following the aspect ratio would // lead to a total tile height greater than 4096, then the job will be rejected. // Must be divisible by 2. ThumbnailHeight int32 // Enter the interval, in seconds, that MediaConvert uses to generate thumbnails. // If the interval you enter doesn't align with the output frame rate, MediaConvert // automatically rounds the interval to align with the output frame rate. For // example, if the output frame rate is 29.97 frames per second and you enter 5, // MediaConvert uses a 150 frame interval to generate thumbnails. ThumbnailInterval float64 // Width of each thumbnail within each tile image, in pixels. Default is 312. Must // be divisible by 8. ThumbnailWidth int32 // Number of thumbnails in each column of a tile image. Set a value between 2 and // 2048. Must be divisible by 2. TileHeight int32 // Number of thumbnails in each row of a tile image. Set a value between 1 and 512. TileWidth int32 noSmithyDocumentSerde } // Settings specific to audio sources in an HLS alternate rendition group. Specify // the properties (renditionGroupId, renditionName or renditionLanguageCode) to // identify the unique audio track among the alternative rendition groups present // in the HLS manifest. If no unique track is found, or multiple tracks match the // properties provided, the job fails. If no properties in // hlsRenditionGroupSettings are specified, the default audio track within the // video segment is chosen. If there is no audio within video segment, the // alternative audio with DEFAULT=YES is chosen instead. type HlsRenditionGroupSettings struct { // Optional. Specify alternative group ID RenditionGroupId *string // Optional. Specify ISO 639-2 or ISO 639-3 code in the language property RenditionLanguageCode LanguageCode // Optional. Specify media name RenditionName *string noSmithyDocumentSerde } // Settings for HLS output groups type HlsSettings struct { // Specifies the group to which the audio rendition belongs. AudioGroupId *string // Use this setting only in audio-only outputs. Choose MPEG-2 Transport Stream // (M2TS) to create a file in an MPEG2-TS container. Keep the default value // Automatic (AUTOMATIC) to create an audio-only file in a raw container. // Regardless of the value that you specify here, if this output has video, the // service will place the output into an MPEG2-TS container. AudioOnlyContainer HlsAudioOnlyContainer // List all the audio groups that are used with the video output stream. Input all // the audio GROUP-IDs that are associated to the video, separate by ','. AudioRenditionSets *string // Four types of audio-only tracks are supported: Audio-Only Variant Stream The // client can play back this audio-only stream instead of video in low-bandwidth // scenarios. Represented as an EXT-X-STREAM-INF in the HLS manifest. Alternate // Audio, Auto Select, Default Alternate rendition that the client should try to // play back by default. Represented as an EXT-X-MEDIA in the HLS manifest with // DEFAULT=YES, AUTOSELECT=YES Alternate Audio, Auto Select, Not Default Alternate // rendition that the client may try to play back by default. Represented as an // EXT-X-MEDIA in the HLS manifest with DEFAULT=NO, AUTOSELECT=YES Alternate Audio, // not Auto Select Alternate rendition that the client will not try to play back by // default. Represented as an EXT-X-MEDIA in the HLS manifest with DEFAULT=NO, // AUTOSELECT=NO AudioTrackType HlsAudioTrackType // Specify whether to flag this audio track as descriptive video service (DVS) in // your HLS parent manifest. When you choose Flag (FLAG), MediaConvert includes the // parameter CHARACTERISTICS="public.accessibility.describes-video" in the // EXT-X-MEDIA entry for this track. When you keep the default choice, Don't flag // (DONT_FLAG), MediaConvert leaves this parameter out. The DVS flag can help with // accessibility on Apple devices. For more information, see the Apple // documentation. DescriptiveVideoServiceFlag HlsDescriptiveVideoServiceFlag // Choose Include (INCLUDE) to have MediaConvert generate a child manifest that // lists only the I-frames for this rendition, in addition to your regular manifest // for this rendition. You might use this manifest as part of a workflow that // creates preview functions for your video. MediaConvert adds both the I-frame // only child manifest and the regular child manifest to the parent manifest. When // you don't need the I-frame only child manifest, keep the default value Exclude // (EXCLUDE). IFrameOnlyManifest HlsIFrameOnlyManifest // Use this setting to add an identifying string to the filename of each segment. // The service adds this string between the name modifier and segment index number. // You can use format identifiers in the string. For more information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/using-variables-in-your-job-settings.html SegmentModifier *string noSmithyDocumentSerde } // Optional. Configuration for a destination queue to which the job can hop once a // customer-defined minimum wait time has passed. type HopDestination struct { // Optional. When you set up a job to use queue hopping, you can specify a // different relative priority for the job in the destination queue. If you don't // specify, the relative priority will remain the same as in the previous queue. Priority int32 // Optional unless the job is submitted on the default queue. When you set up a // job to use queue hopping, you can specify a destination queue. This queue cannot // be the original queue to which the job is submitted. If the original queue isn't // the default queue and you don't specify the destination queue, the job will move // to the default queue. Queue *string // Required for setting up a job to use queue hopping. Minimum wait time in // minutes until the job can hop to the destination queue. Valid range is 1 to 4320 // minutes, inclusive. WaitMinutes int32 noSmithyDocumentSerde } // To insert ID3 tags in your output, specify two values. Use ID3 tag (Id3) to // specify the base 64 encoded string and use Timecode (TimeCode) to specify the // time when the tag should be inserted. To insert multiple ID3 tags in your // output, create multiple instances of ID3 insertion (Id3Insertion). type Id3Insertion struct { // Use ID3 tag (Id3) to provide a fully formed ID3 tag in base64-encode format. Id3 *string // Provide a Timecode (TimeCode) in HH:MM:SS:FF or HH:MM:SS;FF format. Timecode *string noSmithyDocumentSerde } // Use the image inserter feature to include a graphic overlay on your video. // Enable or disable this feature for each input or output individually. For more // information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/graphic-overlay.html. This // setting is disabled by default. type ImageInserter struct { // Specify the images that you want to overlay on your video. The images must be // PNG or TGA files. InsertableImages []InsertableImage // Specify the reference white level, in nits, for all of your image inserter // images. Use to correct brightness levels within HDR10 outputs. For 1,000 nit // peak brightness displays, we recommend that you set SDR reference white level to // 203 (according to ITU-R BT.2408). Leave blank to use the default value of 100, // or specify an integer from 100 to 1000. SdrReferenceWhiteLevel int32 noSmithyDocumentSerde } // Settings related to IMSC captions. IMSC is a sidecar format that holds captions // in a file that is separate from the video container. Set up sidecar captions in // the same output group, but different output from your video. For more // information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/ttml-and-webvtt-output-captions.html. // When you work directly in your JSON job specification, include this object and // any required children when you set destinationType to IMSC. type ImscDestinationSettings struct { // If the IMSC captions track is intended to provide accessibility for people who // are deaf or hard of hearing: Set Accessibility subtitles to Enabled. When you // do, MediaConvert adds accessibility attributes to your output HLS or DASH // manifest. For HLS manifests, MediaConvert adds the following accessibility // attributes under EXT-X-MEDIA for this track: // CHARACTERISTICS="public.accessibility.describes-spoken-dialog,public.accessibility.describes-music-and-sound" // and AUTOSELECT="YES". For DASH manifests, MediaConvert adds the following in the // adaptation set for this track: . If the captions track is not intended to // provide such accessibility: Keep the default value, Disabled. When you do, for // DASH manifests, MediaConvert instead adds the following in the adaptation set // for this track: . Accessibility ImscAccessibilitySubs // Keep this setting enabled to have MediaConvert use the font style and position // information from the captions source in the output. This option is available // only when your input captions are IMSC, SMPTE-TT, or TTML. Disable this setting // for simplified output captions. StylePassthrough ImscStylePassthrough noSmithyDocumentSerde } // Use inputs to define the source files used in your transcoding job. For more // information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/specify-input-settings.html. // You can use multiple video inputs to do input stitching. For more information, // see // https://docs.aws.amazon.com/mediaconvert/latest/ug/assembling-multiple-inputs-and-input-clips.html type Input struct { // Use to remove noise, blocking, blurriness, or ringing from your input as a // pre-filter step before encoding. The Advanced input filter removes more types of // compression artifacts and is an improvement when compared to basic Deblock and // Denoise filters. To remove video compression artifacts from your input and // improve the video quality: Choose Enabled. Additionally, this filter can help // increase the video quality of your output relative to its bitrate, since noisy // inputs are more complex and require more bits to encode. To help restore loss of // detail after applying the filter, you can optionally add texture or sharpening // as an additional step. Jobs that use this feature incur pro-tier pricing. To not // apply advanced input filtering: Choose Disabled. Note that you can still apply // basic filtering with Deblock and Denoise. AdvancedInputFilter AdvancedInputFilter // Optional settings for Advanced input filter when you set Advanced input filter // to Enabled. AdvancedInputFilterSettings *AdvancedInputFilterSettings // Use audio selector groups to combine multiple sidecar audio inputs so that you // can assign them to a single output audio tab (AudioDescription). Note that, if // you're working with embedded audio, it's simpler to assign multiple input tracks // into a single audio selector rather than use an audio selector group. AudioSelectorGroups map[string]AudioSelectorGroup // Use Audio selectors (AudioSelectors) to specify a track or set of tracks from // the input that you will use in your outputs. You can use multiple Audio // selectors per input. AudioSelectors map[string]AudioSelector // Use captions selectors to specify the captions data from your input that you // use in your outputs. You can use up to 100 captions selectors per input. CaptionSelectors map[string]CaptionSelector // Use Cropping selection (crop) to specify the video area that the service will // include in the output video frame. If you specify a value here, it will override // any value that you specify in the output setting Cropping selection (crop). Crop *Rectangle // Enable Deblock (InputDeblockFilter) to produce smoother motion in the output. // Default is disabled. Only manually controllable for MPEG2 and uncompressed video // inputs. DeblockFilter InputDeblockFilter // Settings for decrypting any input files that you encrypt before you upload them // to Amazon S3. MediaConvert can decrypt files only when you use AWS Key // Management Service (KMS) to encrypt the data key that you use to encrypt your // content. DecryptionSettings *InputDecryptionSettings // Enable Denoise (InputDenoiseFilter) to filter noise from the input. Default is // disabled. Only applicable to MPEG2, H.264, H.265, and uncompressed video inputs. DenoiseFilter InputDenoiseFilter // Use this setting only when your video source has Dolby Vision studio mastering // metadata that is carried in a separate XML file. Specify the Amazon S3 location // for the metadata XML file. MediaConvert uses this file to provide global and // frame-level metadata for Dolby Vision preprocessing. When you specify a file // here and your input also has interleaved global and frame level metadata, // MediaConvert ignores the interleaved metadata and uses only the the metadata // from this external XML file. Note that your IAM service role must grant // MediaConvert read permissions to this file. For more information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/iam-role.html. DolbyVisionMetadataXml *string // Specify the source file for your transcoding job. You can use multiple inputs // in a single job. The service concatenates these inputs, in the order that you // specify them in the job, to create the outputs. If your input format is IMF, // specify your input by providing the path to your CPL. For example, // "s3://bucket/vf/cpl.xml". If the CPL is in an incomplete IMP, make sure to use // Supplemental IMPs (SupplementalImps) to specify any supplemental IMPs that // contain assets referenced by the CPL. FileInput *string // Specify whether to apply input filtering to improve the video quality of your // input. To apply filtering depending on your input type and quality: Choose Auto. // To apply no filtering: Choose Disable. To apply filtering regardless of your // input type and quality: Choose Force. When you do, you must also specify a value // for Filter strength. FilterEnable InputFilterEnable // Specify the strength of the input filter. To apply an automatic amount of // filtering based the compression artifacts measured in your input: We recommend // that you leave Filter strength blank and set Filter enable to Auto. To manually // apply filtering: Enter a value from 1 to 5, where 1 is the least amount of // filtering and 5 is the most. The value that you enter applies to the strength of // the Deblock or Denoise filters, or to the strength of the Advanced input filter. FilterStrength int32 // Enable the image inserter feature to include a graphic overlay on your video. // Enable or disable this feature for each input individually. This setting is // disabled by default. ImageInserter *ImageInserter // (InputClippings) contains sets of start and end times that together specify a // portion of the input to be used in the outputs. If you provide only a start // time, the clip will be the entire input from that point to the end. If you // provide only an end time, it will be the entire input up to that point. When you // specify more than one input clip, the transcoding service creates the job // outputs by stringing the clips together in the order you specify them. InputClippings []InputClipping // When you have a progressive segmented frame (PsF) input, use this setting to // flag the input as PsF. MediaConvert doesn't automatically detect PsF. Therefore, // flagging your input as PsF results in better preservation of video quality when // you do deinterlacing and frame rate conversion. If you don't specify, the // default value is Auto (AUTO). Auto is the correct setting for all inputs that // are not PsF. Don't set this value to PsF when your input is interlaced. Doing so // creates horizontal interlacing artifacts. InputScanType InputScanType // Use Selection placement (position) to define the video area in your output // frame. The area outside of the rectangle that you specify here is black. If you // specify a value here, it will override any value that you specify in the output // setting Selection placement (position). If you specify a value here, this will // override any AFD values in your input, even if you set Respond to AFD // (RespondToAfd) to Respond (RESPOND). If you specify a value here, this will // ignore anything that you specify for the setting Scaling Behavior // (scalingBehavior). Position *Rectangle // Use Program (programNumber) to select a specific program from within a // multi-program transport stream. Note that Quad 4K is not currently supported. // Default is the first program within the transport stream. If the program you // specify doesn't exist, the transcoding service will use this default. ProgramNumber int32 // Set PSI control (InputPsiControl) for transport stream inputs to specify which // data the demux process to scans. * Ignore PSI - Scan all PIDs for audio and // video. * Use PSI - Scan only PSI data. PsiControl InputPsiControl // Provide a list of any necessary supplemental IMPs. You need supplemental IMPs // if the CPL that you're using for your input is in an incomplete IMP. Specify // either the supplemental IMP directories with a trailing slash or the // ASSETMAP.xml files. For example ["s3://bucket/ov/", // "s3://bucket/vf2/ASSETMAP.xml"]. You don't need to specify the IMP that contains // your input CPL, because the service automatically detects it. SupplementalImps []string // Use this Timecode source setting, located under the input settings // (InputTimecodeSource), to specify how the service counts input video frames. // This input frame count affects only the behavior of features that apply to a // single input at a time, such as input clipping and synchronizing some captions // formats. Choose Embedded (EMBEDDED) to use the timecodes in your input video. // Choose Start at zero (ZEROBASED) to start the first frame at zero. Choose // Specified start (SPECIFIEDSTART) to start the first frame at the timecode that // you specify in the setting Start timecode (timecodeStart). If you don't specify // a value for Timecode source, the service will use Embedded by default. For more // information about timecodes, see // https://docs.aws.amazon.com/console/mediaconvert/timecode. TimecodeSource InputTimecodeSource // Specify the timecode that you want the service to use for this input's initial // frame. To use this setting, you must set the Timecode source setting, located // under the input settings (InputTimecodeSource), to Specified start // (SPECIFIEDSTART). For more information about timecodes, see // https://docs.aws.amazon.com/console/mediaconvert/timecode. TimecodeStart *string // When you include Video generator, MediaConvert creates a video input with black // frames. Use this setting if you do not have a video input or if you want to add // black video frames before, or after, other inputs. You can specify Video // generator, or you can specify an Input file, but you cannot specify both. For // more information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/video-generator.html VideoGenerator *InputVideoGenerator // Input video selectors contain the video settings for the input. Each of your // inputs can have up to one video selector. VideoSelector *VideoSelector noSmithyDocumentSerde } // To transcode only portions of your input, include one input clip for each part // of your input that you want in your output. All input clips that you specify // will be included in every output of the job. For more information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/assembling-multiple-inputs-and-input-clips.html. type InputClipping struct { // Set End timecode (EndTimecode) to the end of the portion of the input you are // clipping. The frame corresponding to the End timecode value is included in the // clip. Start timecode or End timecode may be left blank, but not both. Use the // format HH:MM:SS:FF or HH:MM:SS;FF, where HH is the hour, MM is the minute, SS is // the second, and FF is the frame number. When choosing this value, take into // account your setting for timecode source under input settings // (InputTimecodeSource). For example, if you have embedded timecodes that start at // 01:00:00:00 and you want your clip to end six minutes into the video, use // 01:06:00:00. EndTimecode *string // Set Start timecode (StartTimecode) to the beginning of the portion of the input // you are clipping. The frame corresponding to the Start timecode value is // included in the clip. Start timecode or End timecode may be left blank, but not // both. Use the format HH:MM:SS:FF or HH:MM:SS;FF, where HH is the hour, MM is the // minute, SS is the second, and FF is the frame number. When choosing this value, // take into account your setting for Input timecode source. For example, if you // have embedded timecodes that start at 01:00:00:00 and you want your clip to // begin five minutes into the video, use 01:05:00:00. StartTimecode *string noSmithyDocumentSerde } // Settings for decrypting any input files that you encrypt before you upload them // to Amazon S3. MediaConvert can decrypt files only when you use AWS Key // Management Service (KMS) to encrypt the data key that you use to encrypt your // content. type InputDecryptionSettings struct { // Specify the encryption mode that you used to encrypt your input files. DecryptionMode DecryptionMode // Warning! Don't provide your encryption key in plaintext. Your job settings // could be intercepted, making your encrypted content vulnerable. Specify the // encrypted version of the data key that you used to encrypt your content. The // data key must be encrypted by AWS Key Management Service (KMS). The key can be // 128, 192, or 256 bits. EncryptedDecryptionKey *string // Specify the initialization vector that you used when you encrypted your content // before uploading it to Amazon S3. You can use a 16-byte initialization vector // with any encryption mode. Or, you can use a 12-byte initialization vector with // GCM or CTR. MediaConvert accepts only initialization vectors that are // base64-encoded. InitializationVector *string // Specify the AWS Region for AWS Key Management Service (KMS) that you used to // encrypt your data key, if that Region is different from the one you are using // for AWS Elemental MediaConvert. KmsKeyRegion *string noSmithyDocumentSerde } // Specified video input in a template. type InputTemplate struct { // Use to remove noise, blocking, blurriness, or ringing from your input as a // pre-filter step before encoding. The Advanced input filter removes more types of // compression artifacts and is an improvement when compared to basic Deblock and // Denoise filters. To remove video compression artifacts from your input and // improve the video quality: Choose Enabled. Additionally, this filter can help // increase the video quality of your output relative to its bitrate, since noisy // inputs are more complex and require more bits to encode. To help restore loss of // detail after applying the filter, you can optionally add texture or sharpening // as an additional step. Jobs that use this feature incur pro-tier pricing. To not // apply advanced input filtering: Choose Disabled. Note that you can still apply // basic filtering with Deblock and Denoise. AdvancedInputFilter AdvancedInputFilter // Optional settings for Advanced input filter when you set Advanced input filter // to Enabled. AdvancedInputFilterSettings *AdvancedInputFilterSettings // Use audio selector groups to combine multiple sidecar audio inputs so that you // can assign them to a single output audio tab (AudioDescription). Note that, if // you're working with embedded audio, it's simpler to assign multiple input tracks // into a single audio selector rather than use an audio selector group. AudioSelectorGroups map[string]AudioSelectorGroup // Use Audio selectors (AudioSelectors) to specify a track or set of tracks from // the input that you will use in your outputs. You can use multiple Audio // selectors per input. AudioSelectors map[string]AudioSelector // Use captions selectors to specify the captions data from your input that you // use in your outputs. You can use up to 100 captions selectors per input. CaptionSelectors map[string]CaptionSelector // Use Cropping selection (crop) to specify the video area that the service will // include in the output video frame. If you specify a value here, it will override // any value that you specify in the output setting Cropping selection (crop). Crop *Rectangle // Enable Deblock (InputDeblockFilter) to produce smoother motion in the output. // Default is disabled. Only manually controllable for MPEG2 and uncompressed video // inputs. DeblockFilter InputDeblockFilter // Enable Denoise (InputDenoiseFilter) to filter noise from the input. Default is // disabled. Only applicable to MPEG2, H.264, H.265, and uncompressed video inputs. DenoiseFilter InputDenoiseFilter // Use this setting only when your video source has Dolby Vision studio mastering // metadata that is carried in a separate XML file. Specify the Amazon S3 location // for the metadata XML file. MediaConvert uses this file to provide global and // frame-level metadata for Dolby Vision preprocessing. When you specify a file // here and your input also has interleaved global and frame level metadata, // MediaConvert ignores the interleaved metadata and uses only the the metadata // from this external XML file. Note that your IAM service role must grant // MediaConvert read permissions to this file. For more information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/iam-role.html. DolbyVisionMetadataXml *string // Specify whether to apply input filtering to improve the video quality of your // input. To apply filtering depending on your input type and quality: Choose Auto. // To apply no filtering: Choose Disable. To apply filtering regardless of your // input type and quality: Choose Force. When you do, you must also specify a value // for Filter strength. FilterEnable InputFilterEnable // Specify the strength of the input filter. To apply an automatic amount of // filtering based the compression artifacts measured in your input: We recommend // that you leave Filter strength blank and set Filter enable to Auto. To manually // apply filtering: Enter a value from 1 to 5, where 1 is the least amount of // filtering and 5 is the most. The value that you enter applies to the strength of // the Deblock or Denoise filters, or to the strength of the Advanced input filter. FilterStrength int32 // Enable the image inserter feature to include a graphic overlay on your video. // Enable or disable this feature for each input individually. This setting is // disabled by default. ImageInserter *ImageInserter // (InputClippings) contains sets of start and end times that together specify a // portion of the input to be used in the outputs. If you provide only a start // time, the clip will be the entire input from that point to the end. If you // provide only an end time, it will be the entire input up to that point. When you // specify more than one input clip, the transcoding service creates the job // outputs by stringing the clips together in the order you specify them. InputClippings []InputClipping // When you have a progressive segmented frame (PsF) input, use this setting to // flag the input as PsF. MediaConvert doesn't automatically detect PsF. Therefore, // flagging your input as PsF results in better preservation of video quality when // you do deinterlacing and frame rate conversion. If you don't specify, the // default value is Auto (AUTO). Auto is the correct setting for all inputs that // are not PsF. Don't set this value to PsF when your input is interlaced. Doing so // creates horizontal interlacing artifacts. InputScanType InputScanType // Use Selection placement (position) to define the video area in your output // frame. The area outside of the rectangle that you specify here is black. If you // specify a value here, it will override any value that you specify in the output // setting Selection placement (position). If you specify a value here, this will // override any AFD values in your input, even if you set Respond to AFD // (RespondToAfd) to Respond (RESPOND). If you specify a value here, this will // ignore anything that you specify for the setting Scaling Behavior // (scalingBehavior). Position *Rectangle // Use Program (programNumber) to select a specific program from within a // multi-program transport stream. Note that Quad 4K is not currently supported. // Default is the first program within the transport stream. If the program you // specify doesn't exist, the transcoding service will use this default. ProgramNumber int32 // Set PSI control (InputPsiControl) for transport stream inputs to specify which // data the demux process to scans. * Ignore PSI - Scan all PIDs for audio and // video. * Use PSI - Scan only PSI data. PsiControl InputPsiControl // Use this Timecode source setting, located under the input settings // (InputTimecodeSource), to specify how the service counts input video frames. // This input frame count affects only the behavior of features that apply to a // single input at a time, such as input clipping and synchronizing some captions // formats. Choose Embedded (EMBEDDED) to use the timecodes in your input video. // Choose Start at zero (ZEROBASED) to start the first frame at zero. Choose // Specified start (SPECIFIEDSTART) to start the first frame at the timecode that // you specify in the setting Start timecode (timecodeStart). If you don't specify // a value for Timecode source, the service will use Embedded by default. For more // information about timecodes, see // https://docs.aws.amazon.com/console/mediaconvert/timecode. TimecodeSource InputTimecodeSource // Specify the timecode that you want the service to use for this input's initial // frame. To use this setting, you must set the Timecode source setting, located // under the input settings (InputTimecodeSource), to Specified start // (SPECIFIEDSTART). For more information about timecodes, see // https://docs.aws.amazon.com/console/mediaconvert/timecode. TimecodeStart *string // Input video selectors contain the video settings for the input. Each of your // inputs can have up to one video selector. VideoSelector *VideoSelector noSmithyDocumentSerde } // When you include Video generator, MediaConvert creates a video input with black // frames. Use this setting if you do not have a video input or if you want to add // black video frames before, or after, other inputs. You can specify Video // generator, or you can specify an Input file, but you cannot specify both. For // more information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/video-generator.html type InputVideoGenerator struct { // Specify an integer value for Black video duration from 50 to 86400000 to // generate a black video input for that many milliseconds. Required when you // include Video generator. Duration int32 noSmithyDocumentSerde } // These settings apply to a specific graphic overlay. You can include multiple // overlays in your job. type InsertableImage struct { // Specify the time, in milliseconds, for the image to remain on the output video. // This duration includes fade-in time but not fade-out time. Duration int32 // Specify the length of time, in milliseconds, between the Start time that you // specify for the image insertion and the time that the image appears at full // opacity. Full opacity is the level that you specify for the opacity setting. If // you don't specify a value for Fade-in, the image will appear abruptly at the // overlay start time. FadeIn int32 // Specify the length of time, in milliseconds, between the end of the time that // you have specified for the image overlay Duration and when the overlaid image // has faded to total transparency. If you don't specify a value for Fade-out, the // image will disappear abruptly at the end of the inserted image duration. FadeOut int32 // Specify the height of the inserted image in pixels. If you specify a value // that's larger than the video resolution height, the service will crop your // overlaid image to fit. To use the native height of the image, keep this setting // blank. Height int32 // Specify the HTTP, HTTPS, or Amazon S3 location of the image that you want to // overlay on the video. Use a PNG or TGA file. ImageInserterInput *string // Specify the distance, in pixels, between the inserted image and the left edge // of the video frame. Required for any image overlay that you specify. ImageX int32 // Specify the distance, in pixels, between the overlaid image and the top edge of // the video frame. Required for any image overlay that you specify. ImageY int32 // Specify how overlapping inserted images appear. Images with higher values for // Layer appear on top of images with lower values for Layer. Layer int32 // Use Opacity (Opacity) to specify how much of the underlying video shows through // the inserted image. 0 is transparent and 100 is fully opaque. Default is 50. Opacity int32 // Specify the timecode of the frame that you want the overlay to first appear on. // This must be in timecode (HH:MM:SS:FF or HH:MM:SS;FF) format. Remember to take // into account your timecode source settings. StartTime *string // Specify the width of the inserted image in pixels. If you specify a value // that's larger than the video resolution width, the service will crop your // overlaid image to fit. To use the native width of the image, keep this setting // blank. Width int32 noSmithyDocumentSerde } // Each job converts an input file into an output file or files. For more // information, see the User Guide at // https://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html type Job struct { // The IAM role you use for creating this job. For details about permissions, see // the User Guide topic at the User Guide at // https://docs.aws.amazon.com/mediaconvert/latest/ug/iam-role.html // // This member is required. Role *string // JobSettings contains all the transcode settings for a job. // // This member is required. Settings *JobSettings // Accelerated transcoding can significantly speed up jobs with long, visually // complex content. AccelerationSettings *AccelerationSettings // Describes whether the current job is running with accelerated transcoding. For // jobs that have Acceleration (AccelerationMode) set to DISABLED, // AccelerationStatus is always NOT_APPLICABLE. For jobs that have Acceleration // (AccelerationMode) set to ENABLED or PREFERRED, AccelerationStatus is one of the // other states. AccelerationStatus is IN_PROGRESS initially, while the service // determines whether the input files and job settings are compatible with // accelerated transcoding. If they are, AcclerationStatus is ACCELERATED. If your // input files and job settings aren't compatible with accelerated transcoding, the // service either fails your job or runs it without accelerated transcoding, // depending on how you set Acceleration (AccelerationMode). When the service runs // your job without accelerated transcoding, AccelerationStatus is NOT_ACCELERATED. AccelerationStatus AccelerationStatus // An identifier for this resource that is unique within all of AWS. Arn *string // The tag type that AWS Billing and Cost Management will use to sort your AWS // Elemental MediaConvert costs on any billing report that you set up. BillingTagsSource BillingTagsSource // Prevent duplicate jobs from being created and ensure idempotency for your // requests. A client request token can be any string that includes up to 64 ASCII // characters. If you reuse a client request token within one minute of a // successful request, the API returns the job details of the original request // instead. For more information see // https://docs.aws.amazon.com/mediaconvert/latest/apireference/idempotency.html. ClientRequestToken *string // The time, in Unix epoch format in seconds, when the job got created. CreatedAt *time.Time // A job's phase can be PROBING, TRANSCODING OR UPLOADING CurrentPhase JobPhase // Error code for the job ErrorCode int32 // Error message of Job ErrorMessage *string // Optional list of hop destinations. HopDestinations []HopDestination // A portion of the job's ARN, unique within your AWS Elemental MediaConvert // resources Id *string // An estimate of how far your job has progressed. This estimate is shown as a // percentage of the total time from when your job leaves its queue to when your // output files appear in your output Amazon S3 bucket. AWS Elemental MediaConvert // provides jobPercentComplete in CloudWatch STATUS_UPDATE events and in the // response to GetJob and ListJobs requests. The jobPercentComplete estimate is // reliable for the following input containers: Quicktime, Transport Stream, MP4, // and MXF. For some jobs, the service can't provide information about job // progress. In those cases, jobPercentComplete returns a null value. JobPercentComplete int32 // The job template that the job is created from, if it is created from a job // template. JobTemplate *string // Provides messages from the service about jobs that you have already // successfully submitted. Messages *JobMessages // List of output group details OutputGroupDetails []OutputGroupDetail // Relative priority on the job. Priority int32 // When you create a job, you can specify a queue to send it to. If you don't // specify, the job will go to the default queue. For more about queues, see the // User Guide topic at // https://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html Queue *string // The job's queue hopping history. QueueTransitions []QueueTransition // The number of times that the service automatically attempted to process your // job after encountering an error. RetryCount int32 // Enable this setting when you run a test job to estimate how many reserved // transcoding slots (RTS) you need. When this is enabled, MediaConvert runs your // job from an on-demand queue with similar performance to what you will see with // one RTS in a reserved queue. This setting is disabled by default. SimulateReservedQueue SimulateReservedQueue // A job's status can be SUBMITTED, PROGRESSING, COMPLETE, CANCELED, or ERROR. Status JobStatus // Specify how often MediaConvert sends STATUS_UPDATE events to Amazon CloudWatch // Events. Set the interval, in seconds, between status updates. MediaConvert sends // an update at this interval from the time the service begins processing your job // to the time it completes the transcode or encounters an error. StatusUpdateInterval StatusUpdateInterval // Information about when jobs are submitted, started, and finished is specified // in Unix epoch format in seconds. Timing *Timing // User-defined metadata that you want to associate with an MediaConvert job. You // specify metadata in key/value pairs. UserMetadata map[string]string // Contains any warning messages for the job. Use to help identify potential // issues with your input, output, or job. For more information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/warning_codes.html Warnings []WarningGroup noSmithyDocumentSerde } // Provides messages from the service about jobs that you have already // successfully submitted. type JobMessages struct { // List of messages that are informational only and don't indicate a problem with // your job. Info []string // List of messages that warn about conditions that might cause your job not to // run or to fail. Warning []string noSmithyDocumentSerde } // JobSettings contains all the transcode settings for a job. type JobSettings struct { // When specified, this offset (in milliseconds) is added to the input Ad Avail // PTS time. AdAvailOffset int32 // Settings for ad avail blanking. Video can be blanked or overlaid with an image, // and audio muted during SCTE-35 triggered ad avails. AvailBlanking *AvailBlanking // Settings for Event Signaling And Messaging (ESAM). If you don't do ad // insertion, you can ignore these settings. Esam *EsamSettings // If your source content has EIA-608 Line 21 Data Services, enable this feature // to specify what MediaConvert does with the Extended Data Services (XDS) packets. // You can choose to pass through XDS packets, or remove them from the output. For // more information about XDS, see EIA-608 Line Data Services, section 9.5.1.5 05h // Content Advisory. ExtendedDataServices *ExtendedDataServices // Use Inputs (inputs) to define source file used in the transcode job. There can // be multiple inputs add in a job. These inputs will be concantenated together to // create the output. Inputs []Input // Use these settings only when you use Kantar watermarking. Specify the values // that MediaConvert uses to generate and place Kantar watermarks in your output // audio. These settings apply to every output in your job. In addition to // specifying these values, you also need to store your Kantar credentials in AWS // Secrets Manager. For more information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/kantar-watermarking.html. KantarWatermark *KantarWatermarkSettings // Overlay motion graphics on top of your video. The motion graphics that you // specify here appear on all outputs in all output groups. For more information, // see // https://docs.aws.amazon.com/mediaconvert/latest/ug/motion-graphic-overlay.html. MotionImageInserter *MotionImageInserter // Settings for your Nielsen configuration. If you don't do Nielsen measurement // and analytics, ignore these settings. When you enable Nielsen configuration // (nielsenConfiguration), MediaConvert enables PCM to ID3 tagging for all outputs // in the job. To enable Nielsen configuration programmatically, include an // instance of nielsenConfiguration in your JSON job specification. Even if you // don't include any children of nielsenConfiguration, you still enable the // setting. NielsenConfiguration *NielsenConfiguration // Ignore these settings unless you are using Nielsen non-linear watermarking. // Specify the values that MediaConvert uses to generate and place Nielsen // watermarks in your output audio. In addition to specifying these values, you // also need to set up your cloud TIC server. These settings apply to every output // in your job. The MediaConvert implementation is currently with the following // Nielsen versions: Nielsen Watermark SDK Version 5.2.1 Nielsen NLM Watermark // Engine Version 1.2.7 Nielsen Watermark Authenticator [SID_TIC] Version [5.0.0] NielsenNonLinearWatermark *NielsenNonLinearWatermarkSettings // (OutputGroups) contains one group of settings for each set of outputs that // share a common package type. All unpackaged files (MPEG-4, MPEG-2 TS, Quicktime, // MXF, and no container) are grouped in a single output group as well. Required in // (OutputGroups) is a group of settings that apply to the whole group. This // required object depends on the value you set for (Type) under // (OutputGroups)>(OutputGroupSettings). Type, settings object pairs are as // follows. * FILE_GROUP_SETTINGS, FileGroupSettings * HLS_GROUP_SETTINGS, // HlsGroupSettings * DASH_ISO_GROUP_SETTINGS, DashIsoGroupSettings * // MS_SMOOTH_GROUP_SETTINGS, MsSmoothGroupSettings * CMAF_GROUP_SETTINGS, // CmafGroupSettings OutputGroups []OutputGroup // These settings control how the service handles timecodes throughout the job. // These settings don't affect input clipping. TimecodeConfig *TimecodeConfig // Insert user-defined custom ID3 metadata (id3) at timecodes (timecode) that you // specify. In each output that you want to include this metadata, you must set ID3 // metadata (timedMetadata) to Passthrough (PASSTHROUGH). TimedMetadataInsertion *TimedMetadataInsertion noSmithyDocumentSerde } // A job template is a pre-made set of encoding instructions that you can use to // quickly create a job. type JobTemplate struct { // A name you create for each job template. Each name must be unique within your // account. // // This member is required. Name *string // JobTemplateSettings contains all the transcode settings saved in the template // that will be applied to jobs created from it. // // This member is required. Settings *JobTemplateSettings // Accelerated transcoding can significantly speed up jobs with long, visually // complex content. AccelerationSettings *AccelerationSettings // An identifier for this resource that is unique within all of AWS. Arn *string // An optional category you create to organize your job templates. Category *string // The timestamp in epoch seconds for Job template creation. CreatedAt *time.Time // An optional description you create for each job template. Description *string // Optional list of hop destinations. HopDestinations []HopDestination // The timestamp in epoch seconds when the Job template was last updated. LastUpdated *time.Time // Relative priority on the job. Priority int32 // Optional. The queue that jobs created from this template are assigned to. If // you don't specify this, jobs will go to the default queue. Queue *string // Specify how often MediaConvert sends STATUS_UPDATE events to Amazon CloudWatch // Events. Set the interval, in seconds, between status updates. MediaConvert sends // an update at this interval from the time the service begins processing your job // to the time it completes the transcode or encounters an error. StatusUpdateInterval StatusUpdateInterval // A job template can be of two types: system or custom. System or built-in job // templates can't be modified or deleted by the user. Type Type noSmithyDocumentSerde } // JobTemplateSettings contains all the transcode settings saved in the template // that will be applied to jobs created from it. type JobTemplateSettings struct { // When specified, this offset (in milliseconds) is added to the input Ad Avail // PTS time. AdAvailOffset int32 // Settings for ad avail blanking. Video can be blanked or overlaid with an image, // and audio muted during SCTE-35 triggered ad avails. AvailBlanking *AvailBlanking // Settings for Event Signaling And Messaging (ESAM). If you don't do ad // insertion, you can ignore these settings. Esam *EsamSettings // If your source content has EIA-608 Line 21 Data Services, enable this feature // to specify what MediaConvert does with the Extended Data Services (XDS) packets. // You can choose to pass through XDS packets, or remove them from the output. For // more information about XDS, see EIA-608 Line Data Services, section 9.5.1.5 05h // Content Advisory. ExtendedDataServices *ExtendedDataServices // Use Inputs (inputs) to define the source file used in the transcode job. There // can only be one input in a job template. Using the API, you can include multiple // inputs when referencing a job template. Inputs []InputTemplate // Use these settings only when you use Kantar watermarking. Specify the values // that MediaConvert uses to generate and place Kantar watermarks in your output // audio. These settings apply to every output in your job. In addition to // specifying these values, you also need to store your Kantar credentials in AWS // Secrets Manager. For more information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/kantar-watermarking.html. KantarWatermark *KantarWatermarkSettings // Overlay motion graphics on top of your video. The motion graphics that you // specify here appear on all outputs in all output groups. For more information, // see // https://docs.aws.amazon.com/mediaconvert/latest/ug/motion-graphic-overlay.html. MotionImageInserter *MotionImageInserter // Settings for your Nielsen configuration. If you don't do Nielsen measurement // and analytics, ignore these settings. When you enable Nielsen configuration // (nielsenConfiguration), MediaConvert enables PCM to ID3 tagging for all outputs // in the job. To enable Nielsen configuration programmatically, include an // instance of nielsenConfiguration in your JSON job specification. Even if you // don't include any children of nielsenConfiguration, you still enable the // setting. NielsenConfiguration *NielsenConfiguration // Ignore these settings unless you are using Nielsen non-linear watermarking. // Specify the values that MediaConvert uses to generate and place Nielsen // watermarks in your output audio. In addition to specifying these values, you // also need to set up your cloud TIC server. These settings apply to every output // in your job. The MediaConvert implementation is currently with the following // Nielsen versions: Nielsen Watermark SDK Version 5.2.1 Nielsen NLM Watermark // Engine Version 1.2.7 Nielsen Watermark Authenticator [SID_TIC] Version [5.0.0] NielsenNonLinearWatermark *NielsenNonLinearWatermarkSettings // (OutputGroups) contains one group of settings for each set of outputs that // share a common package type. All unpackaged files (MPEG-4, MPEG-2 TS, Quicktime, // MXF, and no container) are grouped in a single output group as well. Required in // (OutputGroups) is a group of settings that apply to the whole group. This // required object depends on the value you set for (Type) under // (OutputGroups)>(OutputGroupSettings). Type, settings object pairs are as // follows. * FILE_GROUP_SETTINGS, FileGroupSettings * HLS_GROUP_SETTINGS, // HlsGroupSettings * DASH_ISO_GROUP_SETTINGS, DashIsoGroupSettings * // MS_SMOOTH_GROUP_SETTINGS, MsSmoothGroupSettings * CMAF_GROUP_SETTINGS, // CmafGroupSettings OutputGroups []OutputGroup // These settings control how the service handles timecodes throughout the job. // These settings don't affect input clipping. TimecodeConfig *TimecodeConfig // Insert user-defined custom ID3 metadata (id3) at timecodes (timecode) that you // specify. In each output that you want to include this metadata, you must set ID3 // metadata (timedMetadata) to Passthrough (PASSTHROUGH). TimedMetadataInsertion *TimedMetadataInsertion noSmithyDocumentSerde } // Use these settings only when you use Kantar watermarking. Specify the values // that MediaConvert uses to generate and place Kantar watermarks in your output // audio. These settings apply to every output in your job. In addition to // specifying these values, you also need to store your Kantar credentials in AWS // Secrets Manager. For more information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/kantar-watermarking.html. type KantarWatermarkSettings struct { // Provide an audio channel name from your Kantar audio license. ChannelName *string // Specify a unique identifier for Kantar to use for this piece of content. ContentReference *string // Provide the name of the AWS Secrets Manager secret where your Kantar // credentials are stored. Note that your MediaConvert service role must provide // access to this secret. For more information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/granting-permissions-for-mediaconvert-to-access-secrets-manager-secret.html. // For instructions on creating a secret, see // https://docs.aws.amazon.com/secretsmanager/latest/userguide/tutorials_basic.html, // in the AWS Secrets Manager User Guide. CredentialsSecretName *string // Optional. Specify an offset, in whole seconds, from the start of your output // and the beginning of the watermarking. When you don't specify an offset, Kantar // defaults to zero. FileOffset float64 // Provide your Kantar license ID number. You should get this number from Kantar. KantarLicenseId int32 // Provide the HTTPS endpoint to the Kantar server. You should get this endpoint // from Kantar. KantarServerUrl *string // Optional. Specify the Amazon S3 bucket where you want MediaConvert to store // your Kantar watermark XML logs. When you don't specify a bucket, MediaConvert // doesn't save these logs. Note that your MediaConvert service role must provide // access to this location. For more information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/iam-role.html LogDestination *string // You can optionally use this field to specify the first timestamp that Kantar // embeds during watermarking. Kantar suggests that you be very cautious when using // this Kantar feature, and that you use it only on channels that are managed // specifically for use with this feature by your Audience Measurement Operator. // For more information about this feature, contact Kantar technical support. Metadata3 *string // Additional metadata that MediaConvert sends to Kantar. Maximum length is 50 // characters. Metadata4 *string // Additional metadata that MediaConvert sends to Kantar. Maximum length is 50 // characters. Metadata5 *string // Additional metadata that MediaConvert sends to Kantar. Maximum length is 50 // characters. Metadata6 *string // Additional metadata that MediaConvert sends to Kantar. Maximum length is 50 // characters. Metadata7 *string // Additional metadata that MediaConvert sends to Kantar. Maximum length is 50 // characters. Metadata8 *string noSmithyDocumentSerde } // Settings for SCTE-35 signals from ESAM. Include this in your job settings to // put SCTE-35 markers in your HLS and transport stream outputs at the insertion // points that you specify in an ESAM XML document. Provide the document in the // setting SCC XML (sccXml). type M2tsScte35Esam struct { // Packet Identifier (PID) of the SCTE-35 stream in the transport stream generated // by ESAM. Scte35EsamPid int32 noSmithyDocumentSerde } // MPEG-2 TS container settings. These apply to outputs in a File output group // when the output's container (ContainerType) is MPEG-2 Transport Stream (M2TS). // In these assets, data is organized by the program map table (PMT). Each // transport stream program contains subsets of data, including audio, video, and // metadata. Each of these subsets of data has a numerical label called a packet // identifier (PID). Each transport stream program corresponds to one MediaConvert // output. The PMT lists the types of data in a program along with their PID. // Downstream systems and players use the program map table to look up the PID for // each type of data it accesses and then uses the PIDs to locate specific data // within the asset. type M2tsSettings struct { // Selects between the DVB and ATSC buffer models for Dolby Digital audio. AudioBufferModel M2tsAudioBufferModel // Specify this setting only when your output will be consumed by a downstream // repackaging workflow that is sensitive to very small duration differences // between video and audio. For this situation, choose Match video duration // (MATCH_VIDEO_DURATION). In all other cases, keep the default value, Default // codec duration (DEFAULT_CODEC_DURATION). When you choose Match video duration, // MediaConvert pads the output audio streams with silence or trims them to ensure // that the total duration of each audio stream is at least as long as the total // duration of the video stream. After padding or trimming, the audio stream // duration is no more than one frame longer than the video stream. MediaConvert // applies audio padding or trimming only to the end of the last segment of the // output. For unsegmented outputs, MediaConvert adds padding only to the end of // the file. When you keep the default value, any minor discrepancies between audio // and video duration will depend on your output audio codec. AudioDuration M2tsAudioDuration // The number of audio frames to insert for each PES packet. AudioFramesPerPes int32 // Specify the packet identifiers (PIDs) for any elementary audio streams you // include in this output. Specify multiple PIDs as a JSON array. Default is the // range 482-492. AudioPids []int32 // Specify the output bitrate of the transport stream in bits per second. Setting // to 0 lets the muxer automatically determine the appropriate bitrate. Other // common values are 3750000, 7500000, and 15000000. Bitrate int32 // Controls what buffer model to use for accurate interleaving. If set to // MULTIPLEX, use multiplex buffer model. If set to NONE, this can lead to lower // latency, but low-memory devices may not be able to play back the stream without // interruptions. BufferModel M2tsBufferModel // If you select ALIGN_TO_VIDEO, MediaConvert writes captions and data packets // with Presentation Timestamp (PTS) values greater than or equal to the first // video packet PTS (MediaConvert drops captions and data packets with lesser PTS // values). Keep the default value (AUTO) to allow all PTS values. DataPTSControl M2tsDataPtsControl // Use these settings to insert a DVB Network Information Table (NIT) in the // transport stream of this output. When you work directly in your JSON job // specification, include this object only when your job has a transport stream // output and the container settings contain the object M2tsSettings. DvbNitSettings *DvbNitSettings // Use these settings to insert a DVB Service Description Table (SDT) in the // transport stream of this output. When you work directly in your JSON job // specification, include this object only when your job has a transport stream // output and the container settings contain the object M2tsSettings. DvbSdtSettings *DvbSdtSettings // Specify the packet identifiers (PIDs) for DVB subtitle data included in this // output. Specify multiple PIDs as a JSON array. Default is the range 460-479. DvbSubPids []int32 // Use these settings to insert a DVB Time and Date Table (TDT) in the transport // stream of this output. When you work directly in your JSON job specification, // include this object only when your job has a transport stream output and the // container settings contain the object M2tsSettings. DvbTdtSettings *DvbTdtSettings // Specify the packet identifier (PID) for DVB teletext data you include in this // output. Default is 499. DvbTeletextPid int32 // When set to VIDEO_AND_FIXED_INTERVALS, audio EBP markers will be added to // partitions 3 and 4. The interval between these additional markers will be fixed, // and will be slightly shorter than the video EBP marker interval. When set to // VIDEO_INTERVAL, these additional markers will not be inserted. Only applicable // when EBP segmentation markers are is selected (segmentationMarkers is EBP or // EBP_LEGACY). EbpAudioInterval M2tsEbpAudioInterval // Selects which PIDs to place EBP markers on. They can either be placed only on // the video PID, or on both the video PID and all audio PIDs. Only applicable when // EBP segmentation markers are is selected (segmentationMarkers is EBP or // EBP_LEGACY). EbpPlacement M2tsEbpPlacement // Controls whether to include the ES Rate field in the PES header. EsRateInPes M2tsEsRateInPes // Keep the default value (DEFAULT) unless you know that your audio EBP markers // are incorrectly appearing before your video EBP markers. To correct this // problem, set this value to Force (FORCE). ForceTsVideoEbpOrder M2tsForceTsVideoEbpOrder // The length, in seconds, of each fragment. Only used with EBP markers. FragmentTime float64 // To include key-length-value metadata in this output: Set KLV metadata insertion // to Passthrough. MediaConvert reads KLV metadata present in your input and passes // it through to the output transport stream. To exclude this KLV metadata: Set KLV // metadata insertion to None or leave blank. KlvMetadata M2tsKlvMetadata // Specify the maximum time, in milliseconds, between Program Clock References // (PCRs) inserted into the transport stream. MaxPcrInterval int32 // When set, enforces that Encoder Boundary Points do not come within the // specified time interval of each other by looking ahead at input video. If // another EBP is going to come in within the specified time interval, the current // EBP is not emitted, and the segment is "stretched" to the next marker. The // lookahead value does not add latency to the system. The Live Event must be // configured elsewhere to create sufficient latency to make the lookahead // accurate. MinEbpInterval int32 // If INSERT, Nielsen inaudible tones for media tracking will be detected in the // input audio and an equivalent ID3 tag will be inserted in the output. NielsenId3 M2tsNielsenId3 // Value in bits per second of extra null packets to insert into the transport // stream. This can be used if a downstream encryption system requires periodic // null packets. NullPacketBitrate float64 // The number of milliseconds between instances of this table in the output // transport stream. PatInterval int32 // When set to PCR_EVERY_PES_PACKET, a Program Clock Reference value is inserted // for every Packetized Elementary Stream (PES) header. This is effective only when // the PCR PID is the same as the video or audio elementary stream. PcrControl M2tsPcrControl // Specify the packet identifier (PID) for the program clock reference (PCR) in // this output. If you do not specify a value, the service will use the value for // Video PID (VideoPid). PcrPid int32 // Specify the number of milliseconds between instances of the program map table // (PMT) in the output transport stream. PmtInterval int32 // Specify the packet identifier (PID) for the program map table (PMT) itself. // Default is 480. PmtPid int32 // Specify the packet identifier (PID) of the private metadata stream. Default is // 503. PrivateMetadataPid int32 // Use Program number (programNumber) to specify the program number used in the // program map table (PMT) for this output. Default is 1. Program numbers and // program map tables are parts of MPEG-2 transport stream containers, used for // organizing data. ProgramNumber int32 // When set to CBR, inserts null packets into transport stream to fill specified // bitrate. When set to VBR, the bitrate setting acts as the maximum bitrate, but // the output will not be padded up to that bitrate. RateMode M2tsRateMode // Include this in your job settings to put SCTE-35 markers in your HLS and // transport stream outputs at the insertion points that you specify in an ESAM XML // document. Provide the document in the setting SCC XML (sccXml). Scte35Esam *M2tsScte35Esam // Specify the packet identifier (PID) of the SCTE-35 stream in the transport // stream. Scte35Pid int32 // For SCTE-35 markers from your input-- Choose Passthrough (PASSTHROUGH) if you // want SCTE-35 markers that appear in your input to also appear in this output. // Choose None (NONE) if you don't want SCTE-35 markers in this output. For SCTE-35 // markers from an ESAM XML document-- Choose None (NONE). Also provide the ESAM // XML as a string in the setting Signal processing notification XML (sccXml). Also // enable ESAM SCTE-35 (include the property scte35Esam). Scte35Source M2tsScte35Source // Inserts segmentation markers at each segmentation_time period. rai_segstart // sets the Random Access Indicator bit in the adaptation field. rai_adapt sets the // RAI bit and adds the current timecode in the private data bytes. psi_segstart // inserts PAT and PMT tables at the start of segments. ebp adds Encoder Boundary // Point information to the adaptation field as per OpenCable specification // OC-SP-EBP-I01-130118. ebp_legacy adds Encoder Boundary Point information to the // adaptation field using a legacy proprietary format. SegmentationMarkers M2tsSegmentationMarkers // The segmentation style parameter controls how segmentation markers are inserted // into the transport stream. With avails, it is possible that segments may be // truncated, which can influence where future segmentation markers are inserted. // When a segmentation style of "reset_cadence" is selected and a segment is // truncated due to an avail, we will reset the segmentation cadence. This means // the subsequent segment will have a duration of of $segmentation_time seconds. // When a segmentation style of "maintain_cadence" is selected and a segment is // truncated due to an avail, we will not reset the segmentation cadence. This // means the subsequent segment will likely be truncated as well. However, all // segments after that will have a duration of $segmentation_time seconds. Note // that EBP lookahead is a slight exception to this rule. SegmentationStyle M2tsSegmentationStyle // Specify the length, in seconds, of each segment. Required unless markers is set // to none. SegmentationTime float64 // Packet Identifier (PID) of the ID3 metadata stream in the transport stream. TimedMetadataPid int32 // Specify the ID for the transport stream itself in the program map table for // this output. Transport stream IDs and program map tables are parts of MPEG-2 // transport stream containers, used for organizing data. TransportStreamId int32 // Specify the packet identifier (PID) of the elementary video stream in the // transport stream. VideoPid int32 noSmithyDocumentSerde } // These settings relate to the MPEG-2 transport stream (MPEG2-TS) container for // the MPEG2-TS segments in your HLS outputs. type M3u8Settings struct { // Specify this setting only when your output will be consumed by a downstream // repackaging workflow that is sensitive to very small duration differences // between video and audio. For this situation, choose Match video duration // (MATCH_VIDEO_DURATION). In all other cases, keep the default value, Default // codec duration (DEFAULT_CODEC_DURATION). When you choose Match video duration, // MediaConvert pads the output audio streams with silence or trims them to ensure // that the total duration of each audio stream is at least as long as the total // duration of the video stream. After padding or trimming, the audio stream // duration is no more than one frame longer than the video stream. MediaConvert // applies audio padding or trimming only to the end of the last segment of the // output. For unsegmented outputs, MediaConvert adds padding only to the end of // the file. When you keep the default value, any minor discrepancies between audio // and video duration will depend on your output audio codec. AudioDuration M3u8AudioDuration // The number of audio frames to insert for each PES packet. AudioFramesPerPes int32 // Packet Identifier (PID) of the elementary audio stream(s) in the transport // stream. Multiple values are accepted, and can be entered in ranges and/or by // comma separation. AudioPids []int32 // If you select ALIGN_TO_VIDEO, MediaConvert writes captions and data packets // with Presentation Timestamp (PTS) values greater than or equal to the first // video packet PTS (MediaConvert drops captions and data packets with lesser PTS // values). Keep the default value (AUTO) to allow all PTS values. DataPTSControl M3u8DataPtsControl // Specify the maximum time, in milliseconds, between Program Clock References // (PCRs) inserted into the transport stream. MaxPcrInterval int32 // If INSERT, Nielsen inaudible tones for media tracking will be detected in the // input audio and an equivalent ID3 tag will be inserted in the output. NielsenId3 M3u8NielsenId3 // The number of milliseconds between instances of this table in the output // transport stream. PatInterval int32 // When set to PCR_EVERY_PES_PACKET a Program Clock Reference value is inserted // for every Packetized Elementary Stream (PES) header. This parameter is effective // only when the PCR PID is the same as the video or audio elementary stream. PcrControl M3u8PcrControl // Packet Identifier (PID) of the Program Clock Reference (PCR) in the transport // stream. When no value is given, the encoder will assign the same value as the // Video PID. PcrPid int32 // The number of milliseconds between instances of this table in the output // transport stream. PmtInterval int32 // Packet Identifier (PID) for the Program Map Table (PMT) in the transport stream. PmtPid int32 // Packet Identifier (PID) of the private metadata stream in the transport stream. PrivateMetadataPid int32 // The value of the program number field in the Program Map Table. ProgramNumber int32 // Packet Identifier (PID) of the SCTE-35 stream in the transport stream. Scte35Pid int32 // For SCTE-35 markers from your input-- Choose Passthrough (PASSTHROUGH) if you // want SCTE-35 markers that appear in your input to also appear in this output. // Choose None (NONE) if you don't want SCTE-35 markers in this output. For SCTE-35 // markers from an ESAM XML document-- Choose None (NONE) if you don't want // manifest conditioning. Choose Passthrough (PASSTHROUGH) and choose Ad markers // (adMarkers) if you do want manifest conditioning. In both cases, also provide // the ESAM XML as a string in the setting Signal processing notification XML // (sccXml). Scte35Source M3u8Scte35Source // Set ID3 metadata (timedMetadata) to Passthrough (PASSTHROUGH) to include ID3 // metadata in this output. This includes ID3 metadata from the following features: // ID3 timestamp period (timedMetadataId3Period), and Custom ID3 metadata inserter // (timedMetadataInsertion). To exclude this ID3 metadata in this output: set ID3 // metadata to None (NONE) or leave blank. TimedMetadata TimedMetadata // Packet Identifier (PID) of the ID3 metadata stream in the transport stream. TimedMetadataPid int32 // The value of the transport stream ID field in the Program Map Table. TransportStreamId int32 // Packet Identifier (PID) of the elementary video stream in the transport stream. VideoPid int32 noSmithyDocumentSerde } // Use Min bottom rendition size to specify a minimum size for the lowest // resolution in your ABR stack. * The lowest resolution in your ABR stack will be // equal to or greater than the value that you enter. For example: If you specify // 640x360 the lowest resolution in your ABR stack will be equal to or greater than // to 640x360. * If you specify a Min top rendition size rule, the value that you // specify for Min bottom rendition size must be less than, or equal to, Min top // rendition size. type MinBottomRenditionSize struct { // Use Height to define the video resolution height, in pixels, for this rule. Height int32 // Use Width to define the video resolution width, in pixels, for this rule. Width int32 noSmithyDocumentSerde } // Use Min top rendition size to specify a minimum size for the highest resolution // in your ABR stack. * The highest resolution in your ABR stack will be equal to // or greater than the value that you enter. For example: If you specify 1280x720 // the highest resolution in your ABR stack will be equal to or greater than // 1280x720. * If you specify a value for Max resolution, the value that you // specify for Min top rendition size must be less than, or equal to, Max // resolution. type MinTopRenditionSize struct { // Use Height to define the video resolution height, in pixels, for this rule. Height int32 // Use Width to define the video resolution width, in pixels, for this rule. Width int32 noSmithyDocumentSerde } // Overlay motion graphics on top of your video. The motion graphics that you // specify here appear on all outputs in all output groups. For more information, // see // https://docs.aws.amazon.com/mediaconvert/latest/ug/motion-graphic-overlay.html. type MotionImageInserter struct { // If your motion graphic asset is a .mov file, keep this setting unspecified. If // your motion graphic asset is a series of .png files, specify the frame rate of // the overlay in frames per second, as a fraction. For example, specify 24 fps as // 24/1. Make sure that the number of images in your series matches the frame rate // and your intended overlay duration. For example, if you want a 30-second overlay // at 30 fps, you should have 900 .png images. This overlay frame rate doesn't need // to match the frame rate of the underlying video. Framerate *MotionImageInsertionFramerate // Specify the .mov file or series of .png files that you want to overlay on your // video. For .png files, provide the file name of the first file in the series. // Make sure that the names of the .png files end with sequential numbers that // specify the order that they are played in. For example, overlay_000.png, // overlay_001.png, overlay_002.png, and so on. The sequence must start at zero, // and each image file name must have the same number of digits. Pad your initial // file names with enough zeros to complete the sequence. For example, if the first // image is overlay_0.png, there can be only 10 images in the sequence, with the // last image being overlay_9.png. But if the first image is overlay_00.png, there // can be 100 images in the sequence. Input *string // Choose the type of motion graphic asset that you are providing for your // overlay. You can choose either a .mov file or a series of .png files. InsertionMode MotionImageInsertionMode // Use Offset to specify the placement of your motion graphic overlay on the video // frame. Specify in pixels, from the upper-left corner of the frame. If you don't // specify an offset, the service scales your overlay to the full size of the // frame. Otherwise, the service inserts the overlay at its native resolution and // scales the size up or down with any video scaling. Offset *MotionImageInsertionOffset // Specify whether your motion graphic overlay repeats on a loop or plays only // once. Playback MotionImagePlayback // Specify when the motion overlay begins. Use timecode format (HH:MM:SS:FF or // HH:MM:SS;FF). Make sure that the timecode you provide here takes into account // how you have set up your timecode configuration under both job settings and // input settings. The simplest way to do that is to set both to start at 0. If you // need to set up your job to follow timecodes embedded in your source that don't // start at zero, make sure that you specify a start time that is after the first // embedded timecode. For more information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/setting-up-timecode.html Find // job-wide and input timecode configuration settings in your JSON job settings // specification at settings>timecodeConfig>source and // settings>inputs>timecodeSource. StartTime *string noSmithyDocumentSerde } // For motion overlays that don't have a built-in frame rate, specify the frame // rate of the overlay in frames per second, as a fraction. For example, specify 24 // fps as 24/1. The overlay frame rate doesn't need to match the frame rate of the // underlying video. type MotionImageInsertionFramerate struct { // The bottom of the fraction that expresses your overlay frame rate. For example, // if your frame rate is 24 fps, set this value to 1. FramerateDenominator int32 // The top of the fraction that expresses your overlay frame rate. For example, if // your frame rate is 24 fps, set this value to 24. FramerateNumerator int32 noSmithyDocumentSerde } // Specify the offset between the upper-left corner of the video frame and the top // left corner of the overlay. type MotionImageInsertionOffset struct { // Set the distance, in pixels, between the overlay and the left edge of the video // frame. ImageX int32 // Set the distance, in pixels, between the overlay and the top edge of the video // frame. ImageY int32 noSmithyDocumentSerde } // These settings relate to your QuickTime MOV output container. type MovSettings struct { // When enabled, include 'clap' atom if appropriate for the video output settings. ClapAtom MovClapAtom // When enabled, file composition times will start at zero, composition times in // the 'ctts' (composition time to sample) box for B-frames will be negative, and a // 'cslg' (composition shift least greatest) box will be included per 14496-1 // amendment 1. This improves compatibility with Apple players and tools. CslgAtom MovCslgAtom // When set to XDCAM, writes MPEG2 video streams into the QuickTime file using // XDCAM fourcc codes. This increases compatibility with Apple editors and players, // but may decrease compatibility with other players. Only applicable when the // video codec is MPEG2. Mpeg2FourCCControl MovMpeg2FourCCControl // Unless you need Omneon compatibility: Keep the default value, None. To make // this output compatible with Omneon: Choose Omneon. When you do, MediaConvert // increases the length of the 'elst' edit list atom. Note that this might cause // file rejections when a recipient of the output file doesn't expect this extra // padding. PaddingControl MovPaddingControl // Always keep the default value (SELF_CONTAINED) for this setting. Reference MovReference noSmithyDocumentSerde } // Required when you set (Codec) under (AudioDescriptions)>(CodecSettings) to the // value MP2. type Mp2Settings struct { // Specify the average bitrate in bits per second. Bitrate int32 // Set Channels to specify the number of channels in this output audio track. // Choosing Mono in the console will give you 1 output channel; choosing Stereo // will give you 2. In the API, valid values are 1 and 2. Channels int32 // Sample rate in hz. SampleRate int32 noSmithyDocumentSerde } // Required when you set Codec, under AudioDescriptions>CodecSettings, to the // value MP3. type Mp3Settings struct { // Specify the average bitrate in bits per second. Bitrate int32 // Specify the number of channels in this output audio track. Choosing Mono on the // console gives you 1 output channel; choosing Stereo gives you 2. In the API, // valid values are 1 and 2. Channels int32 // Specify whether the service encodes this MP3 audio output with a constant // bitrate (CBR) or a variable bitrate (VBR). RateControlMode Mp3RateControlMode // Sample rate in hz. SampleRate int32 // Required when you set Bitrate control mode (rateControlMode) to VBR. Specify // the audio quality of this MP3 output from 0 (highest quality) to 9 (lowest // quality). VbrQuality int32 noSmithyDocumentSerde } // These settings relate to your MP4 output container. You can create audio only // outputs with this container. For more information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/supported-codecs-containers-audio-only.html#output-codecs-and-containers-supported-for-audio-only. type Mp4Settings struct { // Specify this setting only when your output will be consumed by a downstream // repackaging workflow that is sensitive to very small duration differences // between video and audio. For this situation, choose Match video duration // (MATCH_VIDEO_DURATION). In all other cases, keep the default value, Default // codec duration (DEFAULT_CODEC_DURATION). When you choose Match video duration, // MediaConvert pads the output audio streams with silence or trims them to ensure // that the total duration of each audio stream is at least as long as the total // duration of the video stream. After padding or trimming, the audio stream // duration is no more than one frame longer than the video stream. MediaConvert // applies audio padding or trimming only to the end of the last segment of the // output. For unsegmented outputs, MediaConvert adds padding only to the end of // the file. When you keep the default value, any minor discrepancies between audio // and video duration will depend on your output audio codec. AudioDuration CmfcAudioDuration // When enabled, file composition times will start at zero, composition times in // the 'ctts' (composition time to sample) box for B-frames will be negative, and a // 'cslg' (composition shift least greatest) box will be included per 14496-1 // amendment 1. This improves compatibility with Apple players and tools. CslgAtom Mp4CslgAtom // Ignore this setting unless compliance to the CTTS box version specification // matters in your workflow. Specify a value of 1 to set your CTTS box version to 1 // and make your output compliant with the specification. When you specify a value // of 1, you must also set CSLG atom (cslgAtom) to the value INCLUDE. Keep the // default value 0 to set your CTTS box version to 0. This can provide backward // compatibility for some players and packagers. CttsVersion int32 // Inserts a free-space box immediately after the moov box. FreeSpaceBox Mp4FreeSpaceBox // If set to PROGRESSIVE_DOWNLOAD, the MOOV atom is relocated to the beginning of // the archive as required for progressive downloading. Otherwise it is placed // normally at the end. MoovPlacement Mp4MoovPlacement // Overrides the "Major Brand" field in the output file. Usually not necessary to // specify. Mp4MajorBrand *string noSmithyDocumentSerde } // These settings relate to the fragmented MP4 container for the segments in your // DASH outputs. type MpdSettings struct { // Optional. Choose Include (INCLUDE) to have MediaConvert mark up your DASH // manifest with elements for embedded 608 captions. This markup isn't generally // required, but some video players require it to discover and play embedded 608 // captions. Keep the default value, Exclude (EXCLUDE), to leave these elements // out. When you enable this setting, this is the markup that MediaConvert includes // in your manifest: AccessibilityCaptionHints MpdAccessibilityCaptionHints // Specify this setting only when your output will be consumed by a downstream // repackaging workflow that is sensitive to very small duration differences // between video and audio. For this situation, choose Match video duration // (MATCH_VIDEO_DURATION). In all other cases, keep the default value, Default // codec duration (DEFAULT_CODEC_DURATION). When you choose Match video duration, // MediaConvert pads the output audio streams with silence or trims them to ensure // that the total duration of each audio stream is at least as long as the total // duration of the video stream. After padding or trimming, the audio stream // duration is no more than one frame longer than the video stream. MediaConvert // applies audio padding or trimming only to the end of the last segment of the // output. For unsegmented outputs, MediaConvert adds padding only to the end of // the file. When you keep the default value, any minor discrepancies between audio // and video duration will depend on your output audio codec. AudioDuration MpdAudioDuration // Use this setting only in DASH output groups that include sidecar TTML or IMSC // captions. You specify sidecar captions in a separate output from your audio and // video. Choose Raw (RAW) for captions in a single XML file in a raw container. // Choose Fragmented MPEG-4 (FRAGMENTED_MP4) for captions in XML format contained // within fragmented MP4 files. This set of fragmented MP4 files is separate from // your video and audio fragmented MP4 files. CaptionContainerType MpdCaptionContainerType // To include key-length-value metadata in this output: Set KLV metadata insertion // to Passthrough. MediaConvert reads KLV metadata present in your input and writes // each instance to a separate event message box in the output, according to MISB // ST1910.1. To exclude this KLV metadata: Set KLV metadata insertion to None or // leave blank. KlvMetadata MpdKlvMetadata // To add an InbandEventStream element in your output MPD manifest for each type // of event message, set Manifest metadata signaling to Enabled. For ID3 event // messages, the InbandEventStream element schemeIdUri will be same value that you // specify for ID3 metadata scheme ID URI. For SCTE35 event messages, the // InbandEventStream element schemeIdUri will be "urn:scte:scte35:2013:bin". To // leave these elements out of your output MPD manifest, set Manifest metadata // signaling to Disabled. To enable Manifest metadata signaling, you must also set // SCTE-35 source to Passthrough, ESAM SCTE-35 to insert, or ID3 metadata // (TimedMetadata) to Passthrough. ManifestMetadataSignaling MpdManifestMetadataSignaling // Use this setting only when you specify SCTE-35 markers from ESAM. Choose INSERT // to put SCTE-35 markers in this output at the insertion points that you specify // in an ESAM XML document. Provide the document in the setting SCC XML (sccXml). Scte35Esam MpdScte35Esam // Ignore this setting unless you have SCTE-35 markers in your input video file. // Choose Passthrough (PASSTHROUGH) if you want SCTE-35 markers that appear in your // input to also appear in this output. Choose None (NONE) if you don't want those // SCTE-35 markers in this output. Scte35Source MpdScte35Source // To include ID3 metadata in this output: Set ID3 metadata (timedMetadata) to // Passthrough (PASSTHROUGH). Specify this ID3 metadata in Custom ID3 metadata // inserter (timedMetadataInsertion). MediaConvert writes each instance of ID3 // metadata in a separate Event Message (eMSG) box. To exclude this ID3 metadata: // Set ID3 metadata to None (NONE) or leave blank. TimedMetadata MpdTimedMetadata // Specify the event message box (eMSG) version for ID3 timed metadata in your // output. For more information, see ISO/IEC 23009-1:2022 section 5.10.3.3.3 // Syntax. Leave blank to use the default value Version 0. When you specify Version // 1, you must also set ID3 metadata (timedMetadata) to Passthrough. TimedMetadataBoxVersion MpdTimedMetadataBoxVersion // Specify the event message box (eMSG) scheme ID URI (scheme_id_uri) for ID3 // timed metadata in your output. For more information, see ISO/IEC 23009-1:2022 // section 5.10.3.3.4 Semantics. Leave blank to use the default value: // https://aomedia.org/emsg/ID3 When you specify a value for ID3 metadata scheme ID // URI, you must also set ID3 metadata (timedMetadata) to Passthrough. TimedMetadataSchemeIdUri *string // Specify the event message box (eMSG) value for ID3 timed metadata in your // output. For more information, see ISO/IEC 23009-1:2022 section 5.10.3.3.4 // Semantics. When you specify a value for ID3 Metadata Value, you must also set // ID3 metadata (timedMetadata) to Passthrough. TimedMetadataValue *string noSmithyDocumentSerde } // Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the // value MPEG2. type Mpeg2Settings struct { // Specify the strength of any adaptive quantization filters that you enable. The // value that you choose here applies to the following settings: Spatial adaptive // quantization (spatialAdaptiveQuantization), and Temporal adaptive quantization // (temporalAdaptiveQuantization). AdaptiveQuantization Mpeg2AdaptiveQuantization // Specify the average bitrate in bits per second. Required for VBR and CBR. For // MS Smooth outputs, bitrates must be unique when rounded down to the nearest // multiple of 1000. Bitrate int32 // Use Level (Mpeg2CodecLevel) to set the MPEG-2 level for the video output. CodecLevel Mpeg2CodecLevel // Use Profile (Mpeg2CodecProfile) to set the MPEG-2 profile for the video output. CodecProfile Mpeg2CodecProfile // Choose Adaptive to improve subjective video quality for high-motion content. // This will cause the service to use fewer B-frames (which infer information based // on other frames) for high-motion portions of the video and more B-frames for // low-motion portions. The maximum number of B-frames is limited by the value you // provide for the setting B frames between reference frames // (numberBFramesBetweenReferenceFrames). DynamicSubGop Mpeg2DynamicSubGop // If you are using the console, use the Framerate setting to specify the frame // rate for this output. If you want to keep the same frame rate as the input // video, choose Follow source. If you want to do frame rate conversion, choose a // frame rate from the dropdown list or choose Custom. The framerates shown in the // dropdown list are decimal approximations of fractions. If you choose Custom, // specify your frame rate as a fraction. If you are creating your transcoding job // specification as a JSON file without the console, use FramerateControl to // specify which value the service uses for the frame rate for this output. Choose // INITIALIZE_FROM_SOURCE if you want the service to use the frame rate from the // input. Choose SPECIFIED if you want the service to use the frame rate you // specify in the settings FramerateNumerator and FramerateDenominator. FramerateControl Mpeg2FramerateControl // Choose the method that you want MediaConvert to use when increasing or // decreasing the frame rate. For numerically simple conversions, such as 60 fps to // 30 fps: We recommend that you keep the default value, Drop duplicate. For // numerically complex conversions, to avoid stutter: Choose Interpolate. This // results in a smooth picture, but might introduce undesirable video artifacts. // For complex frame rate conversions, especially if your source video has already // been converted from its original cadence: Choose FrameFormer to do // motion-compensated interpolation. FrameFormer uses the best conversion method // frame by frame. Note that using FrameFormer increases the transcoding time and // incurs a significant add-on cost. When you choose FrameFormer, your input video // resolution must be at least 128x96. FramerateConversionAlgorithm Mpeg2FramerateConversionAlgorithm // When you use the API for transcode jobs that use frame rate conversion, specify // the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use // FramerateDenominator to specify the denominator of this fraction. In this // example, use 1001 for the value of FramerateDenominator. When you use the // console for transcode jobs that use frame rate conversion, provide the value as // a decimal number for Framerate. In this example, specify 23.976. FramerateDenominator int32 // When you use the API for transcode jobs that use frame rate conversion, specify // the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use // FramerateNumerator to specify the numerator of this fraction. In this example, // use 24000 for the value of FramerateNumerator. When you use the console for // transcode jobs that use frame rate conversion, provide the value as a decimal // number for Framerate. In this example, specify 23.976. FramerateNumerator int32 // Specify the relative frequency of open to closed GOPs in this output. For // example, if you want to allow four open GOPs and then require a closed GOP, set // this value to 5. When you create a streaming output, we recommend that you keep // the default value, 1, so that players starting mid-stream receive an IDR frame // as quickly as possible. Don't set this value to 0; that would break output // segmenting. GopClosedCadence int32 // Specify the interval between keyframes, in seconds or frames, for this output. // Default: 12 Related settings: When you specify the GOP size in seconds, set GOP // mode control (GopSizeUnits) to Specified, seconds (SECONDS). The default value // for GOP mode control (GopSizeUnits) is Frames (FRAMES). GopSize float64 // Specify the units for GOP size (GopSize). If you don't specify a value here, by // default the encoder measures GOP size in frames. GopSizeUnits Mpeg2GopSizeUnits // If your downstream systems have strict buffer requirements: Specify the minimum // percentage of the HRD buffer that's available at the end of each encoded video // segment. For the best video quality: Set to 0 or leave blank to automatically // determine the final buffer fill percentage. HrdBufferFinalFillPercentage int32 // Percentage of the buffer that should initially be filled (HRD buffer model). HrdBufferInitialFillPercentage int32 // Size of buffer (HRD buffer model) in bits. For example, enter five megabits as // 5000000. HrdBufferSize int32 // Choose the scan line type for the output. Keep the default value, Progressive // (PROGRESSIVE) to create a progressive output, regardless of the scan type of // your input. Use Top field first (TOP_FIELD) or Bottom field first (BOTTOM_FIELD) // to create an output that's interlaced with the same field polarity throughout. // Use Follow, default top (FOLLOW_TOP_FIELD) or Follow, default bottom // (FOLLOW_BOTTOM_FIELD) to produce outputs with the same field polarity as the // source. For jobs that have multiple inputs, the output field polarity might // change over the course of the output. Follow behavior depends on the input scan // type. If the source is interlaced, the output will be interlaced with the same // polarity as the source. If the source is progressive, the output will be // interlaced with top field bottom field first, depending on which of the Follow // options you choose. InterlaceMode Mpeg2InterlaceMode // Use Intra DC precision (Mpeg2IntraDcPrecision) to set quantization precision // for intra-block DC coefficients. If you choose the value auto, the service will // automatically select the precision based on the per-frame compression ratio. IntraDcPrecision Mpeg2IntraDcPrecision // Maximum bitrate in bits/second. For example, enter five megabits per second as // 5000000. MaxBitrate int32 // Use this setting only when you also enable Scene change detection // (SceneChangeDetect). This setting determines how the encoder manages the spacing // between I-frames that it inserts as part of the I-frame cadence and the I-frames // that it inserts for Scene change detection. When you specify a value for this // setting, the encoder determines whether to skip a cadence-driven I-frame by the // value you set. For example, if you set Min I interval (minIInterval) to 5 and a // cadence-driven I-frame would fall within 5 frames of a scene-change I-frame, // then the encoder skips the cadence-driven I-frame. In this way, one GOP is // shrunk slightly and one GOP is stretched slightly. When the cadence-driven // I-frames are farther from the scene-change I-frame than the value you set, then // the encoder leaves all I-frames in place and the GOPs surrounding the scene // change are smaller than the usual cadence GOPs. MinIInterval int32 // Specify the number of B-frames that MediaConvert puts between reference frames // in this output. Valid values are whole numbers from 0 through 7. When you don't // specify a value, MediaConvert defaults to 2. NumberBFramesBetweenReferenceFrames int32 // Optional. Specify how the service determines the pixel aspect ratio (PAR) for // this output. The default behavior, Follow source (INITIALIZE_FROM_SOURCE), uses // the PAR from your input video for your output. To specify a different PAR in the // console, choose any value other than Follow source. To specify a different PAR // by editing the JSON job specification, choose SPECIFIED. When you choose // SPECIFIED for this setting, you must also specify values for the parNumerator // and parDenominator settings. ParControl Mpeg2ParControl // Required when you set Pixel aspect ratio (parControl) to SPECIFIED. On the // console, this corresponds to any value other than Follow source. When you // specify an output pixel aspect ratio (PAR) that is different from your input // video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC // widescreen, you would specify the ratio 40:33. In this example, the value for // parDenominator is 33. ParDenominator int32 // Required when you set Pixel aspect ratio (parControl) to SPECIFIED. On the // console, this corresponds to any value other than Follow source. When you // specify an output pixel aspect ratio (PAR) that is different from your input // video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC // widescreen, you would specify the ratio 40:33. In this example, the value for // parNumerator is 40. ParNumerator int32 // Optional. Use Quality tuning level (qualityTuningLevel) to choose how you want // to trade off encoding speed for output video quality. The default behavior is // faster, lower quality, single-pass encoding. QualityTuningLevel Mpeg2QualityTuningLevel // Use Rate control mode (Mpeg2RateControlMode) to specify whether the bitrate is // variable (vbr) or constant (cbr). RateControlMode Mpeg2RateControlMode // Use this setting for interlaced outputs, when your output frame rate is half of // your input frame rate. In this situation, choose Optimized interlacing // (INTERLACED_OPTIMIZE) to create a better quality interlaced output. In this // case, each progressive frame from the input corresponds to an interlaced field // in the output. Keep the default value, Basic interlacing (INTERLACED), for all // other output frame rates. With basic interlacing, MediaConvert performs any // frame rate conversion first and then interlaces the frames. When you choose // Optimized interlacing and you set your output frame rate to a value that isn't // suitable for optimized interlacing, MediaConvert automatically falls back to // basic interlacing. Required settings: To use optimized interlacing, you must set // Telecine (telecine) to None (NONE) or Soft (SOFT). You can't use optimized // interlacing for hard telecine outputs. You must also set Interlace mode // (interlaceMode) to a value other than Progressive (PROGRESSIVE). ScanTypeConversionMode Mpeg2ScanTypeConversionMode // Enable this setting to insert I-frames at scene changes that the service // automatically detects. This improves video quality and is enabled by default. SceneChangeDetect Mpeg2SceneChangeDetect // Ignore this setting unless your input frame rate is 23.976 or 24 frames per // second (fps). Enable slow PAL to create a 25 fps output. When you enable slow // PAL, MediaConvert relabels the video frames to 25 fps and resamples your audio // to keep it synchronized with the video. Note that enabling this setting will // slightly reduce the duration of your video. Required settings: You must also set // Framerate to 25. In your JSON job specification, set (framerateControl) to // (SPECIFIED), (framerateNumerator) to 25 and (framerateDenominator) to 1. SlowPal Mpeg2SlowPal // Ignore this setting unless you need to comply with a specification that // requires a specific value. If you don't have a specification requirement, we // recommend that you adjust the softness of your output by using a lower value for // the setting Sharpness (sharpness) or by enabling a noise reducer filter // (noiseReducerFilter). The Softness (softness) setting specifies the quantization // matrices that the encoder uses. Keep the default value, 0, to use the AWS // Elemental default matrices. Choose a value from 17 to 128 to use planar // interpolation. Increasing values from 17 to 128 result in increasing reduction // of high-frequency data. The value 128 results in the softest video. Softness int32 // Keep the default value, Enabled (ENABLED), to adjust quantization within each // frame based on spatial variation of content complexity. When you enable this // feature, the encoder uses fewer bits on areas that can sustain more distortion // with no noticeable visual degradation and uses more bits on areas where any // small distortion will be noticeable. For example, complex textured blocks are // encoded with fewer bits and smooth textured blocks are encoded with more bits. // Enabling this feature will almost always improve your video quality. Note, // though, that this feature doesn't take into account where the viewer's attention // is likely to be. If viewers are likely to be focusing their attention on a part // of the screen with a lot of complex texture, you might choose to disable this // feature. Related setting: When you enable spatial adaptive quantization, set the // value for Adaptive quantization (adaptiveQuantization) depending on your // content. For homogeneous content, such as cartoons and video games, set it to // Low. For content with a wider variety of textures, set it to High or Higher. SpatialAdaptiveQuantization Mpeg2SpatialAdaptiveQuantization // Specify whether this output's video uses the D10 syntax. Keep the default value // to not use the syntax. Related settings: When you choose D10 (D_10) for your MXF // profile (profile), you must also set this value to D10 (D_10). Syntax Mpeg2Syntax // When you do frame rate conversion from 23.976 frames per second (fps) to 29.97 // fps, and your output scan type is interlaced, you can optionally enable hard or // soft telecine to create a smoother picture. Hard telecine (HARD) produces a // 29.97i output. Soft telecine (SOFT) produces an output with a 23.976 output that // signals to the video player device to do the conversion during play back. When // you keep the default value, None (NONE), MediaConvert does a standard frame rate // conversion to 29.97 without doing anything with the field polarity to create a // smoother picture. Telecine Mpeg2Telecine // Keep the default value, Enabled (ENABLED), to adjust quantization within each // frame based on temporal variation of content complexity. When you enable this // feature, the encoder uses fewer bits on areas of the frame that aren't moving // and uses more bits on complex objects with sharp edges that move a lot. For // example, this feature improves the readability of text tickers on newscasts and // scoreboards on sports matches. Enabling this feature will almost always improve // your video quality. Note, though, that this feature doesn't take into account // where the viewer's attention is likely to be. If viewers are likely to be // focusing their attention on a part of the screen that doesn't have moving // objects with sharp edges, such as sports athletes' faces, you might choose to // disable this feature. Related setting: When you enable temporal quantization, // adjust the strength of the filter with the setting Adaptive quantization // (adaptiveQuantization). TemporalAdaptiveQuantization Mpeg2TemporalAdaptiveQuantization noSmithyDocumentSerde } // Specify the details for each additional Microsoft Smooth Streaming manifest // that you want the service to generate for this output group. Each manifest can // reference a different subset of outputs in the group. type MsSmoothAdditionalManifest struct { // Specify a name modifier that the service adds to the name of this manifest to // make it different from the file names of the other main manifests in the output // group. For example, say that the default main manifest for your Microsoft Smooth // group is film-name.ismv. If you enter "-no-premium" for this setting, then the // file name the service generates for this top-level manifest is // film-name-no-premium.ismv. ManifestNameModifier *string // Specify the outputs that you want this additional top-level manifest to // reference. SelectedOutputs []string noSmithyDocumentSerde } // If you are using DRM, set DRM System (MsSmoothEncryptionSettings) to specify // the value SpekeKeyProvider. type MsSmoothEncryptionSettings struct { // If your output group type is HLS, DASH, or Microsoft Smooth, use these settings // when doing DRM encryption with a SPEKE-compliant key provider. If your output // group type is CMAF, use the SpekeKeyProviderCmaf settings instead. SpekeKeyProvider *SpekeKeyProvider noSmithyDocumentSerde } // Settings related to your Microsoft Smooth Streaming output package. For more // information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/outputs-file-ABR.html. When // you work directly in your JSON job specification, include this object and any // required children when you set Type, under OutputGroupSettings, to // MS_SMOOTH_GROUP_SETTINGS. type MsSmoothGroupSettings struct { // By default, the service creates one .ism Microsoft Smooth Streaming manifest // for each Microsoft Smooth Streaming output group in your job. This default // manifest references every output in the output group. To create additional // manifests that reference a subset of the outputs in the output group, specify a // list of them here. AdditionalManifests []MsSmoothAdditionalManifest // COMBINE_DUPLICATE_STREAMS combines identical audio encoding settings across a // Microsoft Smooth output group into a single audio stream. AudioDeduplication MsSmoothAudioDeduplication // Use Destination (Destination) to specify the S3 output location and the output // filename base. Destination accepts format identifiers. If you do not specify the // base filename in the URI, the service will use the filename of the input file. // If your job has multiple inputs, the service uses the filename of the first // input file. Destination *string // Settings associated with the destination. Will vary based on the type of // destination DestinationSettings *DestinationSettings // If you are using DRM, set DRM System (MsSmoothEncryptionSettings) to specify // the value SpekeKeyProvider. Encryption *MsSmoothEncryptionSettings // Specify how you want MediaConvert to determine the fragment length. Choose // Exact (EXACT) to have the encoder use the exact length that you specify with the // setting Fragment length (FragmentLength). This might result in extra I-frames. // Choose Multiple of GOP (GOP_MULTIPLE) to have the encoder round up the segment // lengths to match the next GOP boundary. FragmentLength int32 // Specify how you want MediaConvert to determine the fragment length. Choose // Exact (EXACT) to have the encoder use the exact length that you specify with the // setting Fragment length (FragmentLength). This might result in extra I-frames. // Choose Multiple of GOP (GOP_MULTIPLE) to have the encoder round up the segment // lengths to match the next GOP boundary. FragmentLengthControl MsSmoothFragmentLengthControl // Use Manifest encoding (MsSmoothManifestEncoding) to specify the encoding format // for the server and client manifest. Valid options are utf8 and utf16. ManifestEncoding MsSmoothManifestEncoding noSmithyDocumentSerde } // These settings relate to your MXF output container. type MxfSettings struct { // Optional. When you have AFD signaling set up in your output video stream, use // this setting to choose whether to also include it in the MXF wrapper. Choose // Don't copy (NO_COPY) to exclude AFD signaling from the MXF wrapper. Choose Copy // from video stream (COPY_FROM_VIDEO) to copy the AFD values from the video stream // for this output to the MXF wrapper. Regardless of which option you choose, the // AFD values remain in the video stream. Related settings: To set up your output // to include or exclude AFD values, see AfdSignaling, under VideoDescription. On // the console, find AFD signaling under the output's video encoding settings. AfdSignaling MxfAfdSignaling // Specify the MXF profile, also called shim, for this output. To automatically // select a profile according to your output video codec and resolution, leave // blank. For a list of codecs supported with each MXF profile, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/codecs-supported-with-each-mxf-profile.html. // For more information about the automatic selection behavior, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/default-automatic-selection-of-mxf-profiles.html. Profile MxfProfile // Specify the XAVC profile settings for MXF outputs when you set your MXF profile // to XAVC. XavcProfileSettings *MxfXavcProfileSettings noSmithyDocumentSerde } // Specify the XAVC profile settings for MXF outputs when you set your MXF profile // to XAVC. type MxfXavcProfileSettings struct { // To create an output that complies with the XAVC file format guidelines for // interoperability, keep the default value, Drop frames for compliance // (DROP_FRAMES_FOR_COMPLIANCE). To include all frames from your input in this // output, keep the default setting, Allow any duration (ALLOW_ANY_DURATION). The // number of frames that MediaConvert excludes when you set this to Drop frames for // compliance depends on the output frame rate and duration. DurationMode MxfXavcDurationMode // Specify a value for this setting only for outputs that you set up with one of // these two XAVC profiles: XAVC HD Intra CBG (XAVC_HD_INTRA_CBG) or XAVC 4K Intra // CBG (XAVC_4K_INTRA_CBG). Specify the amount of space in each frame that the // service reserves for ancillary data, such as teletext captions. The default // value for this setting is 1492 bytes per frame. This should be sufficient to // prevent overflow unless you have multiple pages of teletext captions data. If // you have a large amount of teletext data, specify a larger number. MaxAncDataSize int32 noSmithyDocumentSerde } // For forensic video watermarking, MediaConvert supports Nagra NexGuard File // Marker watermarking. MediaConvert supports both PreRelease Content (NGPR/G2) and // OTT Streaming workflows. type NexGuardFileMarkerSettings struct { // Use the base64 license string that Nagra provides you. Enter it directly in // your JSON job specification or in the console. Required when you include Nagra // NexGuard File Marker watermarking (NexGuardWatermarkingSettings) in your job. License *string // Specify the payload ID that you want associated with this output. Valid values // vary depending on your Nagra NexGuard forensic watermarking workflow. Required // when you include Nagra NexGuard File Marker watermarking // (NexGuardWatermarkingSettings) in your job. For PreRelease Content (NGPR/G2), // specify an integer from 1 through 4,194,303. You must generate a unique ID for // each asset you watermark, and keep a record of which ID you have assigned to // each asset. Neither Nagra nor MediaConvert keep track of the relationship // between output files and your IDs. For OTT Streaming, create two adaptive // bitrate (ABR) stacks for each asset. Do this by setting up two output groups. // For one output group, set the value of Payload ID (payload) to 0 in every // output. For the other output group, set Payload ID (payload) to 1 in every // output. Payload int32 // Enter one of the watermarking preset strings that Nagra provides you. Required // when you include Nagra NexGuard File Marker watermarking // (NexGuardWatermarkingSettings) in your job. Preset *string // Optional. Ignore this setting unless Nagra support directs you to specify a // value. When you don't specify a value here, the Nagra NexGuard library uses its // default value. Strength WatermarkingStrength noSmithyDocumentSerde } // Settings for your Nielsen configuration. If you don't do Nielsen measurement // and analytics, ignore these settings. When you enable Nielsen configuration // (nielsenConfiguration), MediaConvert enables PCM to ID3 tagging for all outputs // in the job. To enable Nielsen configuration programmatically, include an // instance of nielsenConfiguration in your JSON job specification. Even if you // don't include any children of nielsenConfiguration, you still enable the // setting. type NielsenConfiguration struct { // Nielsen has discontinued the use of breakout code functionality. If you must // include this property, set the value to zero. BreakoutCode int32 // Use Distributor ID (DistributorID) to specify the distributor ID that is // assigned to your organization by Neilsen. DistributorId *string noSmithyDocumentSerde } // Ignore these settings unless you are using Nielsen non-linear watermarking. // Specify the values that MediaConvert uses to generate and place Nielsen // watermarks in your output audio. In addition to specifying these values, you // also need to set up your cloud TIC server. These settings apply to every output // in your job. The MediaConvert implementation is currently with the following // Nielsen versions: Nielsen Watermark SDK Version 5.2.1 Nielsen NLM Watermark // Engine Version 1.2.7 Nielsen Watermark Authenticator [SID_TIC] Version [5.0.0] type NielsenNonLinearWatermarkSettings struct { // Choose the type of Nielsen watermarks that you want in your outputs. When you // choose NAES 2 and NW (NAES2_AND_NW), you must provide a value for the setting // SID (sourceId). When you choose CBET (CBET), you must provide a value for the // setting CSID (cbetSourceId). When you choose NAES 2, NW, and CBET // (NAES2_AND_NW_AND_CBET), you must provide values for both of these settings. ActiveWatermarkProcess NielsenActiveWatermarkProcessType // Optional. Use this setting when you want the service to include an ADI file in // the Nielsen metadata .zip file. To provide an ADI file, store it in Amazon S3 // and provide a URL to it here. The URL should be in the following format: // S3://bucket/path/ADI-file. For more information about the metadata .zip file, // see the setting Metadata destination (metadataDestination). AdiFilename *string // Use the asset ID that you provide to Nielsen to uniquely identify this asset. // Required for all Nielsen non-linear watermarking. AssetId *string // Use the asset name that you provide to Nielsen for this asset. Required for all // Nielsen non-linear watermarking. AssetName *string // Use the CSID that Nielsen provides to you. This CBET source ID should be unique // to your Nielsen account but common to all of your output assets that have CBET // watermarking. Required when you choose a value for the setting Watermark types // (ActiveWatermarkProcess) that includes CBET. CbetSourceId *string // Optional. If this asset uses an episode ID with Nielsen, provide it here. EpisodeId *string // Specify the Amazon S3 location where you want MediaConvert to save your Nielsen // non-linear metadata .zip file. This Amazon S3 bucket must be in the same Region // as the one where you do your MediaConvert transcoding. If you want to include an // ADI file in this .zip file, use the setting ADI file (adiFilename) to specify // it. MediaConvert delivers the Nielsen metadata .zip files only to your metadata // destination Amazon S3 bucket. It doesn't deliver the .zip files to Nielsen. You // are responsible for delivering the metadata .zip files to Nielsen. MetadataDestination *string // Use the SID that Nielsen provides to you. This source ID should be unique to // your Nielsen account but common to all of your output assets. Required for all // Nielsen non-linear watermarking. This ID should be unique to your Nielsen // account but common to all of your output assets. Required for all Nielsen // non-linear watermarking. SourceId int32 // Required. Specify whether your source content already contains Nielsen // non-linear watermarks. When you set this value to Watermarked (WATERMARKED), the // service fails the job. Nielsen requires that you add non-linear watermarking to // only clean content that doesn't already have non-linear Nielsen watermarks. SourceWatermarkStatus NielsenSourceWatermarkStatusType // Specify the endpoint for the TIC server that you have deployed and configured // in the AWS Cloud. Required for all Nielsen non-linear watermarking. MediaConvert // can't connect directly to a TIC server. Instead, you must use API Gateway to // provide a RESTful interface between MediaConvert and a TIC server that you // deploy in your AWS account. For more information on deploying a TIC server in // your AWS account and the required API Gateway, contact Nielsen support. TicServerUrl *string // To create assets that have the same TIC values in each audio track, keep the // default value Share TICs (SAME_TICS_PER_TRACK). To create assets that have // unique TIC values for each audio track, choose Use unique TICs // (RESERVE_UNIQUE_TICS_PER_TRACK). UniqueTicPerAudioTrack NielsenUniqueTicPerAudioTrackType noSmithyDocumentSerde } // Enable the Noise reducer feature to remove noise from your video output if // necessary. Enable or disable this feature for each output individually. This // setting is disabled by default. When you enable Noise reducer, you must also // select a value for Noise reducer filter. For AVC outputs, when you include Noise // reducer, you cannot include the Bandwidth reduction filter. type NoiseReducer struct { // Use Noise reducer filter (NoiseReducerFilter) to select one of the following // spatial image filtering functions. To use this setting, you must also enable // Noise reducer (NoiseReducer). * Bilateral preserves edges while reducing noise. // * Mean (softest), Gaussian, Lanczos, and Sharpen (sharpest) do convolution // filtering. * Conserve does min/max noise reduction. * Spatial does // frequency-domain filtering based on JND principles. * Temporal optimizes video // quality for complex motion. Filter NoiseReducerFilter // Settings for a noise reducer filter FilterSettings *NoiseReducerFilterSettings // Noise reducer filter settings for spatial filter. SpatialFilterSettings *NoiseReducerSpatialFilterSettings // Noise reducer filter settings for temporal filter. TemporalFilterSettings *NoiseReducerTemporalFilterSettings noSmithyDocumentSerde } // Settings for a noise reducer filter type NoiseReducerFilterSettings struct { // Relative strength of noise reducing filter. Higher values produce stronger // filtering. Strength int32 noSmithyDocumentSerde } // Noise reducer filter settings for spatial filter. type NoiseReducerSpatialFilterSettings struct { // Specify strength of post noise reduction sharpening filter, with 0 disabling // the filter and 3 enabling it at maximum strength. PostFilterSharpenStrength int32 // The speed of the filter, from -2 (lower speed) to 3 (higher speed), with 0 // being the nominal value. Speed int32 // Relative strength of noise reducing filter. Higher values produce stronger // filtering. Strength int32 noSmithyDocumentSerde } // Noise reducer filter settings for temporal filter. type NoiseReducerTemporalFilterSettings struct { // Use Aggressive mode for content that has complex motion. Higher values produce // stronger temporal filtering. This filters highly complex scenes more // aggressively and creates better VQ for low bitrate outputs. AggressiveMode int32 // When you set Noise reducer (noiseReducer) to Temporal (TEMPORAL), the bandwidth // and sharpness of your output is reduced. You can optionally use Post temporal // sharpening (postTemporalSharpening) to apply sharpening to the edges of your // output. Note that Post temporal sharpening will also make the bandwidth // reduction from the Noise reducer smaller. The default behavior, Auto (AUTO), // allows the transcoder to determine whether to apply sharpening, depending on // your input type and quality. When you set Post temporal sharpening to Enabled // (ENABLED), specify how much sharpening is applied using Post temporal sharpening // strength (postTemporalSharpeningStrength). Set Post temporal sharpening to // Disabled (DISABLED) to not apply sharpening. PostTemporalSharpening NoiseFilterPostTemporalSharpening // Use Post temporal sharpening strength (postTemporalSharpeningStrength) to // define the amount of sharpening the transcoder applies to your output. Set Post // temporal sharpening strength to Low (LOW), Medium (MEDIUM), or High (HIGH) to // indicate the amount of sharpening. PostTemporalSharpeningStrength NoiseFilterPostTemporalSharpeningStrength // The speed of the filter (higher number is faster). Low setting reduces bit rate // at the cost of transcode time, high setting improves transcode time at the cost // of bit rate. Speed int32 // Specify the strength of the noise reducing filter on this output. Higher values // produce stronger filtering. We recommend the following value ranges, depending // on the result that you want: * 0-2 for complexity reduction with minimal // sharpness loss * 2-8 for complexity reduction with image preservation * 8-16 for // a high level of complexity reduction Strength int32 noSmithyDocumentSerde } // Required when you set Codec, under AudioDescriptions>CodecSettings, to the // value OPUS. type OpusSettings struct { // Optional. Specify the average bitrate in bits per second. Valid values are // multiples of 8000, from 32000 through 192000. The default value is 96000, which // we recommend for quality and bandwidth. Bitrate int32 // Specify the number of channels in this output audio track. Choosing Mono on the // console gives you 1 output channel; choosing Stereo gives you 2. In the API, // valid values are 1 and 2. Channels int32 // Optional. Sample rate in hz. Valid values are 16000, 24000, and 48000. The // default value is 48000. SampleRate int32 noSmithyDocumentSerde } // Each output in your job is a collection of settings that describes how you want // MediaConvert to encode a single output file or stream. For more information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/create-outputs.html. type Output struct { // (AudioDescriptions) contains groups of audio encoding settings organized by // audio codec. Include one instance of (AudioDescriptions) per output. // (AudioDescriptions) can contain multiple groups of encoding settings. AudioDescriptions []AudioDescription // (CaptionDescriptions) contains groups of captions settings. For each output // that has captions, include one instance of (CaptionDescriptions). // (CaptionDescriptions) can contain multiple groups of captions settings. CaptionDescriptions []CaptionDescription // Container specific settings. ContainerSettings *ContainerSettings // Use Extension (Extension) to specify the file extension for outputs in File // output groups. If you do not specify a value, the service will use default // extensions by container type as follows * MPEG-2 transport stream, m2ts * // Quicktime, mov * MXF container, mxf * MPEG-4 container, mp4 * WebM container, // webm * No Container, the service will use codec extensions (e.g. AAC, H265, // H265, AC3) Extension *string // Use Name modifier (NameModifier) to have the service add a string to the end of // each output filename. You specify the base filename as part of your destination // URI. When you create multiple outputs in the same output group, Name modifier // (NameModifier) is required. Name modifier also accepts format identifiers. For // DASH ISO outputs, if you use the format identifiers $Number$ or $Time$ in // one output, you must use them in the same way in all outputs of the output // group. NameModifier *string // Specific settings for this type of output. OutputSettings *OutputSettings // Use Preset (Preset) to specify a preset for your transcoding settings. Provide // the system or custom preset name. You can specify either Preset (Preset) or // Container settings (ContainerSettings), but not both. Preset *string // VideoDescription contains a group of video encoding settings. The specific // video settings depend on the video codec that you choose for the property codec. // Include one instance of VideoDescription per output. VideoDescription *VideoDescription noSmithyDocumentSerde } // OutputChannel mapping settings. type OutputChannelMapping struct { // Use this setting to specify your remix values when they are integers, such as // -10, 0, or 4. InputChannels []int32 // Use this setting to specify your remix values when they have a decimal // component, such as -10.312, 0.08, or 4.9. MediaConvert rounds your remixing // values to the nearest thousandth. InputChannelsFineTune []float64 noSmithyDocumentSerde } // Details regarding output type OutputDetail struct { // Duration in milliseconds DurationInMs int32 // Contains details about the output's video stream VideoDetails *VideoDetail noSmithyDocumentSerde } // Group of outputs type OutputGroup struct { // Use automated encoding to have MediaConvert choose your encoding settings for // you, based on characteristics of your input video. AutomatedEncodingSettings *AutomatedEncodingSettings // Use Custom Group Name (CustomName) to specify a name for the output group. This // value is displayed on the console and can make your job settings JSON more // human-readable. It does not affect your outputs. Use up to twelve characters // that are either letters, numbers, spaces, or underscores. CustomName *string // Name of the output group Name *string // Output Group settings, including type OutputGroupSettings *OutputGroupSettings // This object holds groups of encoding settings, one group of settings per output. Outputs []Output noSmithyDocumentSerde } // Contains details about the output groups specified in the job settings. type OutputGroupDetail struct { // Details about the output OutputDetails []OutputDetail noSmithyDocumentSerde } // Output Group settings, including type type OutputGroupSettings struct { // Settings related to your CMAF output package. For more information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/outputs-file-ABR.html. When // you work directly in your JSON job specification, include this object and any // required children when you set Type, under OutputGroupSettings, to // CMAF_GROUP_SETTINGS. CmafGroupSettings *CmafGroupSettings // Settings related to your DASH output package. For more information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/outputs-file-ABR.html. When // you work directly in your JSON job specification, include this object and any // required children when you set Type, under OutputGroupSettings, to // DASH_ISO_GROUP_SETTINGS. DashIsoGroupSettings *DashIsoGroupSettings // Settings related to your File output group. MediaConvert uses this group of // settings to generate a single standalone file, rather than a streaming package. // When you work directly in your JSON job specification, include this object and // any required children when you set Type, under OutputGroupSettings, to // FILE_GROUP_SETTINGS. FileGroupSettings *FileGroupSettings // Settings related to your HLS output package. For more information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/outputs-file-ABR.html. When // you work directly in your JSON job specification, include this object and any // required children when you set Type, under OutputGroupSettings, to // HLS_GROUP_SETTINGS. HlsGroupSettings *HlsGroupSettings // Settings related to your Microsoft Smooth Streaming output package. For more // information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/outputs-file-ABR.html. When // you work directly in your JSON job specification, include this object and any // required children when you set Type, under OutputGroupSettings, to // MS_SMOOTH_GROUP_SETTINGS. MsSmoothGroupSettings *MsSmoothGroupSettings // Type of output group (File group, Apple HLS, DASH ISO, Microsoft Smooth // Streaming, CMAF) Type OutputGroupType noSmithyDocumentSerde } // Specific settings for this type of output. type OutputSettings struct { // Settings for HLS output groups HlsSettings *HlsSettings noSmithyDocumentSerde } // If you work with a third party video watermarking partner, use the group of // settings that correspond with your watermarking partner to include watermarks in // your output. type PartnerWatermarking struct { // For forensic video watermarking, MediaConvert supports Nagra NexGuard File // Marker watermarking. MediaConvert supports both PreRelease Content (NGPR/G2) and // OTT Streaming workflows. NexguardFileMarkerSettings *NexGuardFileMarkerSettings noSmithyDocumentSerde } // A policy configures behavior that you allow or disallow for your account. For // information about MediaConvert policies, see the user guide at // http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html type Policy struct { // Allow or disallow jobs that specify HTTP inputs. HttpInputs InputPolicy // Allow or disallow jobs that specify HTTPS inputs. HttpsInputs InputPolicy // Allow or disallow jobs that specify Amazon S3 inputs. S3Inputs InputPolicy noSmithyDocumentSerde } // A preset is a collection of preconfigured media conversion settings that you // want MediaConvert to apply to the output during the conversion process. type Preset struct { // A name you create for each preset. Each name must be unique within your account. // // This member is required. Name *string // Settings for preset // // This member is required. Settings *PresetSettings // An identifier for this resource that is unique within all of AWS. Arn *string // An optional category you create to organize your presets. Category *string // The timestamp in epoch seconds for preset creation. CreatedAt *time.Time // An optional description you create for each preset. Description *string // The timestamp in epoch seconds when the preset was last updated. LastUpdated *time.Time // A preset can be of two types: system or custom. System or built-in preset can't // be modified or deleted by the user. Type Type noSmithyDocumentSerde } // Settings for preset type PresetSettings struct { // (AudioDescriptions) contains groups of audio encoding settings organized by // audio codec. Include one instance of (AudioDescriptions) per output. // (AudioDescriptions) can contain multiple groups of encoding settings. AudioDescriptions []AudioDescription // This object holds groups of settings related to captions for one output. For // each output that has captions, include one instance of CaptionDescriptions. CaptionDescriptions []CaptionDescriptionPreset // Container specific settings. ContainerSettings *ContainerSettings // VideoDescription contains a group of video encoding settings. The specific // video settings depend on the video codec that you choose for the property codec. // Include one instance of VideoDescription per output. VideoDescription *VideoDescription noSmithyDocumentSerde } // Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the // value PRORES. type ProresSettings struct { // This setting applies only to ProRes 4444 and ProRes 4444 XQ outputs that you // create from inputs that use 4:4:4 chroma sampling. Set Preserve 4:4:4 sampling // (PRESERVE_444_SAMPLING) to allow outputs to also use 4:4:4 chroma sampling. You // must specify a value for this setting when your output codec profile supports // 4:4:4 chroma sampling. Related Settings: When you set Chroma sampling to // Preserve 4:4:4 sampling (PRESERVE_444_SAMPLING), you must choose an output codec // profile that supports 4:4:4 chroma sampling. These values for Profile // (CodecProfile) support 4:4:4 chroma sampling: Apple ProRes 4444 // (APPLE_PRORES_4444) or Apple ProRes 4444 XQ (APPLE_PRORES_4444_XQ). When you set // Chroma sampling to Preserve 4:4:4 sampling, you must disable all video // preprocessors except for Nexguard file marker (PartnerWatermarking). When you // set Chroma sampling to Preserve 4:4:4 sampling and use framerate conversion, you // must set Frame rate conversion algorithm (FramerateConversionAlgorithm) to Drop // duplicate (DUPLICATE_DROP). ChromaSampling ProresChromaSampling // Use Profile (ProResCodecProfile) to specify the type of Apple ProRes codec to // use for this output. CodecProfile ProresCodecProfile // If you are using the console, use the Framerate setting to specify the frame // rate for this output. If you want to keep the same frame rate as the input // video, choose Follow source. If you want to do frame rate conversion, choose a // frame rate from the dropdown list or choose Custom. The framerates shown in the // dropdown list are decimal approximations of fractions. If you choose Custom, // specify your frame rate as a fraction. If you are creating your transcoding job // specification as a JSON file without the console, use FramerateControl to // specify which value the service uses for the frame rate for this output. Choose // INITIALIZE_FROM_SOURCE if you want the service to use the frame rate from the // input. Choose SPECIFIED if you want the service to use the frame rate you // specify in the settings FramerateNumerator and FramerateDenominator. FramerateControl ProresFramerateControl // Choose the method that you want MediaConvert to use when increasing or // decreasing the frame rate. For numerically simple conversions, such as 60 fps to // 30 fps: We recommend that you keep the default value, Drop duplicate. For // numerically complex conversions, to avoid stutter: Choose Interpolate. This // results in a smooth picture, but might introduce undesirable video artifacts. // For complex frame rate conversions, especially if your source video has already // been converted from its original cadence: Choose FrameFormer to do // motion-compensated interpolation. FrameFormer uses the best conversion method // frame by frame. Note that using FrameFormer increases the transcoding time and // incurs a significant add-on cost. When you choose FrameFormer, your input video // resolution must be at least 128x96. FramerateConversionAlgorithm ProresFramerateConversionAlgorithm // When you use the API for transcode jobs that use frame rate conversion, specify // the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use // FramerateDenominator to specify the denominator of this fraction. In this // example, use 1001 for the value of FramerateDenominator. When you use the // console for transcode jobs that use frame rate conversion, provide the value as // a decimal number for Framerate. In this example, specify 23.976. FramerateDenominator int32 // When you use the API for transcode jobs that use frame rate conversion, specify // the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use // FramerateNumerator to specify the numerator of this fraction. In this example, // use 24000 for the value of FramerateNumerator. When you use the console for // transcode jobs that use frame rate conversion, provide the value as a decimal // number for Framerate. In this example, specify 23.976. FramerateNumerator int32 // Choose the scan line type for the output. Keep the default value, Progressive // (PROGRESSIVE) to create a progressive output, regardless of the scan type of // your input. Use Top field first (TOP_FIELD) or Bottom field first (BOTTOM_FIELD) // to create an output that's interlaced with the same field polarity throughout. // Use Follow, default top (FOLLOW_TOP_FIELD) or Follow, default bottom // (FOLLOW_BOTTOM_FIELD) to produce outputs with the same field polarity as the // source. For jobs that have multiple inputs, the output field polarity might // change over the course of the output. Follow behavior depends on the input scan // type. If the source is interlaced, the output will be interlaced with the same // polarity as the source. If the source is progressive, the output will be // interlaced with top field bottom field first, depending on which of the Follow // options you choose. InterlaceMode ProresInterlaceMode // Optional. Specify how the service determines the pixel aspect ratio (PAR) for // this output. The default behavior, Follow source (INITIALIZE_FROM_SOURCE), uses // the PAR from your input video for your output. To specify a different PAR in the // console, choose any value other than Follow source. To specify a different PAR // by editing the JSON job specification, choose SPECIFIED. When you choose // SPECIFIED for this setting, you must also specify values for the parNumerator // and parDenominator settings. ParControl ProresParControl // Required when you set Pixel aspect ratio (parControl) to SPECIFIED. On the // console, this corresponds to any value other than Follow source. When you // specify an output pixel aspect ratio (PAR) that is different from your input // video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC // widescreen, you would specify the ratio 40:33. In this example, the value for // parDenominator is 33. ParDenominator int32 // Required when you set Pixel aspect ratio (parControl) to SPECIFIED. On the // console, this corresponds to any value other than Follow source. When you // specify an output pixel aspect ratio (PAR) that is different from your input // video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC // widescreen, you would specify the ratio 40:33. In this example, the value for // parNumerator is 40. ParNumerator int32 // Use this setting for interlaced outputs, when your output frame rate is half of // your input frame rate. In this situation, choose Optimized interlacing // (INTERLACED_OPTIMIZE) to create a better quality interlaced output. In this // case, each progressive frame from the input corresponds to an interlaced field // in the output. Keep the default value, Basic interlacing (INTERLACED), for all // other output frame rates. With basic interlacing, MediaConvert performs any // frame rate conversion first and then interlaces the frames. When you choose // Optimized interlacing and you set your output frame rate to a value that isn't // suitable for optimized interlacing, MediaConvert automatically falls back to // basic interlacing. Required settings: To use optimized interlacing, you must set // Telecine (telecine) to None (NONE) or Soft (SOFT). You can't use optimized // interlacing for hard telecine outputs. You must also set Interlace mode // (interlaceMode) to a value other than Progressive (PROGRESSIVE). ScanTypeConversionMode ProresScanTypeConversionMode // Ignore this setting unless your input frame rate is 23.976 or 24 frames per // second (fps). Enable slow PAL to create a 25 fps output. When you enable slow // PAL, MediaConvert relabels the video frames to 25 fps and resamples your audio // to keep it synchronized with the video. Note that enabling this setting will // slightly reduce the duration of your video. Required settings: You must also set // Framerate to 25. In your JSON job specification, set (framerateControl) to // (SPECIFIED), (framerateNumerator) to 25 and (framerateDenominator) to 1. SlowPal ProresSlowPal // When you do frame rate conversion from 23.976 frames per second (fps) to 29.97 // fps, and your output scan type is interlaced, you can optionally enable hard // telecine (HARD) to create a smoother picture. When you keep the default value, // None (NONE), MediaConvert does a standard frame rate conversion to 29.97 without // doing anything with the field polarity to create a smoother picture. Telecine ProresTelecine noSmithyDocumentSerde } // You can use queues to manage the resources that are available to your AWS // account for running multiple transcoding jobs at the same time. If you don't // specify a queue, the service sends all jobs through the default queue. For more // information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/working-with-queues.html. type Queue struct { // A name that you create for each queue. Each name must be unique within your // account. // // This member is required. Name *string // An identifier for this resource that is unique within all of AWS. Arn *string // The timestamp in epoch seconds for when you created the queue. CreatedAt *time.Time // An optional description that you create for each queue. Description *string // The timestamp in epoch seconds for when you most recently updated the queue. LastUpdated *time.Time // Specifies whether the pricing plan for the queue is on-demand or reserved. For // on-demand, you pay per minute, billed in increments of .01 minute. For reserved, // you pay for the transcoding capacity of the entire queue, regardless of how much // or how little you use it. Reserved pricing requires a 12-month commitment. PricingPlan PricingPlan // The estimated number of jobs with a PROGRESSING status. ProgressingJobsCount int32 // Details about the pricing plan for your reserved queue. Required for reserved // queues and not applicable to on-demand queues. ReservationPlan *ReservationPlan // Queues can be ACTIVE or PAUSED. If you pause a queue, the service won't begin // processing jobs in that queue. Jobs that are running when you pause the queue // continue to run until they finish or result in an error. Status QueueStatus // The estimated number of jobs with a SUBMITTED status. SubmittedJobsCount int32 // Specifies whether this on-demand queue is system or custom. System queues are // built in. You can't modify or delete system queues. You can create and modify // custom queues. Type Type noSmithyDocumentSerde } // Description of the source and destination queues between which the job has // moved, along with the timestamp of the move type QueueTransition struct { // The queue that the job was on after the transition. DestinationQueue *string // The queue that the job was on before the transition. SourceQueue *string // The time, in Unix epoch format, that the job moved from the source queue to the // destination queue. Timestamp *time.Time noSmithyDocumentSerde } // Use Rectangle to identify a specific area of the video frame. type Rectangle struct { // Height of rectangle in pixels. Specify only even numbers. Height int32 // Width of rectangle in pixels. Specify only even numbers. Width int32 // The distance, in pixels, between the rectangle and the left edge of the video // frame. Specify only even numbers. X int32 // The distance, in pixels, between the rectangle and the top edge of the video // frame. Specify only even numbers. Y int32 noSmithyDocumentSerde } // Use Manual audio remixing (RemixSettings) to adjust audio levels for each audio // channel in each output of your job. With audio remixing, you can output more or // fewer audio channels than your input audio source provides. type RemixSettings struct { // Channel mapping (ChannelMapping) contains the group of fields that hold the // remixing value for each channel, in dB. Specify remix values to indicate how // much of the content from your input audio channel you want in your output audio // channels. Each instance of the InputChannels or InputChannelsFineTune array // specifies these values for one output channel. Use one instance of this array // for each output channel. In the console, each array corresponds to a column in // the graphical depiction of the mapping matrix. The rows of the graphical matrix // correspond to input channels. Valid values are within the range from -60 (mute) // through 6. A setting of 0 passes the input channel unchanged to the output // channel (no attenuation or amplification). Use InputChannels or // InputChannelsFineTune to specify your remix values. Don't use both. ChannelMapping *ChannelMapping // Specify the number of audio channels from your input that you want to use in // your output. With remixing, you might combine or split the data in these // channels, so the number of channels in your final output might be different. If // you are doing both input channel mapping and output channel mapping, the number // of output channels in your input mapping must be the same as the number of input // channels in your output mapping. ChannelsIn int32 // Specify the number of channels in this output after remixing. Valid values: 1, // 2, 4, 6, 8... 64. (1 and even numbers to 64.) If you are doing both input // channel mapping and output channel mapping, the number of output channels in // your input mapping must be the same as the number of input channels in your // output mapping. ChannelsOut int32 noSmithyDocumentSerde } // Details about the pricing plan for your reserved queue. Required for reserved // queues and not applicable to on-demand queues. type ReservationPlan struct { // The length of the term of your reserved queue pricing plan commitment. Commitment Commitment // The timestamp in epoch seconds for when the current pricing plan term for this // reserved queue expires. ExpiresAt *time.Time // The timestamp in epoch seconds for when you set up the current pricing plan for // this reserved queue. PurchasedAt *time.Time // Specifies whether the term of your reserved queue pricing plan is automatically // extended (AUTO_RENEW) or expires (EXPIRE) at the end of the term. RenewalType RenewalType // Specifies the number of reserved transcode slots (RTS) for this queue. The // number of RTS determines how many jobs the queue can process in parallel; each // RTS can process one job at a time. When you increase this number, you extend // your existing commitment with a new 12-month commitment for a larger number of // RTS. The new commitment begins when you purchase the additional capacity. You // can't decrease the number of RTS in your reserved queue. ReservedSlots int32 // Specifies whether the pricing plan for your reserved queue is ACTIVE or EXPIRED. Status ReservationPlanStatus noSmithyDocumentSerde } // Details about the pricing plan for your reserved queue. Required for reserved // queues and not applicable to on-demand queues. type ReservationPlanSettings struct { // The length of the term of your reserved queue pricing plan commitment. // // This member is required. Commitment Commitment // Specifies whether the term of your reserved queue pricing plan is automatically // extended (AUTO_RENEW) or expires (EXPIRE) at the end of the term. When your term // is auto renewed, you extend your commitment by 12 months from the auto renew // date. You can cancel this commitment. // // This member is required. RenewalType RenewalType // Specifies the number of reserved transcode slots (RTS) for this queue. The // number of RTS determines how many jobs the queue can process in parallel; each // RTS can process one job at a time. You can't decrease the number of RTS in your // reserved queue. You can increase the number of RTS by extending your existing // commitment with a new 12-month commitment for the larger number. The new // commitment begins when you purchase the additional capacity. You can't cancel // your commitment or revert to your original commitment after you increase the // capacity. // // This member is required. ReservedSlots int32 noSmithyDocumentSerde } // The Amazon Resource Name (ARN) and tags for an AWS Elemental MediaConvert // resource. type ResourceTags struct { // The Amazon Resource Name (ARN) of the resource. Arn *string // The tags for the resource. Tags map[string]string noSmithyDocumentSerde } // Optional. Have MediaConvert automatically apply Amazon S3 access control for // the outputs in this output group. When you don't use this setting, S3 // automatically applies the default access control list PRIVATE. type S3DestinationAccessControl struct { // Choose an Amazon S3 canned ACL for MediaConvert to apply to this output. CannedAcl S3ObjectCannedAcl noSmithyDocumentSerde } // Settings associated with S3 destination type S3DestinationSettings struct { // Optional. Have MediaConvert automatically apply Amazon S3 access control for // the outputs in this output group. When you don't use this setting, S3 // automatically applies the default access control list PRIVATE. AccessControl *S3DestinationAccessControl // Settings for how your job outputs are encrypted as they are uploaded to Amazon // S3. Encryption *S3EncryptionSettings noSmithyDocumentSerde } // Settings for how your job outputs are encrypted as they are uploaded to Amazon // S3. type S3EncryptionSettings struct { // Specify how you want your data keys managed. AWS uses data keys to encrypt your // content. AWS also encrypts the data keys themselves, using a customer master key // (CMK), and then stores the encrypted data keys alongside your encrypted content. // Use this setting to specify which AWS service manages the CMK. For simplest set // up, choose Amazon S3 (SERVER_SIDE_ENCRYPTION_S3). If you want your master key to // be managed by AWS Key Management Service (KMS), choose AWS KMS // (SERVER_SIDE_ENCRYPTION_KMS). By default, when you choose AWS KMS, KMS uses the // AWS managed customer master key (CMK) associated with Amazon S3 to encrypt your // data keys. You can optionally choose to specify a different, customer managed // CMK. Do so by specifying the Amazon Resource Name (ARN) of the key for the // setting KMS ARN (kmsKeyArn). EncryptionType S3ServerSideEncryptionType // Optionally, specify the encryption context that you want to use alongside your // KMS key. AWS KMS uses this encryption context as additional authenticated data // (AAD) to support authenticated encryption. This value must be a base64-encoded // UTF-8 string holding JSON which represents a string-string map. To use this // setting, you must also set Server-side encryption (S3ServerSideEncryptionType) // to AWS KMS (SERVER_SIDE_ENCRYPTION_KMS). For more information about encryption // context, see: // https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context. KmsEncryptionContext *string // Optionally, specify the customer master key (CMK) that you want to use to // encrypt the data key that AWS uses to encrypt your output content. Enter the // Amazon Resource Name (ARN) of the CMK. To use this setting, you must also set // Server-side encryption (S3ServerSideEncryptionType) to AWS KMS // (SERVER_SIDE_ENCRYPTION_KMS). If you set Server-side encryption to AWS KMS but // don't specify a CMK here, AWS uses the AWS managed CMK associated with Amazon // S3. KmsKeyArn *string noSmithyDocumentSerde } // Settings related to SCC captions. SCC is a sidecar format that holds captions // in a file that is separate from the video container. Set up sidecar captions in // the same output group, but different output from your video. For more // information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/scc-srt-output-captions.html. // When you work directly in your JSON job specification, include this object and // any required children when you set destinationType to SCC. type SccDestinationSettings struct { // Set Framerate (SccDestinationFramerate) to make sure that the captions and the // video are synchronized in the output. Specify a frame rate that matches the // frame rate of the associated video. If the video frame rate is 29.97, choose // 29.97 dropframe (FRAMERATE_29_97_DROPFRAME) only if the video has // video_insertion=true and drop_frame_timecode=true; otherwise, choose 29.97 // non-dropframe (FRAMERATE_29_97_NON_DROPFRAME). Framerate SccDestinationFramerate noSmithyDocumentSerde } // If your output group type is HLS, DASH, or Microsoft Smooth, use these settings // when doing DRM encryption with a SPEKE-compliant key provider. If your output // group type is CMAF, use the SpekeKeyProviderCmaf settings instead. type SpekeKeyProvider struct { // If you want your key provider to encrypt the content keys that it provides to // MediaConvert, set up a certificate with a master key using AWS Certificate // Manager. Specify the certificate's Amazon Resource Name (ARN) here. CertificateArn *string // Specify the resource ID that your SPEKE-compliant key provider uses to identify // this content. ResourceId *string // Relates to SPEKE implementation. DRM system identifiers. DASH output groups // support a max of two system ids. Other group types support one system id. See // https://dashif.org/identifiers/content_protection/ for more details. SystemIds []string // Specify the URL to the key server that your SPEKE-compliant DRM key provider // uses to provide keys for encrypting your content. Url *string noSmithyDocumentSerde } // If your output group type is CMAF, use these settings when doing DRM encryption // with a SPEKE-compliant key provider. If your output group type is HLS, DASH, or // Microsoft Smooth, use the SpekeKeyProvider settings instead. type SpekeKeyProviderCmaf struct { // If you want your key provider to encrypt the content keys that it provides to // MediaConvert, set up a certificate with a master key using AWS Certificate // Manager. Specify the certificate's Amazon Resource Name (ARN) here. CertificateArn *string // Specify the DRM system IDs that you want signaled in the DASH manifest that // MediaConvert creates as part of this CMAF package. The DASH manifest can // currently signal up to three system IDs. For more information, see // https://dashif.org/identifiers/content_protection/. DashSignaledSystemIds []string // Specify the DRM system ID that you want signaled in the HLS manifest that // MediaConvert creates as part of this CMAF package. The HLS manifest can // currently signal only one system ID. For more information, see // https://dashif.org/identifiers/content_protection/. HlsSignaledSystemIds []string // Specify the resource ID that your SPEKE-compliant key provider uses to identify // this content. ResourceId *string // Specify the URL to the key server that your SPEKE-compliant DRM key provider // uses to provide keys for encrypting your content. Url *string noSmithyDocumentSerde } // Settings related to SRT captions. SRT is a sidecar format that holds captions // in a file that is separate from the video container. Set up sidecar captions in // the same output group, but different output from your video. When you work // directly in your JSON job specification, include this object and any required // children when you set destinationType to SRT. type SrtDestinationSettings struct { // Set Style passthrough (StylePassthrough) to ENABLED to use the available style, // color, and position information from your input captions. MediaConvert uses // default settings for any missing style and position information in your input // captions. Set Style passthrough to DISABLED, or leave blank, to ignore the style // and position information from your input captions and use simplified output // captions. StylePassthrough SrtStylePassthrough noSmithyDocumentSerde } // Use these settings to set up encryption with a static key provider. type StaticKeyProvider struct { // Relates to DRM implementation. Sets the value of the KEYFORMAT attribute. Must // be 'identity' or a reverse DNS string. May be omitted to indicate an implicit // value of 'identity'. KeyFormat *string // Relates to DRM implementation. Either a single positive integer version value // or a slash delimited list of version values (1/2/3). KeyFormatVersions *string // Relates to DRM implementation. Use a 32-character hexidecimal string to specify // Key Value (StaticKeyValue). StaticKeyValue *string // Relates to DRM implementation. The location of the license server used for // protecting content. Url *string noSmithyDocumentSerde } // Settings related to teletext captions. Set up teletext captions in the same // output as your video. For more information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/teletext-output-captions.html. // When you work directly in your JSON job specification, include this object and // any required children when you set destinationType to TELETEXT. type TeletextDestinationSettings struct { // Set pageNumber to the Teletext page number for the destination captions for // this output. This value must be a three-digit hexadecimal string; strings ending // in -FF are invalid. If you are passing through the entire set of Teletext data, // do not use this field. PageNumber *string // Specify the page types for this Teletext page. If you don't specify a value // here, the service sets the page type to the default value Subtitle // (PAGE_TYPE_SUBTITLE). If you pass through the entire set of Teletext data, don't // use this field. When you pass through a set of Teletext pages, your output has // the same page types as your input. PageTypes []TeletextPageType noSmithyDocumentSerde } // Settings specific to Teletext caption sources, including Page number. type TeletextSourceSettings struct { // Use Page Number (PageNumber) to specify the three-digit hexadecimal page number // that will be used for Teletext captions. Do not use this setting if you are // passing through teletext from the input source to output. PageNumber *string noSmithyDocumentSerde } // Settings for burning the output timecode and specified prefix into the output. type TimecodeBurnin struct { // Use Font Size (FontSize) to set the font size of any burned-in timecode. Valid // values are 10, 16, 32, 48. FontSize int32 // Use Position (Position) under under Timecode burn-in (TimecodeBurnIn) to // specify the location the burned-in timecode on output video. Position TimecodeBurninPosition // Use Prefix (Prefix) to place ASCII characters before any burned-in timecode. // For example, a prefix of "EZ-" will result in the timecode "EZ-00:00:00:00". // Provide either the characters themselves or the ASCII code equivalents. The // supported range of characters is 0x20 through 0x7e. This includes letters, // numbers, and all special characters represented on a standard English keyboard. Prefix *string noSmithyDocumentSerde } // These settings control how the service handles timecodes throughout the job. // These settings don't affect input clipping. type TimecodeConfig struct { // If you use an editing platform that relies on an anchor timecode, use Anchor // Timecode (Anchor) to specify a timecode that will match the input video frame to // the output video frame. Use 24-hour format with frame number, (HH:MM:SS:FF) or // (HH:MM:SS;FF). This setting ignores frame rate conversion. System behavior for // Anchor Timecode varies depending on your setting for Source (TimecodeSource). * // If Source (TimecodeSource) is set to Specified Start (SPECIFIEDSTART), the first // input frame is the specified value in Start Timecode (Start). Anchor Timecode // (Anchor) and Start Timecode (Start) are used calculate output timecode. * If // Source (TimecodeSource) is set to Start at 0 (ZEROBASED) the first frame is // 00:00:00:00. * If Source (TimecodeSource) is set to Embedded (EMBEDDED), the // first frame is the timecode value on the first input frame of the input. Anchor *string // Use Source (TimecodeSource) to set how timecodes are handled within this job. // To make sure that your video, audio, captions, and markers are synchronized and // that time-based features, such as image inserter, work correctly, choose the // Timecode source option that matches your assets. All timecodes are in a 24-hour // format with frame number (HH:MM:SS:FF). * Embedded (EMBEDDED) - Use the timecode // that is in the input video. If no embedded timecode is in the source, the // service will use Start at 0 (ZEROBASED) instead. * Start at 0 (ZEROBASED) - Set // the timecode of the initial frame to 00:00:00:00. * Specified Start // (SPECIFIEDSTART) - Set the timecode of the initial frame to a value other than // zero. You use Start timecode (Start) to provide this value. Source TimecodeSource // Only use when you set Source (TimecodeSource) to Specified start // (SPECIFIEDSTART). Use Start timecode (Start) to specify the timecode for the // initial frame. Use 24-hour format with frame number, (HH:MM:SS:FF) or // (HH:MM:SS;FF). Start *string // Only applies to outputs that support program-date-time stamp. Use Timestamp // offset (TimestampOffset) to overwrite the timecode date without affecting the // time and frame number. Provide the new date as a string in the format // "yyyy-mm-dd". To use Time stamp offset, you must also enable Insert // program-date-time (InsertProgramDateTime) in the output settings. For example, // if the date part of your timecodes is 2002-1-25 and you want to change it to one // year later, set Timestamp offset (TimestampOffset) to 2003-1-25. TimestampOffset *string noSmithyDocumentSerde } // Insert user-defined custom ID3 metadata (id3) at timecodes (timecode) that you // specify. In each output that you want to include this metadata, you must set ID3 // metadata (timedMetadata) to Passthrough (PASSTHROUGH). type TimedMetadataInsertion struct { // Id3Insertions contains the array of Id3Insertion instances. Id3Insertions []Id3Insertion noSmithyDocumentSerde } // Information about when jobs are submitted, started, and finished is specified // in Unix epoch format in seconds. type Timing struct { // The time, in Unix epoch format, that the transcoding job finished FinishTime *time.Time // The time, in Unix epoch format, that transcoding for the job began. StartTime *time.Time // The time, in Unix epoch format, that you submitted the job. SubmitTime *time.Time noSmithyDocumentSerde } // Settings specific to caption sources that are specified by track number. // Currently, this is only IMSC captions in an IMF package. If your caption source // is IMSC 1.1 in a separate xml file, use FileSourceSettings instead of // TrackSourceSettings. type TrackSourceSettings struct { // Use this setting to select a single captions track from a source. Track numbers // correspond to the order in the captions source file. For IMF sources, track // numbering is based on the order that the captions appear in the CPL. For // example, use 1 to select the captions asset that is listed first in the CPL. To // include more than one captions track in your job outputs, create multiple input // captions selectors. Specify one track per selector. TrackNumber int32 noSmithyDocumentSerde } // Settings related to TTML captions. TTML is a sidecar format that holds captions // in a file that is separate from the video container. Set up sidecar captions in // the same output group, but different output from your video. For more // information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/ttml-and-webvtt-output-captions.html. // When you work directly in your JSON job specification, include this object and // any required children when you set destinationType to TTML. type TtmlDestinationSettings struct { // Pass through style and position information from a TTML-like input source // (TTML, IMSC, SMPTE-TT) to the TTML output. StylePassthrough TtmlStylePassthrough noSmithyDocumentSerde } // Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the // value VC3 type Vc3Settings struct { // If you are using the console, use the Framerate setting to specify the frame // rate for this output. If you want to keep the same frame rate as the input // video, choose Follow source. If you want to do frame rate conversion, choose a // frame rate from the dropdown list or choose Custom. The framerates shown in the // dropdown list are decimal approximations of fractions. If you choose Custom, // specify your frame rate as a fraction. If you are creating your transcoding job // specification as a JSON file without the console, use FramerateControl to // specify which value the service uses for the frame rate for this output. Choose // INITIALIZE_FROM_SOURCE if you want the service to use the frame rate from the // input. Choose SPECIFIED if you want the service to use the frame rate you // specify in the settings FramerateNumerator and FramerateDenominator. FramerateControl Vc3FramerateControl // Choose the method that you want MediaConvert to use when increasing or // decreasing the frame rate. For numerically simple conversions, such as 60 fps to // 30 fps: We recommend that you keep the default value, Drop duplicate. For // numerically complex conversions, to avoid stutter: Choose Interpolate. This // results in a smooth picture, but might introduce undesirable video artifacts. // For complex frame rate conversions, especially if your source video has already // been converted from its original cadence: Choose FrameFormer to do // motion-compensated interpolation. FrameFormer uses the best conversion method // frame by frame. Note that using FrameFormer increases the transcoding time and // incurs a significant add-on cost. When you choose FrameFormer, your input video // resolution must be at least 128x96. FramerateConversionAlgorithm Vc3FramerateConversionAlgorithm // When you use the API for transcode jobs that use frame rate conversion, specify // the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use // FramerateDenominator to specify the denominator of this fraction. In this // example, use 1001 for the value of FramerateDenominator. When you use the // console for transcode jobs that use frame rate conversion, provide the value as // a decimal number for Framerate. In this example, specify 23.976. FramerateDenominator int32 // When you use the API for transcode jobs that use frame rate conversion, specify // the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use // FramerateNumerator to specify the numerator of this fraction. In this example, // use 24000 for the value of FramerateNumerator. When you use the console for // transcode jobs that use frame rate conversion, provide the value as a decimal // number for Framerate. In this example, specify 23.976. FramerateNumerator int32 // Optional. Choose the scan line type for this output. If you don't specify a // value, MediaConvert will create a progressive output. InterlaceMode Vc3InterlaceMode // Use this setting for interlaced outputs, when your output frame rate is half of // your input frame rate. In this situation, choose Optimized interlacing // (INTERLACED_OPTIMIZE) to create a better quality interlaced output. In this // case, each progressive frame from the input corresponds to an interlaced field // in the output. Keep the default value, Basic interlacing (INTERLACED), for all // other output frame rates. With basic interlacing, MediaConvert performs any // frame rate conversion first and then interlaces the frames. When you choose // Optimized interlacing and you set your output frame rate to a value that isn't // suitable for optimized interlacing, MediaConvert automatically falls back to // basic interlacing. Required settings: To use optimized interlacing, you must set // Telecine (telecine) to None (NONE) or Soft (SOFT). You can't use optimized // interlacing for hard telecine outputs. You must also set Interlace mode // (interlaceMode) to a value other than Progressive (PROGRESSIVE). ScanTypeConversionMode Vc3ScanTypeConversionMode // Ignore this setting unless your input frame rate is 23.976 or 24 frames per // second (fps). Enable slow PAL to create a 25 fps output by relabeling the video // frames and resampling your audio. Note that enabling this setting will slightly // reduce the duration of your video. Related settings: You must also set Framerate // to 25. In your JSON job specification, set (framerateControl) to (SPECIFIED), // (framerateNumerator) to 25 and (framerateDenominator) to 1. SlowPal Vc3SlowPal // When you do frame rate conversion from 23.976 frames per second (fps) to 29.97 // fps, and your output scan type is interlaced, you can optionally enable hard // telecine (HARD) to create a smoother picture. When you keep the default value, // None (NONE), MediaConvert does a standard frame rate conversion to 29.97 without // doing anything with the field polarity to create a smoother picture. Telecine Vc3Telecine // Specify the VC3 class to choose the quality characteristics for this output. // VC3 class, together with the settings Framerate (framerateNumerator and // framerateDenominator) and Resolution (height and width), determine your output // bitrate. For example, say that your video resolution is 1920x1080 and your // framerate is 29.97. Then Class 145 (CLASS_145) gives you an output with a // bitrate of approximately 145 Mbps and Class 220 (CLASS_220) gives you and output // with a bitrate of approximately 220 Mbps. VC3 class also specifies the color bit // depth of your output. Vc3Class Vc3Class noSmithyDocumentSerde } // Video codec settings, (CodecSettings) under (VideoDescription), contains the // group of settings related to video encoding. The settings in this group vary // depending on the value that you choose for Video codec (Codec). For each codec // enum that you choose, define the corresponding settings object. The following // lists the codec enum, settings object pairs. * AV1, Av1Settings * AVC_INTRA, // AvcIntraSettings * FRAME_CAPTURE, FrameCaptureSettings * H_264, H264Settings * // H_265, H265Settings * MPEG2, Mpeg2Settings * PRORES, ProresSettings * VC3, // Vc3Settings * VP8, Vp8Settings * VP9, Vp9Settings * XAVC, XavcSettings type VideoCodecSettings struct { // Required when you set Codec, under VideoDescription>CodecSettings to the value // AV1. Av1Settings *Av1Settings // Required when you choose AVC-Intra for your output video codec. For more // information about the AVC-Intra settings, see the relevant specification. For // detailed information about SD and HD in AVC-Intra, see // https://ieeexplore.ieee.org/document/7290936. For information about 4K/2K in // AVC-Intra, see https://pro-av.panasonic.net/en/avc-ultra/AVC-ULTRAoverview.pdf. AvcIntraSettings *AvcIntraSettings // Specifies the video codec. This must be equal to one of the enum values defined // by the object VideoCodec. To passthrough the video stream of your input // JPEG2000, VC-3, AVC-INTRA or Apple ProRes video without any video encoding: // Choose Passthrough. If you have multiple input videos, note that they must have // identical encoding attributes. When you choose Passthrough, your output // container must be MXF or QuickTime MOV. Codec VideoCodec // Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the // value FRAME_CAPTURE. FrameCaptureSettings *FrameCaptureSettings // Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the // value H_264. H264Settings *H264Settings // Settings for H265 codec H265Settings *H265Settings // Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the // value MPEG2. Mpeg2Settings *Mpeg2Settings // Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the // value PRORES. ProresSettings *ProresSettings // Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the // value VC3 Vc3Settings *Vc3Settings // Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the // value VP8. Vp8Settings *Vp8Settings // Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the // value VP9. Vp9Settings *Vp9Settings // Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the // value XAVC. XavcSettings *XavcSettings noSmithyDocumentSerde } // Settings related to video encoding of your output. The specific video settings // depend on the video codec that you choose. When you work directly in your JSON // job specification, include one instance of Video description (VideoDescription) // per output. type VideoDescription struct { // This setting only applies to H.264, H.265, and MPEG2 outputs. Use Insert AFD // signaling (AfdSignaling) to specify whether the service includes AFD values in // the output video data and what those values are. * Choose None to remove all AFD // values from this output. * Choose Fixed to ignore input AFD values and instead // encode the value specified in the job. * Choose Auto to calculate output AFD // values based on the input AFD scaler data. AfdSignaling AfdSignaling // The anti-alias filter is automatically applied to all outputs. The service no // longer accepts the value DISABLED for AntiAlias. If you specify that in your // job, the service will ignore the setting. AntiAlias AntiAlias // Video codec settings, (CodecSettings) under (VideoDescription), contains the // group of settings related to video encoding. The settings in this group vary // depending on the value that you choose for Video codec (Codec). For each codec // enum that you choose, define the corresponding settings object. The following // lists the codec enum, settings object pairs. * AV1, Av1Settings * AVC_INTRA, // AvcIntraSettings * FRAME_CAPTURE, FrameCaptureSettings * H_264, H264Settings * // H_265, H265Settings * MPEG2, Mpeg2Settings * PRORES, ProresSettings * VC3, // Vc3Settings * VP8, Vp8Settings * VP9, Vp9Settings * XAVC, XavcSettings CodecSettings *VideoCodecSettings // Choose Insert (INSERT) for this setting to include color metadata in this // output. Choose Ignore (IGNORE) to exclude color metadata from this output. If // you don't specify a value, the service sets this to Insert by default. ColorMetadata ColorMetadata // Use Cropping selection (crop) to specify the video area that the service will // include in the output video frame. Crop *Rectangle // Applies only to 29.97 fps outputs. When this feature is enabled, the service // will use drop-frame timecode on outputs. If it is not possible to use drop-frame // timecode, the system will fall back to non-drop-frame. This setting is enabled // by default when Timecode insertion (TimecodeInsertion) is enabled. DropFrameTimecode DropFrameTimecode // Applies only if you set AFD Signaling(AfdSignaling) to Fixed (FIXED). Use Fixed // (FixedAfd) to specify a four-bit AFD value which the service will write on all // frames of this video output. FixedAfd int32 // Use Height to define the video resolution height, in pixels, for this output. // To use the same resolution as your input: Leave both Width and Height blank. To // evenly scale from your input resolution: Leave Height blank and enter a value // for Width. For example, if your input is 1920x1080 and you set Width to 1280, // your output will be 1280x720. Height int32 // Use Selection placement (position) to define the video area in your output // frame. The area outside of the rectangle that you specify here is black. Position *Rectangle // Use Respond to AFD (RespondToAfd) to specify how the service changes the video // itself in response to AFD values in the input. * Choose Respond to clip the // input video frame according to the AFD value, input display aspect ratio, and // output display aspect ratio. * Choose Passthrough to include the input AFD // values. Do not choose this when AfdSignaling is set to (NONE). A preferred // implementation of this workflow is to set RespondToAfd to (NONE) and set // AfdSignaling to (AUTO). * Choose None to remove all input AFD values from this // output. RespondToAfd RespondToAfd // Specify how the service handles outputs that have a different aspect ratio from // the input aspect ratio. Choose Stretch to output (STRETCH_TO_OUTPUT) to have the // service stretch your video image to fit. Keep the setting Default (DEFAULT) to // have the service letterbox your video instead. This setting overrides any value // that you specify for the setting Selection placement (position) in this output. ScalingBehavior ScalingBehavior // Use Sharpness (Sharpness) setting to specify the strength of anti-aliasing. // This setting changes the width of the anti-alias filter kernel used for scaling. // Sharpness only applies if your output resolution is different from your input // resolution. 0 is the softest setting, 100 the sharpest, and 50 recommended for // most content. Sharpness int32 // Applies only to H.264, H.265, MPEG2, and ProRes outputs. Only enable Timecode // insertion when the input frame rate is identical to the output frame rate. To // include timecodes in this output, set Timecode insertion // (VideoTimecodeInsertion) to PIC_TIMING_SEI. To leave them out, set it to // DISABLED. Default is DISABLED. When the service inserts timecodes in an output, // by default, it uses any embedded timecodes from the input. If none are present, // the service will set the timecode for the first output frame to zero. To change // this default behavior, adjust the settings under Timecode configuration // (TimecodeConfig). In the console, these settings are located under Job > Job // settings > Timecode configuration. Note - Timecode source under input settings // (InputTimecodeSource) does not affect the timecodes that are inserted in the // output. Source under Job settings > Timecode configuration (TimecodeSource) // does. TimecodeInsertion VideoTimecodeInsertion // Find additional transcoding features under Preprocessors (VideoPreprocessors). // Enable the features at each output individually. These features are disabled by // default. VideoPreprocessors *VideoPreprocessor // Use Width to define the video resolution width, in pixels, for this output. To // use the same resolution as your input: Leave both Width and Height blank. To // evenly scale from your input resolution: Leave Width blank and enter a value for // Height. For example, if your input is 1920x1080 and you set Height to 720, your // output will be 1280x720. Width int32 noSmithyDocumentSerde } // Contains details about the output's video stream type VideoDetail struct { // Height in pixels for the output HeightInPx int32 // Width in pixels for the output WidthInPx int32 noSmithyDocumentSerde } // Find additional transcoding features under Preprocessors (VideoPreprocessors). // Enable the features at each output individually. These features are disabled by // default. type VideoPreprocessor struct { // Use these settings to convert the color space or to modify properties such as // hue and contrast for this output. For more information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/converting-the-color-space.html. ColorCorrector *ColorCorrector // Use the deinterlacer to produce smoother motion and a clearer picture. For more // information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/working-with-scan-type.html. Deinterlacer *Deinterlacer // Enable Dolby Vision feature to produce Dolby Vision compatible video output. DolbyVision *DolbyVision // Enable HDR10+ analysis and metadata injection. Compatible with HEVC only. Hdr10Plus *Hdr10Plus // Enable the Image inserter (ImageInserter) feature to include a graphic overlay // on your video. Enable or disable this feature for each output individually. This // setting is disabled by default. ImageInserter *ImageInserter // Enable the Noise reducer feature to remove noise from your video output if // necessary. Enable or disable this feature for each output individually. This // setting is disabled by default. When you enable Noise reducer, you must also // select a value for Noise reducer filter. For AVC outputs, when you include Noise // reducer, you cannot include the Bandwidth reduction filter. NoiseReducer *NoiseReducer // If you work with a third party video watermarking partner, use the group of // settings that correspond with your watermarking partner to include watermarks in // your output. PartnerWatermarking *PartnerWatermarking // Settings for burning the output timecode and specified prefix into the output. TimecodeBurnin *TimecodeBurnin noSmithyDocumentSerde } // Input video selectors contain the video settings for the input. Each of your // inputs can have up to one video selector. type VideoSelector struct { // Ignore this setting unless this input is a QuickTime animation with an alpha // channel. Use this setting to create separate Key and Fill outputs. In each // output, specify which part of the input MediaConvert uses. Leave this setting at // the default value DISCARD to delete the alpha channel and preserve the video. // Set it to REMAP_TO_LUMA to delete the video and map the alpha channel to the // luma channel of your outputs. AlphaBehavior AlphaBehavior // If your input video has accurate color space metadata, or if you don't know // about color space: Keep the default value, Follow. MediaConvert will // automatically detect your input color space. If your input video has metadata // indicating the wrong color space, or has missing metadata: Specify the accurate // color space here. If your input video is HDR 10 and the SMPTE ST 2086 Mastering // Display Color Volume static metadata isn't present in your video stream, or if // that metadata is present but not accurate: Choose Force HDR 10. Specify correct // values in the input HDR 10 metadata settings. For more information about HDR // jobs, see https://docs.aws.amazon.com/console/mediaconvert/hdr. When you specify // an input color space, MediaConvert uses the following color space metadata, // which includes color primaries, transfer characteristics, and matrix // coefficients: // - HDR 10: BT.2020, PQ, BT.2020 non-constant // - HLG 2020: BT.2020, HLG, BT.2020 non-constant // - P3DCI (Theater): DCIP3, SMPTE 428M, BT.709 // - P3D65 (SDR): Display P3, sRGB, BT.709 // - P3D65 (HDR): Display P3, PQ, BT.709 ColorSpace ColorSpace // There are two sources for color metadata, the input file and the job input // settings Color space (ColorSpace) and HDR master display information // settings(Hdr10Metadata). The Color space usage setting determines which takes // precedence. Choose Force (FORCE) to use color metadata from the input job // settings. If you don't specify values for those settings, the service defaults // to using metadata from your input. FALLBACK - Choose Fallback (FALLBACK) to use // color metadata from the source when it is present. If there's no color metadata // in your input file, the service defaults to using values you specify in the // input settings. ColorSpaceUsage ColorSpaceUsage // Set Embedded timecode override (embeddedTimecodeOverride) to Use MDPM // (USE_MDPM) when your AVCHD input contains timecode tag data in the Modified // Digital Video Pack Metadata (MDPM). When you do, we recommend you also set // Timecode source (inputTimecodeSource) to Embedded (EMBEDDED). Leave Embedded // timecode override blank, or set to None (NONE), when your input does not contain // MDPM timecode. EmbeddedTimecodeOverride EmbeddedTimecodeOverride // Use these settings to provide HDR 10 metadata that is missing or inaccurate in // your input video. Appropriate values vary depending on the input video and must // be provided by a color grader. The color grader generates these values during // the HDR 10 mastering process. The valid range for each of these settings is 0 to // 50,000. Each increment represents 0.00002 in CIE1931 color coordinate. Related // settings - When you specify these values, you must also set Color space // (ColorSpace) to HDR 10 (HDR10). To specify whether the the values you specify // here take precedence over the values in the metadata of your input file, set // Color space usage (ColorSpaceUsage). To specify whether color metadata is // included in an output, set Color metadata (ColorMetadata). For more information // about MediaConvert HDR jobs, see // https://docs.aws.amazon.com/console/mediaconvert/hdr. Hdr10Metadata *Hdr10Metadata // Use this setting if your input has video and audio durations that don't align, // and your output or player has strict alignment requirements. Examples: Input // audio track has a delayed start. Input video track ends before audio ends. When // you set Pad video (padVideo) to Black (BLACK), MediaConvert generates black // video frames so that output video and audio durations match. Black video frames // are added at the beginning or end, depending on your input. To keep the default // behavior and not generate black video, set Pad video to Disabled (DISABLED) or // leave blank. PadVideo PadVideo // Use PID (Pid) to select specific video data from an input file. Specify this // value as an integer; the system automatically converts it to the hexidecimal // value. For example, 257 selects PID 0x101. A PID, or packet identifier, is an // identifier for a set of data in an MPEG-2 transport stream container. Pid int32 // Selects a specific program from within a multi-program transport stream. Note // that Quad 4K is not currently supported. ProgramNumber int32 // Use Rotate (InputRotate) to specify how the service rotates your video. You can // choose automatic rotation or specify a rotation. You can specify a clockwise // rotation of 0, 90, 180, or 270 degrees. If your input video container is .mov or // .mp4 and your input has rotation metadata, you can choose Automatic to have the // service rotate your video according to the rotation specified in the metadata. // The rotation must be within one degree of 90, 180, or 270 degrees. If the // rotation metadata specifies any other rotation, the service will default to no // rotation. By default, the service does no rotation, even if your input video has // rotation metadata. The service doesn't pass through rotation metadata. Rotate InputRotate // If the sample range metadata in your input video is accurate, or if you don't // know about sample range, keep the default value, Follow (FOLLOW), for this // setting. When you do, the service automatically detects your input sample range. // If your input video has metadata indicating the wrong sample range, specify the // accurate sample range here. When you do, MediaConvert ignores any sample range // information in the input metadata. Regardless of whether MediaConvert uses the // input sample range or the sample range that you specify, MediaConvert uses the // sample range for transcoding and also writes it to the output metadata. SampleRange InputSampleRange noSmithyDocumentSerde } // Required when you set Codec, under AudioDescriptions>CodecSettings, to the // value Vorbis. type VorbisSettings struct { // Optional. Specify the number of channels in this output audio track. Choosing // Mono on the console gives you 1 output channel; choosing Stereo gives you 2. In // the API, valid values are 1 and 2. The default value is 2. Channels int32 // Optional. Specify the audio sample rate in Hz. Valid values are 22050, 32000, // 44100, and 48000. The default value is 48000. SampleRate int32 // Optional. Specify the variable audio quality of this Vorbis output from -1 // (lowest quality, ~45 kbit/s) to 10 (highest quality, ~500 kbit/s). The default // value is 4 (~128 kbit/s). Values 5 and 6 are approximately 160 and 192 kbit/s, // respectively. VbrQuality int32 noSmithyDocumentSerde } // Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the // value VP8. type Vp8Settings struct { // Target bitrate in bits/second. For example, enter five megabits per second as // 5000000. Bitrate int32 // If you are using the console, use the Framerate setting to specify the frame // rate for this output. If you want to keep the same frame rate as the input // video, choose Follow source. If you want to do frame rate conversion, choose a // frame rate from the dropdown list or choose Custom. The framerates shown in the // dropdown list are decimal approximations of fractions. If you choose Custom, // specify your frame rate as a fraction. If you are creating your transcoding job // specification as a JSON file without the console, use FramerateControl to // specify which value the service uses for the frame rate for this output. Choose // INITIALIZE_FROM_SOURCE if you want the service to use the frame rate from the // input. Choose SPECIFIED if you want the service to use the frame rate you // specify in the settings FramerateNumerator and FramerateDenominator. FramerateControl Vp8FramerateControl // Choose the method that you want MediaConvert to use when increasing or // decreasing the frame rate. For numerically simple conversions, such as 60 fps to // 30 fps: We recommend that you keep the default value, Drop duplicate. For // numerically complex conversions, to avoid stutter: Choose Interpolate. This // results in a smooth picture, but might introduce undesirable video artifacts. // For complex frame rate conversions, especially if your source video has already // been converted from its original cadence: Choose FrameFormer to do // motion-compensated interpolation. FrameFormer uses the best conversion method // frame by frame. Note that using FrameFormer increases the transcoding time and // incurs a significant add-on cost. When you choose FrameFormer, your input video // resolution must be at least 128x96. FramerateConversionAlgorithm Vp8FramerateConversionAlgorithm // When you use the API for transcode jobs that use frame rate conversion, specify // the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use // FramerateDenominator to specify the denominator of this fraction. In this // example, use 1001 for the value of FramerateDenominator. When you use the // console for transcode jobs that use frame rate conversion, provide the value as // a decimal number for Framerate. In this example, specify 23.976. FramerateDenominator int32 // When you use the API for transcode jobs that use frame rate conversion, specify // the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use // FramerateNumerator to specify the numerator of this fraction. In this example, // use 24000 for the value of FramerateNumerator. When you use the console for // transcode jobs that use frame rate conversion, provide the value as a decimal // number for Framerate. In this example, specify 23.976. FramerateNumerator int32 // GOP Length (keyframe interval) in frames. Must be greater than zero. GopSize float64 // Optional. Size of buffer (HRD buffer model) in bits. For example, enter five // megabits as 5000000. HrdBufferSize int32 // Ignore this setting unless you set qualityTuningLevel to MULTI_PASS. Optional. // Specify the maximum bitrate in bits/second. For example, enter five megabits per // second as 5000000. The default behavior uses twice the target bitrate as the // maximum bitrate. MaxBitrate int32 // Optional. Specify how the service determines the pixel aspect ratio (PAR) for // this output. The default behavior, Follow source (INITIALIZE_FROM_SOURCE), uses // the PAR from your input video for your output. To specify a different PAR in the // console, choose any value other than Follow source. To specify a different PAR // by editing the JSON job specification, choose SPECIFIED. When you choose // SPECIFIED for this setting, you must also specify values for the parNumerator // and parDenominator settings. ParControl Vp8ParControl // Required when you set Pixel aspect ratio (parControl) to SPECIFIED. On the // console, this corresponds to any value other than Follow source. When you // specify an output pixel aspect ratio (PAR) that is different from your input // video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC // widescreen, you would specify the ratio 40:33. In this example, the value for // parDenominator is 33. ParDenominator int32 // Required when you set Pixel aspect ratio (parControl) to SPECIFIED. On the // console, this corresponds to any value other than Follow source. When you // specify an output pixel aspect ratio (PAR) that is different from your input // video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC // widescreen, you would specify the ratio 40:33. In this example, the value for // parNumerator is 40. ParNumerator int32 // Optional. Use Quality tuning level (qualityTuningLevel) to choose how you want // to trade off encoding speed for output video quality. The default behavior is // faster, lower quality, multi-pass encoding. QualityTuningLevel Vp8QualityTuningLevel // With the VP8 codec, you can use only the variable bitrate (VBR) rate control // mode. RateControlMode Vp8RateControlMode noSmithyDocumentSerde } // Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the // value VP9. type Vp9Settings struct { // Target bitrate in bits/second. For example, enter five megabits per second as // 5000000. Bitrate int32 // If you are using the console, use the Framerate setting to specify the frame // rate for this output. If you want to keep the same frame rate as the input // video, choose Follow source. If you want to do frame rate conversion, choose a // frame rate from the dropdown list or choose Custom. The framerates shown in the // dropdown list are decimal approximations of fractions. If you choose Custom, // specify your frame rate as a fraction. If you are creating your transcoding job // specification as a JSON file without the console, use FramerateControl to // specify which value the service uses for the frame rate for this output. Choose // INITIALIZE_FROM_SOURCE if you want the service to use the frame rate from the // input. Choose SPECIFIED if you want the service to use the frame rate you // specify in the settings FramerateNumerator and FramerateDenominator. FramerateControl Vp9FramerateControl // Choose the method that you want MediaConvert to use when increasing or // decreasing the frame rate. For numerically simple conversions, such as 60 fps to // 30 fps: We recommend that you keep the default value, Drop duplicate. For // numerically complex conversions, to avoid stutter: Choose Interpolate. This // results in a smooth picture, but might introduce undesirable video artifacts. // For complex frame rate conversions, especially if your source video has already // been converted from its original cadence: Choose FrameFormer to do // motion-compensated interpolation. FrameFormer uses the best conversion method // frame by frame. Note that using FrameFormer increases the transcoding time and // incurs a significant add-on cost. When you choose FrameFormer, your input video // resolution must be at least 128x96. FramerateConversionAlgorithm Vp9FramerateConversionAlgorithm // When you use the API for transcode jobs that use frame rate conversion, specify // the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use // FramerateDenominator to specify the denominator of this fraction. In this // example, use 1001 for the value of FramerateDenominator. When you use the // console for transcode jobs that use frame rate conversion, provide the value as // a decimal number for Framerate. In this example, specify 23.976. FramerateDenominator int32 // When you use the API for transcode jobs that use frame rate conversion, specify // the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use // FramerateNumerator to specify the numerator of this fraction. In this example, // use 24000 for the value of FramerateNumerator. When you use the console for // transcode jobs that use frame rate conversion, provide the value as a decimal // number for Framerate. In this example, specify 23.976. FramerateNumerator int32 // GOP Length (keyframe interval) in frames. Must be greater than zero. GopSize float64 // Size of buffer (HRD buffer model) in bits. For example, enter five megabits as // 5000000. HrdBufferSize int32 // Ignore this setting unless you set qualityTuningLevel to MULTI_PASS. Optional. // Specify the maximum bitrate in bits/second. For example, enter five megabits per // second as 5000000. The default behavior uses twice the target bitrate as the // maximum bitrate. MaxBitrate int32 // Optional. Specify how the service determines the pixel aspect ratio for this // output. The default behavior is to use the same pixel aspect ratio as your input // video. ParControl Vp9ParControl // Required when you set Pixel aspect ratio (parControl) to SPECIFIED. On the // console, this corresponds to any value other than Follow source. When you // specify an output pixel aspect ratio (PAR) that is different from your input // video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC // widescreen, you would specify the ratio 40:33. In this example, the value for // parDenominator is 33. ParDenominator int32 // Required when you set Pixel aspect ratio (parControl) to SPECIFIED. On the // console, this corresponds to any value other than Follow source. When you // specify an output pixel aspect ratio (PAR) that is different from your input // video PAR, provide your output PAR as a ratio. For example, for D1/DV NTSC // widescreen, you would specify the ratio 40:33. In this example, the value for // parNumerator is 40. ParNumerator int32 // Optional. Use Quality tuning level (qualityTuningLevel) to choose how you want // to trade off encoding speed for output video quality. The default behavior is // faster, lower quality, multi-pass encoding. QualityTuningLevel Vp9QualityTuningLevel // With the VP9 codec, you can use only the variable bitrate (VBR) rate control // mode. RateControlMode Vp9RateControlMode noSmithyDocumentSerde } // Contains any warning codes and their count for the job. type WarningGroup struct { // Warning code that identifies a specific warning in the job. For more // information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/warning_codes.html // // This member is required. Code int32 // The number of times this warning occurred in the job. // // This member is required. Count int32 noSmithyDocumentSerde } // Required when you set (Codec) under (AudioDescriptions)>(CodecSettings) to the // value WAV. type WavSettings struct { // Specify Bit depth (BitDepth), in bits per sample, to choose the encoding // quality for this audio track. BitDepth int32 // Specify the number of channels in this output audio track. Valid values are 1 // and even numbers up to 64. For example, 1, 2, 4, 6, and so on, up to 64. Channels int32 // The service defaults to using RIFF for WAV outputs. If your output audio is // likely to exceed 4 GB in file size, or if you otherwise need the extended // support of the RF64 format, set your output WAV file format to RF64. Format WavFormat // Sample rate in Hz. SampleRate int32 noSmithyDocumentSerde } // Settings related to WebVTT captions. WebVTT is a sidecar format that holds // captions in a file that is separate from the video container. Set up sidecar // captions in the same output group, but different output from your video. For // more information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/ttml-and-webvtt-output-captions.html. // When you work directly in your JSON job specification, include this object and // any required children when you set destinationType to WebVTT. type WebvttDestinationSettings struct { // If the WebVTT captions track is intended to provide accessibility for people // who are deaf or hard of hearing: Set Accessibility subtitles to Enabled. When // you do, MediaConvert adds accessibility attributes to your output HLS or DASH // manifest. For HLS manifests, MediaConvert adds the following accessibility // attributes under EXT-X-MEDIA for this track: // CHARACTERISTICS="public.accessibility.describes-spoken-dialog,public.accessibility.describes-music-and-sound" // and AUTOSELECT="YES". For DASH manifests, MediaConvert adds the following in the // adaptation set for this track: . If the captions track is not intended to // provide such accessibility: Keep the default value, Disabled. When you do, for // DASH manifests, MediaConvert instead adds the following in the adaptation set // for this track: . Accessibility WebvttAccessibilitySubs // To use the available style, color, and position information from your input // captions: Set Style passthrough (stylePassthrough) to Enabled (ENABLED). // MediaConvert uses default settings when style and position information is // missing from your input captions. To recreate the input captions exactly: Set // Style passthrough to Strict (STRICT). MediaConvert automatically applies timing // adjustments, including adjustments for frame rate conversion, ad avails, and // input clipping. Your input captions format must be WebVTT. To ignore the style // and position information from your input captions and use simplified output // captions: Set Style passthrough to Disabled (DISABLED), or leave blank. StylePassthrough WebvttStylePassthrough noSmithyDocumentSerde } // Settings specific to WebVTT sources in HLS alternative rendition group. Specify // the properties (renditionGroupId, renditionName or renditionLanguageCode) to // identify the unique subtitle track among the alternative rendition groups // present in the HLS manifest. If no unique track is found, or multiple tracks // match the specified properties, the job fails. If there is only one subtitle // track in the rendition group, the settings can be left empty and the default // subtitle track will be chosen. If your caption source is a sidecar file, use // FileSourceSettings instead of WebvttHlsSourceSettings. type WebvttHlsSourceSettings struct { // Optional. Specify alternative group ID RenditionGroupId *string // Optional. Specify ISO 639-2 or ISO 639-3 code in the language property RenditionLanguageCode LanguageCode // Optional. Specify media name RenditionName *string noSmithyDocumentSerde } // Required when you set (Profile) under // (VideoDescription)>(CodecSettings)>(XavcSettings) to the value // XAVC_4K_INTRA_CBG. type Xavc4kIntraCbgProfileSettings struct { // Specify the XAVC Intra 4k (CBG) Class to set the bitrate of your output. // Outputs of the same class have similar image quality over the operating points // that are valid for that class. XavcClass Xavc4kIntraCbgProfileClass noSmithyDocumentSerde } // Required when you set (Profile) under // (VideoDescription)>(CodecSettings)>(XavcSettings) to the value // XAVC_4K_INTRA_VBR. type Xavc4kIntraVbrProfileSettings struct { // Specify the XAVC Intra 4k (VBR) Class to set the bitrate of your output. // Outputs of the same class have similar image quality over the operating points // that are valid for that class. XavcClass Xavc4kIntraVbrProfileClass noSmithyDocumentSerde } // Required when you set (Profile) under // (VideoDescription)>(CodecSettings)>(XavcSettings) to the value XAVC_4K. type Xavc4kProfileSettings struct { // Specify the XAVC 4k (Long GOP) Bitrate Class to set the bitrate of your output. // Outputs of the same class have similar image quality over the operating points // that are valid for that class. BitrateClass Xavc4kProfileBitrateClass // Specify the codec profile for this output. Choose High, 8-bit, 4:2:0 (HIGH) or // High, 10-bit, 4:2:2 (HIGH_422). These profiles are specified in ITU-T H.264. CodecProfile Xavc4kProfileCodecProfile // The best way to set up adaptive quantization is to keep the default value, Auto // (AUTO), for the setting Adaptive quantization (XavcAdaptiveQuantization). When // you do so, MediaConvert automatically applies the best types of quantization for // your video content. Include this setting in your JSON job specification only // when you choose to change the default value for Adaptive quantization. Enable // this setting to have the encoder reduce I-frame pop. I-frame pop appears as a // visual flicker that can arise when the encoder saves bits by copying some // macroblocks many times from frame to frame, and then refreshes them at the // I-frame. When you enable this setting, the encoder updates these macroblocks // slightly more often to smooth out the flicker. This setting is disabled by // default. Related setting: In addition to enabling this setting, you must also // set Adaptive quantization (adaptiveQuantization) to a value other than Off (OFF) // or Auto (AUTO). Use Adaptive quantization to adjust the degree of smoothing that // Flicker adaptive quantization provides. FlickerAdaptiveQuantization XavcFlickerAdaptiveQuantization // Specify whether the encoder uses B-frames as reference frames for other // pictures in the same GOP. Choose Allow (ENABLED) to allow the encoder to use // B-frames as reference frames. Choose Don't allow (DISABLED) to prevent the // encoder from using B-frames as reference frames. GopBReference XavcGopBReference // Frequency of closed GOPs. In streaming applications, it is recommended that // this be set to 1 so a decoder joining mid-stream will receive an IDR frame as // quickly as possible. Setting this value to 0 will break output segmenting. GopClosedCadence int32 // Specify the size of the buffer that MediaConvert uses in the HRD buffer model // for this output. Specify this value in bits; for example, enter five megabits as // 5000000. When you don't set this value, or you set it to zero, MediaConvert // calculates the default by doubling the bitrate of this output point. HrdBufferSize int32 // Optional. Use Quality tuning level (qualityTuningLevel) to choose how you want // to trade off encoding speed for output video quality. The default behavior is // faster, lower quality, single-pass encoding. QualityTuningLevel Xavc4kProfileQualityTuningLevel // Number of slices per picture. Must be less than or equal to the number of // macroblock rows for progressive pictures, and less than or equal to half the // number of macroblock rows for interlaced pictures. Slices int32 noSmithyDocumentSerde } // Required when you set (Profile) under // (VideoDescription)>(CodecSettings)>(XavcSettings) to the value // XAVC_HD_INTRA_CBG. type XavcHdIntraCbgProfileSettings struct { // Specify the XAVC Intra HD (CBG) Class to set the bitrate of your output. // Outputs of the same class have similar image quality over the operating points // that are valid for that class. XavcClass XavcHdIntraCbgProfileClass noSmithyDocumentSerde } // Required when you set (Profile) under // (VideoDescription)>(CodecSettings)>(XavcSettings) to the value XAVC_HD. type XavcHdProfileSettings struct { // Specify the XAVC HD (Long GOP) Bitrate Class to set the bitrate of your output. // Outputs of the same class have similar image quality over the operating points // that are valid for that class. BitrateClass XavcHdProfileBitrateClass // The best way to set up adaptive quantization is to keep the default value, Auto // (AUTO), for the setting Adaptive quantization (XavcAdaptiveQuantization). When // you do so, MediaConvert automatically applies the best types of quantization for // your video content. Include this setting in your JSON job specification only // when you choose to change the default value for Adaptive quantization. Enable // this setting to have the encoder reduce I-frame pop. I-frame pop appears as a // visual flicker that can arise when the encoder saves bits by copying some // macroblocks many times from frame to frame, and then refreshes them at the // I-frame. When you enable this setting, the encoder updates these macroblocks // slightly more often to smooth out the flicker. This setting is disabled by // default. Related setting: In addition to enabling this setting, you must also // set Adaptive quantization (adaptiveQuantization) to a value other than Off (OFF) // or Auto (AUTO). Use Adaptive quantization to adjust the degree of smoothing that // Flicker adaptive quantization provides. FlickerAdaptiveQuantization XavcFlickerAdaptiveQuantization // Specify whether the encoder uses B-frames as reference frames for other // pictures in the same GOP. Choose Allow (ENABLED) to allow the encoder to use // B-frames as reference frames. Choose Don't allow (DISABLED) to prevent the // encoder from using B-frames as reference frames. GopBReference XavcGopBReference // Frequency of closed GOPs. In streaming applications, it is recommended that // this be set to 1 so a decoder joining mid-stream will receive an IDR frame as // quickly as possible. Setting this value to 0 will break output segmenting. GopClosedCadence int32 // Specify the size of the buffer that MediaConvert uses in the HRD buffer model // for this output. Specify this value in bits; for example, enter five megabits as // 5000000. When you don't set this value, or you set it to zero, MediaConvert // calculates the default by doubling the bitrate of this output point. HrdBufferSize int32 // Choose the scan line type for the output. Keep the default value, Progressive // (PROGRESSIVE) to create a progressive output, regardless of the scan type of // your input. Use Top field first (TOP_FIELD) or Bottom field first (BOTTOM_FIELD) // to create an output that's interlaced with the same field polarity throughout. // Use Follow, default top (FOLLOW_TOP_FIELD) or Follow, default bottom // (FOLLOW_BOTTOM_FIELD) to produce outputs with the same field polarity as the // source. For jobs that have multiple inputs, the output field polarity might // change over the course of the output. Follow behavior depends on the input scan // type. If the source is interlaced, the output will be interlaced with the same // polarity as the source. If the source is progressive, the output will be // interlaced with top field bottom field first, depending on which of the Follow // options you choose. InterlaceMode XavcInterlaceMode // Optional. Use Quality tuning level (qualityTuningLevel) to choose how you want // to trade off encoding speed for output video quality. The default behavior is // faster, lower quality, single-pass encoding. QualityTuningLevel XavcHdProfileQualityTuningLevel // Number of slices per picture. Must be less than or equal to the number of // macroblock rows for progressive pictures, and less than or equal to half the // number of macroblock rows for interlaced pictures. Slices int32 // Ignore this setting unless you set Frame rate (framerateNumerator divided by // framerateDenominator) to 29.970. If your input framerate is 23.976, choose Hard // (HARD). Otherwise, keep the default value None (NONE). For more information, see // https://docs.aws.amazon.com/mediaconvert/latest/ug/working-with-telecine-and-inverse-telecine.html. Telecine XavcHdProfileTelecine noSmithyDocumentSerde } // Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the // value XAVC. type XavcSettings struct { // Keep the default value, Auto (AUTO), for this setting to have MediaConvert // automatically apply the best types of quantization for your video content. When // you want to apply your quantization settings manually, you must set Adaptive // quantization (adaptiveQuantization) to a value other than Auto (AUTO). Use this // setting to specify the strength of any adaptive quantization filters that you // enable. If you don't want MediaConvert to do any adaptive quantization in this // transcode, set Adaptive quantization to Off (OFF). Related settings: The value // that you choose here applies to the following settings: Flicker adaptive // quantization (flickerAdaptiveQuantization), Spatial adaptive quantization // (spatialAdaptiveQuantization), and Temporal adaptive quantization // (temporalAdaptiveQuantization). AdaptiveQuantization XavcAdaptiveQuantization // Optional. Choose a specific entropy encoding mode only when you want to // override XAVC recommendations. If you choose the value auto, MediaConvert uses // the mode that the XAVC file format specifies given this output's operating // point. EntropyEncoding XavcEntropyEncoding // If you are using the console, use the Frame rate setting to specify the frame // rate for this output. If you want to keep the same frame rate as the input // video, choose Follow source. If you want to do frame rate conversion, choose a // frame rate from the dropdown list. The framerates shown in the dropdown list are // decimal approximations of fractions. If you are creating your transcoding job // specification as a JSON file without the console, use FramerateControl to // specify which value the service uses for the frame rate for this output. Choose // INITIALIZE_FROM_SOURCE if you want the service to use the frame rate from the // input. Choose SPECIFIED if you want the service to use the frame rate that you // specify in the settings FramerateNumerator and FramerateDenominator. FramerateControl XavcFramerateControl // Choose the method that you want MediaConvert to use when increasing or // decreasing the frame rate. For numerically simple conversions, such as 60 fps to // 30 fps: We recommend that you keep the default value, Drop duplicate. For // numerically complex conversions, to avoid stutter: Choose Interpolate. This // results in a smooth picture, but might introduce undesirable video artifacts. // For complex frame rate conversions, especially if your source video has already // been converted from its original cadence: Choose FrameFormer to do // motion-compensated interpolation. FrameFormer uses the best conversion method // frame by frame. Note that using FrameFormer increases the transcoding time and // incurs a significant add-on cost. When you choose FrameFormer, your input video // resolution must be at least 128x96. FramerateConversionAlgorithm XavcFramerateConversionAlgorithm // When you use the API for transcode jobs that use frame rate conversion, specify // the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use // FramerateDenominator to specify the denominator of this fraction. In this // example, use 1001 for the value of FramerateDenominator. When you use the // console for transcode jobs that use frame rate conversion, provide the value as // a decimal number for Frame rate. In this example, specify 23.976. FramerateDenominator int32 // When you use the API for transcode jobs that use frame rate conversion, specify // the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use // FramerateNumerator to specify the numerator of this fraction. In this example, // use 24000 for the value of FramerateNumerator. When you use the console for // transcode jobs that use frame rate conversion, provide the value as a decimal // number for Framerate. In this example, specify 23.976. FramerateNumerator int32 // Specify the XAVC profile for this output. For more information, see the Sony // documentation at https://www.xavc-info.org/. Note that MediaConvert doesn't // support the interlaced video XAVC operating points for XAVC_HD_INTRA_CBG. To // create an interlaced XAVC output, choose the profile XAVC_HD. Profile XavcProfile // Ignore this setting unless your input frame rate is 23.976 or 24 frames per // second (fps). Enable slow PAL to create a 25 fps output by relabeling the video // frames and resampling your audio. Note that enabling this setting will slightly // reduce the duration of your video. Related settings: You must also set Frame // rate to 25. In your JSON job specification, set (framerateControl) to // (SPECIFIED), (framerateNumerator) to 25 and (framerateDenominator) to 1. SlowPal XavcSlowPal // Ignore this setting unless your downstream workflow requires that you specify // it explicitly. Otherwise, we recommend that you adjust the softness of your // output by using a lower value for the setting Sharpness (sharpness) or by // enabling a noise reducer filter (noiseReducerFilter). The Softness (softness) // setting specifies the quantization matrices that the encoder uses. Keep the // default value, 0, for flat quantization. Choose the value 1 or 16 to use the // default JVT softening quantization matricies from the H.264 specification. // Choose a value from 17 to 128 to use planar interpolation. Increasing values // from 17 to 128 result in increasing reduction of high-frequency data. The value // 128 results in the softest video. Softness int32 // The best way to set up adaptive quantization is to keep the default value, Auto // (AUTO), for the setting Adaptive quantization (adaptiveQuantization). When you // do so, MediaConvert automatically applies the best types of quantization for // your video content. Include this setting in your JSON job specification only // when you choose to change the default value for Adaptive quantization. For this // setting, keep the default value, Enabled (ENABLED), to adjust quantization // within each frame based on spatial variation of content complexity. When you // enable this feature, the encoder uses fewer bits on areas that can sustain more // distortion with no noticeable visual degradation and uses more bits on areas // where any small distortion will be noticeable. For example, complex textured // blocks are encoded with fewer bits and smooth textured blocks are encoded with // more bits. Enabling this feature will almost always improve your video quality. // Note, though, that this feature doesn't take into account where the viewer's // attention is likely to be. If viewers are likely to be focusing their attention // on a part of the screen with a lot of complex texture, you might choose to // disable this feature. Related setting: When you enable spatial adaptive // quantization, set the value for Adaptive quantization (adaptiveQuantization) // depending on your content. For homogeneous content, such as cartoons and video // games, set it to Low. For content with a wider variety of textures, set it to // High or Higher. SpatialAdaptiveQuantization XavcSpatialAdaptiveQuantization // The best way to set up adaptive quantization is to keep the default value, Auto // (AUTO), for the setting Adaptive quantization (adaptiveQuantization). When you // do so, MediaConvert automatically applies the best types of quantization for // your video content. Include this setting in your JSON job specification only // when you choose to change the default value for Adaptive quantization. For this // setting, keep the default value, Enabled (ENABLED), to adjust quantization // within each frame based on temporal variation of content complexity. When you // enable this feature, the encoder uses fewer bits on areas of the frame that // aren't moving and uses more bits on complex objects with sharp edges that move a // lot. For example, this feature improves the readability of text tickers on // newscasts and scoreboards on sports matches. Enabling this feature will almost // always improve your video quality. Note, though, that this feature doesn't take // into account where the viewer's attention is likely to be. If viewers are likely // to be focusing their attention on a part of the screen that doesn't have moving // objects with sharp edges, such as sports athletes' faces, you might choose to // disable this feature. Related setting: When you enable temporal adaptive // quantization, adjust the strength of the filter with the setting Adaptive // quantization (adaptiveQuantization). TemporalAdaptiveQuantization XavcTemporalAdaptiveQuantization // Required when you set (Profile) under // (VideoDescription)>(CodecSettings)>(XavcSettings) to the value // XAVC_4K_INTRA_CBG. Xavc4kIntraCbgProfileSettings *Xavc4kIntraCbgProfileSettings // Required when you set (Profile) under // (VideoDescription)>(CodecSettings)>(XavcSettings) to the value // XAVC_4K_INTRA_VBR. Xavc4kIntraVbrProfileSettings *Xavc4kIntraVbrProfileSettings // Required when you set (Profile) under // (VideoDescription)>(CodecSettings)>(XavcSettings) to the value XAVC_4K. Xavc4kProfileSettings *Xavc4kProfileSettings // Required when you set (Profile) under // (VideoDescription)>(CodecSettings)>(XavcSettings) to the value // XAVC_HD_INTRA_CBG. XavcHdIntraCbgProfileSettings *XavcHdIntraCbgProfileSettings // Required when you set (Profile) under // (VideoDescription)>(CodecSettings)>(XavcSettings) to the value XAVC_HD. XavcHdProfileSettings *XavcHdProfileSettings noSmithyDocumentSerde } type noSmithyDocumentSerde = smithydocument.NoSerde
8,834
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" cryptorand "crypto/rand" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/aws/defaults" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/retry" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" internalConfig "github.com/aws/aws-sdk-go-v2/internal/configsources" smithy "github.com/aws/smithy-go" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/logging" "github.com/aws/smithy-go/middleware" smithyrand "github.com/aws/smithy-go/rand" smithyhttp "github.com/aws/smithy-go/transport/http" "net" "net/http" "time" ) const ServiceID = "MediaLive" const ServiceAPIVersion = "2017-10-14" // Client provides the API client to make operations call for AWS Elemental // MediaLive. type Client struct { options Options } // New returns an initialized Client based on the functional options. Provide // additional functional options to further configure the behavior of the client, // such as changing the client's endpoint or adding custom middleware behavior. func New(options Options, optFns ...func(*Options)) *Client { options = options.Copy() resolveDefaultLogger(&options) setResolvedDefaultsMode(&options) resolveRetryer(&options) resolveHTTPClient(&options) resolveHTTPSignerV4(&options) resolveDefaultEndpointConfiguration(&options) resolveIdempotencyTokenProvider(&options) for _, fn := range optFns { fn(&options) } client := &Client{ options: options, } return client } type Options struct { // Set of options to modify how an operation is invoked. These apply to all // operations invoked for this client. Use functional options on operation call to // modify this list for per operation behavior. APIOptions []func(*middleware.Stack) error // Configures the events that will be sent to the configured logger. ClientLogMode aws.ClientLogMode // The credentials object to use when signing requests. Credentials aws.CredentialsProvider // The configuration DefaultsMode that the SDK should use when constructing the // clients initial default settings. DefaultsMode aws.DefaultsMode // The endpoint options to be used when attempting to resolve an endpoint. EndpointOptions EndpointResolverOptions // The service endpoint resolver. EndpointResolver EndpointResolver // Signature Version 4 (SigV4) Signer HTTPSignerV4 HTTPSignerV4 // Provides idempotency tokens values that will be automatically populated into // idempotent API operations. IdempotencyTokenProvider IdempotencyTokenProvider // The logger writer interface to write logging messages to. Logger logging.Logger // The region to send requests to. (Required) Region string // RetryMaxAttempts specifies the maximum number attempts an API client will call // an operation that fails with a retryable error. A value of 0 is ignored, and // will not be used to configure the API client created default retryer, or modify // per operation call's retry max attempts. When creating a new API Clients this // member will only be used if the Retryer Options member is nil. This value will // be ignored if Retryer is not nil. If specified in an operation call's functional // options with a value that is different than the constructed client's Options, // the Client's Retryer will be wrapped to use the operation's specific // RetryMaxAttempts value. RetryMaxAttempts int // RetryMode specifies the retry mode the API client will be created with, if // Retryer option is not also specified. When creating a new API Clients this // member will only be used if the Retryer Options member is nil. This value will // be ignored if Retryer is not nil. Currently does not support per operation call // overrides, may in the future. RetryMode aws.RetryMode // Retryer guides how HTTP requests should be retried in case of recoverable // failures. When nil the API client will use a default retryer. The kind of // default retry created by the API client can be changed with the RetryMode // option. Retryer aws.Retryer // The RuntimeEnvironment configuration, only populated if the DefaultsMode is set // to DefaultsModeAuto and is initialized using config.LoadDefaultConfig . You // should not populate this structure programmatically, or rely on the values here // within your applications. RuntimeEnvironment aws.RuntimeEnvironment // The initial DefaultsMode used when the client options were constructed. If the // DefaultsMode was set to aws.DefaultsModeAuto this will store what the resolved // value was at that point in time. Currently does not support per operation call // overrides, may in the future. resolvedDefaultsMode aws.DefaultsMode // The HTTP client to invoke API calls with. Defaults to client's default HTTP // implementation if nil. HTTPClient HTTPClient } // WithAPIOptions returns a functional option for setting the Client's APIOptions // option. func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options) { return func(o *Options) { o.APIOptions = append(o.APIOptions, optFns...) } } // WithEndpointResolver returns a functional option for setting the Client's // EndpointResolver option. func WithEndpointResolver(v EndpointResolver) func(*Options) { return func(o *Options) { o.EndpointResolver = v } } type HTTPClient interface { Do(*http.Request) (*http.Response, error) } // Copy creates a clone where the APIOptions list is deep copied. func (o Options) Copy() Options { to := o to.APIOptions = make([]func(*middleware.Stack) error, len(o.APIOptions)) copy(to.APIOptions, o.APIOptions) return to } func (c *Client) invokeOperation(ctx context.Context, opID string, params interface{}, optFns []func(*Options), stackFns ...func(*middleware.Stack, Options) error) (result interface{}, metadata middleware.Metadata, err error) { ctx = middleware.ClearStackValues(ctx) stack := middleware.NewStack(opID, smithyhttp.NewStackRequest) options := c.options.Copy() for _, fn := range optFns { fn(&options) } finalizeRetryMaxAttemptOptions(&options, *c) finalizeClientEndpointResolverOptions(&options) for _, fn := range stackFns { if err := fn(stack, options); err != nil { return nil, metadata, err } } for _, fn := range options.APIOptions { if err := fn(stack); err != nil { return nil, metadata, err } } handler := middleware.DecorateHandler(smithyhttp.NewClientHandler(options.HTTPClient), stack) result, metadata, err = handler.Handle(ctx, params) if err != nil { err = &smithy.OperationError{ ServiceID: ServiceID, OperationName: opID, Err: err, } } return result, metadata, err } type noSmithyDocumentSerde = smithydocument.NoSerde func resolveDefaultLogger(o *Options) { if o.Logger != nil { return } o.Logger = logging.Nop{} } func addSetLoggerMiddleware(stack *middleware.Stack, o Options) error { return middleware.AddSetLoggerMiddleware(stack, o.Logger) } func setResolvedDefaultsMode(o *Options) { if len(o.resolvedDefaultsMode) > 0 { return } var mode aws.DefaultsMode mode.SetFromString(string(o.DefaultsMode)) if mode == aws.DefaultsModeAuto { mode = defaults.ResolveDefaultsModeAuto(o.Region, o.RuntimeEnvironment) } o.resolvedDefaultsMode = mode } // NewFromConfig returns a new client from the provided config. func NewFromConfig(cfg aws.Config, optFns ...func(*Options)) *Client { opts := Options{ Region: cfg.Region, DefaultsMode: cfg.DefaultsMode, RuntimeEnvironment: cfg.RuntimeEnvironment, HTTPClient: cfg.HTTPClient, Credentials: cfg.Credentials, APIOptions: cfg.APIOptions, Logger: cfg.Logger, ClientLogMode: cfg.ClientLogMode, } resolveAWSRetryerProvider(cfg, &opts) resolveAWSRetryMaxAttempts(cfg, &opts) resolveAWSRetryMode(cfg, &opts) resolveAWSEndpointResolver(cfg, &opts) resolveUseDualStackEndpoint(cfg, &opts) resolveUseFIPSEndpoint(cfg, &opts) return New(opts, optFns...) } func resolveHTTPClient(o *Options) { var buildable *awshttp.BuildableClient if o.HTTPClient != nil { var ok bool buildable, ok = o.HTTPClient.(*awshttp.BuildableClient) if !ok { return } } else { buildable = awshttp.NewBuildableClient() } modeConfig, err := defaults.GetModeConfiguration(o.resolvedDefaultsMode) if err == nil { buildable = buildable.WithDialerOptions(func(dialer *net.Dialer) { if dialerTimeout, ok := modeConfig.GetConnectTimeout(); ok { dialer.Timeout = dialerTimeout } }) buildable = buildable.WithTransportOptions(func(transport *http.Transport) { if tlsHandshakeTimeout, ok := modeConfig.GetTLSNegotiationTimeout(); ok { transport.TLSHandshakeTimeout = tlsHandshakeTimeout } }) } o.HTTPClient = buildable } func resolveRetryer(o *Options) { if o.Retryer != nil { return } if len(o.RetryMode) == 0 { modeConfig, err := defaults.GetModeConfiguration(o.resolvedDefaultsMode) if err == nil { o.RetryMode = modeConfig.RetryMode } } if len(o.RetryMode) == 0 { o.RetryMode = aws.RetryModeStandard } var standardOptions []func(*retry.StandardOptions) if v := o.RetryMaxAttempts; v != 0 { standardOptions = append(standardOptions, func(so *retry.StandardOptions) { so.MaxAttempts = v }) } switch o.RetryMode { case aws.RetryModeAdaptive: var adaptiveOptions []func(*retry.AdaptiveModeOptions) if len(standardOptions) != 0 { adaptiveOptions = append(adaptiveOptions, func(ao *retry.AdaptiveModeOptions) { ao.StandardOptions = append(ao.StandardOptions, standardOptions...) }) } o.Retryer = retry.NewAdaptiveMode(adaptiveOptions...) default: o.Retryer = retry.NewStandard(standardOptions...) } } func resolveAWSRetryerProvider(cfg aws.Config, o *Options) { if cfg.Retryer == nil { return } o.Retryer = cfg.Retryer() } func resolveAWSRetryMode(cfg aws.Config, o *Options) { if len(cfg.RetryMode) == 0 { return } o.RetryMode = cfg.RetryMode } func resolveAWSRetryMaxAttempts(cfg aws.Config, o *Options) { if cfg.RetryMaxAttempts == 0 { return } o.RetryMaxAttempts = cfg.RetryMaxAttempts } func finalizeRetryMaxAttemptOptions(o *Options, client Client) { if v := o.RetryMaxAttempts; v == 0 || v == client.options.RetryMaxAttempts { return } o.Retryer = retry.AddWithMaxAttempts(o.Retryer, o.RetryMaxAttempts) } func resolveAWSEndpointResolver(cfg aws.Config, o *Options) { if cfg.EndpointResolver == nil && cfg.EndpointResolverWithOptions == nil { return } o.EndpointResolver = withEndpointResolver(cfg.EndpointResolver, cfg.EndpointResolverWithOptions, NewDefaultEndpointResolver()) } func addClientUserAgent(stack *middleware.Stack) error { return awsmiddleware.AddSDKAgentKeyValue(awsmiddleware.APIMetadata, "medialive", goModuleVersion)(stack) } func addHTTPSignerV4Middleware(stack *middleware.Stack, o Options) error { mw := v4.NewSignHTTPRequestMiddleware(v4.SignHTTPRequestMiddlewareOptions{ CredentialsProvider: o.Credentials, Signer: o.HTTPSignerV4, LogSigning: o.ClientLogMode.IsSigning(), }) return stack.Finalize.Add(mw, middleware.After) } type HTTPSignerV4 interface { SignHTTP(ctx context.Context, credentials aws.Credentials, r *http.Request, payloadHash string, service string, region string, signingTime time.Time, optFns ...func(*v4.SignerOptions)) error } func resolveHTTPSignerV4(o *Options) { if o.HTTPSignerV4 != nil { return } o.HTTPSignerV4 = newDefaultV4Signer(*o) } func newDefaultV4Signer(o Options) *v4.Signer { return v4.NewSigner(func(so *v4.SignerOptions) { so.Logger = o.Logger so.LogSigning = o.ClientLogMode.IsSigning() }) } func resolveIdempotencyTokenProvider(o *Options) { if o.IdempotencyTokenProvider != nil { return } o.IdempotencyTokenProvider = smithyrand.NewUUIDIdempotencyToken(cryptorand.Reader) } func addRetryMiddlewares(stack *middleware.Stack, o Options) error { mo := retry.AddRetryMiddlewaresOptions{ Retryer: o.Retryer, LogRetryAttempts: o.ClientLogMode.IsRetries(), } return retry.AddRetryMiddlewares(stack, mo) } // resolves dual-stack endpoint configuration func resolveUseDualStackEndpoint(cfg aws.Config, o *Options) error { if len(cfg.ConfigSources) == 0 { return nil } value, found, err := internalConfig.ResolveUseDualStackEndpoint(context.Background(), cfg.ConfigSources) if err != nil { return err } if found { o.EndpointOptions.UseDualStackEndpoint = value } return nil } // resolves FIPS endpoint configuration func resolveUseFIPSEndpoint(cfg aws.Config, o *Options) error { if len(cfg.ConfigSources) == 0 { return nil } value, found, err := internalConfig.ResolveUseFIPSEndpoint(context.Background(), cfg.ConfigSources) if err != nil { return err } if found { o.EndpointOptions.UseFIPSEndpoint = value } return nil } // IdempotencyTokenProvider interface for providing idempotency token type IdempotencyTokenProvider interface { GetIdempotencyToken() (string, error) } func addRequestIDRetrieverMiddleware(stack *middleware.Stack) error { return awsmiddleware.AddRequestIDRetrieverMiddleware(stack) } func addResponseErrorMiddleware(stack *middleware.Stack) error { return awshttp.AddResponseErrorMiddleware(stack) } func addRequestResponseLogging(stack *middleware.Stack, o Options) error { return stack.Deserialize.Add(&smithyhttp.RequestResponseLogger{ LogRequest: o.ClientLogMode.IsRequest(), LogRequestWithBody: o.ClientLogMode.IsRequestWithBody(), LogResponse: o.ClientLogMode.IsResponse(), LogResponseWithBody: o.ClientLogMode.IsResponseWithBody(), }, middleware.After) }
455
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" "io/ioutil" "net/http" "strings" "testing" ) func TestClient_resolveRetryOptions(t *testing.T) { nopClient := smithyhttp.ClientDoFunc(func(_ *http.Request) (*http.Response, error) { return &http.Response{ StatusCode: 200, Header: http.Header{}, Body: ioutil.NopCloser(strings.NewReader("")), }, nil }) cases := map[string]struct { defaultsMode aws.DefaultsMode retryer aws.Retryer retryMaxAttempts int opRetryMaxAttempts *int retryMode aws.RetryMode expectClientRetryMode aws.RetryMode expectClientMaxAttempts int expectOpMaxAttempts int }{ "defaults": { defaultsMode: aws.DefaultsModeStandard, expectClientRetryMode: aws.RetryModeStandard, expectClientMaxAttempts: 3, expectOpMaxAttempts: 3, }, "custom default retry": { retryMode: aws.RetryModeAdaptive, retryMaxAttempts: 10, expectClientRetryMode: aws.RetryModeAdaptive, expectClientMaxAttempts: 10, expectOpMaxAttempts: 10, }, "custom op max attempts": { retryMode: aws.RetryModeAdaptive, retryMaxAttempts: 10, opRetryMaxAttempts: aws.Int(2), expectClientRetryMode: aws.RetryModeAdaptive, expectClientMaxAttempts: 10, expectOpMaxAttempts: 2, }, "custom op no change max attempts": { retryMode: aws.RetryModeAdaptive, retryMaxAttempts: 10, opRetryMaxAttempts: aws.Int(10), expectClientRetryMode: aws.RetryModeAdaptive, expectClientMaxAttempts: 10, expectOpMaxAttempts: 10, }, "custom op 0 max attempts": { retryMode: aws.RetryModeAdaptive, retryMaxAttempts: 10, opRetryMaxAttempts: aws.Int(0), expectClientRetryMode: aws.RetryModeAdaptive, expectClientMaxAttempts: 10, expectOpMaxAttempts: 10, }, } for name, c := range cases { t.Run(name, func(t *testing.T) { client := NewFromConfig(aws.Config{ DefaultsMode: c.defaultsMode, Retryer: func() func() aws.Retryer { if c.retryer == nil { return nil } return func() aws.Retryer { return c.retryer } }(), HTTPClient: nopClient, RetryMaxAttempts: c.retryMaxAttempts, RetryMode: c.retryMode, }) if e, a := c.expectClientRetryMode, client.options.RetryMode; e != a { t.Errorf("expect %v retry mode, got %v", e, a) } if e, a := c.expectClientMaxAttempts, client.options.Retryer.MaxAttempts(); e != a { t.Errorf("expect %v max attempts, got %v", e, a) } _, _, err := client.invokeOperation(context.Background(), "mockOperation", struct{}{}, []func(*Options){ func(o *Options) { if c.opRetryMaxAttempts == nil { return } o.RetryMaxAttempts = *c.opRetryMaxAttempts }, }, func(s *middleware.Stack, o Options) error { s.Initialize.Clear() s.Serialize.Clear() s.Build.Clear() s.Finalize.Clear() s.Deserialize.Clear() if e, a := c.expectOpMaxAttempts, o.Retryer.MaxAttempts(); e != a { t.Errorf("expect %v op max attempts, got %v", e, a) } return nil }) if err != nil { t.Fatalf("expect no operation error, got %v", err) } }) } }
124
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Accept an incoming input device transfer. The ownership of the device will // transfer to your AWS account. func (c *Client) AcceptInputDeviceTransfer(ctx context.Context, params *AcceptInputDeviceTransferInput, optFns ...func(*Options)) (*AcceptInputDeviceTransferOutput, error) { if params == nil { params = &AcceptInputDeviceTransferInput{} } result, metadata, err := c.invokeOperation(ctx, "AcceptInputDeviceTransfer", params, optFns, c.addOperationAcceptInputDeviceTransferMiddlewares) if err != nil { return nil, err } out := result.(*AcceptInputDeviceTransferOutput) out.ResultMetadata = metadata return out, nil } // Placeholder documentation for AcceptInputDeviceTransferRequest type AcceptInputDeviceTransferInput struct { // The unique ID of the input device to accept. For example, hd-123456789abcdef. // // This member is required. InputDeviceId *string noSmithyDocumentSerde } // Placeholder documentation for AcceptInputDeviceTransferResponse type AcceptInputDeviceTransferOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationAcceptInputDeviceTransferMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpAcceptInputDeviceTransfer{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpAcceptInputDeviceTransfer{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpAcceptInputDeviceTransferValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAcceptInputDeviceTransfer(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opAcceptInputDeviceTransfer(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "AcceptInputDeviceTransfer", } }
123
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/medialive/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Starts delete of resources. func (c *Client) BatchDelete(ctx context.Context, params *BatchDeleteInput, optFns ...func(*Options)) (*BatchDeleteOutput, error) { if params == nil { params = &BatchDeleteInput{} } result, metadata, err := c.invokeOperation(ctx, "BatchDelete", params, optFns, c.addOperationBatchDeleteMiddlewares) if err != nil { return nil, err } out := result.(*BatchDeleteOutput) out.ResultMetadata = metadata return out, nil } // A request to delete resources type BatchDeleteInput struct { // List of channel IDs ChannelIds []string // List of input IDs InputIds []string // List of input security group IDs InputSecurityGroupIds []string // List of multiplex IDs MultiplexIds []string noSmithyDocumentSerde } // Placeholder documentation for BatchDeleteResponse type BatchDeleteOutput struct { // List of failed operations Failed []types.BatchFailedResultModel // List of successful operations Successful []types.BatchSuccessfulResultModel // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationBatchDeleteMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpBatchDelete{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpBatchDelete{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opBatchDelete(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opBatchDelete(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "BatchDelete", } }
134
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/medialive/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Starts existing resources func (c *Client) BatchStart(ctx context.Context, params *BatchStartInput, optFns ...func(*Options)) (*BatchStartOutput, error) { if params == nil { params = &BatchStartInput{} } result, metadata, err := c.invokeOperation(ctx, "BatchStart", params, optFns, c.addOperationBatchStartMiddlewares) if err != nil { return nil, err } out := result.(*BatchStartOutput) out.ResultMetadata = metadata return out, nil } // A request to start resources type BatchStartInput struct { // List of channel IDs ChannelIds []string // List of multiplex IDs MultiplexIds []string noSmithyDocumentSerde } // Placeholder documentation for BatchStartResponse type BatchStartOutput struct { // List of failed operations Failed []types.BatchFailedResultModel // List of successful operations Successful []types.BatchSuccessfulResultModel // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationBatchStartMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpBatchStart{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpBatchStart{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opBatchStart(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opBatchStart(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "BatchStart", } }
128
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/medialive/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Stops running resources func (c *Client) BatchStop(ctx context.Context, params *BatchStopInput, optFns ...func(*Options)) (*BatchStopOutput, error) { if params == nil { params = &BatchStopInput{} } result, metadata, err := c.invokeOperation(ctx, "BatchStop", params, optFns, c.addOperationBatchStopMiddlewares) if err != nil { return nil, err } out := result.(*BatchStopOutput) out.ResultMetadata = metadata return out, nil } // A request to stop resources type BatchStopInput struct { // List of channel IDs ChannelIds []string // List of multiplex IDs MultiplexIds []string noSmithyDocumentSerde } // Placeholder documentation for BatchStopResponse type BatchStopOutput struct { // List of failed operations Failed []types.BatchFailedResultModel // List of successful operations Successful []types.BatchSuccessfulResultModel // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationBatchStopMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpBatchStop{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpBatchStop{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opBatchStop(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opBatchStop(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "BatchStop", } }
128
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/medialive/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Update a channel schedule func (c *Client) BatchUpdateSchedule(ctx context.Context, params *BatchUpdateScheduleInput, optFns ...func(*Options)) (*BatchUpdateScheduleOutput, error) { if params == nil { params = &BatchUpdateScheduleInput{} } result, metadata, err := c.invokeOperation(ctx, "BatchUpdateSchedule", params, optFns, c.addOperationBatchUpdateScheduleMiddlewares) if err != nil { return nil, err } out := result.(*BatchUpdateScheduleOutput) out.ResultMetadata = metadata return out, nil } // List of actions to create and list of actions to delete. type BatchUpdateScheduleInput struct { // Id of the channel whose schedule is being updated. // // This member is required. ChannelId *string // Schedule actions to create in the schedule. Creates *types.BatchScheduleActionCreateRequest // Schedule actions to delete from the schedule. Deletes *types.BatchScheduleActionDeleteRequest noSmithyDocumentSerde } // Placeholder documentation for BatchUpdateScheduleResponse type BatchUpdateScheduleOutput struct { // Schedule actions created in the schedule. Creates *types.BatchScheduleActionCreateResult // Schedule actions deleted from the schedule. Deletes *types.BatchScheduleActionDeleteResult // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationBatchUpdateScheduleMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpBatchUpdateSchedule{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpBatchUpdateSchedule{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpBatchUpdateScheduleValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opBatchUpdateSchedule(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opBatchUpdateSchedule(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "BatchUpdateSchedule", } }
136
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Cancel an input device transfer that you have requested. func (c *Client) CancelInputDeviceTransfer(ctx context.Context, params *CancelInputDeviceTransferInput, optFns ...func(*Options)) (*CancelInputDeviceTransferOutput, error) { if params == nil { params = &CancelInputDeviceTransferInput{} } result, metadata, err := c.invokeOperation(ctx, "CancelInputDeviceTransfer", params, optFns, c.addOperationCancelInputDeviceTransferMiddlewares) if err != nil { return nil, err } out := result.(*CancelInputDeviceTransferOutput) out.ResultMetadata = metadata return out, nil } // Placeholder documentation for CancelInputDeviceTransferRequest type CancelInputDeviceTransferInput struct { // The unique ID of the input device to cancel. For example, hd-123456789abcdef. // // This member is required. InputDeviceId *string noSmithyDocumentSerde } // Placeholder documentation for CancelInputDeviceTransferResponse type CancelInputDeviceTransferOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationCancelInputDeviceTransferMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpCancelInputDeviceTransfer{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCancelInputDeviceTransfer{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpCancelInputDeviceTransferValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCancelInputDeviceTransfer(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opCancelInputDeviceTransfer(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "CancelInputDeviceTransfer", } }
122
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Send a request to claim an AWS Elemental device that you have purchased from a // third-party vendor. After the request succeeds, you will own the device. func (c *Client) ClaimDevice(ctx context.Context, params *ClaimDeviceInput, optFns ...func(*Options)) (*ClaimDeviceOutput, error) { if params == nil { params = &ClaimDeviceInput{} } result, metadata, err := c.invokeOperation(ctx, "ClaimDevice", params, optFns, c.addOperationClaimDeviceMiddlewares) if err != nil { return nil, err } out := result.(*ClaimDeviceOutput) out.ResultMetadata = metadata return out, nil } // A request to claim an AWS Elemental device that you have purchased from a // third-party vendor. type ClaimDeviceInput struct { // The id of the device you want to claim. Id *string noSmithyDocumentSerde } // Placeholder documentation for ClaimDeviceResponse type ClaimDeviceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationClaimDeviceMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpClaimDevice{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpClaimDevice{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opClaimDevice(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opClaimDevice(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "ClaimDevice", } }
119
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/medialive/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Creates a new channel func (c *Client) CreateChannel(ctx context.Context, params *CreateChannelInput, optFns ...func(*Options)) (*CreateChannelOutput, error) { if params == nil { params = &CreateChannelInput{} } result, metadata, err := c.invokeOperation(ctx, "CreateChannel", params, optFns, c.addOperationCreateChannelMiddlewares) if err != nil { return nil, err } out := result.(*CreateChannelOutput) out.ResultMetadata = metadata return out, nil } // A request to create a channel type CreateChannelInput struct { // Specification of CDI inputs for this channel CdiInputSpecification *types.CdiInputSpecification // The class for this channel. STANDARD for a channel with two pipelines or // SINGLE_PIPELINE for a channel with one pipeline. ChannelClass types.ChannelClass // Placeholder documentation for __listOfOutputDestination Destinations []types.OutputDestination // Encoder Settings EncoderSettings *types.EncoderSettings // List of input attachments for channel. InputAttachments []types.InputAttachment // Specification of network and file inputs for this channel InputSpecification *types.InputSpecification // The log level to write to CloudWatch Logs. LogLevel types.LogLevel // Maintenance settings for this channel. Maintenance *types.MaintenanceCreateSettings // Name of channel. Name *string // Unique request ID to be specified. This is needed to prevent retries from // creating multiple resources. RequestId *string // Deprecated field that's only usable by whitelisted customers. // // Deprecated: This member has been deprecated. Reserved *string // An optional Amazon Resource Name (ARN) of the role to assume when running the // Channel. RoleArn *string // A collection of key-value pairs. Tags map[string]string // Settings for the VPC outputs Vpc *types.VpcOutputSettings noSmithyDocumentSerde } // Placeholder documentation for CreateChannelResponse type CreateChannelOutput struct { // Placeholder documentation for Channel Channel *types.Channel // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationCreateChannelMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateChannel{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateChannel{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addIdempotencyToken_opCreateChannelMiddleware(stack, options); err != nil { return err } if err = addOpCreateChannelValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateChannel(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } type idempotencyToken_initializeOpCreateChannel struct { tokenProvider IdempotencyTokenProvider } func (*idempotencyToken_initializeOpCreateChannel) ID() string { return "OperationIdempotencyTokenAutoFill" } func (m *idempotencyToken_initializeOpCreateChannel) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { if m.tokenProvider == nil { return next.HandleInitialize(ctx, in) } input, ok := in.Parameters.(*CreateChannelInput) if !ok { return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateChannelInput ") } if input.RequestId == nil { t, err := m.tokenProvider.GetIdempotencyToken() if err != nil { return out, metadata, err } input.RequestId = &t } return next.HandleInitialize(ctx, in) } func addIdempotencyToken_opCreateChannelMiddleware(stack *middleware.Stack, cfg Options) error { return stack.Initialize.Add(&idempotencyToken_initializeOpCreateChannel{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) } func newServiceMetadataMiddleware_opCreateChannel(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "CreateChannel", } }
206
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/medialive/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Create an input func (c *Client) CreateInput(ctx context.Context, params *CreateInputInput, optFns ...func(*Options)) (*CreateInputOutput, error) { if params == nil { params = &CreateInputInput{} } result, metadata, err := c.invokeOperation(ctx, "CreateInput", params, optFns, c.addOperationCreateInputMiddlewares) if err != nil { return nil, err } out := result.(*CreateInputOutput) out.ResultMetadata = metadata return out, nil } // The name of the input type CreateInputInput struct { // Destination settings for PUSH type inputs. Destinations []types.InputDestinationRequest // Settings for the devices. InputDevices []types.InputDeviceSettings // A list of security groups referenced by IDs to attach to the input. InputSecurityGroups []string // A list of the MediaConnect Flows that you want to use in this input. You can // specify as few as one Flow and presently, as many as two. The only requirement // is when you have more than one is that each Flow is in a separate Availability // Zone as this ensures your EML input is redundant to AZ issues. MediaConnectFlows []types.MediaConnectFlowRequest // Name of the input. Name *string // Unique identifier of the request to ensure the request is handled exactly once // in case of retries. RequestId *string // The Amazon Resource Name (ARN) of the role this input assumes during and after // creation. RoleArn *string // The source URLs for a PULL-type input. Every PULL type input needs exactly two // source URLs for redundancy. Only specify sources for PULL type Inputs. Leave // Destinations empty. Sources []types.InputSourceRequest // A collection of key-value pairs. Tags map[string]string // The different types of inputs that AWS Elemental MediaLive supports. Type types.InputType // Settings for a private VPC Input. When this property is specified, the input // destination addresses will be created in a VPC rather than with public Internet // addresses. This property requires setting the roleArn property on Input // creation. Not compatible with the inputSecurityGroups property. Vpc *types.InputVpcRequest noSmithyDocumentSerde } // Placeholder documentation for CreateInputResponse type CreateInputOutput struct { // Placeholder documentation for Input Input *types.Input // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationCreateInputMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateInput{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateInput{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addIdempotencyToken_opCreateInputMiddleware(stack, options); err != nil { return err } if err = addOpCreateInputValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateInput(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } type idempotencyToken_initializeOpCreateInput struct { tokenProvider IdempotencyTokenProvider } func (*idempotencyToken_initializeOpCreateInput) ID() string { return "OperationIdempotencyTokenAutoFill" } func (m *idempotencyToken_initializeOpCreateInput) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { if m.tokenProvider == nil { return next.HandleInitialize(ctx, in) } input, ok := in.Parameters.(*CreateInputInput) if !ok { return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateInputInput ") } if input.RequestId == nil { t, err := m.tokenProvider.GetIdempotencyToken() if err != nil { return out, metadata, err } input.RequestId = &t } return next.HandleInitialize(ctx, in) } func addIdempotencyToken_opCreateInputMiddleware(stack *middleware.Stack, cfg Options) error { return stack.Initialize.Add(&idempotencyToken_initializeOpCreateInput{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) } func newServiceMetadataMiddleware_opCreateInput(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "CreateInput", } }
202
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/medialive/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Creates a Input Security Group func (c *Client) CreateInputSecurityGroup(ctx context.Context, params *CreateInputSecurityGroupInput, optFns ...func(*Options)) (*CreateInputSecurityGroupOutput, error) { if params == nil { params = &CreateInputSecurityGroupInput{} } result, metadata, err := c.invokeOperation(ctx, "CreateInputSecurityGroup", params, optFns, c.addOperationCreateInputSecurityGroupMiddlewares) if err != nil { return nil, err } out := result.(*CreateInputSecurityGroupOutput) out.ResultMetadata = metadata return out, nil } // The IPv4 CIDRs to whitelist for this Input Security Group type CreateInputSecurityGroupInput struct { // A collection of key-value pairs. Tags map[string]string // List of IPv4 CIDR addresses to whitelist WhitelistRules []types.InputWhitelistRuleCidr noSmithyDocumentSerde } // Placeholder documentation for CreateInputSecurityGroupResponse type CreateInputSecurityGroupOutput struct { // An Input Security Group SecurityGroup *types.InputSecurityGroup // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationCreateInputSecurityGroupMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateInputSecurityGroup{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateInputSecurityGroup{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateInputSecurityGroup(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opCreateInputSecurityGroup(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "CreateInputSecurityGroup", } }
125
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/medialive/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Create a new multiplex. func (c *Client) CreateMultiplex(ctx context.Context, params *CreateMultiplexInput, optFns ...func(*Options)) (*CreateMultiplexOutput, error) { if params == nil { params = &CreateMultiplexInput{} } result, metadata, err := c.invokeOperation(ctx, "CreateMultiplex", params, optFns, c.addOperationCreateMultiplexMiddlewares) if err != nil { return nil, err } out := result.(*CreateMultiplexOutput) out.ResultMetadata = metadata return out, nil } // A request to create a multiplex. type CreateMultiplexInput struct { // A list of availability zones for the multiplex. You must specify exactly two. // // This member is required. AvailabilityZones []string // Configuration for a multiplex event. // // This member is required. MultiplexSettings *types.MultiplexSettings // Name of multiplex. // // This member is required. Name *string // Unique request ID. This prevents retries from creating multiple resources. // // This member is required. RequestId *string // A collection of key-value pairs. Tags map[string]string noSmithyDocumentSerde } // Placeholder documentation for CreateMultiplexResponse type CreateMultiplexOutput struct { // The newly created multiplex. Multiplex *types.Multiplex // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationCreateMultiplexMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateMultiplex{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateMultiplex{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addIdempotencyToken_opCreateMultiplexMiddleware(stack, options); err != nil { return err } if err = addOpCreateMultiplexValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateMultiplex(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } type idempotencyToken_initializeOpCreateMultiplex struct { tokenProvider IdempotencyTokenProvider } func (*idempotencyToken_initializeOpCreateMultiplex) ID() string { return "OperationIdempotencyTokenAutoFill" } func (m *idempotencyToken_initializeOpCreateMultiplex) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { if m.tokenProvider == nil { return next.HandleInitialize(ctx, in) } input, ok := in.Parameters.(*CreateMultiplexInput) if !ok { return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateMultiplexInput ") } if input.RequestId == nil { t, err := m.tokenProvider.GetIdempotencyToken() if err != nil { return out, metadata, err } input.RequestId = &t } return next.HandleInitialize(ctx, in) } func addIdempotencyToken_opCreateMultiplexMiddleware(stack *middleware.Stack, cfg Options) error { return stack.Initialize.Add(&idempotencyToken_initializeOpCreateMultiplex{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) } func newServiceMetadataMiddleware_opCreateMultiplex(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "CreateMultiplex", } }
182
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/medialive/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Create a new program in the multiplex. func (c *Client) CreateMultiplexProgram(ctx context.Context, params *CreateMultiplexProgramInput, optFns ...func(*Options)) (*CreateMultiplexProgramOutput, error) { if params == nil { params = &CreateMultiplexProgramInput{} } result, metadata, err := c.invokeOperation(ctx, "CreateMultiplexProgram", params, optFns, c.addOperationCreateMultiplexProgramMiddlewares) if err != nil { return nil, err } out := result.(*CreateMultiplexProgramOutput) out.ResultMetadata = metadata return out, nil } // A request to create a program in a multiplex. type CreateMultiplexProgramInput struct { // ID of the multiplex where the program is to be created. // // This member is required. MultiplexId *string // The settings for this multiplex program. // // This member is required. MultiplexProgramSettings *types.MultiplexProgramSettings // Name of multiplex program. // // This member is required. ProgramName *string // Unique request ID. This prevents retries from creating multiple resources. // // This member is required. RequestId *string noSmithyDocumentSerde } // Placeholder documentation for CreateMultiplexProgramResponse type CreateMultiplexProgramOutput struct { // The newly created multiplex program. MultiplexProgram *types.MultiplexProgram // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationCreateMultiplexProgramMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateMultiplexProgram{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateMultiplexProgram{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addIdempotencyToken_opCreateMultiplexProgramMiddleware(stack, options); err != nil { return err } if err = addOpCreateMultiplexProgramValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateMultiplexProgram(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } type idempotencyToken_initializeOpCreateMultiplexProgram struct { tokenProvider IdempotencyTokenProvider } func (*idempotencyToken_initializeOpCreateMultiplexProgram) ID() string { return "OperationIdempotencyTokenAutoFill" } func (m *idempotencyToken_initializeOpCreateMultiplexProgram) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { if m.tokenProvider == nil { return next.HandleInitialize(ctx, in) } input, ok := in.Parameters.(*CreateMultiplexProgramInput) if !ok { return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateMultiplexProgramInput ") } if input.RequestId == nil { t, err := m.tokenProvider.GetIdempotencyToken() if err != nil { return out, metadata, err } input.RequestId = &t } return next.HandleInitialize(ctx, in) } func addIdempotencyToken_opCreateMultiplexProgramMiddleware(stack *middleware.Stack, cfg Options) error { return stack.Initialize.Add(&idempotencyToken_initializeOpCreateMultiplexProgram{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) } func newServiceMetadataMiddleware_opCreateMultiplexProgram(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "CreateMultiplexProgram", } }
179
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/medialive/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Create a partner input func (c *Client) CreatePartnerInput(ctx context.Context, params *CreatePartnerInputInput, optFns ...func(*Options)) (*CreatePartnerInputOutput, error) { if params == nil { params = &CreatePartnerInputInput{} } result, metadata, err := c.invokeOperation(ctx, "CreatePartnerInput", params, optFns, c.addOperationCreatePartnerInputMiddlewares) if err != nil { return nil, err } out := result.(*CreatePartnerInputOutput) out.ResultMetadata = metadata return out, nil } // A request to create a partner input type CreatePartnerInputInput struct { // Unique ID of the input. // // This member is required. InputId *string // Unique identifier of the request to ensure the request is handled exactly once // in case of retries. RequestId *string // A collection of key-value pairs. Tags map[string]string noSmithyDocumentSerde } // Placeholder documentation for CreatePartnerInputResponse type CreatePartnerInputOutput struct { // Placeholder documentation for Input Input *types.Input // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationCreatePartnerInputMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpCreatePartnerInput{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreatePartnerInput{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addIdempotencyToken_opCreatePartnerInputMiddleware(stack, options); err != nil { return err } if err = addOpCreatePartnerInputValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreatePartnerInput(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } type idempotencyToken_initializeOpCreatePartnerInput struct { tokenProvider IdempotencyTokenProvider } func (*idempotencyToken_initializeOpCreatePartnerInput) ID() string { return "OperationIdempotencyTokenAutoFill" } func (m *idempotencyToken_initializeOpCreatePartnerInput) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { if m.tokenProvider == nil { return next.HandleInitialize(ctx, in) } input, ok := in.Parameters.(*CreatePartnerInputInput) if !ok { return out, metadata, fmt.Errorf("expected middleware input to be of type *CreatePartnerInputInput ") } if input.RequestId == nil { t, err := m.tokenProvider.GetIdempotencyToken() if err != nil { return out, metadata, err } input.RequestId = &t } return next.HandleInitialize(ctx, in) } func addIdempotencyToken_opCreatePartnerInputMiddleware(stack *middleware.Stack, cfg Options) error { return stack.Initialize.Add(&idempotencyToken_initializeOpCreatePartnerInput{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) } func newServiceMetadataMiddleware_opCreatePartnerInput(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "CreatePartnerInput", } }
171
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Create tags for a resource func (c *Client) CreateTags(ctx context.Context, params *CreateTagsInput, optFns ...func(*Options)) (*CreateTagsOutput, error) { if params == nil { params = &CreateTagsInput{} } result, metadata, err := c.invokeOperation(ctx, "CreateTags", params, optFns, c.addOperationCreateTagsMiddlewares) if err != nil { return nil, err } out := result.(*CreateTagsOutput) out.ResultMetadata = metadata return out, nil } // Placeholder documentation for CreateTagsRequest type CreateTagsInput struct { // Placeholder documentation for __string // // This member is required. ResourceArn *string // Placeholder documentation for Tags Tags map[string]string noSmithyDocumentSerde } type CreateTagsOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationCreateTagsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateTags{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateTags{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpCreateTagsValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateTags(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opCreateTags(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "CreateTags", } }
124
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/medialive/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Starts deletion of channel. The associated outputs are also deleted. func (c *Client) DeleteChannel(ctx context.Context, params *DeleteChannelInput, optFns ...func(*Options)) (*DeleteChannelOutput, error) { if params == nil { params = &DeleteChannelInput{} } result, metadata, err := c.invokeOperation(ctx, "DeleteChannel", params, optFns, c.addOperationDeleteChannelMiddlewares) if err != nil { return nil, err } out := result.(*DeleteChannelOutput) out.ResultMetadata = metadata return out, nil } // Placeholder documentation for DeleteChannelRequest type DeleteChannelInput struct { // Unique ID of the channel. // // This member is required. ChannelId *string noSmithyDocumentSerde } // Placeholder documentation for DeleteChannelResponse type DeleteChannelOutput struct { // The unique arn of the channel. Arn *string // Specification of CDI inputs for this channel CdiInputSpecification *types.CdiInputSpecification // The class for this channel. STANDARD for a channel with two pipelines or // SINGLE_PIPELINE for a channel with one pipeline. ChannelClass types.ChannelClass // A list of destinations of the channel. For UDP outputs, there is one // destination per output. For other types (HLS, for example), there is one // destination per packager. Destinations []types.OutputDestination // The endpoints where outgoing connections initiate from EgressEndpoints []types.ChannelEgressEndpoint // Encoder Settings EncoderSettings *types.EncoderSettings // The unique id of the channel. Id *string // List of input attachments for channel. InputAttachments []types.InputAttachment // Specification of network and file inputs for this channel InputSpecification *types.InputSpecification // The log level being written to CloudWatch Logs. LogLevel types.LogLevel // Maintenance settings for this channel. Maintenance *types.MaintenanceStatus // The name of the channel. (user-mutable) Name *string // Runtime details for the pipelines of a running channel. PipelineDetails []types.PipelineDetail // The number of currently healthy pipelines. PipelinesRunningCount int32 // The Amazon Resource Name (ARN) of the role assumed when running the Channel. RoleArn *string // Placeholder documentation for ChannelState State types.ChannelState // A collection of key-value pairs. Tags map[string]string // Settings for VPC output Vpc *types.VpcOutputSettingsDescription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDeleteChannelMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteChannel{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteChannel{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpDeleteChannelValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteChannel(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opDeleteChannel(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "DeleteChannel", } }
181
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Deletes the input end point func (c *Client) DeleteInput(ctx context.Context, params *DeleteInputInput, optFns ...func(*Options)) (*DeleteInputOutput, error) { if params == nil { params = &DeleteInputInput{} } result, metadata, err := c.invokeOperation(ctx, "DeleteInput", params, optFns, c.addOperationDeleteInputMiddlewares) if err != nil { return nil, err } out := result.(*DeleteInputOutput) out.ResultMetadata = metadata return out, nil } // Placeholder documentation for DeleteInputRequest type DeleteInputInput struct { // Unique ID of the input // // This member is required. InputId *string noSmithyDocumentSerde } // Placeholder documentation for DeleteInputResponse type DeleteInputOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDeleteInputMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteInput{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteInput{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpDeleteInputValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteInput(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opDeleteInput(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "DeleteInput", } }
122
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Deletes an Input Security Group func (c *Client) DeleteInputSecurityGroup(ctx context.Context, params *DeleteInputSecurityGroupInput, optFns ...func(*Options)) (*DeleteInputSecurityGroupOutput, error) { if params == nil { params = &DeleteInputSecurityGroupInput{} } result, metadata, err := c.invokeOperation(ctx, "DeleteInputSecurityGroup", params, optFns, c.addOperationDeleteInputSecurityGroupMiddlewares) if err != nil { return nil, err } out := result.(*DeleteInputSecurityGroupOutput) out.ResultMetadata = metadata return out, nil } // Placeholder documentation for DeleteInputSecurityGroupRequest type DeleteInputSecurityGroupInput struct { // The Input Security Group to delete // // This member is required. InputSecurityGroupId *string noSmithyDocumentSerde } // Placeholder documentation for DeleteInputSecurityGroupResponse type DeleteInputSecurityGroupOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDeleteInputSecurityGroupMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteInputSecurityGroup{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteInputSecurityGroup{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpDeleteInputSecurityGroupValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteInputSecurityGroup(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opDeleteInputSecurityGroup(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "DeleteInputSecurityGroup", } }
122
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/medialive/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Delete a multiplex. The multiplex must be idle. func (c *Client) DeleteMultiplex(ctx context.Context, params *DeleteMultiplexInput, optFns ...func(*Options)) (*DeleteMultiplexOutput, error) { if params == nil { params = &DeleteMultiplexInput{} } result, metadata, err := c.invokeOperation(ctx, "DeleteMultiplex", params, optFns, c.addOperationDeleteMultiplexMiddlewares) if err != nil { return nil, err } out := result.(*DeleteMultiplexOutput) out.ResultMetadata = metadata return out, nil } // Placeholder documentation for DeleteMultiplexRequest type DeleteMultiplexInput struct { // The ID of the multiplex. // // This member is required. MultiplexId *string noSmithyDocumentSerde } // Placeholder documentation for DeleteMultiplexResponse type DeleteMultiplexOutput struct { // The unique arn of the multiplex. Arn *string // A list of availability zones for the multiplex. AvailabilityZones []string // A list of the multiplex output destinations. Destinations []types.MultiplexOutputDestination // The unique id of the multiplex. Id *string // Configuration for a multiplex event. MultiplexSettings *types.MultiplexSettings // The name of the multiplex. Name *string // The number of currently healthy pipelines. PipelinesRunningCount int32 // The number of programs in the multiplex. ProgramCount int32 // The current state of the multiplex. State types.MultiplexState // A collection of key-value pairs. Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDeleteMultiplexMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteMultiplex{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteMultiplex{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpDeleteMultiplexValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteMultiplex(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opDeleteMultiplex(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "DeleteMultiplex", } }
154
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/medialive/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Delete a program from a multiplex. func (c *Client) DeleteMultiplexProgram(ctx context.Context, params *DeleteMultiplexProgramInput, optFns ...func(*Options)) (*DeleteMultiplexProgramOutput, error) { if params == nil { params = &DeleteMultiplexProgramInput{} } result, metadata, err := c.invokeOperation(ctx, "DeleteMultiplexProgram", params, optFns, c.addOperationDeleteMultiplexProgramMiddlewares) if err != nil { return nil, err } out := result.(*DeleteMultiplexProgramOutput) out.ResultMetadata = metadata return out, nil } // Placeholder documentation for DeleteMultiplexProgramRequest type DeleteMultiplexProgramInput struct { // The ID of the multiplex that the program belongs to. // // This member is required. MultiplexId *string // The multiplex program name. // // This member is required. ProgramName *string noSmithyDocumentSerde } // Placeholder documentation for DeleteMultiplexProgramResponse type DeleteMultiplexProgramOutput struct { // The MediaLive channel associated with the program. ChannelId *string // The settings for this multiplex program. MultiplexProgramSettings *types.MultiplexProgramSettings // The packet identifier map for this multiplex program. PacketIdentifiersMap *types.MultiplexProgramPacketIdentifiersMap // Contains information about the current sources for the specified program in the // specified multiplex. Keep in mind that each multiplex pipeline connects to both // pipelines in a given source channel (the channel identified by the program). But // only one of those channel pipelines is ever active at one time. PipelineDetails []types.MultiplexProgramPipelineDetail // The name of the multiplex program. ProgramName *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDeleteMultiplexProgramMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteMultiplexProgram{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteMultiplexProgram{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpDeleteMultiplexProgramValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteMultiplexProgram(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opDeleteMultiplexProgram(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "DeleteMultiplexProgram", } }
147
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/medialive/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Delete an expired reservation. func (c *Client) DeleteReservation(ctx context.Context, params *DeleteReservationInput, optFns ...func(*Options)) (*DeleteReservationOutput, error) { if params == nil { params = &DeleteReservationInput{} } result, metadata, err := c.invokeOperation(ctx, "DeleteReservation", params, optFns, c.addOperationDeleteReservationMiddlewares) if err != nil { return nil, err } out := result.(*DeleteReservationOutput) out.ResultMetadata = metadata return out, nil } // Placeholder documentation for DeleteReservationRequest type DeleteReservationInput struct { // Unique reservation ID, e.g. '1234567' // // This member is required. ReservationId *string noSmithyDocumentSerde } // Placeholder documentation for DeleteReservationResponse type DeleteReservationOutput struct { // Unique reservation ARN, e.g. // 'arn:aws:medialive:us-west-2:123456789012:reservation:1234567' Arn *string // Number of reserved resources Count int32 // Currency code for usagePrice and fixedPrice in ISO-4217 format, e.g. 'USD' CurrencyCode *string // Lease duration, e.g. '12' Duration int32 // Units for duration, e.g. 'MONTHS' DurationUnits types.OfferingDurationUnits // Reservation UTC end date and time in ISO-8601 format, e.g. '2019-03-01T00:00:00' End *string // One-time charge for each reserved resource, e.g. '0.0' for a NO_UPFRONT offering FixedPrice float64 // User specified reservation name Name *string // Offering description, e.g. 'HD AVC output at 10-20 Mbps, 30 fps, and standard // VQ in US West (Oregon)' OfferingDescription *string // Unique offering ID, e.g. '87654321' OfferingId *string // Offering type, e.g. 'NO_UPFRONT' OfferingType types.OfferingType // AWS region, e.g. 'us-west-2' Region *string // Renewal settings for the reservation RenewalSettings *types.RenewalSettings // Unique reservation ID, e.g. '1234567' ReservationId *string // Resource configuration details ResourceSpecification *types.ReservationResourceSpecification // Reservation UTC start date and time in ISO-8601 format, e.g. // '2018-03-01T00:00:00' Start *string // Current state of reservation, e.g. 'ACTIVE' State types.ReservationState // A collection of key-value pairs Tags map[string]string // Recurring usage charge for each reserved resource, e.g. '157.0' UsagePrice float64 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDeleteReservationMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteReservation{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteReservation{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpDeleteReservationValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteReservation(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opDeleteReservation(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "DeleteReservation", } }
184
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Delete all schedule actions on a channel. func (c *Client) DeleteSchedule(ctx context.Context, params *DeleteScheduleInput, optFns ...func(*Options)) (*DeleteScheduleOutput, error) { if params == nil { params = &DeleteScheduleInput{} } result, metadata, err := c.invokeOperation(ctx, "DeleteSchedule", params, optFns, c.addOperationDeleteScheduleMiddlewares) if err != nil { return nil, err } out := result.(*DeleteScheduleOutput) out.ResultMetadata = metadata return out, nil } // Placeholder documentation for DeleteScheduleRequest type DeleteScheduleInput struct { // Id of the channel whose schedule is being deleted. // // This member is required. ChannelId *string noSmithyDocumentSerde } // Placeholder documentation for DeleteScheduleResponse type DeleteScheduleOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDeleteScheduleMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteSchedule{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteSchedule{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpDeleteScheduleValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteSchedule(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opDeleteSchedule(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "DeleteSchedule", } }
122
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Removes tags for a resource func (c *Client) DeleteTags(ctx context.Context, params *DeleteTagsInput, optFns ...func(*Options)) (*DeleteTagsOutput, error) { if params == nil { params = &DeleteTagsInput{} } result, metadata, err := c.invokeOperation(ctx, "DeleteTags", params, optFns, c.addOperationDeleteTagsMiddlewares) if err != nil { return nil, err } out := result.(*DeleteTagsOutput) out.ResultMetadata = metadata return out, nil } // Placeholder documentation for DeleteTagsRequest type DeleteTagsInput struct { // Placeholder documentation for __string // // This member is required. ResourceArn *string // An array of tag keys to delete // // This member is required. TagKeys []string noSmithyDocumentSerde } type DeleteTagsOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDeleteTagsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteTags{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteTags{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpDeleteTagsValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteTags(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opDeleteTags(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "DeleteTags", } }
126
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" "errors" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/medialive/types" "github.com/aws/smithy-go/middleware" smithytime "github.com/aws/smithy-go/time" smithyhttp "github.com/aws/smithy-go/transport/http" smithywaiter "github.com/aws/smithy-go/waiter" "github.com/jmespath/go-jmespath" "time" ) // Gets details about a channel func (c *Client) DescribeChannel(ctx context.Context, params *DescribeChannelInput, optFns ...func(*Options)) (*DescribeChannelOutput, error) { if params == nil { params = &DescribeChannelInput{} } result, metadata, err := c.invokeOperation(ctx, "DescribeChannel", params, optFns, c.addOperationDescribeChannelMiddlewares) if err != nil { return nil, err } out := result.(*DescribeChannelOutput) out.ResultMetadata = metadata return out, nil } // Placeholder documentation for DescribeChannelRequest type DescribeChannelInput struct { // channel ID // // This member is required. ChannelId *string noSmithyDocumentSerde } // Placeholder documentation for DescribeChannelResponse type DescribeChannelOutput struct { // The unique arn of the channel. Arn *string // Specification of CDI inputs for this channel CdiInputSpecification *types.CdiInputSpecification // The class for this channel. STANDARD for a channel with two pipelines or // SINGLE_PIPELINE for a channel with one pipeline. ChannelClass types.ChannelClass // A list of destinations of the channel. For UDP outputs, there is one // destination per output. For other types (HLS, for example), there is one // destination per packager. Destinations []types.OutputDestination // The endpoints where outgoing connections initiate from EgressEndpoints []types.ChannelEgressEndpoint // Encoder Settings EncoderSettings *types.EncoderSettings // The unique id of the channel. Id *string // List of input attachments for channel. InputAttachments []types.InputAttachment // Specification of network and file inputs for this channel InputSpecification *types.InputSpecification // The log level being written to CloudWatch Logs. LogLevel types.LogLevel // Maintenance settings for this channel. Maintenance *types.MaintenanceStatus // The name of the channel. (user-mutable) Name *string // Runtime details for the pipelines of a running channel. PipelineDetails []types.PipelineDetail // The number of currently healthy pipelines. PipelinesRunningCount int32 // The Amazon Resource Name (ARN) of the role assumed when running the Channel. RoleArn *string // Placeholder documentation for ChannelState State types.ChannelState // A collection of key-value pairs. Tags map[string]string // Settings for VPC output Vpc *types.VpcOutputSettingsDescription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDescribeChannelMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpDescribeChannel{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDescribeChannel{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpDescribeChannelValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeChannel(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } // DescribeChannelAPIClient is a client that implements the DescribeChannel // operation. type DescribeChannelAPIClient interface { DescribeChannel(context.Context, *DescribeChannelInput, ...func(*Options)) (*DescribeChannelOutput, error) } var _ DescribeChannelAPIClient = (*Client)(nil) // ChannelCreatedWaiterOptions are waiter options for ChannelCreatedWaiter type ChannelCreatedWaiterOptions struct { // Set of options to modify how an operation is invoked. These apply to all // operations invoked for this client. Use functional options on operation call to // modify this list for per operation behavior. APIOptions []func(*middleware.Stack) error // MinDelay is the minimum amount of time to delay between retries. If unset, // ChannelCreatedWaiter will use default minimum delay of 3 seconds. Note that // MinDelay must resolve to a value lesser than or equal to the MaxDelay. MinDelay time.Duration // MaxDelay is the maximum amount of time to delay between retries. If unset or // set to zero, ChannelCreatedWaiter will use default max delay of 120 seconds. // Note that MaxDelay must resolve to value greater than or equal to the MinDelay. MaxDelay time.Duration // LogWaitAttempts is used to enable logging for waiter retry attempts LogWaitAttempts bool // Retryable is function that can be used to override the service defined // waiter-behavior based on operation output, or returned error. This function is // used by the waiter to decide if a state is retryable or a terminal state. By // default service-modeled logic will populate this option. This option can thus be // used to define a custom waiter state with fall-back to service-modeled waiter // state mutators.The function returns an error in case of a failure state. In case // of retry state, this function returns a bool value of true and nil error, while // in case of success it returns a bool value of false and nil error. Retryable func(context.Context, *DescribeChannelInput, *DescribeChannelOutput, error) (bool, error) } // ChannelCreatedWaiter defines the waiters for ChannelCreated type ChannelCreatedWaiter struct { client DescribeChannelAPIClient options ChannelCreatedWaiterOptions } // NewChannelCreatedWaiter constructs a ChannelCreatedWaiter. func NewChannelCreatedWaiter(client DescribeChannelAPIClient, optFns ...func(*ChannelCreatedWaiterOptions)) *ChannelCreatedWaiter { options := ChannelCreatedWaiterOptions{} options.MinDelay = 3 * time.Second options.MaxDelay = 120 * time.Second options.Retryable = channelCreatedStateRetryable for _, fn := range optFns { fn(&options) } return &ChannelCreatedWaiter{ client: client, options: options, } } // Wait calls the waiter function for ChannelCreated waiter. The maxWaitDur is the // maximum wait duration the waiter will wait. The maxWaitDur is required and must // be greater than zero. func (w *ChannelCreatedWaiter) Wait(ctx context.Context, params *DescribeChannelInput, maxWaitDur time.Duration, optFns ...func(*ChannelCreatedWaiterOptions)) error { _, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...) return err } // WaitForOutput calls the waiter function for ChannelCreated waiter and returns // the output of the successful operation. The maxWaitDur is the maximum wait // duration the waiter will wait. The maxWaitDur is required and must be greater // than zero. func (w *ChannelCreatedWaiter) WaitForOutput(ctx context.Context, params *DescribeChannelInput, maxWaitDur time.Duration, optFns ...func(*ChannelCreatedWaiterOptions)) (*DescribeChannelOutput, error) { if maxWaitDur <= 0 { return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero") } options := w.options for _, fn := range optFns { fn(&options) } if options.MaxDelay <= 0 { options.MaxDelay = 120 * time.Second } if options.MinDelay > options.MaxDelay { return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) } ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) defer cancelFn() logger := smithywaiter.Logger{} remainingTime := maxWaitDur var attempt int64 for { attempt++ apiOptions := options.APIOptions start := time.Now() if options.LogWaitAttempts { logger.Attempt = attempt apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) apiOptions = append(apiOptions, logger.AddLogger) } out, err := w.client.DescribeChannel(ctx, params, func(o *Options) { o.APIOptions = append(o.APIOptions, apiOptions...) }) retryable, err := options.Retryable(ctx, params, out, err) if err != nil { return nil, err } if !retryable { return out, nil } remainingTime -= time.Since(start) if remainingTime < options.MinDelay || remainingTime <= 0 { break } // compute exponential backoff between waiter retries delay, err := smithywaiter.ComputeDelay( attempt, options.MinDelay, options.MaxDelay, remainingTime, ) if err != nil { return nil, fmt.Errorf("error computing waiter delay, %w", err) } remainingTime -= delay // sleep for the delay amount before invoking a request if err := smithytime.SleepWithContext(ctx, delay); err != nil { return nil, fmt.Errorf("request cancelled while waiting, %w", err) } } return nil, fmt.Errorf("exceeded max wait time for ChannelCreated waiter") } func channelCreatedStateRetryable(ctx context.Context, input *DescribeChannelInput, output *DescribeChannelOutput, err error) (bool, error) { if err == nil { pathValue, err := jmespath.Search("State", output) if err != nil { return false, fmt.Errorf("error evaluating waiter state: %w", err) } expectedValue := "IDLE" value, ok := pathValue.(types.ChannelState) if !ok { return false, fmt.Errorf("waiter comparator expected types.ChannelState value, got %T", pathValue) } if string(value) == expectedValue { return false, nil } } if err == nil { pathValue, err := jmespath.Search("State", output) if err != nil { return false, fmt.Errorf("error evaluating waiter state: %w", err) } expectedValue := "CREATING" value, ok := pathValue.(types.ChannelState) if !ok { return false, fmt.Errorf("waiter comparator expected types.ChannelState value, got %T", pathValue) } if string(value) == expectedValue { return true, nil } } if err != nil { var errorType *types.InternalServerErrorException if errors.As(err, &errorType) { return true, nil } } if err == nil { pathValue, err := jmespath.Search("State", output) if err != nil { return false, fmt.Errorf("error evaluating waiter state: %w", err) } expectedValue := "CREATE_FAILED" value, ok := pathValue.(types.ChannelState) if !ok { return false, fmt.Errorf("waiter comparator expected types.ChannelState value, got %T", pathValue) } if string(value) == expectedValue { return false, fmt.Errorf("waiter state transitioned to Failure") } } return true, nil } // ChannelDeletedWaiterOptions are waiter options for ChannelDeletedWaiter type ChannelDeletedWaiterOptions struct { // Set of options to modify how an operation is invoked. These apply to all // operations invoked for this client. Use functional options on operation call to // modify this list for per operation behavior. APIOptions []func(*middleware.Stack) error // MinDelay is the minimum amount of time to delay between retries. If unset, // ChannelDeletedWaiter will use default minimum delay of 5 seconds. Note that // MinDelay must resolve to a value lesser than or equal to the MaxDelay. MinDelay time.Duration // MaxDelay is the maximum amount of time to delay between retries. If unset or // set to zero, ChannelDeletedWaiter will use default max delay of 120 seconds. // Note that MaxDelay must resolve to value greater than or equal to the MinDelay. MaxDelay time.Duration // LogWaitAttempts is used to enable logging for waiter retry attempts LogWaitAttempts bool // Retryable is function that can be used to override the service defined // waiter-behavior based on operation output, or returned error. This function is // used by the waiter to decide if a state is retryable or a terminal state. By // default service-modeled logic will populate this option. This option can thus be // used to define a custom waiter state with fall-back to service-modeled waiter // state mutators.The function returns an error in case of a failure state. In case // of retry state, this function returns a bool value of true and nil error, while // in case of success it returns a bool value of false and nil error. Retryable func(context.Context, *DescribeChannelInput, *DescribeChannelOutput, error) (bool, error) } // ChannelDeletedWaiter defines the waiters for ChannelDeleted type ChannelDeletedWaiter struct { client DescribeChannelAPIClient options ChannelDeletedWaiterOptions } // NewChannelDeletedWaiter constructs a ChannelDeletedWaiter. func NewChannelDeletedWaiter(client DescribeChannelAPIClient, optFns ...func(*ChannelDeletedWaiterOptions)) *ChannelDeletedWaiter { options := ChannelDeletedWaiterOptions{} options.MinDelay = 5 * time.Second options.MaxDelay = 120 * time.Second options.Retryable = channelDeletedStateRetryable for _, fn := range optFns { fn(&options) } return &ChannelDeletedWaiter{ client: client, options: options, } } // Wait calls the waiter function for ChannelDeleted waiter. The maxWaitDur is the // maximum wait duration the waiter will wait. The maxWaitDur is required and must // be greater than zero. func (w *ChannelDeletedWaiter) Wait(ctx context.Context, params *DescribeChannelInput, maxWaitDur time.Duration, optFns ...func(*ChannelDeletedWaiterOptions)) error { _, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...) return err } // WaitForOutput calls the waiter function for ChannelDeleted waiter and returns // the output of the successful operation. The maxWaitDur is the maximum wait // duration the waiter will wait. The maxWaitDur is required and must be greater // than zero. func (w *ChannelDeletedWaiter) WaitForOutput(ctx context.Context, params *DescribeChannelInput, maxWaitDur time.Duration, optFns ...func(*ChannelDeletedWaiterOptions)) (*DescribeChannelOutput, error) { if maxWaitDur <= 0 { return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero") } options := w.options for _, fn := range optFns { fn(&options) } if options.MaxDelay <= 0 { options.MaxDelay = 120 * time.Second } if options.MinDelay > options.MaxDelay { return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) } ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) defer cancelFn() logger := smithywaiter.Logger{} remainingTime := maxWaitDur var attempt int64 for { attempt++ apiOptions := options.APIOptions start := time.Now() if options.LogWaitAttempts { logger.Attempt = attempt apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) apiOptions = append(apiOptions, logger.AddLogger) } out, err := w.client.DescribeChannel(ctx, params, func(o *Options) { o.APIOptions = append(o.APIOptions, apiOptions...) }) retryable, err := options.Retryable(ctx, params, out, err) if err != nil { return nil, err } if !retryable { return out, nil } remainingTime -= time.Since(start) if remainingTime < options.MinDelay || remainingTime <= 0 { break } // compute exponential backoff between waiter retries delay, err := smithywaiter.ComputeDelay( attempt, options.MinDelay, options.MaxDelay, remainingTime, ) if err != nil { return nil, fmt.Errorf("error computing waiter delay, %w", err) } remainingTime -= delay // sleep for the delay amount before invoking a request if err := smithytime.SleepWithContext(ctx, delay); err != nil { return nil, fmt.Errorf("request cancelled while waiting, %w", err) } } return nil, fmt.Errorf("exceeded max wait time for ChannelDeleted waiter") } func channelDeletedStateRetryable(ctx context.Context, input *DescribeChannelInput, output *DescribeChannelOutput, err error) (bool, error) { if err == nil { pathValue, err := jmespath.Search("State", output) if err != nil { return false, fmt.Errorf("error evaluating waiter state: %w", err) } expectedValue := "DELETED" value, ok := pathValue.(types.ChannelState) if !ok { return false, fmt.Errorf("waiter comparator expected types.ChannelState value, got %T", pathValue) } if string(value) == expectedValue { return false, nil } } if err == nil { pathValue, err := jmespath.Search("State", output) if err != nil { return false, fmt.Errorf("error evaluating waiter state: %w", err) } expectedValue := "DELETING" value, ok := pathValue.(types.ChannelState) if !ok { return false, fmt.Errorf("waiter comparator expected types.ChannelState value, got %T", pathValue) } if string(value) == expectedValue { return true, nil } } if err != nil { var errorType *types.InternalServerErrorException if errors.As(err, &errorType) { return true, nil } } return true, nil } // ChannelRunningWaiterOptions are waiter options for ChannelRunningWaiter type ChannelRunningWaiterOptions struct { // Set of options to modify how an operation is invoked. These apply to all // operations invoked for this client. Use functional options on operation call to // modify this list for per operation behavior. APIOptions []func(*middleware.Stack) error // MinDelay is the minimum amount of time to delay between retries. If unset, // ChannelRunningWaiter will use default minimum delay of 5 seconds. Note that // MinDelay must resolve to a value lesser than or equal to the MaxDelay. MinDelay time.Duration // MaxDelay is the maximum amount of time to delay between retries. If unset or // set to zero, ChannelRunningWaiter will use default max delay of 120 seconds. // Note that MaxDelay must resolve to value greater than or equal to the MinDelay. MaxDelay time.Duration // LogWaitAttempts is used to enable logging for waiter retry attempts LogWaitAttempts bool // Retryable is function that can be used to override the service defined // waiter-behavior based on operation output, or returned error. This function is // used by the waiter to decide if a state is retryable or a terminal state. By // default service-modeled logic will populate this option. This option can thus be // used to define a custom waiter state with fall-back to service-modeled waiter // state mutators.The function returns an error in case of a failure state. In case // of retry state, this function returns a bool value of true and nil error, while // in case of success it returns a bool value of false and nil error. Retryable func(context.Context, *DescribeChannelInput, *DescribeChannelOutput, error) (bool, error) } // ChannelRunningWaiter defines the waiters for ChannelRunning type ChannelRunningWaiter struct { client DescribeChannelAPIClient options ChannelRunningWaiterOptions } // NewChannelRunningWaiter constructs a ChannelRunningWaiter. func NewChannelRunningWaiter(client DescribeChannelAPIClient, optFns ...func(*ChannelRunningWaiterOptions)) *ChannelRunningWaiter { options := ChannelRunningWaiterOptions{} options.MinDelay = 5 * time.Second options.MaxDelay = 120 * time.Second options.Retryable = channelRunningStateRetryable for _, fn := range optFns { fn(&options) } return &ChannelRunningWaiter{ client: client, options: options, } } // Wait calls the waiter function for ChannelRunning waiter. The maxWaitDur is the // maximum wait duration the waiter will wait. The maxWaitDur is required and must // be greater than zero. func (w *ChannelRunningWaiter) Wait(ctx context.Context, params *DescribeChannelInput, maxWaitDur time.Duration, optFns ...func(*ChannelRunningWaiterOptions)) error { _, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...) return err } // WaitForOutput calls the waiter function for ChannelRunning waiter and returns // the output of the successful operation. The maxWaitDur is the maximum wait // duration the waiter will wait. The maxWaitDur is required and must be greater // than zero. func (w *ChannelRunningWaiter) WaitForOutput(ctx context.Context, params *DescribeChannelInput, maxWaitDur time.Duration, optFns ...func(*ChannelRunningWaiterOptions)) (*DescribeChannelOutput, error) { if maxWaitDur <= 0 { return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero") } options := w.options for _, fn := range optFns { fn(&options) } if options.MaxDelay <= 0 { options.MaxDelay = 120 * time.Second } if options.MinDelay > options.MaxDelay { return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) } ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) defer cancelFn() logger := smithywaiter.Logger{} remainingTime := maxWaitDur var attempt int64 for { attempt++ apiOptions := options.APIOptions start := time.Now() if options.LogWaitAttempts { logger.Attempt = attempt apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) apiOptions = append(apiOptions, logger.AddLogger) } out, err := w.client.DescribeChannel(ctx, params, func(o *Options) { o.APIOptions = append(o.APIOptions, apiOptions...) }) retryable, err := options.Retryable(ctx, params, out, err) if err != nil { return nil, err } if !retryable { return out, nil } remainingTime -= time.Since(start) if remainingTime < options.MinDelay || remainingTime <= 0 { break } // compute exponential backoff between waiter retries delay, err := smithywaiter.ComputeDelay( attempt, options.MinDelay, options.MaxDelay, remainingTime, ) if err != nil { return nil, fmt.Errorf("error computing waiter delay, %w", err) } remainingTime -= delay // sleep for the delay amount before invoking a request if err := smithytime.SleepWithContext(ctx, delay); err != nil { return nil, fmt.Errorf("request cancelled while waiting, %w", err) } } return nil, fmt.Errorf("exceeded max wait time for ChannelRunning waiter") } func channelRunningStateRetryable(ctx context.Context, input *DescribeChannelInput, output *DescribeChannelOutput, err error) (bool, error) { if err == nil { pathValue, err := jmespath.Search("State", output) if err != nil { return false, fmt.Errorf("error evaluating waiter state: %w", err) } expectedValue := "RUNNING" value, ok := pathValue.(types.ChannelState) if !ok { return false, fmt.Errorf("waiter comparator expected types.ChannelState value, got %T", pathValue) } if string(value) == expectedValue { return false, nil } } if err == nil { pathValue, err := jmespath.Search("State", output) if err != nil { return false, fmt.Errorf("error evaluating waiter state: %w", err) } expectedValue := "STARTING" value, ok := pathValue.(types.ChannelState) if !ok { return false, fmt.Errorf("waiter comparator expected types.ChannelState value, got %T", pathValue) } if string(value) == expectedValue { return true, nil } } if err != nil { var errorType *types.InternalServerErrorException if errors.As(err, &errorType) { return true, nil } } return true, nil } // ChannelStoppedWaiterOptions are waiter options for ChannelStoppedWaiter type ChannelStoppedWaiterOptions struct { // Set of options to modify how an operation is invoked. These apply to all // operations invoked for this client. Use functional options on operation call to // modify this list for per operation behavior. APIOptions []func(*middleware.Stack) error // MinDelay is the minimum amount of time to delay between retries. If unset, // ChannelStoppedWaiter will use default minimum delay of 5 seconds. Note that // MinDelay must resolve to a value lesser than or equal to the MaxDelay. MinDelay time.Duration // MaxDelay is the maximum amount of time to delay between retries. If unset or // set to zero, ChannelStoppedWaiter will use default max delay of 120 seconds. // Note that MaxDelay must resolve to value greater than or equal to the MinDelay. MaxDelay time.Duration // LogWaitAttempts is used to enable logging for waiter retry attempts LogWaitAttempts bool // Retryable is function that can be used to override the service defined // waiter-behavior based on operation output, or returned error. This function is // used by the waiter to decide if a state is retryable or a terminal state. By // default service-modeled logic will populate this option. This option can thus be // used to define a custom waiter state with fall-back to service-modeled waiter // state mutators.The function returns an error in case of a failure state. In case // of retry state, this function returns a bool value of true and nil error, while // in case of success it returns a bool value of false and nil error. Retryable func(context.Context, *DescribeChannelInput, *DescribeChannelOutput, error) (bool, error) } // ChannelStoppedWaiter defines the waiters for ChannelStopped type ChannelStoppedWaiter struct { client DescribeChannelAPIClient options ChannelStoppedWaiterOptions } // NewChannelStoppedWaiter constructs a ChannelStoppedWaiter. func NewChannelStoppedWaiter(client DescribeChannelAPIClient, optFns ...func(*ChannelStoppedWaiterOptions)) *ChannelStoppedWaiter { options := ChannelStoppedWaiterOptions{} options.MinDelay = 5 * time.Second options.MaxDelay = 120 * time.Second options.Retryable = channelStoppedStateRetryable for _, fn := range optFns { fn(&options) } return &ChannelStoppedWaiter{ client: client, options: options, } } // Wait calls the waiter function for ChannelStopped waiter. The maxWaitDur is the // maximum wait duration the waiter will wait. The maxWaitDur is required and must // be greater than zero. func (w *ChannelStoppedWaiter) Wait(ctx context.Context, params *DescribeChannelInput, maxWaitDur time.Duration, optFns ...func(*ChannelStoppedWaiterOptions)) error { _, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...) return err } // WaitForOutput calls the waiter function for ChannelStopped waiter and returns // the output of the successful operation. The maxWaitDur is the maximum wait // duration the waiter will wait. The maxWaitDur is required and must be greater // than zero. func (w *ChannelStoppedWaiter) WaitForOutput(ctx context.Context, params *DescribeChannelInput, maxWaitDur time.Duration, optFns ...func(*ChannelStoppedWaiterOptions)) (*DescribeChannelOutput, error) { if maxWaitDur <= 0 { return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero") } options := w.options for _, fn := range optFns { fn(&options) } if options.MaxDelay <= 0 { options.MaxDelay = 120 * time.Second } if options.MinDelay > options.MaxDelay { return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) } ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) defer cancelFn() logger := smithywaiter.Logger{} remainingTime := maxWaitDur var attempt int64 for { attempt++ apiOptions := options.APIOptions start := time.Now() if options.LogWaitAttempts { logger.Attempt = attempt apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) apiOptions = append(apiOptions, logger.AddLogger) } out, err := w.client.DescribeChannel(ctx, params, func(o *Options) { o.APIOptions = append(o.APIOptions, apiOptions...) }) retryable, err := options.Retryable(ctx, params, out, err) if err != nil { return nil, err } if !retryable { return out, nil } remainingTime -= time.Since(start) if remainingTime < options.MinDelay || remainingTime <= 0 { break } // compute exponential backoff between waiter retries delay, err := smithywaiter.ComputeDelay( attempt, options.MinDelay, options.MaxDelay, remainingTime, ) if err != nil { return nil, fmt.Errorf("error computing waiter delay, %w", err) } remainingTime -= delay // sleep for the delay amount before invoking a request if err := smithytime.SleepWithContext(ctx, delay); err != nil { return nil, fmt.Errorf("request cancelled while waiting, %w", err) } } return nil, fmt.Errorf("exceeded max wait time for ChannelStopped waiter") } func channelStoppedStateRetryable(ctx context.Context, input *DescribeChannelInput, output *DescribeChannelOutput, err error) (bool, error) { if err == nil { pathValue, err := jmespath.Search("State", output) if err != nil { return false, fmt.Errorf("error evaluating waiter state: %w", err) } expectedValue := "IDLE" value, ok := pathValue.(types.ChannelState) if !ok { return false, fmt.Errorf("waiter comparator expected types.ChannelState value, got %T", pathValue) } if string(value) == expectedValue { return false, nil } } if err == nil { pathValue, err := jmespath.Search("State", output) if err != nil { return false, fmt.Errorf("error evaluating waiter state: %w", err) } expectedValue := "STOPPING" value, ok := pathValue.(types.ChannelState) if !ok { return false, fmt.Errorf("waiter comparator expected types.ChannelState value, got %T", pathValue) } if string(value) == expectedValue { return true, nil } } if err != nil { var errorType *types.InternalServerErrorException if errors.As(err, &errorType) { return true, nil } } return true, nil } func newServiceMetadataMiddleware_opDescribeChannel(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "DescribeChannel", } }
948
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" "errors" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/medialive/types" "github.com/aws/smithy-go/middleware" smithytime "github.com/aws/smithy-go/time" smithyhttp "github.com/aws/smithy-go/transport/http" smithywaiter "github.com/aws/smithy-go/waiter" "github.com/jmespath/go-jmespath" "time" ) // Produces details about an input func (c *Client) DescribeInput(ctx context.Context, params *DescribeInputInput, optFns ...func(*Options)) (*DescribeInputOutput, error) { if params == nil { params = &DescribeInputInput{} } result, metadata, err := c.invokeOperation(ctx, "DescribeInput", params, optFns, c.addOperationDescribeInputMiddlewares) if err != nil { return nil, err } out := result.(*DescribeInputOutput) out.ResultMetadata = metadata return out, nil } // Placeholder documentation for DescribeInputRequest type DescribeInputInput struct { // Unique ID of the input // // This member is required. InputId *string noSmithyDocumentSerde } // Placeholder documentation for DescribeInputResponse type DescribeInputOutput struct { // The Unique ARN of the input (generated, immutable). Arn *string // A list of channel IDs that that input is attached to (currently an input can // only be attached to one channel). AttachedChannels []string // A list of the destinations of the input (PUSH-type). Destinations []types.InputDestination // The generated ID of the input (unique for user account, immutable). Id *string // STANDARD - MediaLive expects two sources to be connected to this input. If the // channel is also STANDARD, both sources will be ingested. If the channel is // SINGLE_PIPELINE, only the first source will be ingested; the second source will // always be ignored, even if the first source fails. SINGLE_PIPELINE - You can // connect only one source to this input. If the ChannelClass is also // SINGLE_PIPELINE, this value is valid. If the ChannelClass is STANDARD, this // value is not valid because the channel requires two sources in the input. InputClass types.InputClass // Settings for the input devices. InputDevices []types.InputDeviceSettings // A list of IDs for all Inputs which are partners of this one. InputPartnerIds []string // Certain pull input sources can be dynamic, meaning that they can have their // URL's dynamically changes during input switch actions. Presently, this // functionality only works with MP4_FILE and TS_FILE inputs. InputSourceType types.InputSourceType // A list of MediaConnect Flows for this input. MediaConnectFlows []types.MediaConnectFlow // The user-assigned name (This is a mutable value). Name *string // The Amazon Resource Name (ARN) of the role this input assumes during and after // creation. RoleArn *string // A list of IDs for all the Input Security Groups attached to the input. SecurityGroups []string // A list of the sources of the input (PULL-type). Sources []types.InputSource // Placeholder documentation for InputState State types.InputState // A collection of key-value pairs. Tags map[string]string // The different types of inputs that AWS Elemental MediaLive supports. Type types.InputType // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDescribeInputMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpDescribeInput{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDescribeInput{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpDescribeInputValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeInput(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } // DescribeInputAPIClient is a client that implements the DescribeInput operation. type DescribeInputAPIClient interface { DescribeInput(context.Context, *DescribeInputInput, ...func(*Options)) (*DescribeInputOutput, error) } var _ DescribeInputAPIClient = (*Client)(nil) // InputAttachedWaiterOptions are waiter options for InputAttachedWaiter type InputAttachedWaiterOptions struct { // Set of options to modify how an operation is invoked. These apply to all // operations invoked for this client. Use functional options on operation call to // modify this list for per operation behavior. APIOptions []func(*middleware.Stack) error // MinDelay is the minimum amount of time to delay between retries. If unset, // InputAttachedWaiter will use default minimum delay of 5 seconds. Note that // MinDelay must resolve to a value lesser than or equal to the MaxDelay. MinDelay time.Duration // MaxDelay is the maximum amount of time to delay between retries. If unset or // set to zero, InputAttachedWaiter will use default max delay of 120 seconds. Note // that MaxDelay must resolve to value greater than or equal to the MinDelay. MaxDelay time.Duration // LogWaitAttempts is used to enable logging for waiter retry attempts LogWaitAttempts bool // Retryable is function that can be used to override the service defined // waiter-behavior based on operation output, or returned error. This function is // used by the waiter to decide if a state is retryable or a terminal state. By // default service-modeled logic will populate this option. This option can thus be // used to define a custom waiter state with fall-back to service-modeled waiter // state mutators.The function returns an error in case of a failure state. In case // of retry state, this function returns a bool value of true and nil error, while // in case of success it returns a bool value of false and nil error. Retryable func(context.Context, *DescribeInputInput, *DescribeInputOutput, error) (bool, error) } // InputAttachedWaiter defines the waiters for InputAttached type InputAttachedWaiter struct { client DescribeInputAPIClient options InputAttachedWaiterOptions } // NewInputAttachedWaiter constructs a InputAttachedWaiter. func NewInputAttachedWaiter(client DescribeInputAPIClient, optFns ...func(*InputAttachedWaiterOptions)) *InputAttachedWaiter { options := InputAttachedWaiterOptions{} options.MinDelay = 5 * time.Second options.MaxDelay = 120 * time.Second options.Retryable = inputAttachedStateRetryable for _, fn := range optFns { fn(&options) } return &InputAttachedWaiter{ client: client, options: options, } } // Wait calls the waiter function for InputAttached waiter. The maxWaitDur is the // maximum wait duration the waiter will wait. The maxWaitDur is required and must // be greater than zero. func (w *InputAttachedWaiter) Wait(ctx context.Context, params *DescribeInputInput, maxWaitDur time.Duration, optFns ...func(*InputAttachedWaiterOptions)) error { _, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...) return err } // WaitForOutput calls the waiter function for InputAttached waiter and returns // the output of the successful operation. The maxWaitDur is the maximum wait // duration the waiter will wait. The maxWaitDur is required and must be greater // than zero. func (w *InputAttachedWaiter) WaitForOutput(ctx context.Context, params *DescribeInputInput, maxWaitDur time.Duration, optFns ...func(*InputAttachedWaiterOptions)) (*DescribeInputOutput, error) { if maxWaitDur <= 0 { return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero") } options := w.options for _, fn := range optFns { fn(&options) } if options.MaxDelay <= 0 { options.MaxDelay = 120 * time.Second } if options.MinDelay > options.MaxDelay { return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) } ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) defer cancelFn() logger := smithywaiter.Logger{} remainingTime := maxWaitDur var attempt int64 for { attempt++ apiOptions := options.APIOptions start := time.Now() if options.LogWaitAttempts { logger.Attempt = attempt apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) apiOptions = append(apiOptions, logger.AddLogger) } out, err := w.client.DescribeInput(ctx, params, func(o *Options) { o.APIOptions = append(o.APIOptions, apiOptions...) }) retryable, err := options.Retryable(ctx, params, out, err) if err != nil { return nil, err } if !retryable { return out, nil } remainingTime -= time.Since(start) if remainingTime < options.MinDelay || remainingTime <= 0 { break } // compute exponential backoff between waiter retries delay, err := smithywaiter.ComputeDelay( attempt, options.MinDelay, options.MaxDelay, remainingTime, ) if err != nil { return nil, fmt.Errorf("error computing waiter delay, %w", err) } remainingTime -= delay // sleep for the delay amount before invoking a request if err := smithytime.SleepWithContext(ctx, delay); err != nil { return nil, fmt.Errorf("request cancelled while waiting, %w", err) } } return nil, fmt.Errorf("exceeded max wait time for InputAttached waiter") } func inputAttachedStateRetryable(ctx context.Context, input *DescribeInputInput, output *DescribeInputOutput, err error) (bool, error) { if err == nil { pathValue, err := jmespath.Search("State", output) if err != nil { return false, fmt.Errorf("error evaluating waiter state: %w", err) } expectedValue := "ATTACHED" value, ok := pathValue.(types.InputState) if !ok { return false, fmt.Errorf("waiter comparator expected types.InputState value, got %T", pathValue) } if string(value) == expectedValue { return false, nil } } if err == nil { pathValue, err := jmespath.Search("State", output) if err != nil { return false, fmt.Errorf("error evaluating waiter state: %w", err) } expectedValue := "DETACHED" value, ok := pathValue.(types.InputState) if !ok { return false, fmt.Errorf("waiter comparator expected types.InputState value, got %T", pathValue) } if string(value) == expectedValue { return true, nil } } if err != nil { var errorType *types.InternalServerErrorException if errors.As(err, &errorType) { return true, nil } } return true, nil } // InputDeletedWaiterOptions are waiter options for InputDeletedWaiter type InputDeletedWaiterOptions struct { // Set of options to modify how an operation is invoked. These apply to all // operations invoked for this client. Use functional options on operation call to // modify this list for per operation behavior. APIOptions []func(*middleware.Stack) error // MinDelay is the minimum amount of time to delay between retries. If unset, // InputDeletedWaiter will use default minimum delay of 5 seconds. Note that // MinDelay must resolve to a value lesser than or equal to the MaxDelay. MinDelay time.Duration // MaxDelay is the maximum amount of time to delay between retries. If unset or // set to zero, InputDeletedWaiter will use default max delay of 120 seconds. Note // that MaxDelay must resolve to value greater than or equal to the MinDelay. MaxDelay time.Duration // LogWaitAttempts is used to enable logging for waiter retry attempts LogWaitAttempts bool // Retryable is function that can be used to override the service defined // waiter-behavior based on operation output, or returned error. This function is // used by the waiter to decide if a state is retryable or a terminal state. By // default service-modeled logic will populate this option. This option can thus be // used to define a custom waiter state with fall-back to service-modeled waiter // state mutators.The function returns an error in case of a failure state. In case // of retry state, this function returns a bool value of true and nil error, while // in case of success it returns a bool value of false and nil error. Retryable func(context.Context, *DescribeInputInput, *DescribeInputOutput, error) (bool, error) } // InputDeletedWaiter defines the waiters for InputDeleted type InputDeletedWaiter struct { client DescribeInputAPIClient options InputDeletedWaiterOptions } // NewInputDeletedWaiter constructs a InputDeletedWaiter. func NewInputDeletedWaiter(client DescribeInputAPIClient, optFns ...func(*InputDeletedWaiterOptions)) *InputDeletedWaiter { options := InputDeletedWaiterOptions{} options.MinDelay = 5 * time.Second options.MaxDelay = 120 * time.Second options.Retryable = inputDeletedStateRetryable for _, fn := range optFns { fn(&options) } return &InputDeletedWaiter{ client: client, options: options, } } // Wait calls the waiter function for InputDeleted waiter. The maxWaitDur is the // maximum wait duration the waiter will wait. The maxWaitDur is required and must // be greater than zero. func (w *InputDeletedWaiter) Wait(ctx context.Context, params *DescribeInputInput, maxWaitDur time.Duration, optFns ...func(*InputDeletedWaiterOptions)) error { _, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...) return err } // WaitForOutput calls the waiter function for InputDeleted waiter and returns the // output of the successful operation. The maxWaitDur is the maximum wait duration // the waiter will wait. The maxWaitDur is required and must be greater than zero. func (w *InputDeletedWaiter) WaitForOutput(ctx context.Context, params *DescribeInputInput, maxWaitDur time.Duration, optFns ...func(*InputDeletedWaiterOptions)) (*DescribeInputOutput, error) { if maxWaitDur <= 0 { return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero") } options := w.options for _, fn := range optFns { fn(&options) } if options.MaxDelay <= 0 { options.MaxDelay = 120 * time.Second } if options.MinDelay > options.MaxDelay { return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) } ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) defer cancelFn() logger := smithywaiter.Logger{} remainingTime := maxWaitDur var attempt int64 for { attempt++ apiOptions := options.APIOptions start := time.Now() if options.LogWaitAttempts { logger.Attempt = attempt apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) apiOptions = append(apiOptions, logger.AddLogger) } out, err := w.client.DescribeInput(ctx, params, func(o *Options) { o.APIOptions = append(o.APIOptions, apiOptions...) }) retryable, err := options.Retryable(ctx, params, out, err) if err != nil { return nil, err } if !retryable { return out, nil } remainingTime -= time.Since(start) if remainingTime < options.MinDelay || remainingTime <= 0 { break } // compute exponential backoff between waiter retries delay, err := smithywaiter.ComputeDelay( attempt, options.MinDelay, options.MaxDelay, remainingTime, ) if err != nil { return nil, fmt.Errorf("error computing waiter delay, %w", err) } remainingTime -= delay // sleep for the delay amount before invoking a request if err := smithytime.SleepWithContext(ctx, delay); err != nil { return nil, fmt.Errorf("request cancelled while waiting, %w", err) } } return nil, fmt.Errorf("exceeded max wait time for InputDeleted waiter") } func inputDeletedStateRetryable(ctx context.Context, input *DescribeInputInput, output *DescribeInputOutput, err error) (bool, error) { if err == nil { pathValue, err := jmespath.Search("State", output) if err != nil { return false, fmt.Errorf("error evaluating waiter state: %w", err) } expectedValue := "DELETED" value, ok := pathValue.(types.InputState) if !ok { return false, fmt.Errorf("waiter comparator expected types.InputState value, got %T", pathValue) } if string(value) == expectedValue { return false, nil } } if err == nil { pathValue, err := jmespath.Search("State", output) if err != nil { return false, fmt.Errorf("error evaluating waiter state: %w", err) } expectedValue := "DELETING" value, ok := pathValue.(types.InputState) if !ok { return false, fmt.Errorf("waiter comparator expected types.InputState value, got %T", pathValue) } if string(value) == expectedValue { return true, nil } } if err != nil { var errorType *types.InternalServerErrorException if errors.As(err, &errorType) { return true, nil } } return true, nil } // InputDetachedWaiterOptions are waiter options for InputDetachedWaiter type InputDetachedWaiterOptions struct { // Set of options to modify how an operation is invoked. These apply to all // operations invoked for this client. Use functional options on operation call to // modify this list for per operation behavior. APIOptions []func(*middleware.Stack) error // MinDelay is the minimum amount of time to delay between retries. If unset, // InputDetachedWaiter will use default minimum delay of 5 seconds. Note that // MinDelay must resolve to a value lesser than or equal to the MaxDelay. MinDelay time.Duration // MaxDelay is the maximum amount of time to delay between retries. If unset or // set to zero, InputDetachedWaiter will use default max delay of 120 seconds. Note // that MaxDelay must resolve to value greater than or equal to the MinDelay. MaxDelay time.Duration // LogWaitAttempts is used to enable logging for waiter retry attempts LogWaitAttempts bool // Retryable is function that can be used to override the service defined // waiter-behavior based on operation output, or returned error. This function is // used by the waiter to decide if a state is retryable or a terminal state. By // default service-modeled logic will populate this option. This option can thus be // used to define a custom waiter state with fall-back to service-modeled waiter // state mutators.The function returns an error in case of a failure state. In case // of retry state, this function returns a bool value of true and nil error, while // in case of success it returns a bool value of false and nil error. Retryable func(context.Context, *DescribeInputInput, *DescribeInputOutput, error) (bool, error) } // InputDetachedWaiter defines the waiters for InputDetached type InputDetachedWaiter struct { client DescribeInputAPIClient options InputDetachedWaiterOptions } // NewInputDetachedWaiter constructs a InputDetachedWaiter. func NewInputDetachedWaiter(client DescribeInputAPIClient, optFns ...func(*InputDetachedWaiterOptions)) *InputDetachedWaiter { options := InputDetachedWaiterOptions{} options.MinDelay = 5 * time.Second options.MaxDelay = 120 * time.Second options.Retryable = inputDetachedStateRetryable for _, fn := range optFns { fn(&options) } return &InputDetachedWaiter{ client: client, options: options, } } // Wait calls the waiter function for InputDetached waiter. The maxWaitDur is the // maximum wait duration the waiter will wait. The maxWaitDur is required and must // be greater than zero. func (w *InputDetachedWaiter) Wait(ctx context.Context, params *DescribeInputInput, maxWaitDur time.Duration, optFns ...func(*InputDetachedWaiterOptions)) error { _, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...) return err } // WaitForOutput calls the waiter function for InputDetached waiter and returns // the output of the successful operation. The maxWaitDur is the maximum wait // duration the waiter will wait. The maxWaitDur is required and must be greater // than zero. func (w *InputDetachedWaiter) WaitForOutput(ctx context.Context, params *DescribeInputInput, maxWaitDur time.Duration, optFns ...func(*InputDetachedWaiterOptions)) (*DescribeInputOutput, error) { if maxWaitDur <= 0 { return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero") } options := w.options for _, fn := range optFns { fn(&options) } if options.MaxDelay <= 0 { options.MaxDelay = 120 * time.Second } if options.MinDelay > options.MaxDelay { return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) } ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) defer cancelFn() logger := smithywaiter.Logger{} remainingTime := maxWaitDur var attempt int64 for { attempt++ apiOptions := options.APIOptions start := time.Now() if options.LogWaitAttempts { logger.Attempt = attempt apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) apiOptions = append(apiOptions, logger.AddLogger) } out, err := w.client.DescribeInput(ctx, params, func(o *Options) { o.APIOptions = append(o.APIOptions, apiOptions...) }) retryable, err := options.Retryable(ctx, params, out, err) if err != nil { return nil, err } if !retryable { return out, nil } remainingTime -= time.Since(start) if remainingTime < options.MinDelay || remainingTime <= 0 { break } // compute exponential backoff between waiter retries delay, err := smithywaiter.ComputeDelay( attempt, options.MinDelay, options.MaxDelay, remainingTime, ) if err != nil { return nil, fmt.Errorf("error computing waiter delay, %w", err) } remainingTime -= delay // sleep for the delay amount before invoking a request if err := smithytime.SleepWithContext(ctx, delay); err != nil { return nil, fmt.Errorf("request cancelled while waiting, %w", err) } } return nil, fmt.Errorf("exceeded max wait time for InputDetached waiter") } func inputDetachedStateRetryable(ctx context.Context, input *DescribeInputInput, output *DescribeInputOutput, err error) (bool, error) { if err == nil { pathValue, err := jmespath.Search("State", output) if err != nil { return false, fmt.Errorf("error evaluating waiter state: %w", err) } expectedValue := "DETACHED" value, ok := pathValue.(types.InputState) if !ok { return false, fmt.Errorf("waiter comparator expected types.InputState value, got %T", pathValue) } if string(value) == expectedValue { return false, nil } } if err == nil { pathValue, err := jmespath.Search("State", output) if err != nil { return false, fmt.Errorf("error evaluating waiter state: %w", err) } expectedValue := "CREATING" value, ok := pathValue.(types.InputState) if !ok { return false, fmt.Errorf("waiter comparator expected types.InputState value, got %T", pathValue) } if string(value) == expectedValue { return true, nil } } if err == nil { pathValue, err := jmespath.Search("State", output) if err != nil { return false, fmt.Errorf("error evaluating waiter state: %w", err) } expectedValue := "ATTACHED" value, ok := pathValue.(types.InputState) if !ok { return false, fmt.Errorf("waiter comparator expected types.InputState value, got %T", pathValue) } if string(value) == expectedValue { return true, nil } } if err != nil { var errorType *types.InternalServerErrorException if errors.As(err, &errorType) { return true, nil } } return true, nil } func newServiceMetadataMiddleware_opDescribeInput(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "DescribeInput", } }
763
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/medialive/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Gets the details for the input device func (c *Client) DescribeInputDevice(ctx context.Context, params *DescribeInputDeviceInput, optFns ...func(*Options)) (*DescribeInputDeviceOutput, error) { if params == nil { params = &DescribeInputDeviceInput{} } result, metadata, err := c.invokeOperation(ctx, "DescribeInputDevice", params, optFns, c.addOperationDescribeInputDeviceMiddlewares) if err != nil { return nil, err } out := result.(*DescribeInputDeviceOutput) out.ResultMetadata = metadata return out, nil } // Placeholder documentation for DescribeInputDeviceRequest type DescribeInputDeviceInput struct { // The unique ID of this input device. For example, hd-123456789abcdef. // // This member is required. InputDeviceId *string noSmithyDocumentSerde } // Placeholder documentation for DescribeInputDeviceResponse type DescribeInputDeviceOutput struct { // The unique ARN of the input device. Arn *string // The state of the connection between the input device and AWS. ConnectionState types.InputDeviceConnectionState // The status of the action to synchronize the device configuration. If you change // the configuration of the input device (for example, the maximum bitrate), // MediaLive sends the new data to the device. The device might not update itself // immediately. SYNCED means the device has updated its configuration. SYNCING // means that it has not updated its configuration. DeviceSettingsSyncState types.DeviceSettingsSyncState // The status of software on the input device. DeviceUpdateStatus types.DeviceUpdateStatus // Settings that describe an input device that is type HD. HdDeviceSettings *types.InputDeviceHdSettings // The unique ID of the input device. Id *string // The network MAC address of the input device. MacAddress *string // A name that you specify for the input device. Name *string // The network settings for the input device. NetworkSettings *types.InputDeviceNetworkSettings // The unique serial number of the input device. SerialNumber *string // A collection of key-value pairs. Tags map[string]string // The type of the input device. Type types.InputDeviceType // Settings that describe an input device that is type UHD. UhdDeviceSettings *types.InputDeviceUhdSettings // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDescribeInputDeviceMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpDescribeInputDevice{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDescribeInputDevice{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpDescribeInputDeviceValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeInputDevice(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opDescribeInputDevice(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "DescribeInputDevice", } }
167
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/medialive/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" "io" "time" ) // Get the latest thumbnail data for the input device. func (c *Client) DescribeInputDeviceThumbnail(ctx context.Context, params *DescribeInputDeviceThumbnailInput, optFns ...func(*Options)) (*DescribeInputDeviceThumbnailOutput, error) { if params == nil { params = &DescribeInputDeviceThumbnailInput{} } result, metadata, err := c.invokeOperation(ctx, "DescribeInputDeviceThumbnail", params, optFns, c.addOperationDescribeInputDeviceThumbnailMiddlewares) if err != nil { return nil, err } out := result.(*DescribeInputDeviceThumbnailOutput) out.ResultMetadata = metadata return out, nil } // Placeholder documentation for DescribeInputDeviceThumbnailRequest type DescribeInputDeviceThumbnailInput struct { // The HTTP Accept header. Indicates the requested type for the thumbnail. // // This member is required. Accept types.AcceptHeader // The unique ID of this input device. For example, hd-123456789abcdef. // // This member is required. InputDeviceId *string noSmithyDocumentSerde } // Placeholder documentation for DescribeInputDeviceThumbnailResponse type DescribeInputDeviceThumbnailOutput struct { // The binary data for the thumbnail that the Link device has most recently sent // to MediaLive. Body io.ReadCloser // The length of the content. ContentLength int64 // Specifies the media type of the thumbnail. ContentType types.ContentType // The unique, cacheable version of this thumbnail. ETag *string // The date and time the thumbnail was last updated at the device. LastModified *time.Time // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDescribeInputDeviceThumbnailMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpDescribeInputDeviceThumbnail{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDescribeInputDeviceThumbnail{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpDescribeInputDeviceThumbnailValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeInputDeviceThumbnail(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opDescribeInputDeviceThumbnail(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "DescribeInputDeviceThumbnail", } }
144
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/medialive/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Produces a summary of an Input Security Group func (c *Client) DescribeInputSecurityGroup(ctx context.Context, params *DescribeInputSecurityGroupInput, optFns ...func(*Options)) (*DescribeInputSecurityGroupOutput, error) { if params == nil { params = &DescribeInputSecurityGroupInput{} } result, metadata, err := c.invokeOperation(ctx, "DescribeInputSecurityGroup", params, optFns, c.addOperationDescribeInputSecurityGroupMiddlewares) if err != nil { return nil, err } out := result.(*DescribeInputSecurityGroupOutput) out.ResultMetadata = metadata return out, nil } // Placeholder documentation for DescribeInputSecurityGroupRequest type DescribeInputSecurityGroupInput struct { // The id of the Input Security Group to describe // // This member is required. InputSecurityGroupId *string noSmithyDocumentSerde } // Placeholder documentation for DescribeInputSecurityGroupResponse type DescribeInputSecurityGroupOutput struct { // Unique ARN of Input Security Group Arn *string // The Id of the Input Security Group Id *string // The list of inputs currently using this Input Security Group. Inputs []string // The current state of the Input Security Group. State types.InputSecurityGroupState // A collection of key-value pairs. Tags map[string]string // Whitelist rules and their sync status WhitelistRules []types.InputWhitelistRule // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDescribeInputSecurityGroupMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpDescribeInputSecurityGroup{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDescribeInputSecurityGroup{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpDescribeInputSecurityGroupValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeInputSecurityGroup(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opDescribeInputSecurityGroup(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "DescribeInputSecurityGroup", } }
142
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" "errors" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/medialive/types" "github.com/aws/smithy-go/middleware" smithytime "github.com/aws/smithy-go/time" smithyhttp "github.com/aws/smithy-go/transport/http" smithywaiter "github.com/aws/smithy-go/waiter" "github.com/jmespath/go-jmespath" "time" ) // Gets details about a multiplex. func (c *Client) DescribeMultiplex(ctx context.Context, params *DescribeMultiplexInput, optFns ...func(*Options)) (*DescribeMultiplexOutput, error) { if params == nil { params = &DescribeMultiplexInput{} } result, metadata, err := c.invokeOperation(ctx, "DescribeMultiplex", params, optFns, c.addOperationDescribeMultiplexMiddlewares) if err != nil { return nil, err } out := result.(*DescribeMultiplexOutput) out.ResultMetadata = metadata return out, nil } // Placeholder documentation for DescribeMultiplexRequest type DescribeMultiplexInput struct { // The ID of the multiplex. // // This member is required. MultiplexId *string noSmithyDocumentSerde } // Placeholder documentation for DescribeMultiplexResponse type DescribeMultiplexOutput struct { // The unique arn of the multiplex. Arn *string // A list of availability zones for the multiplex. AvailabilityZones []string // A list of the multiplex output destinations. Destinations []types.MultiplexOutputDestination // The unique id of the multiplex. Id *string // Configuration for a multiplex event. MultiplexSettings *types.MultiplexSettings // The name of the multiplex. Name *string // The number of currently healthy pipelines. PipelinesRunningCount int32 // The number of programs in the multiplex. ProgramCount int32 // The current state of the multiplex. State types.MultiplexState // A collection of key-value pairs. Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDescribeMultiplexMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpDescribeMultiplex{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDescribeMultiplex{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpDescribeMultiplexValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeMultiplex(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } // DescribeMultiplexAPIClient is a client that implements the DescribeMultiplex // operation. type DescribeMultiplexAPIClient interface { DescribeMultiplex(context.Context, *DescribeMultiplexInput, ...func(*Options)) (*DescribeMultiplexOutput, error) } var _ DescribeMultiplexAPIClient = (*Client)(nil) // MultiplexCreatedWaiterOptions are waiter options for MultiplexCreatedWaiter type MultiplexCreatedWaiterOptions struct { // Set of options to modify how an operation is invoked. These apply to all // operations invoked for this client. Use functional options on operation call to // modify this list for per operation behavior. APIOptions []func(*middleware.Stack) error // MinDelay is the minimum amount of time to delay between retries. If unset, // MultiplexCreatedWaiter will use default minimum delay of 3 seconds. Note that // MinDelay must resolve to a value lesser than or equal to the MaxDelay. MinDelay time.Duration // MaxDelay is the maximum amount of time to delay between retries. If unset or // set to zero, MultiplexCreatedWaiter will use default max delay of 120 seconds. // Note that MaxDelay must resolve to value greater than or equal to the MinDelay. MaxDelay time.Duration // LogWaitAttempts is used to enable logging for waiter retry attempts LogWaitAttempts bool // Retryable is function that can be used to override the service defined // waiter-behavior based on operation output, or returned error. This function is // used by the waiter to decide if a state is retryable or a terminal state. By // default service-modeled logic will populate this option. This option can thus be // used to define a custom waiter state with fall-back to service-modeled waiter // state mutators.The function returns an error in case of a failure state. In case // of retry state, this function returns a bool value of true and nil error, while // in case of success it returns a bool value of false and nil error. Retryable func(context.Context, *DescribeMultiplexInput, *DescribeMultiplexOutput, error) (bool, error) } // MultiplexCreatedWaiter defines the waiters for MultiplexCreated type MultiplexCreatedWaiter struct { client DescribeMultiplexAPIClient options MultiplexCreatedWaiterOptions } // NewMultiplexCreatedWaiter constructs a MultiplexCreatedWaiter. func NewMultiplexCreatedWaiter(client DescribeMultiplexAPIClient, optFns ...func(*MultiplexCreatedWaiterOptions)) *MultiplexCreatedWaiter { options := MultiplexCreatedWaiterOptions{} options.MinDelay = 3 * time.Second options.MaxDelay = 120 * time.Second options.Retryable = multiplexCreatedStateRetryable for _, fn := range optFns { fn(&options) } return &MultiplexCreatedWaiter{ client: client, options: options, } } // Wait calls the waiter function for MultiplexCreated waiter. The maxWaitDur is // the maximum wait duration the waiter will wait. The maxWaitDur is required and // must be greater than zero. func (w *MultiplexCreatedWaiter) Wait(ctx context.Context, params *DescribeMultiplexInput, maxWaitDur time.Duration, optFns ...func(*MultiplexCreatedWaiterOptions)) error { _, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...) return err } // WaitForOutput calls the waiter function for MultiplexCreated waiter and returns // the output of the successful operation. The maxWaitDur is the maximum wait // duration the waiter will wait. The maxWaitDur is required and must be greater // than zero. func (w *MultiplexCreatedWaiter) WaitForOutput(ctx context.Context, params *DescribeMultiplexInput, maxWaitDur time.Duration, optFns ...func(*MultiplexCreatedWaiterOptions)) (*DescribeMultiplexOutput, error) { if maxWaitDur <= 0 { return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero") } options := w.options for _, fn := range optFns { fn(&options) } if options.MaxDelay <= 0 { options.MaxDelay = 120 * time.Second } if options.MinDelay > options.MaxDelay { return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) } ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) defer cancelFn() logger := smithywaiter.Logger{} remainingTime := maxWaitDur var attempt int64 for { attempt++ apiOptions := options.APIOptions start := time.Now() if options.LogWaitAttempts { logger.Attempt = attempt apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) apiOptions = append(apiOptions, logger.AddLogger) } out, err := w.client.DescribeMultiplex(ctx, params, func(o *Options) { o.APIOptions = append(o.APIOptions, apiOptions...) }) retryable, err := options.Retryable(ctx, params, out, err) if err != nil { return nil, err } if !retryable { return out, nil } remainingTime -= time.Since(start) if remainingTime < options.MinDelay || remainingTime <= 0 { break } // compute exponential backoff between waiter retries delay, err := smithywaiter.ComputeDelay( attempt, options.MinDelay, options.MaxDelay, remainingTime, ) if err != nil { return nil, fmt.Errorf("error computing waiter delay, %w", err) } remainingTime -= delay // sleep for the delay amount before invoking a request if err := smithytime.SleepWithContext(ctx, delay); err != nil { return nil, fmt.Errorf("request cancelled while waiting, %w", err) } } return nil, fmt.Errorf("exceeded max wait time for MultiplexCreated waiter") } func multiplexCreatedStateRetryable(ctx context.Context, input *DescribeMultiplexInput, output *DescribeMultiplexOutput, err error) (bool, error) { if err == nil { pathValue, err := jmespath.Search("State", output) if err != nil { return false, fmt.Errorf("error evaluating waiter state: %w", err) } expectedValue := "IDLE" value, ok := pathValue.(types.MultiplexState) if !ok { return false, fmt.Errorf("waiter comparator expected types.MultiplexState value, got %T", pathValue) } if string(value) == expectedValue { return false, nil } } if err == nil { pathValue, err := jmespath.Search("State", output) if err != nil { return false, fmt.Errorf("error evaluating waiter state: %w", err) } expectedValue := "CREATING" value, ok := pathValue.(types.MultiplexState) if !ok { return false, fmt.Errorf("waiter comparator expected types.MultiplexState value, got %T", pathValue) } if string(value) == expectedValue { return true, nil } } if err != nil { var errorType *types.InternalServerErrorException if errors.As(err, &errorType) { return true, nil } } if err == nil { pathValue, err := jmespath.Search("State", output) if err != nil { return false, fmt.Errorf("error evaluating waiter state: %w", err) } expectedValue := "CREATE_FAILED" value, ok := pathValue.(types.MultiplexState) if !ok { return false, fmt.Errorf("waiter comparator expected types.MultiplexState value, got %T", pathValue) } if string(value) == expectedValue { return false, fmt.Errorf("waiter state transitioned to Failure") } } return true, nil } // MultiplexDeletedWaiterOptions are waiter options for MultiplexDeletedWaiter type MultiplexDeletedWaiterOptions struct { // Set of options to modify how an operation is invoked. These apply to all // operations invoked for this client. Use functional options on operation call to // modify this list for per operation behavior. APIOptions []func(*middleware.Stack) error // MinDelay is the minimum amount of time to delay between retries. If unset, // MultiplexDeletedWaiter will use default minimum delay of 5 seconds. Note that // MinDelay must resolve to a value lesser than or equal to the MaxDelay. MinDelay time.Duration // MaxDelay is the maximum amount of time to delay between retries. If unset or // set to zero, MultiplexDeletedWaiter will use default max delay of 120 seconds. // Note that MaxDelay must resolve to value greater than or equal to the MinDelay. MaxDelay time.Duration // LogWaitAttempts is used to enable logging for waiter retry attempts LogWaitAttempts bool // Retryable is function that can be used to override the service defined // waiter-behavior based on operation output, or returned error. This function is // used by the waiter to decide if a state is retryable or a terminal state. By // default service-modeled logic will populate this option. This option can thus be // used to define a custom waiter state with fall-back to service-modeled waiter // state mutators.The function returns an error in case of a failure state. In case // of retry state, this function returns a bool value of true and nil error, while // in case of success it returns a bool value of false and nil error. Retryable func(context.Context, *DescribeMultiplexInput, *DescribeMultiplexOutput, error) (bool, error) } // MultiplexDeletedWaiter defines the waiters for MultiplexDeleted type MultiplexDeletedWaiter struct { client DescribeMultiplexAPIClient options MultiplexDeletedWaiterOptions } // NewMultiplexDeletedWaiter constructs a MultiplexDeletedWaiter. func NewMultiplexDeletedWaiter(client DescribeMultiplexAPIClient, optFns ...func(*MultiplexDeletedWaiterOptions)) *MultiplexDeletedWaiter { options := MultiplexDeletedWaiterOptions{} options.MinDelay = 5 * time.Second options.MaxDelay = 120 * time.Second options.Retryable = multiplexDeletedStateRetryable for _, fn := range optFns { fn(&options) } return &MultiplexDeletedWaiter{ client: client, options: options, } } // Wait calls the waiter function for MultiplexDeleted waiter. The maxWaitDur is // the maximum wait duration the waiter will wait. The maxWaitDur is required and // must be greater than zero. func (w *MultiplexDeletedWaiter) Wait(ctx context.Context, params *DescribeMultiplexInput, maxWaitDur time.Duration, optFns ...func(*MultiplexDeletedWaiterOptions)) error { _, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...) return err } // WaitForOutput calls the waiter function for MultiplexDeleted waiter and returns // the output of the successful operation. The maxWaitDur is the maximum wait // duration the waiter will wait. The maxWaitDur is required and must be greater // than zero. func (w *MultiplexDeletedWaiter) WaitForOutput(ctx context.Context, params *DescribeMultiplexInput, maxWaitDur time.Duration, optFns ...func(*MultiplexDeletedWaiterOptions)) (*DescribeMultiplexOutput, error) { if maxWaitDur <= 0 { return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero") } options := w.options for _, fn := range optFns { fn(&options) } if options.MaxDelay <= 0 { options.MaxDelay = 120 * time.Second } if options.MinDelay > options.MaxDelay { return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) } ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) defer cancelFn() logger := smithywaiter.Logger{} remainingTime := maxWaitDur var attempt int64 for { attempt++ apiOptions := options.APIOptions start := time.Now() if options.LogWaitAttempts { logger.Attempt = attempt apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) apiOptions = append(apiOptions, logger.AddLogger) } out, err := w.client.DescribeMultiplex(ctx, params, func(o *Options) { o.APIOptions = append(o.APIOptions, apiOptions...) }) retryable, err := options.Retryable(ctx, params, out, err) if err != nil { return nil, err } if !retryable { return out, nil } remainingTime -= time.Since(start) if remainingTime < options.MinDelay || remainingTime <= 0 { break } // compute exponential backoff between waiter retries delay, err := smithywaiter.ComputeDelay( attempt, options.MinDelay, options.MaxDelay, remainingTime, ) if err != nil { return nil, fmt.Errorf("error computing waiter delay, %w", err) } remainingTime -= delay // sleep for the delay amount before invoking a request if err := smithytime.SleepWithContext(ctx, delay); err != nil { return nil, fmt.Errorf("request cancelled while waiting, %w", err) } } return nil, fmt.Errorf("exceeded max wait time for MultiplexDeleted waiter") } func multiplexDeletedStateRetryable(ctx context.Context, input *DescribeMultiplexInput, output *DescribeMultiplexOutput, err error) (bool, error) { if err == nil { pathValue, err := jmespath.Search("State", output) if err != nil { return false, fmt.Errorf("error evaluating waiter state: %w", err) } expectedValue := "DELETED" value, ok := pathValue.(types.MultiplexState) if !ok { return false, fmt.Errorf("waiter comparator expected types.MultiplexState value, got %T", pathValue) } if string(value) == expectedValue { return false, nil } } if err == nil { pathValue, err := jmespath.Search("State", output) if err != nil { return false, fmt.Errorf("error evaluating waiter state: %w", err) } expectedValue := "DELETING" value, ok := pathValue.(types.MultiplexState) if !ok { return false, fmt.Errorf("waiter comparator expected types.MultiplexState value, got %T", pathValue) } if string(value) == expectedValue { return true, nil } } if err != nil { var errorType *types.InternalServerErrorException if errors.As(err, &errorType) { return true, nil } } return true, nil } // MultiplexRunningWaiterOptions are waiter options for MultiplexRunningWaiter type MultiplexRunningWaiterOptions struct { // Set of options to modify how an operation is invoked. These apply to all // operations invoked for this client. Use functional options on operation call to // modify this list for per operation behavior. APIOptions []func(*middleware.Stack) error // MinDelay is the minimum amount of time to delay between retries. If unset, // MultiplexRunningWaiter will use default minimum delay of 5 seconds. Note that // MinDelay must resolve to a value lesser than or equal to the MaxDelay. MinDelay time.Duration // MaxDelay is the maximum amount of time to delay between retries. If unset or // set to zero, MultiplexRunningWaiter will use default max delay of 120 seconds. // Note that MaxDelay must resolve to value greater than or equal to the MinDelay. MaxDelay time.Duration // LogWaitAttempts is used to enable logging for waiter retry attempts LogWaitAttempts bool // Retryable is function that can be used to override the service defined // waiter-behavior based on operation output, or returned error. This function is // used by the waiter to decide if a state is retryable or a terminal state. By // default service-modeled logic will populate this option. This option can thus be // used to define a custom waiter state with fall-back to service-modeled waiter // state mutators.The function returns an error in case of a failure state. In case // of retry state, this function returns a bool value of true and nil error, while // in case of success it returns a bool value of false and nil error. Retryable func(context.Context, *DescribeMultiplexInput, *DescribeMultiplexOutput, error) (bool, error) } // MultiplexRunningWaiter defines the waiters for MultiplexRunning type MultiplexRunningWaiter struct { client DescribeMultiplexAPIClient options MultiplexRunningWaiterOptions } // NewMultiplexRunningWaiter constructs a MultiplexRunningWaiter. func NewMultiplexRunningWaiter(client DescribeMultiplexAPIClient, optFns ...func(*MultiplexRunningWaiterOptions)) *MultiplexRunningWaiter { options := MultiplexRunningWaiterOptions{} options.MinDelay = 5 * time.Second options.MaxDelay = 120 * time.Second options.Retryable = multiplexRunningStateRetryable for _, fn := range optFns { fn(&options) } return &MultiplexRunningWaiter{ client: client, options: options, } } // Wait calls the waiter function for MultiplexRunning waiter. The maxWaitDur is // the maximum wait duration the waiter will wait. The maxWaitDur is required and // must be greater than zero. func (w *MultiplexRunningWaiter) Wait(ctx context.Context, params *DescribeMultiplexInput, maxWaitDur time.Duration, optFns ...func(*MultiplexRunningWaiterOptions)) error { _, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...) return err } // WaitForOutput calls the waiter function for MultiplexRunning waiter and returns // the output of the successful operation. The maxWaitDur is the maximum wait // duration the waiter will wait. The maxWaitDur is required and must be greater // than zero. func (w *MultiplexRunningWaiter) WaitForOutput(ctx context.Context, params *DescribeMultiplexInput, maxWaitDur time.Duration, optFns ...func(*MultiplexRunningWaiterOptions)) (*DescribeMultiplexOutput, error) { if maxWaitDur <= 0 { return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero") } options := w.options for _, fn := range optFns { fn(&options) } if options.MaxDelay <= 0 { options.MaxDelay = 120 * time.Second } if options.MinDelay > options.MaxDelay { return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) } ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) defer cancelFn() logger := smithywaiter.Logger{} remainingTime := maxWaitDur var attempt int64 for { attempt++ apiOptions := options.APIOptions start := time.Now() if options.LogWaitAttempts { logger.Attempt = attempt apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) apiOptions = append(apiOptions, logger.AddLogger) } out, err := w.client.DescribeMultiplex(ctx, params, func(o *Options) { o.APIOptions = append(o.APIOptions, apiOptions...) }) retryable, err := options.Retryable(ctx, params, out, err) if err != nil { return nil, err } if !retryable { return out, nil } remainingTime -= time.Since(start) if remainingTime < options.MinDelay || remainingTime <= 0 { break } // compute exponential backoff between waiter retries delay, err := smithywaiter.ComputeDelay( attempt, options.MinDelay, options.MaxDelay, remainingTime, ) if err != nil { return nil, fmt.Errorf("error computing waiter delay, %w", err) } remainingTime -= delay // sleep for the delay amount before invoking a request if err := smithytime.SleepWithContext(ctx, delay); err != nil { return nil, fmt.Errorf("request cancelled while waiting, %w", err) } } return nil, fmt.Errorf("exceeded max wait time for MultiplexRunning waiter") } func multiplexRunningStateRetryable(ctx context.Context, input *DescribeMultiplexInput, output *DescribeMultiplexOutput, err error) (bool, error) { if err == nil { pathValue, err := jmespath.Search("State", output) if err != nil { return false, fmt.Errorf("error evaluating waiter state: %w", err) } expectedValue := "RUNNING" value, ok := pathValue.(types.MultiplexState) if !ok { return false, fmt.Errorf("waiter comparator expected types.MultiplexState value, got %T", pathValue) } if string(value) == expectedValue { return false, nil } } if err == nil { pathValue, err := jmespath.Search("State", output) if err != nil { return false, fmt.Errorf("error evaluating waiter state: %w", err) } expectedValue := "STARTING" value, ok := pathValue.(types.MultiplexState) if !ok { return false, fmt.Errorf("waiter comparator expected types.MultiplexState value, got %T", pathValue) } if string(value) == expectedValue { return true, nil } } if err != nil { var errorType *types.InternalServerErrorException if errors.As(err, &errorType) { return true, nil } } return true, nil } // MultiplexStoppedWaiterOptions are waiter options for MultiplexStoppedWaiter type MultiplexStoppedWaiterOptions struct { // Set of options to modify how an operation is invoked. These apply to all // operations invoked for this client. Use functional options on operation call to // modify this list for per operation behavior. APIOptions []func(*middleware.Stack) error // MinDelay is the minimum amount of time to delay between retries. If unset, // MultiplexStoppedWaiter will use default minimum delay of 5 seconds. Note that // MinDelay must resolve to a value lesser than or equal to the MaxDelay. MinDelay time.Duration // MaxDelay is the maximum amount of time to delay between retries. If unset or // set to zero, MultiplexStoppedWaiter will use default max delay of 120 seconds. // Note that MaxDelay must resolve to value greater than or equal to the MinDelay. MaxDelay time.Duration // LogWaitAttempts is used to enable logging for waiter retry attempts LogWaitAttempts bool // Retryable is function that can be used to override the service defined // waiter-behavior based on operation output, or returned error. This function is // used by the waiter to decide if a state is retryable or a terminal state. By // default service-modeled logic will populate this option. This option can thus be // used to define a custom waiter state with fall-back to service-modeled waiter // state mutators.The function returns an error in case of a failure state. In case // of retry state, this function returns a bool value of true and nil error, while // in case of success it returns a bool value of false and nil error. Retryable func(context.Context, *DescribeMultiplexInput, *DescribeMultiplexOutput, error) (bool, error) } // MultiplexStoppedWaiter defines the waiters for MultiplexStopped type MultiplexStoppedWaiter struct { client DescribeMultiplexAPIClient options MultiplexStoppedWaiterOptions } // NewMultiplexStoppedWaiter constructs a MultiplexStoppedWaiter. func NewMultiplexStoppedWaiter(client DescribeMultiplexAPIClient, optFns ...func(*MultiplexStoppedWaiterOptions)) *MultiplexStoppedWaiter { options := MultiplexStoppedWaiterOptions{} options.MinDelay = 5 * time.Second options.MaxDelay = 120 * time.Second options.Retryable = multiplexStoppedStateRetryable for _, fn := range optFns { fn(&options) } return &MultiplexStoppedWaiter{ client: client, options: options, } } // Wait calls the waiter function for MultiplexStopped waiter. The maxWaitDur is // the maximum wait duration the waiter will wait. The maxWaitDur is required and // must be greater than zero. func (w *MultiplexStoppedWaiter) Wait(ctx context.Context, params *DescribeMultiplexInput, maxWaitDur time.Duration, optFns ...func(*MultiplexStoppedWaiterOptions)) error { _, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...) return err } // WaitForOutput calls the waiter function for MultiplexStopped waiter and returns // the output of the successful operation. The maxWaitDur is the maximum wait // duration the waiter will wait. The maxWaitDur is required and must be greater // than zero. func (w *MultiplexStoppedWaiter) WaitForOutput(ctx context.Context, params *DescribeMultiplexInput, maxWaitDur time.Duration, optFns ...func(*MultiplexStoppedWaiterOptions)) (*DescribeMultiplexOutput, error) { if maxWaitDur <= 0 { return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero") } options := w.options for _, fn := range optFns { fn(&options) } if options.MaxDelay <= 0 { options.MaxDelay = 120 * time.Second } if options.MinDelay > options.MaxDelay { return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) } ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) defer cancelFn() logger := smithywaiter.Logger{} remainingTime := maxWaitDur var attempt int64 for { attempt++ apiOptions := options.APIOptions start := time.Now() if options.LogWaitAttempts { logger.Attempt = attempt apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) apiOptions = append(apiOptions, logger.AddLogger) } out, err := w.client.DescribeMultiplex(ctx, params, func(o *Options) { o.APIOptions = append(o.APIOptions, apiOptions...) }) retryable, err := options.Retryable(ctx, params, out, err) if err != nil { return nil, err } if !retryable { return out, nil } remainingTime -= time.Since(start) if remainingTime < options.MinDelay || remainingTime <= 0 { break } // compute exponential backoff between waiter retries delay, err := smithywaiter.ComputeDelay( attempt, options.MinDelay, options.MaxDelay, remainingTime, ) if err != nil { return nil, fmt.Errorf("error computing waiter delay, %w", err) } remainingTime -= delay // sleep for the delay amount before invoking a request if err := smithytime.SleepWithContext(ctx, delay); err != nil { return nil, fmt.Errorf("request cancelled while waiting, %w", err) } } return nil, fmt.Errorf("exceeded max wait time for MultiplexStopped waiter") } func multiplexStoppedStateRetryable(ctx context.Context, input *DescribeMultiplexInput, output *DescribeMultiplexOutput, err error) (bool, error) { if err == nil { pathValue, err := jmespath.Search("State", output) if err != nil { return false, fmt.Errorf("error evaluating waiter state: %w", err) } expectedValue := "IDLE" value, ok := pathValue.(types.MultiplexState) if !ok { return false, fmt.Errorf("waiter comparator expected types.MultiplexState value, got %T", pathValue) } if string(value) == expectedValue { return false, nil } } if err == nil { pathValue, err := jmespath.Search("State", output) if err != nil { return false, fmt.Errorf("error evaluating waiter state: %w", err) } expectedValue := "STOPPING" value, ok := pathValue.(types.MultiplexState) if !ok { return false, fmt.Errorf("waiter comparator expected types.MultiplexState value, got %T", pathValue) } if string(value) == expectedValue { return true, nil } } if err != nil { var errorType *types.InternalServerErrorException if errors.As(err, &errorType) { return true, nil } } return true, nil } func newServiceMetadataMiddleware_opDescribeMultiplex(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "DescribeMultiplex", } }
921
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/medialive/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Get the details for a program in a multiplex. func (c *Client) DescribeMultiplexProgram(ctx context.Context, params *DescribeMultiplexProgramInput, optFns ...func(*Options)) (*DescribeMultiplexProgramOutput, error) { if params == nil { params = &DescribeMultiplexProgramInput{} } result, metadata, err := c.invokeOperation(ctx, "DescribeMultiplexProgram", params, optFns, c.addOperationDescribeMultiplexProgramMiddlewares) if err != nil { return nil, err } out := result.(*DescribeMultiplexProgramOutput) out.ResultMetadata = metadata return out, nil } // Placeholder documentation for DescribeMultiplexProgramRequest type DescribeMultiplexProgramInput struct { // The ID of the multiplex that the program belongs to. // // This member is required. MultiplexId *string // The name of the program. // // This member is required. ProgramName *string noSmithyDocumentSerde } // Placeholder documentation for DescribeMultiplexProgramResponse type DescribeMultiplexProgramOutput struct { // The MediaLive channel associated with the program. ChannelId *string // The settings for this multiplex program. MultiplexProgramSettings *types.MultiplexProgramSettings // The packet identifier map for this multiplex program. PacketIdentifiersMap *types.MultiplexProgramPacketIdentifiersMap // Contains information about the current sources for the specified program in the // specified multiplex. Keep in mind that each multiplex pipeline connects to both // pipelines in a given source channel (the channel identified by the program). But // only one of those channel pipelines is ever active at one time. PipelineDetails []types.MultiplexProgramPipelineDetail // The name of the multiplex program. ProgramName *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDescribeMultiplexProgramMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpDescribeMultiplexProgram{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDescribeMultiplexProgram{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpDescribeMultiplexProgramValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeMultiplexProgram(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opDescribeMultiplexProgram(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "DescribeMultiplexProgram", } }
147
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/medialive/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Get details for an offering. func (c *Client) DescribeOffering(ctx context.Context, params *DescribeOfferingInput, optFns ...func(*Options)) (*DescribeOfferingOutput, error) { if params == nil { params = &DescribeOfferingInput{} } result, metadata, err := c.invokeOperation(ctx, "DescribeOffering", params, optFns, c.addOperationDescribeOfferingMiddlewares) if err != nil { return nil, err } out := result.(*DescribeOfferingOutput) out.ResultMetadata = metadata return out, nil } // Placeholder documentation for DescribeOfferingRequest type DescribeOfferingInput struct { // Unique offering ID, e.g. '87654321' // // This member is required. OfferingId *string noSmithyDocumentSerde } // Placeholder documentation for DescribeOfferingResponse type DescribeOfferingOutput struct { // Unique offering ARN, e.g. // 'arn:aws:medialive:us-west-2:123456789012:offering:87654321' Arn *string // Currency code for usagePrice and fixedPrice in ISO-4217 format, e.g. 'USD' CurrencyCode *string // Lease duration, e.g. '12' Duration int32 // Units for duration, e.g. 'MONTHS' DurationUnits types.OfferingDurationUnits // One-time charge for each reserved resource, e.g. '0.0' for a NO_UPFRONT offering FixedPrice float64 // Offering description, e.g. 'HD AVC output at 10-20 Mbps, 30 fps, and standard // VQ in US West (Oregon)' OfferingDescription *string // Unique offering ID, e.g. '87654321' OfferingId *string // Offering type, e.g. 'NO_UPFRONT' OfferingType types.OfferingType // AWS region, e.g. 'us-west-2' Region *string // Resource configuration details ResourceSpecification *types.ReservationResourceSpecification // Recurring usage charge for each reserved resource, e.g. '157.0' UsagePrice float64 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDescribeOfferingMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpDescribeOffering{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDescribeOffering{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpDescribeOfferingValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeOffering(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opDescribeOffering(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "DescribeOffering", } }
159
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/medialive/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Get details for a reservation. func (c *Client) DescribeReservation(ctx context.Context, params *DescribeReservationInput, optFns ...func(*Options)) (*DescribeReservationOutput, error) { if params == nil { params = &DescribeReservationInput{} } result, metadata, err := c.invokeOperation(ctx, "DescribeReservation", params, optFns, c.addOperationDescribeReservationMiddlewares) if err != nil { return nil, err } out := result.(*DescribeReservationOutput) out.ResultMetadata = metadata return out, nil } // Placeholder documentation for DescribeReservationRequest type DescribeReservationInput struct { // Unique reservation ID, e.g. '1234567' // // This member is required. ReservationId *string noSmithyDocumentSerde } // Placeholder documentation for DescribeReservationResponse type DescribeReservationOutput struct { // Unique reservation ARN, e.g. // 'arn:aws:medialive:us-west-2:123456789012:reservation:1234567' Arn *string // Number of reserved resources Count int32 // Currency code for usagePrice and fixedPrice in ISO-4217 format, e.g. 'USD' CurrencyCode *string // Lease duration, e.g. '12' Duration int32 // Units for duration, e.g. 'MONTHS' DurationUnits types.OfferingDurationUnits // Reservation UTC end date and time in ISO-8601 format, e.g. '2019-03-01T00:00:00' End *string // One-time charge for each reserved resource, e.g. '0.0' for a NO_UPFRONT offering FixedPrice float64 // User specified reservation name Name *string // Offering description, e.g. 'HD AVC output at 10-20 Mbps, 30 fps, and standard // VQ in US West (Oregon)' OfferingDescription *string // Unique offering ID, e.g. '87654321' OfferingId *string // Offering type, e.g. 'NO_UPFRONT' OfferingType types.OfferingType // AWS region, e.g. 'us-west-2' Region *string // Renewal settings for the reservation RenewalSettings *types.RenewalSettings // Unique reservation ID, e.g. '1234567' ReservationId *string // Resource configuration details ResourceSpecification *types.ReservationResourceSpecification // Reservation UTC start date and time in ISO-8601 format, e.g. // '2018-03-01T00:00:00' Start *string // Current state of reservation, e.g. 'ACTIVE' State types.ReservationState // A collection of key-value pairs Tags map[string]string // Recurring usage charge for each reserved resource, e.g. '157.0' UsagePrice float64 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDescribeReservationMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpDescribeReservation{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDescribeReservation{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpDescribeReservationValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeReservation(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opDescribeReservation(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "DescribeReservation", } }
184
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/medialive/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Get a channel schedule func (c *Client) DescribeSchedule(ctx context.Context, params *DescribeScheduleInput, optFns ...func(*Options)) (*DescribeScheduleOutput, error) { if params == nil { params = &DescribeScheduleInput{} } result, metadata, err := c.invokeOperation(ctx, "DescribeSchedule", params, optFns, c.addOperationDescribeScheduleMiddlewares) if err != nil { return nil, err } out := result.(*DescribeScheduleOutput) out.ResultMetadata = metadata return out, nil } // Placeholder documentation for DescribeScheduleRequest type DescribeScheduleInput struct { // Id of the channel whose schedule is being updated. // // This member is required. ChannelId *string // Placeholder documentation for MaxResults MaxResults int32 // Placeholder documentation for __string NextToken *string noSmithyDocumentSerde } // Placeholder documentation for DescribeScheduleResponse type DescribeScheduleOutput struct { // The next token; for use in pagination. NextToken *string // The list of actions in the schedule. ScheduleActions []types.ScheduleAction // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDescribeScheduleMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpDescribeSchedule{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDescribeSchedule{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpDescribeScheduleValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeSchedule(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } // DescribeScheduleAPIClient is a client that implements the DescribeSchedule // operation. type DescribeScheduleAPIClient interface { DescribeSchedule(context.Context, *DescribeScheduleInput, ...func(*Options)) (*DescribeScheduleOutput, error) } var _ DescribeScheduleAPIClient = (*Client)(nil) // DescribeSchedulePaginatorOptions is the paginator options for DescribeSchedule type DescribeSchedulePaginatorOptions struct { // Placeholder documentation for MaxResults Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool } // DescribeSchedulePaginator is a paginator for DescribeSchedule type DescribeSchedulePaginator struct { options DescribeSchedulePaginatorOptions client DescribeScheduleAPIClient params *DescribeScheduleInput nextToken *string firstPage bool } // NewDescribeSchedulePaginator returns a new DescribeSchedulePaginator func NewDescribeSchedulePaginator(client DescribeScheduleAPIClient, params *DescribeScheduleInput, optFns ...func(*DescribeSchedulePaginatorOptions)) *DescribeSchedulePaginator { if params == nil { params = &DescribeScheduleInput{} } options := DescribeSchedulePaginatorOptions{} if params.MaxResults != 0 { options.Limit = params.MaxResults } for _, fn := range optFns { fn(&options) } return &DescribeSchedulePaginator{ options: options, client: client, params: params, firstPage: true, nextToken: params.NextToken, } } // HasMorePages returns a boolean indicating whether more pages are available func (p *DescribeSchedulePaginator) HasMorePages() bool { return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) } // NextPage retrieves the next DescribeSchedule page. func (p *DescribeSchedulePaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeScheduleOutput, error) { if !p.HasMorePages() { return nil, fmt.Errorf("no more pages available") } params := *p.params params.NextToken = p.nextToken params.MaxResults = p.options.Limit result, err := p.client.DescribeSchedule(ctx, &params, optFns...) if err != nil { return nil, err } p.firstPage = false prevToken := p.nextToken p.nextToken = result.NextToken if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { p.nextToken = nil } return result, nil } func newServiceMetadataMiddleware_opDescribeSchedule(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "DescribeSchedule", } }
223
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/medialive/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Produces list of channels that have been created func (c *Client) ListChannels(ctx context.Context, params *ListChannelsInput, optFns ...func(*Options)) (*ListChannelsOutput, error) { if params == nil { params = &ListChannelsInput{} } result, metadata, err := c.invokeOperation(ctx, "ListChannels", params, optFns, c.addOperationListChannelsMiddlewares) if err != nil { return nil, err } out := result.(*ListChannelsOutput) out.ResultMetadata = metadata return out, nil } // Placeholder documentation for ListChannelsRequest type ListChannelsInput struct { // Placeholder documentation for MaxResults MaxResults int32 // Placeholder documentation for __string NextToken *string noSmithyDocumentSerde } // Placeholder documentation for ListChannelsResponse type ListChannelsOutput struct { // Placeholder documentation for __listOfChannelSummary Channels []types.ChannelSummary // Placeholder documentation for __string NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationListChannelsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpListChannels{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListChannels{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListChannels(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } // ListChannelsAPIClient is a client that implements the ListChannels operation. type ListChannelsAPIClient interface { ListChannels(context.Context, *ListChannelsInput, ...func(*Options)) (*ListChannelsOutput, error) } var _ ListChannelsAPIClient = (*Client)(nil) // ListChannelsPaginatorOptions is the paginator options for ListChannels type ListChannelsPaginatorOptions struct { // Placeholder documentation for MaxResults Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool } // ListChannelsPaginator is a paginator for ListChannels type ListChannelsPaginator struct { options ListChannelsPaginatorOptions client ListChannelsAPIClient params *ListChannelsInput nextToken *string firstPage bool } // NewListChannelsPaginator returns a new ListChannelsPaginator func NewListChannelsPaginator(client ListChannelsAPIClient, params *ListChannelsInput, optFns ...func(*ListChannelsPaginatorOptions)) *ListChannelsPaginator { if params == nil { params = &ListChannelsInput{} } options := ListChannelsPaginatorOptions{} if params.MaxResults != 0 { options.Limit = params.MaxResults } for _, fn := range optFns { fn(&options) } return &ListChannelsPaginator{ options: options, client: client, params: params, firstPage: true, nextToken: params.NextToken, } } // HasMorePages returns a boolean indicating whether more pages are available func (p *ListChannelsPaginator) HasMorePages() bool { return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) } // NextPage retrieves the next ListChannels page. func (p *ListChannelsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListChannelsOutput, error) { if !p.HasMorePages() { return nil, fmt.Errorf("no more pages available") } params := *p.params params.NextToken = p.nextToken params.MaxResults = p.options.Limit result, err := p.client.ListChannels(ctx, &params, optFns...) if err != nil { return nil, err } p.firstPage = false prevToken := p.nextToken p.nextToken = result.NextToken if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { p.nextToken = nil } return result, nil } func newServiceMetadataMiddleware_opListChannels(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "ListChannels", } }
214
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/medialive/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // List input devices func (c *Client) ListInputDevices(ctx context.Context, params *ListInputDevicesInput, optFns ...func(*Options)) (*ListInputDevicesOutput, error) { if params == nil { params = &ListInputDevicesInput{} } result, metadata, err := c.invokeOperation(ctx, "ListInputDevices", params, optFns, c.addOperationListInputDevicesMiddlewares) if err != nil { return nil, err } out := result.(*ListInputDevicesOutput) out.ResultMetadata = metadata return out, nil } // Placeholder documentation for ListInputDevicesRequest type ListInputDevicesInput struct { // Placeholder documentation for MaxResults MaxResults int32 // Placeholder documentation for __string NextToken *string noSmithyDocumentSerde } // Placeholder documentation for ListInputDevicesResponse type ListInputDevicesOutput struct { // The list of input devices. InputDevices []types.InputDeviceSummary // A token to get additional list results. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationListInputDevicesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpListInputDevices{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListInputDevices{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListInputDevices(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } // ListInputDevicesAPIClient is a client that implements the ListInputDevices // operation. type ListInputDevicesAPIClient interface { ListInputDevices(context.Context, *ListInputDevicesInput, ...func(*Options)) (*ListInputDevicesOutput, error) } var _ ListInputDevicesAPIClient = (*Client)(nil) // ListInputDevicesPaginatorOptions is the paginator options for ListInputDevices type ListInputDevicesPaginatorOptions struct { // Placeholder documentation for MaxResults Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool } // ListInputDevicesPaginator is a paginator for ListInputDevices type ListInputDevicesPaginator struct { options ListInputDevicesPaginatorOptions client ListInputDevicesAPIClient params *ListInputDevicesInput nextToken *string firstPage bool } // NewListInputDevicesPaginator returns a new ListInputDevicesPaginator func NewListInputDevicesPaginator(client ListInputDevicesAPIClient, params *ListInputDevicesInput, optFns ...func(*ListInputDevicesPaginatorOptions)) *ListInputDevicesPaginator { if params == nil { params = &ListInputDevicesInput{} } options := ListInputDevicesPaginatorOptions{} if params.MaxResults != 0 { options.Limit = params.MaxResults } for _, fn := range optFns { fn(&options) } return &ListInputDevicesPaginator{ options: options, client: client, params: params, firstPage: true, nextToken: params.NextToken, } } // HasMorePages returns a boolean indicating whether more pages are available func (p *ListInputDevicesPaginator) HasMorePages() bool { return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) } // NextPage retrieves the next ListInputDevices page. func (p *ListInputDevicesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListInputDevicesOutput, error) { if !p.HasMorePages() { return nil, fmt.Errorf("no more pages available") } params := *p.params params.NextToken = p.nextToken params.MaxResults = p.options.Limit result, err := p.client.ListInputDevices(ctx, &params, optFns...) if err != nil { return nil, err } p.firstPage = false prevToken := p.nextToken p.nextToken = result.NextToken if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { p.nextToken = nil } return result, nil } func newServiceMetadataMiddleware_opListInputDevices(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "ListInputDevices", } }
215
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/medialive/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // List input devices that are currently being transferred. List input devices // that you are transferring from your AWS account or input devices that another // AWS account is transferring to you. func (c *Client) ListInputDeviceTransfers(ctx context.Context, params *ListInputDeviceTransfersInput, optFns ...func(*Options)) (*ListInputDeviceTransfersOutput, error) { if params == nil { params = &ListInputDeviceTransfersInput{} } result, metadata, err := c.invokeOperation(ctx, "ListInputDeviceTransfers", params, optFns, c.addOperationListInputDeviceTransfersMiddlewares) if err != nil { return nil, err } out := result.(*ListInputDeviceTransfersOutput) out.ResultMetadata = metadata return out, nil } // Placeholder documentation for ListInputDeviceTransfersRequest type ListInputDeviceTransfersInput struct { // Placeholder documentation for __string // // This member is required. TransferType *string // Placeholder documentation for MaxResults MaxResults int32 // Placeholder documentation for __string NextToken *string noSmithyDocumentSerde } // Placeholder documentation for ListInputDeviceTransfersResponse type ListInputDeviceTransfersOutput struct { // The list of devices that you are transferring or are being transferred to you. InputDeviceTransfers []types.TransferringInputDeviceSummary // A token to get additional list results. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationListInputDeviceTransfersMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpListInputDeviceTransfers{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListInputDeviceTransfers{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpListInputDeviceTransfersValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListInputDeviceTransfers(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } // ListInputDeviceTransfersAPIClient is a client that implements the // ListInputDeviceTransfers operation. type ListInputDeviceTransfersAPIClient interface { ListInputDeviceTransfers(context.Context, *ListInputDeviceTransfersInput, ...func(*Options)) (*ListInputDeviceTransfersOutput, error) } var _ ListInputDeviceTransfersAPIClient = (*Client)(nil) // ListInputDeviceTransfersPaginatorOptions is the paginator options for // ListInputDeviceTransfers type ListInputDeviceTransfersPaginatorOptions struct { // Placeholder documentation for MaxResults Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool } // ListInputDeviceTransfersPaginator is a paginator for ListInputDeviceTransfers type ListInputDeviceTransfersPaginator struct { options ListInputDeviceTransfersPaginatorOptions client ListInputDeviceTransfersAPIClient params *ListInputDeviceTransfersInput nextToken *string firstPage bool } // NewListInputDeviceTransfersPaginator returns a new // ListInputDeviceTransfersPaginator func NewListInputDeviceTransfersPaginator(client ListInputDeviceTransfersAPIClient, params *ListInputDeviceTransfersInput, optFns ...func(*ListInputDeviceTransfersPaginatorOptions)) *ListInputDeviceTransfersPaginator { if params == nil { params = &ListInputDeviceTransfersInput{} } options := ListInputDeviceTransfersPaginatorOptions{} if params.MaxResults != 0 { options.Limit = params.MaxResults } for _, fn := range optFns { fn(&options) } return &ListInputDeviceTransfersPaginator{ options: options, client: client, params: params, firstPage: true, nextToken: params.NextToken, } } // HasMorePages returns a boolean indicating whether more pages are available func (p *ListInputDeviceTransfersPaginator) HasMorePages() bool { return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) } // NextPage retrieves the next ListInputDeviceTransfers page. func (p *ListInputDeviceTransfersPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListInputDeviceTransfersOutput, error) { if !p.HasMorePages() { return nil, fmt.Errorf("no more pages available") } params := *p.params params.NextToken = p.nextToken params.MaxResults = p.options.Limit result, err := p.client.ListInputDeviceTransfers(ctx, &params, optFns...) if err != nil { return nil, err } p.firstPage = false prevToken := p.nextToken p.nextToken = result.NextToken if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { p.nextToken = nil } return result, nil } func newServiceMetadataMiddleware_opListInputDeviceTransfers(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "ListInputDeviceTransfers", } }
227
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/medialive/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Produces list of inputs that have been created func (c *Client) ListInputs(ctx context.Context, params *ListInputsInput, optFns ...func(*Options)) (*ListInputsOutput, error) { if params == nil { params = &ListInputsInput{} } result, metadata, err := c.invokeOperation(ctx, "ListInputs", params, optFns, c.addOperationListInputsMiddlewares) if err != nil { return nil, err } out := result.(*ListInputsOutput) out.ResultMetadata = metadata return out, nil } // Placeholder documentation for ListInputsRequest type ListInputsInput struct { // Placeholder documentation for MaxResults MaxResults int32 // Placeholder documentation for __string NextToken *string noSmithyDocumentSerde } // Placeholder documentation for ListInputsResponse type ListInputsOutput struct { // Placeholder documentation for __listOfInput Inputs []types.Input // Placeholder documentation for __string NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationListInputsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpListInputs{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListInputs{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListInputs(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } // ListInputsAPIClient is a client that implements the ListInputs operation. type ListInputsAPIClient interface { ListInputs(context.Context, *ListInputsInput, ...func(*Options)) (*ListInputsOutput, error) } var _ ListInputsAPIClient = (*Client)(nil) // ListInputsPaginatorOptions is the paginator options for ListInputs type ListInputsPaginatorOptions struct { // Placeholder documentation for MaxResults Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool } // ListInputsPaginator is a paginator for ListInputs type ListInputsPaginator struct { options ListInputsPaginatorOptions client ListInputsAPIClient params *ListInputsInput nextToken *string firstPage bool } // NewListInputsPaginator returns a new ListInputsPaginator func NewListInputsPaginator(client ListInputsAPIClient, params *ListInputsInput, optFns ...func(*ListInputsPaginatorOptions)) *ListInputsPaginator { if params == nil { params = &ListInputsInput{} } options := ListInputsPaginatorOptions{} if params.MaxResults != 0 { options.Limit = params.MaxResults } for _, fn := range optFns { fn(&options) } return &ListInputsPaginator{ options: options, client: client, params: params, firstPage: true, nextToken: params.NextToken, } } // HasMorePages returns a boolean indicating whether more pages are available func (p *ListInputsPaginator) HasMorePages() bool { return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) } // NextPage retrieves the next ListInputs page. func (p *ListInputsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListInputsOutput, error) { if !p.HasMorePages() { return nil, fmt.Errorf("no more pages available") } params := *p.params params.NextToken = p.nextToken params.MaxResults = p.options.Limit result, err := p.client.ListInputs(ctx, &params, optFns...) if err != nil { return nil, err } p.firstPage = false prevToken := p.nextToken p.nextToken = result.NextToken if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { p.nextToken = nil } return result, nil } func newServiceMetadataMiddleware_opListInputs(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "ListInputs", } }
214
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/medialive/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Produces a list of Input Security Groups for an account func (c *Client) ListInputSecurityGroups(ctx context.Context, params *ListInputSecurityGroupsInput, optFns ...func(*Options)) (*ListInputSecurityGroupsOutput, error) { if params == nil { params = &ListInputSecurityGroupsInput{} } result, metadata, err := c.invokeOperation(ctx, "ListInputSecurityGroups", params, optFns, c.addOperationListInputSecurityGroupsMiddlewares) if err != nil { return nil, err } out := result.(*ListInputSecurityGroupsOutput) out.ResultMetadata = metadata return out, nil } // Placeholder documentation for ListInputSecurityGroupsRequest type ListInputSecurityGroupsInput struct { // Placeholder documentation for MaxResults MaxResults int32 // Placeholder documentation for __string NextToken *string noSmithyDocumentSerde } // Placeholder documentation for ListInputSecurityGroupsResponse type ListInputSecurityGroupsOutput struct { // List of input security groups InputSecurityGroups []types.InputSecurityGroup // Placeholder documentation for __string NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationListInputSecurityGroupsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpListInputSecurityGroups{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListInputSecurityGroups{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListInputSecurityGroups(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } // ListInputSecurityGroupsAPIClient is a client that implements the // ListInputSecurityGroups operation. type ListInputSecurityGroupsAPIClient interface { ListInputSecurityGroups(context.Context, *ListInputSecurityGroupsInput, ...func(*Options)) (*ListInputSecurityGroupsOutput, error) } var _ ListInputSecurityGroupsAPIClient = (*Client)(nil) // ListInputSecurityGroupsPaginatorOptions is the paginator options for // ListInputSecurityGroups type ListInputSecurityGroupsPaginatorOptions struct { // Placeholder documentation for MaxResults Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool } // ListInputSecurityGroupsPaginator is a paginator for ListInputSecurityGroups type ListInputSecurityGroupsPaginator struct { options ListInputSecurityGroupsPaginatorOptions client ListInputSecurityGroupsAPIClient params *ListInputSecurityGroupsInput nextToken *string firstPage bool } // NewListInputSecurityGroupsPaginator returns a new // ListInputSecurityGroupsPaginator func NewListInputSecurityGroupsPaginator(client ListInputSecurityGroupsAPIClient, params *ListInputSecurityGroupsInput, optFns ...func(*ListInputSecurityGroupsPaginatorOptions)) *ListInputSecurityGroupsPaginator { if params == nil { params = &ListInputSecurityGroupsInput{} } options := ListInputSecurityGroupsPaginatorOptions{} if params.MaxResults != 0 { options.Limit = params.MaxResults } for _, fn := range optFns { fn(&options) } return &ListInputSecurityGroupsPaginator{ options: options, client: client, params: params, firstPage: true, nextToken: params.NextToken, } } // HasMorePages returns a boolean indicating whether more pages are available func (p *ListInputSecurityGroupsPaginator) HasMorePages() bool { return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) } // NextPage retrieves the next ListInputSecurityGroups page. func (p *ListInputSecurityGroupsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListInputSecurityGroupsOutput, error) { if !p.HasMorePages() { return nil, fmt.Errorf("no more pages available") } params := *p.params params.NextToken = p.nextToken params.MaxResults = p.options.Limit result, err := p.client.ListInputSecurityGroups(ctx, &params, optFns...) if err != nil { return nil, err } p.firstPage = false prevToken := p.nextToken p.nextToken = result.NextToken if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { p.nextToken = nil } return result, nil } func newServiceMetadataMiddleware_opListInputSecurityGroups(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "ListInputSecurityGroups", } }
217
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/medialive/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Retrieve a list of the existing multiplexes. func (c *Client) ListMultiplexes(ctx context.Context, params *ListMultiplexesInput, optFns ...func(*Options)) (*ListMultiplexesOutput, error) { if params == nil { params = &ListMultiplexesInput{} } result, metadata, err := c.invokeOperation(ctx, "ListMultiplexes", params, optFns, c.addOperationListMultiplexesMiddlewares) if err != nil { return nil, err } out := result.(*ListMultiplexesOutput) out.ResultMetadata = metadata return out, nil } // Placeholder documentation for ListMultiplexesRequest type ListMultiplexesInput struct { // The maximum number of items to return. MaxResults int32 // The token to retrieve the next page of results. NextToken *string noSmithyDocumentSerde } // Placeholder documentation for ListMultiplexesResponse type ListMultiplexesOutput struct { // List of multiplexes. Multiplexes []types.MultiplexSummary // Token for the next ListMultiplexes request. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationListMultiplexesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpListMultiplexes{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListMultiplexes{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListMultiplexes(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } // ListMultiplexesAPIClient is a client that implements the ListMultiplexes // operation. type ListMultiplexesAPIClient interface { ListMultiplexes(context.Context, *ListMultiplexesInput, ...func(*Options)) (*ListMultiplexesOutput, error) } var _ ListMultiplexesAPIClient = (*Client)(nil) // ListMultiplexesPaginatorOptions is the paginator options for ListMultiplexes type ListMultiplexesPaginatorOptions struct { // The maximum number of items to return. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool } // ListMultiplexesPaginator is a paginator for ListMultiplexes type ListMultiplexesPaginator struct { options ListMultiplexesPaginatorOptions client ListMultiplexesAPIClient params *ListMultiplexesInput nextToken *string firstPage bool } // NewListMultiplexesPaginator returns a new ListMultiplexesPaginator func NewListMultiplexesPaginator(client ListMultiplexesAPIClient, params *ListMultiplexesInput, optFns ...func(*ListMultiplexesPaginatorOptions)) *ListMultiplexesPaginator { if params == nil { params = &ListMultiplexesInput{} } options := ListMultiplexesPaginatorOptions{} if params.MaxResults != 0 { options.Limit = params.MaxResults } for _, fn := range optFns { fn(&options) } return &ListMultiplexesPaginator{ options: options, client: client, params: params, firstPage: true, nextToken: params.NextToken, } } // HasMorePages returns a boolean indicating whether more pages are available func (p *ListMultiplexesPaginator) HasMorePages() bool { return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) } // NextPage retrieves the next ListMultiplexes page. func (p *ListMultiplexesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListMultiplexesOutput, error) { if !p.HasMorePages() { return nil, fmt.Errorf("no more pages available") } params := *p.params params.NextToken = p.nextToken params.MaxResults = p.options.Limit result, err := p.client.ListMultiplexes(ctx, &params, optFns...) if err != nil { return nil, err } p.firstPage = false prevToken := p.nextToken p.nextToken = result.NextToken if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { p.nextToken = nil } return result, nil } func newServiceMetadataMiddleware_opListMultiplexes(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "ListMultiplexes", } }
215
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/medialive/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // List the programs that currently exist for a specific multiplex. func (c *Client) ListMultiplexPrograms(ctx context.Context, params *ListMultiplexProgramsInput, optFns ...func(*Options)) (*ListMultiplexProgramsOutput, error) { if params == nil { params = &ListMultiplexProgramsInput{} } result, metadata, err := c.invokeOperation(ctx, "ListMultiplexPrograms", params, optFns, c.addOperationListMultiplexProgramsMiddlewares) if err != nil { return nil, err } out := result.(*ListMultiplexProgramsOutput) out.ResultMetadata = metadata return out, nil } // Placeholder documentation for ListMultiplexProgramsRequest type ListMultiplexProgramsInput struct { // The ID of the multiplex that the programs belong to. // // This member is required. MultiplexId *string // The maximum number of items to return. MaxResults int32 // The token to retrieve the next page of results. NextToken *string noSmithyDocumentSerde } // Placeholder documentation for ListMultiplexProgramsResponse type ListMultiplexProgramsOutput struct { // List of multiplex programs. MultiplexPrograms []types.MultiplexProgramSummary // Token for the next ListMultiplexProgram request. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationListMultiplexProgramsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpListMultiplexPrograms{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListMultiplexPrograms{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpListMultiplexProgramsValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListMultiplexPrograms(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } // ListMultiplexProgramsAPIClient is a client that implements the // ListMultiplexPrograms operation. type ListMultiplexProgramsAPIClient interface { ListMultiplexPrograms(context.Context, *ListMultiplexProgramsInput, ...func(*Options)) (*ListMultiplexProgramsOutput, error) } var _ ListMultiplexProgramsAPIClient = (*Client)(nil) // ListMultiplexProgramsPaginatorOptions is the paginator options for // ListMultiplexPrograms type ListMultiplexProgramsPaginatorOptions struct { // The maximum number of items to return. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool } // ListMultiplexProgramsPaginator is a paginator for ListMultiplexPrograms type ListMultiplexProgramsPaginator struct { options ListMultiplexProgramsPaginatorOptions client ListMultiplexProgramsAPIClient params *ListMultiplexProgramsInput nextToken *string firstPage bool } // NewListMultiplexProgramsPaginator returns a new ListMultiplexProgramsPaginator func NewListMultiplexProgramsPaginator(client ListMultiplexProgramsAPIClient, params *ListMultiplexProgramsInput, optFns ...func(*ListMultiplexProgramsPaginatorOptions)) *ListMultiplexProgramsPaginator { if params == nil { params = &ListMultiplexProgramsInput{} } options := ListMultiplexProgramsPaginatorOptions{} if params.MaxResults != 0 { options.Limit = params.MaxResults } for _, fn := range optFns { fn(&options) } return &ListMultiplexProgramsPaginator{ options: options, client: client, params: params, firstPage: true, nextToken: params.NextToken, } } // HasMorePages returns a boolean indicating whether more pages are available func (p *ListMultiplexProgramsPaginator) HasMorePages() bool { return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) } // NextPage retrieves the next ListMultiplexPrograms page. func (p *ListMultiplexProgramsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListMultiplexProgramsOutput, error) { if !p.HasMorePages() { return nil, fmt.Errorf("no more pages available") } params := *p.params params.NextToken = p.nextToken params.MaxResults = p.options.Limit result, err := p.client.ListMultiplexPrograms(ctx, &params, optFns...) if err != nil { return nil, err } p.firstPage = false prevToken := p.nextToken p.nextToken = result.NextToken if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { p.nextToken = nil } return result, nil } func newServiceMetadataMiddleware_opListMultiplexPrograms(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "ListMultiplexPrograms", } }
224
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/medialive/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // List offerings available for purchase. func (c *Client) ListOfferings(ctx context.Context, params *ListOfferingsInput, optFns ...func(*Options)) (*ListOfferingsOutput, error) { if params == nil { params = &ListOfferingsInput{} } result, metadata, err := c.invokeOperation(ctx, "ListOfferings", params, optFns, c.addOperationListOfferingsMiddlewares) if err != nil { return nil, err } out := result.(*ListOfferingsOutput) out.ResultMetadata = metadata return out, nil } // Placeholder documentation for ListOfferingsRequest type ListOfferingsInput struct { // Filter by channel class, 'STANDARD' or 'SINGLE_PIPELINE' ChannelClass *string // Filter to offerings that match the configuration of an existing channel, e.g. // '2345678' (a channel ID) ChannelConfiguration *string // Filter by codec, 'AVC', 'HEVC', 'MPEG2', 'AUDIO', or 'LINK' Codec *string // Filter by offering duration, e.g. '12' Duration *string // Placeholder documentation for MaxResults MaxResults int32 // Filter by bitrate, 'MAX_10_MBPS', 'MAX_20_MBPS', or 'MAX_50_MBPS' MaximumBitrate *string // Filter by framerate, 'MAX_30_FPS' or 'MAX_60_FPS' MaximumFramerate *string // Placeholder documentation for __string NextToken *string // Filter by resolution, 'SD', 'HD', 'FHD', or 'UHD' Resolution *string // Filter by resource type, 'INPUT', 'OUTPUT', 'MULTIPLEX', or 'CHANNEL' ResourceType *string // Filter by special feature, 'ADVANCED_AUDIO' or 'AUDIO_NORMALIZATION' SpecialFeature *string // Filter by video quality, 'STANDARD', 'ENHANCED', or 'PREMIUM' VideoQuality *string noSmithyDocumentSerde } // Placeholder documentation for ListOfferingsResponse type ListOfferingsOutput struct { // Token to retrieve the next page of results NextToken *string // List of offerings Offerings []types.Offering // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationListOfferingsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpListOfferings{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListOfferings{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListOfferings(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } // ListOfferingsAPIClient is a client that implements the ListOfferings operation. type ListOfferingsAPIClient interface { ListOfferings(context.Context, *ListOfferingsInput, ...func(*Options)) (*ListOfferingsOutput, error) } var _ ListOfferingsAPIClient = (*Client)(nil) // ListOfferingsPaginatorOptions is the paginator options for ListOfferings type ListOfferingsPaginatorOptions struct { // Placeholder documentation for MaxResults Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool } // ListOfferingsPaginator is a paginator for ListOfferings type ListOfferingsPaginator struct { options ListOfferingsPaginatorOptions client ListOfferingsAPIClient params *ListOfferingsInput nextToken *string firstPage bool } // NewListOfferingsPaginator returns a new ListOfferingsPaginator func NewListOfferingsPaginator(client ListOfferingsAPIClient, params *ListOfferingsInput, optFns ...func(*ListOfferingsPaginatorOptions)) *ListOfferingsPaginator { if params == nil { params = &ListOfferingsInput{} } options := ListOfferingsPaginatorOptions{} if params.MaxResults != 0 { options.Limit = params.MaxResults } for _, fn := range optFns { fn(&options) } return &ListOfferingsPaginator{ options: options, client: client, params: params, firstPage: true, nextToken: params.NextToken, } } // HasMorePages returns a boolean indicating whether more pages are available func (p *ListOfferingsPaginator) HasMorePages() bool { return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) } // NextPage retrieves the next ListOfferings page. func (p *ListOfferingsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListOfferingsOutput, error) { if !p.HasMorePages() { return nil, fmt.Errorf("no more pages available") } params := *p.params params.NextToken = p.nextToken params.MaxResults = p.options.Limit result, err := p.client.ListOfferings(ctx, &params, optFns...) if err != nil { return nil, err } p.firstPage = false prevToken := p.nextToken p.nextToken = result.NextToken if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { p.nextToken = nil } return result, nil } func newServiceMetadataMiddleware_opListOfferings(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "ListOfferings", } }
245
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/medialive/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // List purchased reservations. func (c *Client) ListReservations(ctx context.Context, params *ListReservationsInput, optFns ...func(*Options)) (*ListReservationsOutput, error) { if params == nil { params = &ListReservationsInput{} } result, metadata, err := c.invokeOperation(ctx, "ListReservations", params, optFns, c.addOperationListReservationsMiddlewares) if err != nil { return nil, err } out := result.(*ListReservationsOutput) out.ResultMetadata = metadata return out, nil } // Placeholder documentation for ListReservationsRequest type ListReservationsInput struct { // Filter by channel class, 'STANDARD' or 'SINGLE_PIPELINE' ChannelClass *string // Filter by codec, 'AVC', 'HEVC', 'MPEG2', 'AUDIO', or 'LINK' Codec *string // Placeholder documentation for MaxResults MaxResults int32 // Filter by bitrate, 'MAX_10_MBPS', 'MAX_20_MBPS', or 'MAX_50_MBPS' MaximumBitrate *string // Filter by framerate, 'MAX_30_FPS' or 'MAX_60_FPS' MaximumFramerate *string // Placeholder documentation for __string NextToken *string // Filter by resolution, 'SD', 'HD', 'FHD', or 'UHD' Resolution *string // Filter by resource type, 'INPUT', 'OUTPUT', 'MULTIPLEX', or 'CHANNEL' ResourceType *string // Filter by special feature, 'ADVANCED_AUDIO' or 'AUDIO_NORMALIZATION' SpecialFeature *string // Filter by video quality, 'STANDARD', 'ENHANCED', or 'PREMIUM' VideoQuality *string noSmithyDocumentSerde } // Placeholder documentation for ListReservationsResponse type ListReservationsOutput struct { // Token to retrieve the next page of results NextToken *string // List of reservations Reservations []types.Reservation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationListReservationsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpListReservations{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListReservations{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListReservations(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } // ListReservationsAPIClient is a client that implements the ListReservations // operation. type ListReservationsAPIClient interface { ListReservations(context.Context, *ListReservationsInput, ...func(*Options)) (*ListReservationsOutput, error) } var _ ListReservationsAPIClient = (*Client)(nil) // ListReservationsPaginatorOptions is the paginator options for ListReservations type ListReservationsPaginatorOptions struct { // Placeholder documentation for MaxResults Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool } // ListReservationsPaginator is a paginator for ListReservations type ListReservationsPaginator struct { options ListReservationsPaginatorOptions client ListReservationsAPIClient params *ListReservationsInput nextToken *string firstPage bool } // NewListReservationsPaginator returns a new ListReservationsPaginator func NewListReservationsPaginator(client ListReservationsAPIClient, params *ListReservationsInput, optFns ...func(*ListReservationsPaginatorOptions)) *ListReservationsPaginator { if params == nil { params = &ListReservationsInput{} } options := ListReservationsPaginatorOptions{} if params.MaxResults != 0 { options.Limit = params.MaxResults } for _, fn := range optFns { fn(&options) } return &ListReservationsPaginator{ options: options, client: client, params: params, firstPage: true, nextToken: params.NextToken, } } // HasMorePages returns a boolean indicating whether more pages are available func (p *ListReservationsPaginator) HasMorePages() bool { return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) } // NextPage retrieves the next ListReservations page. func (p *ListReservationsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListReservationsOutput, error) { if !p.HasMorePages() { return nil, fmt.Errorf("no more pages available") } params := *p.params params.NextToken = p.nextToken params.MaxResults = p.options.Limit result, err := p.client.ListReservations(ctx, &params, optFns...) if err != nil { return nil, err } p.firstPage = false prevToken := p.nextToken p.nextToken = result.NextToken if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken { p.nextToken = nil } return result, nil } func newServiceMetadataMiddleware_opListReservations(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "ListReservations", } }
239
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Produces list of tags that have been created for a resource func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error) { if params == nil { params = &ListTagsForResourceInput{} } result, metadata, err := c.invokeOperation(ctx, "ListTagsForResource", params, optFns, c.addOperationListTagsForResourceMiddlewares) if err != nil { return nil, err } out := result.(*ListTagsForResourceOutput) out.ResultMetadata = metadata return out, nil } // Placeholder documentation for ListTagsForResourceRequest type ListTagsForResourceInput struct { // Placeholder documentation for __string // // This member is required. ResourceArn *string noSmithyDocumentSerde } // Placeholder documentation for ListTagsForResourceResponse type ListTagsForResourceOutput struct { // Placeholder documentation for Tags Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationListTagsForResourceMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpListTagsForResource{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListTagsForResource{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpListTagsForResourceValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListTagsForResource(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opListTagsForResource(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "ListTagsForResource", } }
126
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/medialive/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Purchase an offering and create a reservation. func (c *Client) PurchaseOffering(ctx context.Context, params *PurchaseOfferingInput, optFns ...func(*Options)) (*PurchaseOfferingOutput, error) { if params == nil { params = &PurchaseOfferingInput{} } result, metadata, err := c.invokeOperation(ctx, "PurchaseOffering", params, optFns, c.addOperationPurchaseOfferingMiddlewares) if err != nil { return nil, err } out := result.(*PurchaseOfferingOutput) out.ResultMetadata = metadata return out, nil } // Placeholder documentation for PurchaseOfferingRequest type PurchaseOfferingInput struct { // Number of resources // // This member is required. Count int32 // Offering to purchase, e.g. '87654321' // // This member is required. OfferingId *string // Name for the new reservation Name *string // Renewal settings for the reservation RenewalSettings *types.RenewalSettings // Unique request ID to be specified. This is needed to prevent retries from // creating multiple resources. RequestId *string // Requested reservation start time (UTC) in ISO-8601 format. The specified time // must be between the first day of the current month and one year from now. If no // value is given, the default is now. Start *string // A collection of key-value pairs Tags map[string]string noSmithyDocumentSerde } // Placeholder documentation for PurchaseOfferingResponse type PurchaseOfferingOutput struct { // Reserved resources available to use Reservation *types.Reservation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationPurchaseOfferingMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpPurchaseOffering{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpPurchaseOffering{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addIdempotencyToken_opPurchaseOfferingMiddleware(stack, options); err != nil { return err } if err = addOpPurchaseOfferingValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opPurchaseOffering(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } type idempotencyToken_initializeOpPurchaseOffering struct { tokenProvider IdempotencyTokenProvider } func (*idempotencyToken_initializeOpPurchaseOffering) ID() string { return "OperationIdempotencyTokenAutoFill" } func (m *idempotencyToken_initializeOpPurchaseOffering) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( out middleware.InitializeOutput, metadata middleware.Metadata, err error, ) { if m.tokenProvider == nil { return next.HandleInitialize(ctx, in) } input, ok := in.Parameters.(*PurchaseOfferingInput) if !ok { return out, metadata, fmt.Errorf("expected middleware input to be of type *PurchaseOfferingInput ") } if input.RequestId == nil { t, err := m.tokenProvider.GetIdempotencyToken() if err != nil { return out, metadata, err } input.RequestId = &t } return next.HandleInitialize(ctx, in) } func addIdempotencyToken_opPurchaseOfferingMiddleware(stack *middleware.Stack, cfg Options) error { return stack.Initialize.Add(&idempotencyToken_initializeOpPurchaseOffering{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) } func newServiceMetadataMiddleware_opPurchaseOffering(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "PurchaseOffering", } }
187
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/medialive/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Send a reboot command to the specified input device. The device will begin // rebooting within a few seconds of sending the command. When the reboot is // complete, the device’s connection status will change to connected. func (c *Client) RebootInputDevice(ctx context.Context, params *RebootInputDeviceInput, optFns ...func(*Options)) (*RebootInputDeviceOutput, error) { if params == nil { params = &RebootInputDeviceInput{} } result, metadata, err := c.invokeOperation(ctx, "RebootInputDevice", params, optFns, c.addOperationRebootInputDeviceMiddlewares) if err != nil { return nil, err } out := result.(*RebootInputDeviceOutput) out.ResultMetadata = metadata return out, nil } // A request to reboot an AWS Elemental device. type RebootInputDeviceInput struct { // The unique ID of the input device to reboot. For example, hd-123456789abcdef. // // This member is required. InputDeviceId *string // Force a reboot of an input device. If the device is streaming, it will stop // streaming and begin rebooting within a few seconds of sending the command. If // the device was streaming prior to the reboot, the device will resume streaming // when the reboot completes. Force types.RebootInputDeviceForce noSmithyDocumentSerde } // Placeholder documentation for RebootInputDeviceResponse type RebootInputDeviceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationRebootInputDeviceMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpRebootInputDevice{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpRebootInputDevice{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpRebootInputDeviceValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opRebootInputDevice(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opRebootInputDevice(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "RebootInputDevice", } }
131
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Reject the transfer of the specified input device to your AWS account. func (c *Client) RejectInputDeviceTransfer(ctx context.Context, params *RejectInputDeviceTransferInput, optFns ...func(*Options)) (*RejectInputDeviceTransferOutput, error) { if params == nil { params = &RejectInputDeviceTransferInput{} } result, metadata, err := c.invokeOperation(ctx, "RejectInputDeviceTransfer", params, optFns, c.addOperationRejectInputDeviceTransferMiddlewares) if err != nil { return nil, err } out := result.(*RejectInputDeviceTransferOutput) out.ResultMetadata = metadata return out, nil } // Placeholder documentation for RejectInputDeviceTransferRequest type RejectInputDeviceTransferInput struct { // The unique ID of the input device to reject. For example, hd-123456789abcdef. // // This member is required. InputDeviceId *string noSmithyDocumentSerde } // Placeholder documentation for RejectInputDeviceTransferResponse type RejectInputDeviceTransferOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationRejectInputDeviceTransferMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpRejectInputDeviceTransfer{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpRejectInputDeviceTransfer{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpRejectInputDeviceTransferValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opRejectInputDeviceTransfer(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opRejectInputDeviceTransfer(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "RejectInputDeviceTransfer", } }
122
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/medialive/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Starts an existing channel func (c *Client) StartChannel(ctx context.Context, params *StartChannelInput, optFns ...func(*Options)) (*StartChannelOutput, error) { if params == nil { params = &StartChannelInput{} } result, metadata, err := c.invokeOperation(ctx, "StartChannel", params, optFns, c.addOperationStartChannelMiddlewares) if err != nil { return nil, err } out := result.(*StartChannelOutput) out.ResultMetadata = metadata return out, nil } // Placeholder documentation for StartChannelRequest type StartChannelInput struct { // A request to start a channel // // This member is required. ChannelId *string noSmithyDocumentSerde } // Placeholder documentation for StartChannelResponse type StartChannelOutput struct { // The unique arn of the channel. Arn *string // Specification of CDI inputs for this channel CdiInputSpecification *types.CdiInputSpecification // The class for this channel. STANDARD for a channel with two pipelines or // SINGLE_PIPELINE for a channel with one pipeline. ChannelClass types.ChannelClass // A list of destinations of the channel. For UDP outputs, there is one // destination per output. For other types (HLS, for example), there is one // destination per packager. Destinations []types.OutputDestination // The endpoints where outgoing connections initiate from EgressEndpoints []types.ChannelEgressEndpoint // Encoder Settings EncoderSettings *types.EncoderSettings // The unique id of the channel. Id *string // List of input attachments for channel. InputAttachments []types.InputAttachment // Specification of network and file inputs for this channel InputSpecification *types.InputSpecification // The log level being written to CloudWatch Logs. LogLevel types.LogLevel // Maintenance settings for this channel. Maintenance *types.MaintenanceStatus // The name of the channel. (user-mutable) Name *string // Runtime details for the pipelines of a running channel. PipelineDetails []types.PipelineDetail // The number of currently healthy pipelines. PipelinesRunningCount int32 // The Amazon Resource Name (ARN) of the role assumed when running the Channel. RoleArn *string // Placeholder documentation for ChannelState State types.ChannelState // A collection of key-value pairs. Tags map[string]string // Settings for VPC output Vpc *types.VpcOutputSettingsDescription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationStartChannelMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpStartChannel{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpStartChannel{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpStartChannelValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStartChannel(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opStartChannel(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "StartChannel", } }
181
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Start a maintenance window for the specified input device. Starting a // maintenance window will give the device up to two hours to install software. If // the device was streaming prior to the maintenance, it will resume streaming when // the software is fully installed. Devices automatically install updates while // they are powered on and their MediaLive channels are stopped. A maintenance // window allows you to update a device without having to stop MediaLive channels // that use the device. The device must remain powered on and connected to the // internet for the duration of the maintenance. func (c *Client) StartInputDeviceMaintenanceWindow(ctx context.Context, params *StartInputDeviceMaintenanceWindowInput, optFns ...func(*Options)) (*StartInputDeviceMaintenanceWindowOutput, error) { if params == nil { params = &StartInputDeviceMaintenanceWindowInput{} } result, metadata, err := c.invokeOperation(ctx, "StartInputDeviceMaintenanceWindow", params, optFns, c.addOperationStartInputDeviceMaintenanceWindowMiddlewares) if err != nil { return nil, err } out := result.(*StartInputDeviceMaintenanceWindowOutput) out.ResultMetadata = metadata return out, nil } // Placeholder documentation for StartInputDeviceMaintenanceWindowRequest type StartInputDeviceMaintenanceWindowInput struct { // The unique ID of the input device to start a maintenance window for. For // example, hd-123456789abcdef. // // This member is required. InputDeviceId *string noSmithyDocumentSerde } // Placeholder documentation for StartInputDeviceMaintenanceWindowResponse type StartInputDeviceMaintenanceWindowOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationStartInputDeviceMaintenanceWindowMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpStartInputDeviceMaintenanceWindow{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpStartInputDeviceMaintenanceWindow{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpStartInputDeviceMaintenanceWindowValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStartInputDeviceMaintenanceWindow(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opStartInputDeviceMaintenanceWindow(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "StartInputDeviceMaintenanceWindow", } }
130
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/medialive/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Start (run) the multiplex. Starting the multiplex does not start the channels. // You must explicitly start each channel. func (c *Client) StartMultiplex(ctx context.Context, params *StartMultiplexInput, optFns ...func(*Options)) (*StartMultiplexOutput, error) { if params == nil { params = &StartMultiplexInput{} } result, metadata, err := c.invokeOperation(ctx, "StartMultiplex", params, optFns, c.addOperationStartMultiplexMiddlewares) if err != nil { return nil, err } out := result.(*StartMultiplexOutput) out.ResultMetadata = metadata return out, nil } // Placeholder documentation for StartMultiplexRequest type StartMultiplexInput struct { // The ID of the multiplex. // // This member is required. MultiplexId *string noSmithyDocumentSerde } // Placeholder documentation for StartMultiplexResponse type StartMultiplexOutput struct { // The unique arn of the multiplex. Arn *string // A list of availability zones for the multiplex. AvailabilityZones []string // A list of the multiplex output destinations. Destinations []types.MultiplexOutputDestination // The unique id of the multiplex. Id *string // Configuration for a multiplex event. MultiplexSettings *types.MultiplexSettings // The name of the multiplex. Name *string // The number of currently healthy pipelines. PipelinesRunningCount int32 // The number of programs in the multiplex. ProgramCount int32 // The current state of the multiplex. State types.MultiplexState // A collection of key-value pairs. Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationStartMultiplexMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpStartMultiplex{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpStartMultiplex{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpStartMultiplexValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStartMultiplex(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opStartMultiplex(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "StartMultiplex", } }
155
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/medialive/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Stops a running channel func (c *Client) StopChannel(ctx context.Context, params *StopChannelInput, optFns ...func(*Options)) (*StopChannelOutput, error) { if params == nil { params = &StopChannelInput{} } result, metadata, err := c.invokeOperation(ctx, "StopChannel", params, optFns, c.addOperationStopChannelMiddlewares) if err != nil { return nil, err } out := result.(*StopChannelOutput) out.ResultMetadata = metadata return out, nil } // Placeholder documentation for StopChannelRequest type StopChannelInput struct { // A request to stop a running channel // // This member is required. ChannelId *string noSmithyDocumentSerde } // Placeholder documentation for StopChannelResponse type StopChannelOutput struct { // The unique arn of the channel. Arn *string // Specification of CDI inputs for this channel CdiInputSpecification *types.CdiInputSpecification // The class for this channel. STANDARD for a channel with two pipelines or // SINGLE_PIPELINE for a channel with one pipeline. ChannelClass types.ChannelClass // A list of destinations of the channel. For UDP outputs, there is one // destination per output. For other types (HLS, for example), there is one // destination per packager. Destinations []types.OutputDestination // The endpoints where outgoing connections initiate from EgressEndpoints []types.ChannelEgressEndpoint // Encoder Settings EncoderSettings *types.EncoderSettings // The unique id of the channel. Id *string // List of input attachments for channel. InputAttachments []types.InputAttachment // Specification of network and file inputs for this channel InputSpecification *types.InputSpecification // The log level being written to CloudWatch Logs. LogLevel types.LogLevel // Maintenance settings for this channel. Maintenance *types.MaintenanceStatus // The name of the channel. (user-mutable) Name *string // Runtime details for the pipelines of a running channel. PipelineDetails []types.PipelineDetail // The number of currently healthy pipelines. PipelinesRunningCount int32 // The Amazon Resource Name (ARN) of the role assumed when running the Channel. RoleArn *string // Placeholder documentation for ChannelState State types.ChannelState // A collection of key-value pairs. Tags map[string]string // Settings for VPC output Vpc *types.VpcOutputSettingsDescription // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationStopChannelMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpStopChannel{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpStopChannel{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpStopChannelValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStopChannel(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opStopChannel(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "StopChannel", } }
181
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/medialive/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Stops a running multiplex. If the multiplex isn't running, this action has no // effect. func (c *Client) StopMultiplex(ctx context.Context, params *StopMultiplexInput, optFns ...func(*Options)) (*StopMultiplexOutput, error) { if params == nil { params = &StopMultiplexInput{} } result, metadata, err := c.invokeOperation(ctx, "StopMultiplex", params, optFns, c.addOperationStopMultiplexMiddlewares) if err != nil { return nil, err } out := result.(*StopMultiplexOutput) out.ResultMetadata = metadata return out, nil } // Placeholder documentation for StopMultiplexRequest type StopMultiplexInput struct { // The ID of the multiplex. // // This member is required. MultiplexId *string noSmithyDocumentSerde } // Placeholder documentation for StopMultiplexResponse type StopMultiplexOutput struct { // The unique arn of the multiplex. Arn *string // A list of availability zones for the multiplex. AvailabilityZones []string // A list of the multiplex output destinations. Destinations []types.MultiplexOutputDestination // The unique id of the multiplex. Id *string // Configuration for a multiplex event. MultiplexSettings *types.MultiplexSettings // The name of the multiplex. Name *string // The number of currently healthy pipelines. PipelinesRunningCount int32 // The number of programs in the multiplex. ProgramCount int32 // The current state of the multiplex. State types.MultiplexState // A collection of key-value pairs. Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationStopMultiplexMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpStopMultiplex{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpStopMultiplex{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpStopMultiplexValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStopMultiplex(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opStopMultiplex(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "StopMultiplex", } }
155
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Start an input device transfer to another AWS account. After you make the // request, the other account must accept or reject the transfer. func (c *Client) TransferInputDevice(ctx context.Context, params *TransferInputDeviceInput, optFns ...func(*Options)) (*TransferInputDeviceOutput, error) { if params == nil { params = &TransferInputDeviceInput{} } result, metadata, err := c.invokeOperation(ctx, "TransferInputDevice", params, optFns, c.addOperationTransferInputDeviceMiddlewares) if err != nil { return nil, err } out := result.(*TransferInputDeviceOutput) out.ResultMetadata = metadata return out, nil } // A request to transfer an input device. type TransferInputDeviceInput struct { // The unique ID of this input device. For example, hd-123456789abcdef. // // This member is required. InputDeviceId *string // The AWS account ID (12 digits) for the recipient of the device transfer. TargetCustomerId *string // The target AWS region to transfer the device. TargetRegion *string // An optional message for the recipient. Maximum 280 characters. TransferMessage *string noSmithyDocumentSerde } // Placeholder documentation for TransferInputDeviceResponse type TransferInputDeviceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationTransferInputDeviceMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpTransferInputDevice{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpTransferInputDevice{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpTransferInputDeviceValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opTransferInputDevice(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opTransferInputDevice(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "TransferInputDevice", } }
132
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/medialive/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Updates a channel. func (c *Client) UpdateChannel(ctx context.Context, params *UpdateChannelInput, optFns ...func(*Options)) (*UpdateChannelOutput, error) { if params == nil { params = &UpdateChannelInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdateChannel", params, optFns, c.addOperationUpdateChannelMiddlewares) if err != nil { return nil, err } out := result.(*UpdateChannelOutput) out.ResultMetadata = metadata return out, nil } // A request to update a channel. type UpdateChannelInput struct { // channel ID // // This member is required. ChannelId *string // Specification of CDI inputs for this channel CdiInputSpecification *types.CdiInputSpecification // A list of output destinations for this channel. Destinations []types.OutputDestination // The encoder settings for this channel. EncoderSettings *types.EncoderSettings // Placeholder documentation for __listOfInputAttachment InputAttachments []types.InputAttachment // Specification of network and file inputs for this channel InputSpecification *types.InputSpecification // The log level to write to CloudWatch Logs. LogLevel types.LogLevel // Maintenance settings for this channel. Maintenance *types.MaintenanceUpdateSettings // The name of the channel. Name *string // An optional Amazon Resource Name (ARN) of the role to assume when running the // Channel. If you do not specify this on an update call but the role was // previously set that role will be removed. RoleArn *string noSmithyDocumentSerde } // Placeholder documentation for UpdateChannelResponse type UpdateChannelOutput struct { // Placeholder documentation for Channel Channel *types.Channel // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdateChannelMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateChannel{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateChannel{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpUpdateChannelValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateChannel(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opUpdateChannel(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "UpdateChannel", } }
156
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/medialive/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Changes the class of the channel. func (c *Client) UpdateChannelClass(ctx context.Context, params *UpdateChannelClassInput, optFns ...func(*Options)) (*UpdateChannelClassOutput, error) { if params == nil { params = &UpdateChannelClassInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdateChannelClass", params, optFns, c.addOperationUpdateChannelClassMiddlewares) if err != nil { return nil, err } out := result.(*UpdateChannelClassOutput) out.ResultMetadata = metadata return out, nil } // Channel class that the channel should be updated to. type UpdateChannelClassInput struct { // The channel class that you wish to update this channel to use. // // This member is required. ChannelClass types.ChannelClass // Channel Id of the channel whose class should be updated. // // This member is required. ChannelId *string // A list of output destinations for this channel. Destinations []types.OutputDestination noSmithyDocumentSerde } // Placeholder documentation for UpdateChannelClassResponse type UpdateChannelClassOutput struct { // Placeholder documentation for Channel Channel *types.Channel // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdateChannelClassMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateChannelClass{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateChannelClass{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpUpdateChannelClassValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateChannelClass(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opUpdateChannelClass(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "UpdateChannelClass", } }
135
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/medialive/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Updates an input. func (c *Client) UpdateInput(ctx context.Context, params *UpdateInputInput, optFns ...func(*Options)) (*UpdateInputOutput, error) { if params == nil { params = &UpdateInputInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdateInput", params, optFns, c.addOperationUpdateInputMiddlewares) if err != nil { return nil, err } out := result.(*UpdateInputOutput) out.ResultMetadata = metadata return out, nil } // A request to update an input. type UpdateInputInput struct { // Unique ID of the input. // // This member is required. InputId *string // Destination settings for PUSH type inputs. Destinations []types.InputDestinationRequest // Settings for the devices. InputDevices []types.InputDeviceRequest // A list of security groups referenced by IDs to attach to the input. InputSecurityGroups []string // A list of the MediaConnect Flow ARNs that you want to use as the source of the // input. You can specify as few as one Flow and presently, as many as two. The // only requirement is when you have more than one is that each Flow is in a // separate Availability Zone as this ensures your EML input is redundant to AZ // issues. MediaConnectFlows []types.MediaConnectFlowRequest // Name of the input. Name *string // The Amazon Resource Name (ARN) of the role this input assumes during and after // creation. RoleArn *string // The source URLs for a PULL-type input. Every PULL type input needs exactly two // source URLs for redundancy. Only specify sources for PULL type Inputs. Leave // Destinations empty. Sources []types.InputSourceRequest noSmithyDocumentSerde } // Placeholder documentation for UpdateInputResponse type UpdateInputOutput struct { // Placeholder documentation for Input Input *types.Input // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdateInputMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateInput{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateInput{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpUpdateInputValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateInput(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opUpdateInput(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "UpdateInput", } }
155
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/medialive/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Updates the parameters for the input device. func (c *Client) UpdateInputDevice(ctx context.Context, params *UpdateInputDeviceInput, optFns ...func(*Options)) (*UpdateInputDeviceOutput, error) { if params == nil { params = &UpdateInputDeviceInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdateInputDevice", params, optFns, c.addOperationUpdateInputDeviceMiddlewares) if err != nil { return nil, err } out := result.(*UpdateInputDeviceOutput) out.ResultMetadata = metadata return out, nil } // A request to update an input device. type UpdateInputDeviceInput struct { // The unique ID of the input device. For example, hd-123456789abcdef. // // This member is required. InputDeviceId *string // The settings that you want to apply to the HD input device. HdDeviceSettings *types.InputDeviceConfigurableSettings // The name that you assigned to this input device (not the unique ID). Name *string // The settings that you want to apply to the UHD input device. UhdDeviceSettings *types.InputDeviceConfigurableSettings noSmithyDocumentSerde } // Placeholder documentation for UpdateInputDeviceResponse type UpdateInputDeviceOutput struct { // The unique ARN of the input device. Arn *string // The state of the connection between the input device and AWS. ConnectionState types.InputDeviceConnectionState // The status of the action to synchronize the device configuration. If you change // the configuration of the input device (for example, the maximum bitrate), // MediaLive sends the new data to the device. The device might not update itself // immediately. SYNCED means the device has updated its configuration. SYNCING // means that it has not updated its configuration. DeviceSettingsSyncState types.DeviceSettingsSyncState // The status of software on the input device. DeviceUpdateStatus types.DeviceUpdateStatus // Settings that describe an input device that is type HD. HdDeviceSettings *types.InputDeviceHdSettings // The unique ID of the input device. Id *string // The network MAC address of the input device. MacAddress *string // A name that you specify for the input device. Name *string // The network settings for the input device. NetworkSettings *types.InputDeviceNetworkSettings // The unique serial number of the input device. SerialNumber *string // A collection of key-value pairs. Tags map[string]string // The type of the input device. Type types.InputDeviceType // Settings that describe an input device that is type UHD. UhdDeviceSettings *types.InputDeviceUhdSettings // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdateInputDeviceMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateInputDevice{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateInputDevice{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpUpdateInputDeviceValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateInputDevice(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opUpdateInputDevice(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "UpdateInputDevice", } }
176
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/medialive/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Update an Input Security Group's Whilelists. func (c *Client) UpdateInputSecurityGroup(ctx context.Context, params *UpdateInputSecurityGroupInput, optFns ...func(*Options)) (*UpdateInputSecurityGroupOutput, error) { if params == nil { params = &UpdateInputSecurityGroupInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdateInputSecurityGroup", params, optFns, c.addOperationUpdateInputSecurityGroupMiddlewares) if err != nil { return nil, err } out := result.(*UpdateInputSecurityGroupOutput) out.ResultMetadata = metadata return out, nil } // The request to update some combination of the Input Security Group name and the // IPv4 CIDRs the Input Security Group should allow. type UpdateInputSecurityGroupInput struct { // The id of the Input Security Group to update. // // This member is required. InputSecurityGroupId *string // A collection of key-value pairs. Tags map[string]string // List of IPv4 CIDR addresses to whitelist WhitelistRules []types.InputWhitelistRuleCidr noSmithyDocumentSerde } // Placeholder documentation for UpdateInputSecurityGroupResponse type UpdateInputSecurityGroupOutput struct { // An Input Security Group SecurityGroup *types.InputSecurityGroup // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdateInputSecurityGroupMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateInputSecurityGroup{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateInputSecurityGroup{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpUpdateInputSecurityGroupValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateInputSecurityGroup(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opUpdateInputSecurityGroup(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "UpdateInputSecurityGroup", } }
134
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/medialive/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Updates a multiplex. func (c *Client) UpdateMultiplex(ctx context.Context, params *UpdateMultiplexInput, optFns ...func(*Options)) (*UpdateMultiplexOutput, error) { if params == nil { params = &UpdateMultiplexInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdateMultiplex", params, optFns, c.addOperationUpdateMultiplexMiddlewares) if err != nil { return nil, err } out := result.(*UpdateMultiplexOutput) out.ResultMetadata = metadata return out, nil } // A request to update a multiplex. type UpdateMultiplexInput struct { // ID of the multiplex to update. // // This member is required. MultiplexId *string // The new settings for a multiplex. MultiplexSettings *types.MultiplexSettings // Name of the multiplex. Name *string noSmithyDocumentSerde } // Placeholder documentation for UpdateMultiplexResponse type UpdateMultiplexOutput struct { // The updated multiplex. Multiplex *types.Multiplex // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdateMultiplexMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateMultiplex{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateMultiplex{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpUpdateMultiplexValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateMultiplex(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opUpdateMultiplex(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "UpdateMultiplex", } }
133
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/medialive/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Update a program in a multiplex. func (c *Client) UpdateMultiplexProgram(ctx context.Context, params *UpdateMultiplexProgramInput, optFns ...func(*Options)) (*UpdateMultiplexProgramOutput, error) { if params == nil { params = &UpdateMultiplexProgramInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdateMultiplexProgram", params, optFns, c.addOperationUpdateMultiplexProgramMiddlewares) if err != nil { return nil, err } out := result.(*UpdateMultiplexProgramOutput) out.ResultMetadata = metadata return out, nil } // A request to update a program in a multiplex. type UpdateMultiplexProgramInput struct { // The ID of the multiplex of the program to update. // // This member is required. MultiplexId *string // The name of the program to update. // // This member is required. ProgramName *string // The new settings for a multiplex program. MultiplexProgramSettings *types.MultiplexProgramSettings noSmithyDocumentSerde } // Placeholder documentation for UpdateMultiplexProgramResponse type UpdateMultiplexProgramOutput struct { // The updated multiplex program. MultiplexProgram *types.MultiplexProgram // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdateMultiplexProgramMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateMultiplexProgram{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateMultiplexProgram{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpUpdateMultiplexProgramValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateMultiplexProgram(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opUpdateMultiplexProgram(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "UpdateMultiplexProgram", } }
135
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/medialive/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Update reservation. func (c *Client) UpdateReservation(ctx context.Context, params *UpdateReservationInput, optFns ...func(*Options)) (*UpdateReservationOutput, error) { if params == nil { params = &UpdateReservationInput{} } result, metadata, err := c.invokeOperation(ctx, "UpdateReservation", params, optFns, c.addOperationUpdateReservationMiddlewares) if err != nil { return nil, err } out := result.(*UpdateReservationOutput) out.ResultMetadata = metadata return out, nil } // Request to update a reservation type UpdateReservationInput struct { // Unique reservation ID, e.g. '1234567' // // This member is required. ReservationId *string // Name of the reservation Name *string // Renewal settings for the reservation RenewalSettings *types.RenewalSettings noSmithyDocumentSerde } // Placeholder documentation for UpdateReservationResponse type UpdateReservationOutput struct { // Reserved resources available to use Reservation *types.Reservation // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationUpdateReservationMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateReservation{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateReservation{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpUpdateReservationValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateReservation(options.Region), middleware.Before); err != nil { return err } if err = awsmiddleware.AddRecursionDetection(stack); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opUpdateReservation(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "medialive", OperationName: "UpdateReservation", } }
133
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. // Package medialive provides the API client, operations, and parameter types for // AWS Elemental MediaLive. // // API for AWS Elemental MediaLive package medialive
8
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "context" "errors" "fmt" "github.com/aws/aws-sdk-go-v2/aws" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" internalendpoints "github.com/aws/aws-sdk-go-v2/service/medialive/internal/endpoints" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" "net/url" "strings" ) // EndpointResolverOptions is the service endpoint resolver options type EndpointResolverOptions = internalendpoints.Options // EndpointResolver interface for resolving service endpoints. type EndpointResolver interface { ResolveEndpoint(region string, options EndpointResolverOptions) (aws.Endpoint, error) } var _ EndpointResolver = &internalendpoints.Resolver{} // NewDefaultEndpointResolver constructs a new service endpoint resolver func NewDefaultEndpointResolver() *internalendpoints.Resolver { return internalendpoints.New() } // EndpointResolverFunc is a helper utility that wraps a function so it satisfies // the EndpointResolver interface. This is useful when you want to add additional // endpoint resolving logic, or stub out specific endpoints with custom values. type EndpointResolverFunc func(region string, options EndpointResolverOptions) (aws.Endpoint, error) func (fn EndpointResolverFunc) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error) { return fn(region, options) } func resolveDefaultEndpointConfiguration(o *Options) { if o.EndpointResolver != nil { return } o.EndpointResolver = NewDefaultEndpointResolver() } // EndpointResolverFromURL returns an EndpointResolver configured using the // provided endpoint url. By default, the resolved endpoint resolver uses the // client region as signing region, and the endpoint source is set to // EndpointSourceCustom.You can provide functional options to configure endpoint // values for the resolved endpoint. func EndpointResolverFromURL(url string, optFns ...func(*aws.Endpoint)) EndpointResolver { e := aws.Endpoint{URL: url, Source: aws.EndpointSourceCustom} for _, fn := range optFns { fn(&e) } return EndpointResolverFunc( func(region string, options EndpointResolverOptions) (aws.Endpoint, error) { if len(e.SigningRegion) == 0 { e.SigningRegion = region } return e, nil }, ) } type ResolveEndpoint struct { Resolver EndpointResolver Options EndpointResolverOptions } func (*ResolveEndpoint) ID() string { return "ResolveEndpoint" } func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { req, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) } if m.Resolver == nil { return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil") } eo := m.Options eo.Logger = middleware.GetLogger(ctx) var endpoint aws.Endpoint endpoint, err = m.Resolver.ResolveEndpoint(awsmiddleware.GetRegion(ctx), eo) if err != nil { return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err) } req.URL, err = url.Parse(endpoint.URL) if err != nil { return out, metadata, fmt.Errorf("failed to parse endpoint URL: %w", err) } if len(awsmiddleware.GetSigningName(ctx)) == 0 { signingName := endpoint.SigningName if len(signingName) == 0 { signingName = "medialive" } ctx = awsmiddleware.SetSigningName(ctx, signingName) } ctx = awsmiddleware.SetEndpointSource(ctx, endpoint.Source) ctx = smithyhttp.SetHostnameImmutable(ctx, endpoint.HostnameImmutable) ctx = awsmiddleware.SetSigningRegion(ctx, endpoint.SigningRegion) ctx = awsmiddleware.SetPartitionID(ctx, endpoint.PartitionID) return next.HandleSerialize(ctx, in) } func addResolveEndpointMiddleware(stack *middleware.Stack, o Options) error { return stack.Serialize.Insert(&ResolveEndpoint{ Resolver: o.EndpointResolver, Options: o.EndpointOptions, }, "OperationSerializer", middleware.Before) } func removeResolveEndpointMiddleware(stack *middleware.Stack) error { _, err := stack.Serialize.Remove((&ResolveEndpoint{}).ID()) return err } type wrappedEndpointResolver struct { awsResolver aws.EndpointResolverWithOptions resolver EndpointResolver } func (w *wrappedEndpointResolver) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error) { if w.awsResolver == nil { goto fallback } endpoint, err = w.awsResolver.ResolveEndpoint(ServiceID, region, options) if err == nil { return endpoint, nil } if nf := (&aws.EndpointNotFoundError{}); !errors.As(err, &nf) { return endpoint, err } fallback: if w.resolver == nil { return endpoint, fmt.Errorf("default endpoint resolver provided was nil") } return w.resolver.ResolveEndpoint(region, options) } type awsEndpointResolverAdaptor func(service, region string) (aws.Endpoint, error) func (a awsEndpointResolverAdaptor) ResolveEndpoint(service, region string, options ...interface{}) (aws.Endpoint, error) { return a(service, region) } var _ aws.EndpointResolverWithOptions = awsEndpointResolverAdaptor(nil) // withEndpointResolver returns an EndpointResolver that first delegates endpoint resolution to the awsResolver. // If awsResolver returns aws.EndpointNotFoundError error, the resolver will use the the provided // fallbackResolver for resolution. // // fallbackResolver must not be nil func withEndpointResolver(awsResolver aws.EndpointResolver, awsResolverWithOptions aws.EndpointResolverWithOptions, fallbackResolver EndpointResolver) EndpointResolver { var resolver aws.EndpointResolverWithOptions if awsResolverWithOptions != nil { resolver = awsResolverWithOptions } else if awsResolver != nil { resolver = awsEndpointResolverAdaptor(awsResolver.ResolveEndpoint) } return &wrappedEndpointResolver{ awsResolver: resolver, resolver: fallbackResolver, } } func finalizeClientEndpointResolverOptions(options *Options) { options.EndpointOptions.LogDeprecated = options.ClientLogMode.IsDeprecatedUsage() if len(options.EndpointOptions.ResolvedRegion) == 0 { const fipsInfix = "-fips-" const fipsPrefix = "fips-" const fipsSuffix = "-fips" if strings.Contains(options.Region, fipsInfix) || strings.Contains(options.Region, fipsPrefix) || strings.Contains(options.Region, fipsSuffix) { options.EndpointOptions.ResolvedRegion = strings.ReplaceAll(strings.ReplaceAll(strings.ReplaceAll( options.Region, fipsInfix, "-"), fipsPrefix, ""), fipsSuffix, "") options.EndpointOptions.UseFIPSEndpoint = aws.FIPSEndpointStateEnabled } } }
201
aws-sdk-go-v2
aws
Go
// Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT. package medialive // goModuleVersion is the tagged release for this module const goModuleVersion = "1.31.6"
7
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive
4
aws-sdk-go-v2
aws
Go
// Code generated by smithy-go-codegen DO NOT EDIT. package medialive import ( "bytes" "context" "fmt" "github.com/aws/aws-sdk-go-v2/service/medialive/types" smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/encoding/httpbinding" smithyjson "github.com/aws/smithy-go/encoding/json" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" "math" ) type awsRestjson1_serializeOpAcceptInputDeviceTransfer struct { } func (*awsRestjson1_serializeOpAcceptInputDeviceTransfer) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpAcceptInputDeviceTransfer) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*AcceptInputDeviceTransferInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/inputDevices/{InputDeviceId}/accept") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "POST" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsAcceptInputDeviceTransferInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsAcceptInputDeviceTransferInput(v *AcceptInputDeviceTransferInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.InputDeviceId == nil || len(*v.InputDeviceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InputDeviceId must not be empty")} } if v.InputDeviceId != nil { if err := encoder.SetURI("InputDeviceId").String(*v.InputDeviceId); err != nil { return err } } return nil } type awsRestjson1_serializeOpBatchDelete struct { } func (*awsRestjson1_serializeOpBatchDelete) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpBatchDelete) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*BatchDeleteInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/batch/delete") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "POST" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() if err := awsRestjson1_serializeOpDocumentBatchDeleteInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsBatchDeleteInput(v *BatchDeleteInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } return nil } func awsRestjson1_serializeOpDocumentBatchDeleteInput(v *BatchDeleteInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.ChannelIds != nil { ok := object.Key("channelIds") if err := awsRestjson1_serializeDocument__listOf__string(v.ChannelIds, ok); err != nil { return err } } if v.InputIds != nil { ok := object.Key("inputIds") if err := awsRestjson1_serializeDocument__listOf__string(v.InputIds, ok); err != nil { return err } } if v.InputSecurityGroupIds != nil { ok := object.Key("inputSecurityGroupIds") if err := awsRestjson1_serializeDocument__listOf__string(v.InputSecurityGroupIds, ok); err != nil { return err } } if v.MultiplexIds != nil { ok := object.Key("multiplexIds") if err := awsRestjson1_serializeDocument__listOf__string(v.MultiplexIds, ok); err != nil { return err } } return nil } type awsRestjson1_serializeOpBatchStart struct { } func (*awsRestjson1_serializeOpBatchStart) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpBatchStart) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*BatchStartInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/batch/start") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "POST" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() if err := awsRestjson1_serializeOpDocumentBatchStartInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsBatchStartInput(v *BatchStartInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } return nil } func awsRestjson1_serializeOpDocumentBatchStartInput(v *BatchStartInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.ChannelIds != nil { ok := object.Key("channelIds") if err := awsRestjson1_serializeDocument__listOf__string(v.ChannelIds, ok); err != nil { return err } } if v.MultiplexIds != nil { ok := object.Key("multiplexIds") if err := awsRestjson1_serializeDocument__listOf__string(v.MultiplexIds, ok); err != nil { return err } } return nil } type awsRestjson1_serializeOpBatchStop struct { } func (*awsRestjson1_serializeOpBatchStop) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpBatchStop) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*BatchStopInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/batch/stop") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "POST" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() if err := awsRestjson1_serializeOpDocumentBatchStopInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsBatchStopInput(v *BatchStopInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } return nil } func awsRestjson1_serializeOpDocumentBatchStopInput(v *BatchStopInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.ChannelIds != nil { ok := object.Key("channelIds") if err := awsRestjson1_serializeDocument__listOf__string(v.ChannelIds, ok); err != nil { return err } } if v.MultiplexIds != nil { ok := object.Key("multiplexIds") if err := awsRestjson1_serializeDocument__listOf__string(v.MultiplexIds, ok); err != nil { return err } } return nil } type awsRestjson1_serializeOpBatchUpdateSchedule struct { } func (*awsRestjson1_serializeOpBatchUpdateSchedule) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpBatchUpdateSchedule) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*BatchUpdateScheduleInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/channels/{ChannelId}/schedule") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "PUT" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsBatchUpdateScheduleInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() if err := awsRestjson1_serializeOpDocumentBatchUpdateScheduleInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsBatchUpdateScheduleInput(v *BatchUpdateScheduleInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.ChannelId == nil || len(*v.ChannelId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ChannelId must not be empty")} } if v.ChannelId != nil { if err := encoder.SetURI("ChannelId").String(*v.ChannelId); err != nil { return err } } return nil } func awsRestjson1_serializeOpDocumentBatchUpdateScheduleInput(v *BatchUpdateScheduleInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Creates != nil { ok := object.Key("creates") if err := awsRestjson1_serializeDocumentBatchScheduleActionCreateRequest(v.Creates, ok); err != nil { return err } } if v.Deletes != nil { ok := object.Key("deletes") if err := awsRestjson1_serializeDocumentBatchScheduleActionDeleteRequest(v.Deletes, ok); err != nil { return err } } return nil } type awsRestjson1_serializeOpCancelInputDeviceTransfer struct { } func (*awsRestjson1_serializeOpCancelInputDeviceTransfer) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpCancelInputDeviceTransfer) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*CancelInputDeviceTransferInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/inputDevices/{InputDeviceId}/cancel") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "POST" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsCancelInputDeviceTransferInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsCancelInputDeviceTransferInput(v *CancelInputDeviceTransferInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.InputDeviceId == nil || len(*v.InputDeviceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InputDeviceId must not be empty")} } if v.InputDeviceId != nil { if err := encoder.SetURI("InputDeviceId").String(*v.InputDeviceId); err != nil { return err } } return nil } type awsRestjson1_serializeOpClaimDevice struct { } func (*awsRestjson1_serializeOpClaimDevice) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpClaimDevice) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*ClaimDeviceInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/claimDevice") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "POST" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() if err := awsRestjson1_serializeOpDocumentClaimDeviceInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsClaimDeviceInput(v *ClaimDeviceInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } return nil } func awsRestjson1_serializeOpDocumentClaimDeviceInput(v *ClaimDeviceInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Id != nil { ok := object.Key("id") ok.String(*v.Id) } return nil } type awsRestjson1_serializeOpCreateChannel struct { } func (*awsRestjson1_serializeOpCreateChannel) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpCreateChannel) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*CreateChannelInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/channels") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "POST" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() if err := awsRestjson1_serializeOpDocumentCreateChannelInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsCreateChannelInput(v *CreateChannelInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } return nil } func awsRestjson1_serializeOpDocumentCreateChannelInput(v *CreateChannelInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.CdiInputSpecification != nil { ok := object.Key("cdiInputSpecification") if err := awsRestjson1_serializeDocumentCdiInputSpecification(v.CdiInputSpecification, ok); err != nil { return err } } if len(v.ChannelClass) > 0 { ok := object.Key("channelClass") ok.String(string(v.ChannelClass)) } if v.Destinations != nil { ok := object.Key("destinations") if err := awsRestjson1_serializeDocument__listOfOutputDestination(v.Destinations, ok); err != nil { return err } } if v.EncoderSettings != nil { ok := object.Key("encoderSettings") if err := awsRestjson1_serializeDocumentEncoderSettings(v.EncoderSettings, ok); err != nil { return err } } if v.InputAttachments != nil { ok := object.Key("inputAttachments") if err := awsRestjson1_serializeDocument__listOfInputAttachment(v.InputAttachments, ok); err != nil { return err } } if v.InputSpecification != nil { ok := object.Key("inputSpecification") if err := awsRestjson1_serializeDocumentInputSpecification(v.InputSpecification, ok); err != nil { return err } } if len(v.LogLevel) > 0 { ok := object.Key("logLevel") ok.String(string(v.LogLevel)) } if v.Maintenance != nil { ok := object.Key("maintenance") if err := awsRestjson1_serializeDocumentMaintenanceCreateSettings(v.Maintenance, ok); err != nil { return err } } if v.Name != nil { ok := object.Key("name") ok.String(*v.Name) } if v.RequestId != nil { ok := object.Key("requestId") ok.String(*v.RequestId) } if v.Reserved != nil { ok := object.Key("reserved") ok.String(*v.Reserved) } if v.RoleArn != nil { ok := object.Key("roleArn") ok.String(*v.RoleArn) } if v.Tags != nil { ok := object.Key("tags") if err := awsRestjson1_serializeDocumentTags(v.Tags, ok); err != nil { return err } } if v.Vpc != nil { ok := object.Key("vpc") if err := awsRestjson1_serializeDocumentVpcOutputSettings(v.Vpc, ok); err != nil { return err } } return nil } type awsRestjson1_serializeOpCreateInput struct { } func (*awsRestjson1_serializeOpCreateInput) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpCreateInput) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*CreateInputInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/inputs") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "POST" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() if err := awsRestjson1_serializeOpDocumentCreateInputInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsCreateInputInput(v *CreateInputInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } return nil } func awsRestjson1_serializeOpDocumentCreateInputInput(v *CreateInputInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Destinations != nil { ok := object.Key("destinations") if err := awsRestjson1_serializeDocument__listOfInputDestinationRequest(v.Destinations, ok); err != nil { return err } } if v.InputDevices != nil { ok := object.Key("inputDevices") if err := awsRestjson1_serializeDocument__listOfInputDeviceSettings(v.InputDevices, ok); err != nil { return err } } if v.InputSecurityGroups != nil { ok := object.Key("inputSecurityGroups") if err := awsRestjson1_serializeDocument__listOf__string(v.InputSecurityGroups, ok); err != nil { return err } } if v.MediaConnectFlows != nil { ok := object.Key("mediaConnectFlows") if err := awsRestjson1_serializeDocument__listOfMediaConnectFlowRequest(v.MediaConnectFlows, ok); err != nil { return err } } if v.Name != nil { ok := object.Key("name") ok.String(*v.Name) } if v.RequestId != nil { ok := object.Key("requestId") ok.String(*v.RequestId) } if v.RoleArn != nil { ok := object.Key("roleArn") ok.String(*v.RoleArn) } if v.Sources != nil { ok := object.Key("sources") if err := awsRestjson1_serializeDocument__listOfInputSourceRequest(v.Sources, ok); err != nil { return err } } if v.Tags != nil { ok := object.Key("tags") if err := awsRestjson1_serializeDocumentTags(v.Tags, ok); err != nil { return err } } if len(v.Type) > 0 { ok := object.Key("type") ok.String(string(v.Type)) } if v.Vpc != nil { ok := object.Key("vpc") if err := awsRestjson1_serializeDocumentInputVpcRequest(v.Vpc, ok); err != nil { return err } } return nil } type awsRestjson1_serializeOpCreateInputSecurityGroup struct { } func (*awsRestjson1_serializeOpCreateInputSecurityGroup) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpCreateInputSecurityGroup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*CreateInputSecurityGroupInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/inputSecurityGroups") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "POST" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() if err := awsRestjson1_serializeOpDocumentCreateInputSecurityGroupInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsCreateInputSecurityGroupInput(v *CreateInputSecurityGroupInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } return nil } func awsRestjson1_serializeOpDocumentCreateInputSecurityGroupInput(v *CreateInputSecurityGroupInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Tags != nil { ok := object.Key("tags") if err := awsRestjson1_serializeDocumentTags(v.Tags, ok); err != nil { return err } } if v.WhitelistRules != nil { ok := object.Key("whitelistRules") if err := awsRestjson1_serializeDocument__listOfInputWhitelistRuleCidr(v.WhitelistRules, ok); err != nil { return err } } return nil } type awsRestjson1_serializeOpCreateMultiplex struct { } func (*awsRestjson1_serializeOpCreateMultiplex) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpCreateMultiplex) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*CreateMultiplexInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/multiplexes") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "POST" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() if err := awsRestjson1_serializeOpDocumentCreateMultiplexInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsCreateMultiplexInput(v *CreateMultiplexInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } return nil } func awsRestjson1_serializeOpDocumentCreateMultiplexInput(v *CreateMultiplexInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AvailabilityZones != nil { ok := object.Key("availabilityZones") if err := awsRestjson1_serializeDocument__listOf__string(v.AvailabilityZones, ok); err != nil { return err } } if v.MultiplexSettings != nil { ok := object.Key("multiplexSettings") if err := awsRestjson1_serializeDocumentMultiplexSettings(v.MultiplexSettings, ok); err != nil { return err } } if v.Name != nil { ok := object.Key("name") ok.String(*v.Name) } if v.RequestId != nil { ok := object.Key("requestId") ok.String(*v.RequestId) } if v.Tags != nil { ok := object.Key("tags") if err := awsRestjson1_serializeDocumentTags(v.Tags, ok); err != nil { return err } } return nil } type awsRestjson1_serializeOpCreateMultiplexProgram struct { } func (*awsRestjson1_serializeOpCreateMultiplexProgram) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpCreateMultiplexProgram) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*CreateMultiplexProgramInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/multiplexes/{MultiplexId}/programs") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "POST" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsCreateMultiplexProgramInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() if err := awsRestjson1_serializeOpDocumentCreateMultiplexProgramInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsCreateMultiplexProgramInput(v *CreateMultiplexProgramInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.MultiplexId == nil || len(*v.MultiplexId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MultiplexId must not be empty")} } if v.MultiplexId != nil { if err := encoder.SetURI("MultiplexId").String(*v.MultiplexId); err != nil { return err } } return nil } func awsRestjson1_serializeOpDocumentCreateMultiplexProgramInput(v *CreateMultiplexProgramInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.MultiplexProgramSettings != nil { ok := object.Key("multiplexProgramSettings") if err := awsRestjson1_serializeDocumentMultiplexProgramSettings(v.MultiplexProgramSettings, ok); err != nil { return err } } if v.ProgramName != nil { ok := object.Key("programName") ok.String(*v.ProgramName) } if v.RequestId != nil { ok := object.Key("requestId") ok.String(*v.RequestId) } return nil } type awsRestjson1_serializeOpCreatePartnerInput struct { } func (*awsRestjson1_serializeOpCreatePartnerInput) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpCreatePartnerInput) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*CreatePartnerInputInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/inputs/{InputId}/partners") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "POST" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsCreatePartnerInputInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() if err := awsRestjson1_serializeOpDocumentCreatePartnerInputInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsCreatePartnerInputInput(v *CreatePartnerInputInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.InputId == nil || len(*v.InputId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InputId must not be empty")} } if v.InputId != nil { if err := encoder.SetURI("InputId").String(*v.InputId); err != nil { return err } } return nil } func awsRestjson1_serializeOpDocumentCreatePartnerInputInput(v *CreatePartnerInputInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.RequestId != nil { ok := object.Key("requestId") ok.String(*v.RequestId) } if v.Tags != nil { ok := object.Key("tags") if err := awsRestjson1_serializeDocumentTags(v.Tags, ok); err != nil { return err } } return nil } type awsRestjson1_serializeOpCreateTags struct { } func (*awsRestjson1_serializeOpCreateTags) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpCreateTags) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*CreateTagsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/tags/{ResourceArn}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "POST" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsCreateTagsInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() if err := awsRestjson1_serializeOpDocumentCreateTagsInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsCreateTagsInput(v *CreateTagsInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.ResourceArn == nil || len(*v.ResourceArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} } if v.ResourceArn != nil { if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } } return nil } func awsRestjson1_serializeOpDocumentCreateTagsInput(v *CreateTagsInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Tags != nil { ok := object.Key("tags") if err := awsRestjson1_serializeDocumentTags(v.Tags, ok); err != nil { return err } } return nil } type awsRestjson1_serializeOpDeleteChannel struct { } func (*awsRestjson1_serializeOpDeleteChannel) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpDeleteChannel) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*DeleteChannelInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/channels/{ChannelId}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "DELETE" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsDeleteChannelInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsDeleteChannelInput(v *DeleteChannelInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.ChannelId == nil || len(*v.ChannelId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ChannelId must not be empty")} } if v.ChannelId != nil { if err := encoder.SetURI("ChannelId").String(*v.ChannelId); err != nil { return err } } return nil } type awsRestjson1_serializeOpDeleteInput struct { } func (*awsRestjson1_serializeOpDeleteInput) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpDeleteInput) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*DeleteInputInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/inputs/{InputId}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "DELETE" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsDeleteInputInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsDeleteInputInput(v *DeleteInputInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.InputId == nil || len(*v.InputId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InputId must not be empty")} } if v.InputId != nil { if err := encoder.SetURI("InputId").String(*v.InputId); err != nil { return err } } return nil } type awsRestjson1_serializeOpDeleteInputSecurityGroup struct { } func (*awsRestjson1_serializeOpDeleteInputSecurityGroup) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpDeleteInputSecurityGroup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*DeleteInputSecurityGroupInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/inputSecurityGroups/{InputSecurityGroupId}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "DELETE" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsDeleteInputSecurityGroupInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsDeleteInputSecurityGroupInput(v *DeleteInputSecurityGroupInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.InputSecurityGroupId == nil || len(*v.InputSecurityGroupId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InputSecurityGroupId must not be empty")} } if v.InputSecurityGroupId != nil { if err := encoder.SetURI("InputSecurityGroupId").String(*v.InputSecurityGroupId); err != nil { return err } } return nil } type awsRestjson1_serializeOpDeleteMultiplex struct { } func (*awsRestjson1_serializeOpDeleteMultiplex) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpDeleteMultiplex) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*DeleteMultiplexInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/multiplexes/{MultiplexId}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "DELETE" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsDeleteMultiplexInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsDeleteMultiplexInput(v *DeleteMultiplexInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.MultiplexId == nil || len(*v.MultiplexId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MultiplexId must not be empty")} } if v.MultiplexId != nil { if err := encoder.SetURI("MultiplexId").String(*v.MultiplexId); err != nil { return err } } return nil } type awsRestjson1_serializeOpDeleteMultiplexProgram struct { } func (*awsRestjson1_serializeOpDeleteMultiplexProgram) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpDeleteMultiplexProgram) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*DeleteMultiplexProgramInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/multiplexes/{MultiplexId}/programs/{ProgramName}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "DELETE" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsDeleteMultiplexProgramInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsDeleteMultiplexProgramInput(v *DeleteMultiplexProgramInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.MultiplexId == nil || len(*v.MultiplexId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MultiplexId must not be empty")} } if v.MultiplexId != nil { if err := encoder.SetURI("MultiplexId").String(*v.MultiplexId); err != nil { return err } } if v.ProgramName == nil || len(*v.ProgramName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ProgramName must not be empty")} } if v.ProgramName != nil { if err := encoder.SetURI("ProgramName").String(*v.ProgramName); err != nil { return err } } return nil } type awsRestjson1_serializeOpDeleteReservation struct { } func (*awsRestjson1_serializeOpDeleteReservation) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpDeleteReservation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*DeleteReservationInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/reservations/{ReservationId}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "DELETE" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsDeleteReservationInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsDeleteReservationInput(v *DeleteReservationInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.ReservationId == nil || len(*v.ReservationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ReservationId must not be empty")} } if v.ReservationId != nil { if err := encoder.SetURI("ReservationId").String(*v.ReservationId); err != nil { return err } } return nil } type awsRestjson1_serializeOpDeleteSchedule struct { } func (*awsRestjson1_serializeOpDeleteSchedule) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpDeleteSchedule) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*DeleteScheduleInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/channels/{ChannelId}/schedule") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "DELETE" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsDeleteScheduleInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsDeleteScheduleInput(v *DeleteScheduleInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.ChannelId == nil || len(*v.ChannelId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ChannelId must not be empty")} } if v.ChannelId != nil { if err := encoder.SetURI("ChannelId").String(*v.ChannelId); err != nil { return err } } return nil } type awsRestjson1_serializeOpDeleteTags struct { } func (*awsRestjson1_serializeOpDeleteTags) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpDeleteTags) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*DeleteTagsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/tags/{ResourceArn}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "DELETE" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsDeleteTagsInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsDeleteTagsInput(v *DeleteTagsInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.ResourceArn == nil || len(*v.ResourceArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} } if v.ResourceArn != nil { if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } } if v.TagKeys != nil { for i := range v.TagKeys { encoder.AddQuery("tagKeys").String(v.TagKeys[i]) } } return nil } type awsRestjson1_serializeOpDescribeChannel struct { } func (*awsRestjson1_serializeOpDescribeChannel) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpDescribeChannel) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*DescribeChannelInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/channels/{ChannelId}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsDescribeChannelInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsDescribeChannelInput(v *DescribeChannelInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.ChannelId == nil || len(*v.ChannelId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ChannelId must not be empty")} } if v.ChannelId != nil { if err := encoder.SetURI("ChannelId").String(*v.ChannelId); err != nil { return err } } return nil } type awsRestjson1_serializeOpDescribeInput struct { } func (*awsRestjson1_serializeOpDescribeInput) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpDescribeInput) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*DescribeInputInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/inputs/{InputId}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsDescribeInputInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsDescribeInputInput(v *DescribeInputInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.InputId == nil || len(*v.InputId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InputId must not be empty")} } if v.InputId != nil { if err := encoder.SetURI("InputId").String(*v.InputId); err != nil { return err } } return nil } type awsRestjson1_serializeOpDescribeInputDevice struct { } func (*awsRestjson1_serializeOpDescribeInputDevice) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpDescribeInputDevice) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*DescribeInputDeviceInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/inputDevices/{InputDeviceId}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsDescribeInputDeviceInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsDescribeInputDeviceInput(v *DescribeInputDeviceInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.InputDeviceId == nil || len(*v.InputDeviceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InputDeviceId must not be empty")} } if v.InputDeviceId != nil { if err := encoder.SetURI("InputDeviceId").String(*v.InputDeviceId); err != nil { return err } } return nil } type awsRestjson1_serializeOpDescribeInputDeviceThumbnail struct { } func (*awsRestjson1_serializeOpDescribeInputDeviceThumbnail) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpDescribeInputDeviceThumbnail) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*DescribeInputDeviceThumbnailInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/inputDevices/{InputDeviceId}/thumbnailData") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsDescribeInputDeviceThumbnailInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsDescribeInputDeviceThumbnailInput(v *DescribeInputDeviceThumbnailInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if len(v.Accept) > 0 { locationName := "Accept" encoder.SetHeader(locationName).String(string(v.Accept)) } if v.InputDeviceId == nil || len(*v.InputDeviceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InputDeviceId must not be empty")} } if v.InputDeviceId != nil { if err := encoder.SetURI("InputDeviceId").String(*v.InputDeviceId); err != nil { return err } } return nil } type awsRestjson1_serializeOpDescribeInputSecurityGroup struct { } func (*awsRestjson1_serializeOpDescribeInputSecurityGroup) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpDescribeInputSecurityGroup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*DescribeInputSecurityGroupInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/inputSecurityGroups/{InputSecurityGroupId}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsDescribeInputSecurityGroupInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsDescribeInputSecurityGroupInput(v *DescribeInputSecurityGroupInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.InputSecurityGroupId == nil || len(*v.InputSecurityGroupId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InputSecurityGroupId must not be empty")} } if v.InputSecurityGroupId != nil { if err := encoder.SetURI("InputSecurityGroupId").String(*v.InputSecurityGroupId); err != nil { return err } } return nil } type awsRestjson1_serializeOpDescribeMultiplex struct { } func (*awsRestjson1_serializeOpDescribeMultiplex) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpDescribeMultiplex) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*DescribeMultiplexInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/multiplexes/{MultiplexId}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsDescribeMultiplexInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsDescribeMultiplexInput(v *DescribeMultiplexInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.MultiplexId == nil || len(*v.MultiplexId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MultiplexId must not be empty")} } if v.MultiplexId != nil { if err := encoder.SetURI("MultiplexId").String(*v.MultiplexId); err != nil { return err } } return nil } type awsRestjson1_serializeOpDescribeMultiplexProgram struct { } func (*awsRestjson1_serializeOpDescribeMultiplexProgram) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpDescribeMultiplexProgram) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*DescribeMultiplexProgramInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/multiplexes/{MultiplexId}/programs/{ProgramName}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsDescribeMultiplexProgramInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsDescribeMultiplexProgramInput(v *DescribeMultiplexProgramInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.MultiplexId == nil || len(*v.MultiplexId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MultiplexId must not be empty")} } if v.MultiplexId != nil { if err := encoder.SetURI("MultiplexId").String(*v.MultiplexId); err != nil { return err } } if v.ProgramName == nil || len(*v.ProgramName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ProgramName must not be empty")} } if v.ProgramName != nil { if err := encoder.SetURI("ProgramName").String(*v.ProgramName); err != nil { return err } } return nil } type awsRestjson1_serializeOpDescribeOffering struct { } func (*awsRestjson1_serializeOpDescribeOffering) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpDescribeOffering) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*DescribeOfferingInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/offerings/{OfferingId}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsDescribeOfferingInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsDescribeOfferingInput(v *DescribeOfferingInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.OfferingId == nil || len(*v.OfferingId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member OfferingId must not be empty")} } if v.OfferingId != nil { if err := encoder.SetURI("OfferingId").String(*v.OfferingId); err != nil { return err } } return nil } type awsRestjson1_serializeOpDescribeReservation struct { } func (*awsRestjson1_serializeOpDescribeReservation) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpDescribeReservation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*DescribeReservationInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/reservations/{ReservationId}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsDescribeReservationInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsDescribeReservationInput(v *DescribeReservationInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.ReservationId == nil || len(*v.ReservationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ReservationId must not be empty")} } if v.ReservationId != nil { if err := encoder.SetURI("ReservationId").String(*v.ReservationId); err != nil { return err } } return nil } type awsRestjson1_serializeOpDescribeSchedule struct { } func (*awsRestjson1_serializeOpDescribeSchedule) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpDescribeSchedule) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*DescribeScheduleInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/channels/{ChannelId}/schedule") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsDescribeScheduleInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsDescribeScheduleInput(v *DescribeScheduleInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.ChannelId == nil || len(*v.ChannelId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ChannelId must not be empty")} } if v.ChannelId != nil { if err := encoder.SetURI("ChannelId").String(*v.ChannelId); err != nil { return err } } if v.MaxResults != 0 { encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { encoder.SetQuery("nextToken").String(*v.NextToken) } return nil } type awsRestjson1_serializeOpListChannels struct { } func (*awsRestjson1_serializeOpListChannels) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpListChannels) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*ListChannelsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/channels") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsListChannelsInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsListChannelsInput(v *ListChannelsInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.MaxResults != 0 { encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { encoder.SetQuery("nextToken").String(*v.NextToken) } return nil } type awsRestjson1_serializeOpListInputDevices struct { } func (*awsRestjson1_serializeOpListInputDevices) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpListInputDevices) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*ListInputDevicesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/inputDevices") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsListInputDevicesInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsListInputDevicesInput(v *ListInputDevicesInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.MaxResults != 0 { encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { encoder.SetQuery("nextToken").String(*v.NextToken) } return nil } type awsRestjson1_serializeOpListInputDeviceTransfers struct { } func (*awsRestjson1_serializeOpListInputDeviceTransfers) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpListInputDeviceTransfers) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*ListInputDeviceTransfersInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/inputDeviceTransfers") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsListInputDeviceTransfersInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsListInputDeviceTransfersInput(v *ListInputDeviceTransfersInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.MaxResults != 0 { encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { encoder.SetQuery("nextToken").String(*v.NextToken) } if v.TransferType != nil { encoder.SetQuery("transferType").String(*v.TransferType) } return nil } type awsRestjson1_serializeOpListInputs struct { } func (*awsRestjson1_serializeOpListInputs) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpListInputs) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*ListInputsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/inputs") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsListInputsInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsListInputsInput(v *ListInputsInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.MaxResults != 0 { encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { encoder.SetQuery("nextToken").String(*v.NextToken) } return nil } type awsRestjson1_serializeOpListInputSecurityGroups struct { } func (*awsRestjson1_serializeOpListInputSecurityGroups) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpListInputSecurityGroups) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*ListInputSecurityGroupsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/inputSecurityGroups") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsListInputSecurityGroupsInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsListInputSecurityGroupsInput(v *ListInputSecurityGroupsInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.MaxResults != 0 { encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { encoder.SetQuery("nextToken").String(*v.NextToken) } return nil } type awsRestjson1_serializeOpListMultiplexes struct { } func (*awsRestjson1_serializeOpListMultiplexes) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpListMultiplexes) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*ListMultiplexesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/multiplexes") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsListMultiplexesInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsListMultiplexesInput(v *ListMultiplexesInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.MaxResults != 0 { encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { encoder.SetQuery("nextToken").String(*v.NextToken) } return nil } type awsRestjson1_serializeOpListMultiplexPrograms struct { } func (*awsRestjson1_serializeOpListMultiplexPrograms) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpListMultiplexPrograms) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*ListMultiplexProgramsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/multiplexes/{MultiplexId}/programs") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsListMultiplexProgramsInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsListMultiplexProgramsInput(v *ListMultiplexProgramsInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.MaxResults != 0 { encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.MultiplexId == nil || len(*v.MultiplexId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MultiplexId must not be empty")} } if v.MultiplexId != nil { if err := encoder.SetURI("MultiplexId").String(*v.MultiplexId); err != nil { return err } } if v.NextToken != nil { encoder.SetQuery("nextToken").String(*v.NextToken) } return nil } type awsRestjson1_serializeOpListOfferings struct { } func (*awsRestjson1_serializeOpListOfferings) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpListOfferings) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*ListOfferingsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/offerings") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsListOfferingsInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsListOfferingsInput(v *ListOfferingsInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.ChannelClass != nil { encoder.SetQuery("channelClass").String(*v.ChannelClass) } if v.ChannelConfiguration != nil { encoder.SetQuery("channelConfiguration").String(*v.ChannelConfiguration) } if v.Codec != nil { encoder.SetQuery("codec").String(*v.Codec) } if v.Duration != nil { encoder.SetQuery("duration").String(*v.Duration) } if v.MaximumBitrate != nil { encoder.SetQuery("maximumBitrate").String(*v.MaximumBitrate) } if v.MaximumFramerate != nil { encoder.SetQuery("maximumFramerate").String(*v.MaximumFramerate) } if v.MaxResults != 0 { encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { encoder.SetQuery("nextToken").String(*v.NextToken) } if v.Resolution != nil { encoder.SetQuery("resolution").String(*v.Resolution) } if v.ResourceType != nil { encoder.SetQuery("resourceType").String(*v.ResourceType) } if v.SpecialFeature != nil { encoder.SetQuery("specialFeature").String(*v.SpecialFeature) } if v.VideoQuality != nil { encoder.SetQuery("videoQuality").String(*v.VideoQuality) } return nil } type awsRestjson1_serializeOpListReservations struct { } func (*awsRestjson1_serializeOpListReservations) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpListReservations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*ListReservationsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/reservations") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsListReservationsInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsListReservationsInput(v *ListReservationsInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.ChannelClass != nil { encoder.SetQuery("channelClass").String(*v.ChannelClass) } if v.Codec != nil { encoder.SetQuery("codec").String(*v.Codec) } if v.MaximumBitrate != nil { encoder.SetQuery("maximumBitrate").String(*v.MaximumBitrate) } if v.MaximumFramerate != nil { encoder.SetQuery("maximumFramerate").String(*v.MaximumFramerate) } if v.MaxResults != 0 { encoder.SetQuery("maxResults").Integer(v.MaxResults) } if v.NextToken != nil { encoder.SetQuery("nextToken").String(*v.NextToken) } if v.Resolution != nil { encoder.SetQuery("resolution").String(*v.Resolution) } if v.ResourceType != nil { encoder.SetQuery("resourceType").String(*v.ResourceType) } if v.SpecialFeature != nil { encoder.SetQuery("specialFeature").String(*v.SpecialFeature) } if v.VideoQuality != nil { encoder.SetQuery("videoQuality").String(*v.VideoQuality) } return nil } type awsRestjson1_serializeOpListTagsForResource struct { } func (*awsRestjson1_serializeOpListTagsForResource) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpListTagsForResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*ListTagsForResourceInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/tags/{ResourceArn}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsForResourceInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.ResourceArn == nil || len(*v.ResourceArn) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} } if v.ResourceArn != nil { if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } } return nil } type awsRestjson1_serializeOpPurchaseOffering struct { } func (*awsRestjson1_serializeOpPurchaseOffering) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpPurchaseOffering) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*PurchaseOfferingInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/offerings/{OfferingId}/purchase") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "POST" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsPurchaseOfferingInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() if err := awsRestjson1_serializeOpDocumentPurchaseOfferingInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsPurchaseOfferingInput(v *PurchaseOfferingInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.OfferingId == nil || len(*v.OfferingId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member OfferingId must not be empty")} } if v.OfferingId != nil { if err := encoder.SetURI("OfferingId").String(*v.OfferingId); err != nil { return err } } return nil } func awsRestjson1_serializeOpDocumentPurchaseOfferingInput(v *PurchaseOfferingInput, value smithyjson.Value) error { object := value.Object() defer object.Close() { ok := object.Key("count") ok.Integer(v.Count) } if v.Name != nil { ok := object.Key("name") ok.String(*v.Name) } if v.RenewalSettings != nil { ok := object.Key("renewalSettings") if err := awsRestjson1_serializeDocumentRenewalSettings(v.RenewalSettings, ok); err != nil { return err } } if v.RequestId != nil { ok := object.Key("requestId") ok.String(*v.RequestId) } if v.Start != nil { ok := object.Key("start") ok.String(*v.Start) } if v.Tags != nil { ok := object.Key("tags") if err := awsRestjson1_serializeDocumentTags(v.Tags, ok); err != nil { return err } } return nil } type awsRestjson1_serializeOpRebootInputDevice struct { } func (*awsRestjson1_serializeOpRebootInputDevice) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpRebootInputDevice) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*RebootInputDeviceInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/inputDevices/{InputDeviceId}/reboot") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "POST" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsRebootInputDeviceInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() if err := awsRestjson1_serializeOpDocumentRebootInputDeviceInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsRebootInputDeviceInput(v *RebootInputDeviceInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.InputDeviceId == nil || len(*v.InputDeviceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InputDeviceId must not be empty")} } if v.InputDeviceId != nil { if err := encoder.SetURI("InputDeviceId").String(*v.InputDeviceId); err != nil { return err } } return nil } func awsRestjson1_serializeOpDocumentRebootInputDeviceInput(v *RebootInputDeviceInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.Force) > 0 { ok := object.Key("force") ok.String(string(v.Force)) } return nil } type awsRestjson1_serializeOpRejectInputDeviceTransfer struct { } func (*awsRestjson1_serializeOpRejectInputDeviceTransfer) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpRejectInputDeviceTransfer) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*RejectInputDeviceTransferInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/inputDevices/{InputDeviceId}/reject") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "POST" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsRejectInputDeviceTransferInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsRejectInputDeviceTransferInput(v *RejectInputDeviceTransferInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.InputDeviceId == nil || len(*v.InputDeviceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InputDeviceId must not be empty")} } if v.InputDeviceId != nil { if err := encoder.SetURI("InputDeviceId").String(*v.InputDeviceId); err != nil { return err } } return nil } type awsRestjson1_serializeOpStartChannel struct { } func (*awsRestjson1_serializeOpStartChannel) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpStartChannel) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*StartChannelInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/channels/{ChannelId}/start") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "POST" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsStartChannelInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsStartChannelInput(v *StartChannelInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.ChannelId == nil || len(*v.ChannelId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ChannelId must not be empty")} } if v.ChannelId != nil { if err := encoder.SetURI("ChannelId").String(*v.ChannelId); err != nil { return err } } return nil } type awsRestjson1_serializeOpStartInputDeviceMaintenanceWindow struct { } func (*awsRestjson1_serializeOpStartInputDeviceMaintenanceWindow) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpStartInputDeviceMaintenanceWindow) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*StartInputDeviceMaintenanceWindowInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/inputDevices/{InputDeviceId}/startInputDeviceMaintenanceWindow") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "POST" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsStartInputDeviceMaintenanceWindowInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsStartInputDeviceMaintenanceWindowInput(v *StartInputDeviceMaintenanceWindowInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.InputDeviceId == nil || len(*v.InputDeviceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InputDeviceId must not be empty")} } if v.InputDeviceId != nil { if err := encoder.SetURI("InputDeviceId").String(*v.InputDeviceId); err != nil { return err } } return nil } type awsRestjson1_serializeOpStartMultiplex struct { } func (*awsRestjson1_serializeOpStartMultiplex) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpStartMultiplex) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*StartMultiplexInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/multiplexes/{MultiplexId}/start") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "POST" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsStartMultiplexInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsStartMultiplexInput(v *StartMultiplexInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.MultiplexId == nil || len(*v.MultiplexId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MultiplexId must not be empty")} } if v.MultiplexId != nil { if err := encoder.SetURI("MultiplexId").String(*v.MultiplexId); err != nil { return err } } return nil } type awsRestjson1_serializeOpStopChannel struct { } func (*awsRestjson1_serializeOpStopChannel) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpStopChannel) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*StopChannelInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/channels/{ChannelId}/stop") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "POST" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsStopChannelInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsStopChannelInput(v *StopChannelInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.ChannelId == nil || len(*v.ChannelId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ChannelId must not be empty")} } if v.ChannelId != nil { if err := encoder.SetURI("ChannelId").String(*v.ChannelId); err != nil { return err } } return nil } type awsRestjson1_serializeOpStopMultiplex struct { } func (*awsRestjson1_serializeOpStopMultiplex) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpStopMultiplex) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*StopMultiplexInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/multiplexes/{MultiplexId}/stop") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "POST" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsStopMultiplexInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsStopMultiplexInput(v *StopMultiplexInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.MultiplexId == nil || len(*v.MultiplexId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MultiplexId must not be empty")} } if v.MultiplexId != nil { if err := encoder.SetURI("MultiplexId").String(*v.MultiplexId); err != nil { return err } } return nil } type awsRestjson1_serializeOpTransferInputDevice struct { } func (*awsRestjson1_serializeOpTransferInputDevice) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpTransferInputDevice) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*TransferInputDeviceInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/inputDevices/{InputDeviceId}/transfer") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "POST" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsTransferInputDeviceInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() if err := awsRestjson1_serializeOpDocumentTransferInputDeviceInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsTransferInputDeviceInput(v *TransferInputDeviceInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.InputDeviceId == nil || len(*v.InputDeviceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InputDeviceId must not be empty")} } if v.InputDeviceId != nil { if err := encoder.SetURI("InputDeviceId").String(*v.InputDeviceId); err != nil { return err } } return nil } func awsRestjson1_serializeOpDocumentTransferInputDeviceInput(v *TransferInputDeviceInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.TargetCustomerId != nil { ok := object.Key("targetCustomerId") ok.String(*v.TargetCustomerId) } if v.TargetRegion != nil { ok := object.Key("targetRegion") ok.String(*v.TargetRegion) } if v.TransferMessage != nil { ok := object.Key("transferMessage") ok.String(*v.TransferMessage) } return nil } type awsRestjson1_serializeOpUpdateChannel struct { } func (*awsRestjson1_serializeOpUpdateChannel) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpUpdateChannel) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*UpdateChannelInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/channels/{ChannelId}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "PUT" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsUpdateChannelInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() if err := awsRestjson1_serializeOpDocumentUpdateChannelInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsUpdateChannelInput(v *UpdateChannelInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.ChannelId == nil || len(*v.ChannelId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ChannelId must not be empty")} } if v.ChannelId != nil { if err := encoder.SetURI("ChannelId").String(*v.ChannelId); err != nil { return err } } return nil } func awsRestjson1_serializeOpDocumentUpdateChannelInput(v *UpdateChannelInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.CdiInputSpecification != nil { ok := object.Key("cdiInputSpecification") if err := awsRestjson1_serializeDocumentCdiInputSpecification(v.CdiInputSpecification, ok); err != nil { return err } } if v.Destinations != nil { ok := object.Key("destinations") if err := awsRestjson1_serializeDocument__listOfOutputDestination(v.Destinations, ok); err != nil { return err } } if v.EncoderSettings != nil { ok := object.Key("encoderSettings") if err := awsRestjson1_serializeDocumentEncoderSettings(v.EncoderSettings, ok); err != nil { return err } } if v.InputAttachments != nil { ok := object.Key("inputAttachments") if err := awsRestjson1_serializeDocument__listOfInputAttachment(v.InputAttachments, ok); err != nil { return err } } if v.InputSpecification != nil { ok := object.Key("inputSpecification") if err := awsRestjson1_serializeDocumentInputSpecification(v.InputSpecification, ok); err != nil { return err } } if len(v.LogLevel) > 0 { ok := object.Key("logLevel") ok.String(string(v.LogLevel)) } if v.Maintenance != nil { ok := object.Key("maintenance") if err := awsRestjson1_serializeDocumentMaintenanceUpdateSettings(v.Maintenance, ok); err != nil { return err } } if v.Name != nil { ok := object.Key("name") ok.String(*v.Name) } if v.RoleArn != nil { ok := object.Key("roleArn") ok.String(*v.RoleArn) } return nil } type awsRestjson1_serializeOpUpdateChannelClass struct { } func (*awsRestjson1_serializeOpUpdateChannelClass) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpUpdateChannelClass) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*UpdateChannelClassInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/channels/{ChannelId}/channelClass") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "PUT" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsUpdateChannelClassInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() if err := awsRestjson1_serializeOpDocumentUpdateChannelClassInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsUpdateChannelClassInput(v *UpdateChannelClassInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.ChannelId == nil || len(*v.ChannelId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ChannelId must not be empty")} } if v.ChannelId != nil { if err := encoder.SetURI("ChannelId").String(*v.ChannelId); err != nil { return err } } return nil } func awsRestjson1_serializeOpDocumentUpdateChannelClassInput(v *UpdateChannelClassInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.ChannelClass) > 0 { ok := object.Key("channelClass") ok.String(string(v.ChannelClass)) } if v.Destinations != nil { ok := object.Key("destinations") if err := awsRestjson1_serializeDocument__listOfOutputDestination(v.Destinations, ok); err != nil { return err } } return nil } type awsRestjson1_serializeOpUpdateInput struct { } func (*awsRestjson1_serializeOpUpdateInput) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpUpdateInput) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*UpdateInputInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/inputs/{InputId}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "PUT" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsUpdateInputInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() if err := awsRestjson1_serializeOpDocumentUpdateInputInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsUpdateInputInput(v *UpdateInputInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.InputId == nil || len(*v.InputId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InputId must not be empty")} } if v.InputId != nil { if err := encoder.SetURI("InputId").String(*v.InputId); err != nil { return err } } return nil } func awsRestjson1_serializeOpDocumentUpdateInputInput(v *UpdateInputInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Destinations != nil { ok := object.Key("destinations") if err := awsRestjson1_serializeDocument__listOfInputDestinationRequest(v.Destinations, ok); err != nil { return err } } if v.InputDevices != nil { ok := object.Key("inputDevices") if err := awsRestjson1_serializeDocument__listOfInputDeviceRequest(v.InputDevices, ok); err != nil { return err } } if v.InputSecurityGroups != nil { ok := object.Key("inputSecurityGroups") if err := awsRestjson1_serializeDocument__listOf__string(v.InputSecurityGroups, ok); err != nil { return err } } if v.MediaConnectFlows != nil { ok := object.Key("mediaConnectFlows") if err := awsRestjson1_serializeDocument__listOfMediaConnectFlowRequest(v.MediaConnectFlows, ok); err != nil { return err } } if v.Name != nil { ok := object.Key("name") ok.String(*v.Name) } if v.RoleArn != nil { ok := object.Key("roleArn") ok.String(*v.RoleArn) } if v.Sources != nil { ok := object.Key("sources") if err := awsRestjson1_serializeDocument__listOfInputSourceRequest(v.Sources, ok); err != nil { return err } } return nil } type awsRestjson1_serializeOpUpdateInputDevice struct { } func (*awsRestjson1_serializeOpUpdateInputDevice) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpUpdateInputDevice) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*UpdateInputDeviceInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/inputDevices/{InputDeviceId}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "PUT" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsUpdateInputDeviceInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() if err := awsRestjson1_serializeOpDocumentUpdateInputDeviceInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsUpdateInputDeviceInput(v *UpdateInputDeviceInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.InputDeviceId == nil || len(*v.InputDeviceId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InputDeviceId must not be empty")} } if v.InputDeviceId != nil { if err := encoder.SetURI("InputDeviceId").String(*v.InputDeviceId); err != nil { return err } } return nil } func awsRestjson1_serializeOpDocumentUpdateInputDeviceInput(v *UpdateInputDeviceInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.HdDeviceSettings != nil { ok := object.Key("hdDeviceSettings") if err := awsRestjson1_serializeDocumentInputDeviceConfigurableSettings(v.HdDeviceSettings, ok); err != nil { return err } } if v.Name != nil { ok := object.Key("name") ok.String(*v.Name) } if v.UhdDeviceSettings != nil { ok := object.Key("uhdDeviceSettings") if err := awsRestjson1_serializeDocumentInputDeviceConfigurableSettings(v.UhdDeviceSettings, ok); err != nil { return err } } return nil } type awsRestjson1_serializeOpUpdateInputSecurityGroup struct { } func (*awsRestjson1_serializeOpUpdateInputSecurityGroup) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpUpdateInputSecurityGroup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*UpdateInputSecurityGroupInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/inputSecurityGroups/{InputSecurityGroupId}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "PUT" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsUpdateInputSecurityGroupInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() if err := awsRestjson1_serializeOpDocumentUpdateInputSecurityGroupInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsUpdateInputSecurityGroupInput(v *UpdateInputSecurityGroupInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.InputSecurityGroupId == nil || len(*v.InputSecurityGroupId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member InputSecurityGroupId must not be empty")} } if v.InputSecurityGroupId != nil { if err := encoder.SetURI("InputSecurityGroupId").String(*v.InputSecurityGroupId); err != nil { return err } } return nil } func awsRestjson1_serializeOpDocumentUpdateInputSecurityGroupInput(v *UpdateInputSecurityGroupInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Tags != nil { ok := object.Key("tags") if err := awsRestjson1_serializeDocumentTags(v.Tags, ok); err != nil { return err } } if v.WhitelistRules != nil { ok := object.Key("whitelistRules") if err := awsRestjson1_serializeDocument__listOfInputWhitelistRuleCidr(v.WhitelistRules, ok); err != nil { return err } } return nil } type awsRestjson1_serializeOpUpdateMultiplex struct { } func (*awsRestjson1_serializeOpUpdateMultiplex) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpUpdateMultiplex) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*UpdateMultiplexInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/multiplexes/{MultiplexId}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "PUT" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsUpdateMultiplexInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() if err := awsRestjson1_serializeOpDocumentUpdateMultiplexInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsUpdateMultiplexInput(v *UpdateMultiplexInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.MultiplexId == nil || len(*v.MultiplexId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MultiplexId must not be empty")} } if v.MultiplexId != nil { if err := encoder.SetURI("MultiplexId").String(*v.MultiplexId); err != nil { return err } } return nil } func awsRestjson1_serializeOpDocumentUpdateMultiplexInput(v *UpdateMultiplexInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.MultiplexSettings != nil { ok := object.Key("multiplexSettings") if err := awsRestjson1_serializeDocumentMultiplexSettings(v.MultiplexSettings, ok); err != nil { return err } } if v.Name != nil { ok := object.Key("name") ok.String(*v.Name) } return nil } type awsRestjson1_serializeOpUpdateMultiplexProgram struct { } func (*awsRestjson1_serializeOpUpdateMultiplexProgram) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpUpdateMultiplexProgram) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*UpdateMultiplexProgramInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/multiplexes/{MultiplexId}/programs/{ProgramName}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "PUT" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsUpdateMultiplexProgramInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() if err := awsRestjson1_serializeOpDocumentUpdateMultiplexProgramInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsUpdateMultiplexProgramInput(v *UpdateMultiplexProgramInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.MultiplexId == nil || len(*v.MultiplexId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member MultiplexId must not be empty")} } if v.MultiplexId != nil { if err := encoder.SetURI("MultiplexId").String(*v.MultiplexId); err != nil { return err } } if v.ProgramName == nil || len(*v.ProgramName) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ProgramName must not be empty")} } if v.ProgramName != nil { if err := encoder.SetURI("ProgramName").String(*v.ProgramName); err != nil { return err } } return nil } func awsRestjson1_serializeOpDocumentUpdateMultiplexProgramInput(v *UpdateMultiplexProgramInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.MultiplexProgramSettings != nil { ok := object.Key("multiplexProgramSettings") if err := awsRestjson1_serializeDocumentMultiplexProgramSettings(v.MultiplexProgramSettings, ok); err != nil { return err } } return nil } type awsRestjson1_serializeOpUpdateReservation struct { } func (*awsRestjson1_serializeOpUpdateReservation) ID() string { return "OperationSerializer" } func (m *awsRestjson1_serializeOpUpdateReservation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } input, ok := in.Parameters.(*UpdateReservationInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } opPath, opQuery := httpbinding.SplitURI("/prod/reservations/{ReservationId}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "PUT" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if err := awsRestjson1_serializeOpHttpBindingsUpdateReservationInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() if err := awsRestjson1_serializeOpDocumentUpdateReservationInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } if request.Request, err = restEncoder.Encode(request.Request); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } func awsRestjson1_serializeOpHttpBindingsUpdateReservationInput(v *UpdateReservationInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } if v.ReservationId == nil || len(*v.ReservationId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member ReservationId must not be empty")} } if v.ReservationId != nil { if err := encoder.SetURI("ReservationId").String(*v.ReservationId); err != nil { return err } } return nil } func awsRestjson1_serializeOpDocumentUpdateReservationInput(v *UpdateReservationInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Name != nil { ok := object.Key("name") ok.String(*v.Name) } if v.RenewalSettings != nil { ok := object.Key("renewalSettings") if err := awsRestjson1_serializeDocumentRenewalSettings(v.RenewalSettings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocument__listOf__string(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() av.String(v[i]) } return nil } func awsRestjson1_serializeDocument__listOfAudioChannelMapping(v []types.AudioChannelMapping, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if err := awsRestjson1_serializeDocumentAudioChannelMapping(&v[i], av); err != nil { return err } } return nil } func awsRestjson1_serializeDocument__listOfAudioDescription(v []types.AudioDescription, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if err := awsRestjson1_serializeDocumentAudioDescription(&v[i], av); err != nil { return err } } return nil } func awsRestjson1_serializeDocument__listOfAudioSelector(v []types.AudioSelector, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if err := awsRestjson1_serializeDocumentAudioSelector(&v[i], av); err != nil { return err } } return nil } func awsRestjson1_serializeDocument__listOfAudioTrack(v []types.AudioTrack, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if err := awsRestjson1_serializeDocumentAudioTrack(&v[i], av); err != nil { return err } } return nil } func awsRestjson1_serializeDocument__listOfCaptionDescription(v []types.CaptionDescription, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if err := awsRestjson1_serializeDocumentCaptionDescription(&v[i], av); err != nil { return err } } return nil } func awsRestjson1_serializeDocument__listOfCaptionLanguageMapping(v []types.CaptionLanguageMapping, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if err := awsRestjson1_serializeDocumentCaptionLanguageMapping(&v[i], av); err != nil { return err } } return nil } func awsRestjson1_serializeDocument__listOfCaptionSelector(v []types.CaptionSelector, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if err := awsRestjson1_serializeDocumentCaptionSelector(&v[i], av); err != nil { return err } } return nil } func awsRestjson1_serializeDocument__listOfFailoverCondition(v []types.FailoverCondition, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if err := awsRestjson1_serializeDocumentFailoverCondition(&v[i], av); err != nil { return err } } return nil } func awsRestjson1_serializeDocument__listOfHlsAdMarkers(v []types.HlsAdMarkers, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() av.String(string(v[i])) } return nil } func awsRestjson1_serializeDocument__listOfInputAttachment(v []types.InputAttachment, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if err := awsRestjson1_serializeDocumentInputAttachment(&v[i], av); err != nil { return err } } return nil } func awsRestjson1_serializeDocument__listOfInputChannelLevel(v []types.InputChannelLevel, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if err := awsRestjson1_serializeDocumentInputChannelLevel(&v[i], av); err != nil { return err } } return nil } func awsRestjson1_serializeDocument__listOfInputDestinationRequest(v []types.InputDestinationRequest, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if err := awsRestjson1_serializeDocumentInputDestinationRequest(&v[i], av); err != nil { return err } } return nil } func awsRestjson1_serializeDocument__listOfInputDeviceRequest(v []types.InputDeviceRequest, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if err := awsRestjson1_serializeDocumentInputDeviceRequest(&v[i], av); err != nil { return err } } return nil } func awsRestjson1_serializeDocument__listOfInputDeviceSettings(v []types.InputDeviceSettings, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if err := awsRestjson1_serializeDocumentInputDeviceSettings(&v[i], av); err != nil { return err } } return nil } func awsRestjson1_serializeDocument__listOfInputSourceRequest(v []types.InputSourceRequest, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if err := awsRestjson1_serializeDocumentInputSourceRequest(&v[i], av); err != nil { return err } } return nil } func awsRestjson1_serializeDocument__listOfInputWhitelistRuleCidr(v []types.InputWhitelistRuleCidr, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if err := awsRestjson1_serializeDocumentInputWhitelistRuleCidr(&v[i], av); err != nil { return err } } return nil } func awsRestjson1_serializeDocument__listOfMediaConnectFlowRequest(v []types.MediaConnectFlowRequest, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if err := awsRestjson1_serializeDocumentMediaConnectFlowRequest(&v[i], av); err != nil { return err } } return nil } func awsRestjson1_serializeDocument__listOfMediaPackageOutputDestinationSettings(v []types.MediaPackageOutputDestinationSettings, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if err := awsRestjson1_serializeDocumentMediaPackageOutputDestinationSettings(&v[i], av); err != nil { return err } } return nil } func awsRestjson1_serializeDocument__listOfOutput(v []types.Output, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if err := awsRestjson1_serializeDocumentOutput(&v[i], av); err != nil { return err } } return nil } func awsRestjson1_serializeDocument__listOfOutputDestination(v []types.OutputDestination, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if err := awsRestjson1_serializeDocumentOutputDestination(&v[i], av); err != nil { return err } } return nil } func awsRestjson1_serializeDocument__listOfOutputDestinationSettings(v []types.OutputDestinationSettings, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if err := awsRestjson1_serializeDocumentOutputDestinationSettings(&v[i], av); err != nil { return err } } return nil } func awsRestjson1_serializeDocument__listOfOutputGroup(v []types.OutputGroup, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if err := awsRestjson1_serializeDocumentOutputGroup(&v[i], av); err != nil { return err } } return nil } func awsRestjson1_serializeDocument__listOfPipelinePauseStateSettings(v []types.PipelinePauseStateSettings, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if err := awsRestjson1_serializeDocumentPipelinePauseStateSettings(&v[i], av); err != nil { return err } } return nil } func awsRestjson1_serializeDocument__listOfRtmpAdMarkers(v []types.RtmpAdMarkers, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() av.String(string(v[i])) } return nil } func awsRestjson1_serializeDocument__listOfScheduleAction(v []types.ScheduleAction, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if err := awsRestjson1_serializeDocumentScheduleAction(&v[i], av); err != nil { return err } } return nil } func awsRestjson1_serializeDocument__listOfScte35Descriptor(v []types.Scte35Descriptor, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if err := awsRestjson1_serializeDocumentScte35Descriptor(&v[i], av); err != nil { return err } } return nil } func awsRestjson1_serializeDocument__listOfVideoDescription(v []types.VideoDescription, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() if err := awsRestjson1_serializeDocumentVideoDescription(&v[i], av); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentAacSettings(v *types.AacSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Bitrate != 0 { ok := object.Key("bitrate") switch { case math.IsNaN(v.Bitrate): ok.String("NaN") case math.IsInf(v.Bitrate, 1): ok.String("Infinity") case math.IsInf(v.Bitrate, -1): ok.String("-Infinity") default: ok.Double(v.Bitrate) } } if len(v.CodingMode) > 0 { ok := object.Key("codingMode") ok.String(string(v.CodingMode)) } if len(v.InputType) > 0 { ok := object.Key("inputType") ok.String(string(v.InputType)) } if len(v.Profile) > 0 { ok := object.Key("profile") ok.String(string(v.Profile)) } if len(v.RateControlMode) > 0 { ok := object.Key("rateControlMode") ok.String(string(v.RateControlMode)) } if len(v.RawFormat) > 0 { ok := object.Key("rawFormat") ok.String(string(v.RawFormat)) } if v.SampleRate != 0 { ok := object.Key("sampleRate") switch { case math.IsNaN(v.SampleRate): ok.String("NaN") case math.IsInf(v.SampleRate, 1): ok.String("Infinity") case math.IsInf(v.SampleRate, -1): ok.String("-Infinity") default: ok.Double(v.SampleRate) } } if len(v.Spec) > 0 { ok := object.Key("spec") ok.String(string(v.Spec)) } if len(v.VbrQuality) > 0 { ok := object.Key("vbrQuality") ok.String(string(v.VbrQuality)) } return nil } func awsRestjson1_serializeDocumentAc3Settings(v *types.Ac3Settings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Bitrate != 0 { ok := object.Key("bitrate") switch { case math.IsNaN(v.Bitrate): ok.String("NaN") case math.IsInf(v.Bitrate, 1): ok.String("Infinity") case math.IsInf(v.Bitrate, -1): ok.String("-Infinity") default: ok.Double(v.Bitrate) } } if len(v.BitstreamMode) > 0 { ok := object.Key("bitstreamMode") ok.String(string(v.BitstreamMode)) } if len(v.CodingMode) > 0 { ok := object.Key("codingMode") ok.String(string(v.CodingMode)) } if v.Dialnorm != 0 { ok := object.Key("dialnorm") ok.Integer(v.Dialnorm) } if len(v.DrcProfile) > 0 { ok := object.Key("drcProfile") ok.String(string(v.DrcProfile)) } if len(v.LfeFilter) > 0 { ok := object.Key("lfeFilter") ok.String(string(v.LfeFilter)) } if len(v.MetadataControl) > 0 { ok := object.Key("metadataControl") ok.String(string(v.MetadataControl)) } return nil } func awsRestjson1_serializeDocumentAncillarySourceSettings(v *types.AncillarySourceSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.SourceAncillaryChannelNumber != 0 { ok := object.Key("sourceAncillaryChannelNumber") ok.Integer(v.SourceAncillaryChannelNumber) } return nil } func awsRestjson1_serializeDocumentArchiveCdnSettings(v *types.ArchiveCdnSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.ArchiveS3Settings != nil { ok := object.Key("archiveS3Settings") if err := awsRestjson1_serializeDocumentArchiveS3Settings(v.ArchiveS3Settings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentArchiveContainerSettings(v *types.ArchiveContainerSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.M2tsSettings != nil { ok := object.Key("m2tsSettings") if err := awsRestjson1_serializeDocumentM2tsSettings(v.M2tsSettings, ok); err != nil { return err } } if v.RawSettings != nil { ok := object.Key("rawSettings") if err := awsRestjson1_serializeDocumentRawSettings(v.RawSettings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentArchiveGroupSettings(v *types.ArchiveGroupSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.ArchiveCdnSettings != nil { ok := object.Key("archiveCdnSettings") if err := awsRestjson1_serializeDocumentArchiveCdnSettings(v.ArchiveCdnSettings, ok); err != nil { return err } } if v.Destination != nil { ok := object.Key("destination") if err := awsRestjson1_serializeDocumentOutputLocationRef(v.Destination, ok); err != nil { return err } } if v.RolloverInterval != 0 { ok := object.Key("rolloverInterval") ok.Integer(v.RolloverInterval) } return nil } func awsRestjson1_serializeDocumentArchiveOutputSettings(v *types.ArchiveOutputSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.ContainerSettings != nil { ok := object.Key("containerSettings") if err := awsRestjson1_serializeDocumentArchiveContainerSettings(v.ContainerSettings, ok); err != nil { return err } } if v.Extension != nil { ok := object.Key("extension") ok.String(*v.Extension) } if v.NameModifier != nil { ok := object.Key("nameModifier") ok.String(*v.NameModifier) } return nil } func awsRestjson1_serializeDocumentArchiveS3Settings(v *types.ArchiveS3Settings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.CannedAcl) > 0 { ok := object.Key("cannedAcl") ok.String(string(v.CannedAcl)) } return nil } func awsRestjson1_serializeDocumentAribDestinationSettings(v *types.AribDestinationSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() return nil } func awsRestjson1_serializeDocumentAribSourceSettings(v *types.AribSourceSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() return nil } func awsRestjson1_serializeDocumentAudioChannelMapping(v *types.AudioChannelMapping, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.InputChannelLevels != nil { ok := object.Key("inputChannelLevels") if err := awsRestjson1_serializeDocument__listOfInputChannelLevel(v.InputChannelLevels, ok); err != nil { return err } } { ok := object.Key("outputChannel") ok.Integer(v.OutputChannel) } return nil } func awsRestjson1_serializeDocumentAudioCodecSettings(v *types.AudioCodecSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AacSettings != nil { ok := object.Key("aacSettings") if err := awsRestjson1_serializeDocumentAacSettings(v.AacSettings, ok); err != nil { return err } } if v.Ac3Settings != nil { ok := object.Key("ac3Settings") if err := awsRestjson1_serializeDocumentAc3Settings(v.Ac3Settings, ok); err != nil { return err } } if v.Eac3AtmosSettings != nil { ok := object.Key("eac3AtmosSettings") if err := awsRestjson1_serializeDocumentEac3AtmosSettings(v.Eac3AtmosSettings, ok); err != nil { return err } } if v.Eac3Settings != nil { ok := object.Key("eac3Settings") if err := awsRestjson1_serializeDocumentEac3Settings(v.Eac3Settings, ok); err != nil { return err } } if v.Mp2Settings != nil { ok := object.Key("mp2Settings") if err := awsRestjson1_serializeDocumentMp2Settings(v.Mp2Settings, ok); err != nil { return err } } if v.PassThroughSettings != nil { ok := object.Key("passThroughSettings") if err := awsRestjson1_serializeDocumentPassThroughSettings(v.PassThroughSettings, ok); err != nil { return err } } if v.WavSettings != nil { ok := object.Key("wavSettings") if err := awsRestjson1_serializeDocumentWavSettings(v.WavSettings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentAudioDescription(v *types.AudioDescription, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AudioNormalizationSettings != nil { ok := object.Key("audioNormalizationSettings") if err := awsRestjson1_serializeDocumentAudioNormalizationSettings(v.AudioNormalizationSettings, ok); err != nil { return err } } if v.AudioSelectorName != nil { ok := object.Key("audioSelectorName") ok.String(*v.AudioSelectorName) } if len(v.AudioType) > 0 { ok := object.Key("audioType") ok.String(string(v.AudioType)) } if len(v.AudioTypeControl) > 0 { ok := object.Key("audioTypeControl") ok.String(string(v.AudioTypeControl)) } if v.AudioWatermarkingSettings != nil { ok := object.Key("audioWatermarkingSettings") if err := awsRestjson1_serializeDocumentAudioWatermarkSettings(v.AudioWatermarkingSettings, ok); err != nil { return err } } if v.CodecSettings != nil { ok := object.Key("codecSettings") if err := awsRestjson1_serializeDocumentAudioCodecSettings(v.CodecSettings, ok); err != nil { return err } } if v.LanguageCode != nil { ok := object.Key("languageCode") ok.String(*v.LanguageCode) } if len(v.LanguageCodeControl) > 0 { ok := object.Key("languageCodeControl") ok.String(string(v.LanguageCodeControl)) } if v.Name != nil { ok := object.Key("name") ok.String(*v.Name) } if v.RemixSettings != nil { ok := object.Key("remixSettings") if err := awsRestjson1_serializeDocumentRemixSettings(v.RemixSettings, ok); err != nil { return err } } if v.StreamName != nil { ok := object.Key("streamName") ok.String(*v.StreamName) } return nil } func awsRestjson1_serializeDocumentAudioDolbyEDecode(v *types.AudioDolbyEDecode, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.ProgramSelection) > 0 { ok := object.Key("programSelection") ok.String(string(v.ProgramSelection)) } return nil } func awsRestjson1_serializeDocumentAudioHlsRenditionSelection(v *types.AudioHlsRenditionSelection, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.GroupId != nil { ok := object.Key("groupId") ok.String(*v.GroupId) } if v.Name != nil { ok := object.Key("name") ok.String(*v.Name) } return nil } func awsRestjson1_serializeDocumentAudioLanguageSelection(v *types.AudioLanguageSelection, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.LanguageCode != nil { ok := object.Key("languageCode") ok.String(*v.LanguageCode) } if len(v.LanguageSelectionPolicy) > 0 { ok := object.Key("languageSelectionPolicy") ok.String(string(v.LanguageSelectionPolicy)) } return nil } func awsRestjson1_serializeDocumentAudioNormalizationSettings(v *types.AudioNormalizationSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.Algorithm) > 0 { ok := object.Key("algorithm") ok.String(string(v.Algorithm)) } if len(v.AlgorithmControl) > 0 { ok := object.Key("algorithmControl") ok.String(string(v.AlgorithmControl)) } if v.TargetLkfs != 0 { ok := object.Key("targetLkfs") switch { case math.IsNaN(v.TargetLkfs): ok.String("NaN") case math.IsInf(v.TargetLkfs, 1): ok.String("Infinity") case math.IsInf(v.TargetLkfs, -1): ok.String("-Infinity") default: ok.Double(v.TargetLkfs) } } return nil } func awsRestjson1_serializeDocumentAudioOnlyHlsSettings(v *types.AudioOnlyHlsSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AudioGroupId != nil { ok := object.Key("audioGroupId") ok.String(*v.AudioGroupId) } if v.AudioOnlyImage != nil { ok := object.Key("audioOnlyImage") if err := awsRestjson1_serializeDocumentInputLocation(v.AudioOnlyImage, ok); err != nil { return err } } if len(v.AudioTrackType) > 0 { ok := object.Key("audioTrackType") ok.String(string(v.AudioTrackType)) } if len(v.SegmentType) > 0 { ok := object.Key("segmentType") ok.String(string(v.SegmentType)) } return nil } func awsRestjson1_serializeDocumentAudioPidSelection(v *types.AudioPidSelection, value smithyjson.Value) error { object := value.Object() defer object.Close() { ok := object.Key("pid") ok.Integer(v.Pid) } return nil } func awsRestjson1_serializeDocumentAudioSelector(v *types.AudioSelector, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Name != nil { ok := object.Key("name") ok.String(*v.Name) } if v.SelectorSettings != nil { ok := object.Key("selectorSettings") if err := awsRestjson1_serializeDocumentAudioSelectorSettings(v.SelectorSettings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentAudioSelectorSettings(v *types.AudioSelectorSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AudioHlsRenditionSelection != nil { ok := object.Key("audioHlsRenditionSelection") if err := awsRestjson1_serializeDocumentAudioHlsRenditionSelection(v.AudioHlsRenditionSelection, ok); err != nil { return err } } if v.AudioLanguageSelection != nil { ok := object.Key("audioLanguageSelection") if err := awsRestjson1_serializeDocumentAudioLanguageSelection(v.AudioLanguageSelection, ok); err != nil { return err } } if v.AudioPidSelection != nil { ok := object.Key("audioPidSelection") if err := awsRestjson1_serializeDocumentAudioPidSelection(v.AudioPidSelection, ok); err != nil { return err } } if v.AudioTrackSelection != nil { ok := object.Key("audioTrackSelection") if err := awsRestjson1_serializeDocumentAudioTrackSelection(v.AudioTrackSelection, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentAudioSilenceFailoverSettings(v *types.AudioSilenceFailoverSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AudioSelectorName != nil { ok := object.Key("audioSelectorName") ok.String(*v.AudioSelectorName) } if v.AudioSilenceThresholdMsec != 0 { ok := object.Key("audioSilenceThresholdMsec") ok.Integer(v.AudioSilenceThresholdMsec) } return nil } func awsRestjson1_serializeDocumentAudioTrack(v *types.AudioTrack, value smithyjson.Value) error { object := value.Object() defer object.Close() { ok := object.Key("track") ok.Integer(v.Track) } return nil } func awsRestjson1_serializeDocumentAudioTrackSelection(v *types.AudioTrackSelection, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.DolbyEDecode != nil { ok := object.Key("dolbyEDecode") if err := awsRestjson1_serializeDocumentAudioDolbyEDecode(v.DolbyEDecode, ok); err != nil { return err } } if v.Tracks != nil { ok := object.Key("tracks") if err := awsRestjson1_serializeDocument__listOfAudioTrack(v.Tracks, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentAudioWatermarkSettings(v *types.AudioWatermarkSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.NielsenWatermarksSettings != nil { ok := object.Key("nielsenWatermarksSettings") if err := awsRestjson1_serializeDocumentNielsenWatermarksSettings(v.NielsenWatermarksSettings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentAutomaticInputFailoverSettings(v *types.AutomaticInputFailoverSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.ErrorClearTimeMsec != 0 { ok := object.Key("errorClearTimeMsec") ok.Integer(v.ErrorClearTimeMsec) } if v.FailoverConditions != nil { ok := object.Key("failoverConditions") if err := awsRestjson1_serializeDocument__listOfFailoverCondition(v.FailoverConditions, ok); err != nil { return err } } if len(v.InputPreference) > 0 { ok := object.Key("inputPreference") ok.String(string(v.InputPreference)) } if v.SecondaryInputId != nil { ok := object.Key("secondaryInputId") ok.String(*v.SecondaryInputId) } return nil } func awsRestjson1_serializeDocumentAvailBlanking(v *types.AvailBlanking, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AvailBlankingImage != nil { ok := object.Key("availBlankingImage") if err := awsRestjson1_serializeDocumentInputLocation(v.AvailBlankingImage, ok); err != nil { return err } } if len(v.State) > 0 { ok := object.Key("state") ok.String(string(v.State)) } return nil } func awsRestjson1_serializeDocumentAvailConfiguration(v *types.AvailConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AvailSettings != nil { ok := object.Key("availSettings") if err := awsRestjson1_serializeDocumentAvailSettings(v.AvailSettings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentAvailSettings(v *types.AvailSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Esam != nil { ok := object.Key("esam") if err := awsRestjson1_serializeDocumentEsam(v.Esam, ok); err != nil { return err } } if v.Scte35SpliceInsert != nil { ok := object.Key("scte35SpliceInsert") if err := awsRestjson1_serializeDocumentScte35SpliceInsert(v.Scte35SpliceInsert, ok); err != nil { return err } } if v.Scte35TimeSignalApos != nil { ok := object.Key("scte35TimeSignalApos") if err := awsRestjson1_serializeDocumentScte35TimeSignalApos(v.Scte35TimeSignalApos, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentBatchScheduleActionCreateRequest(v *types.BatchScheduleActionCreateRequest, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.ScheduleActions != nil { ok := object.Key("scheduleActions") if err := awsRestjson1_serializeDocument__listOfScheduleAction(v.ScheduleActions, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentBatchScheduleActionDeleteRequest(v *types.BatchScheduleActionDeleteRequest, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.ActionNames != nil { ok := object.Key("actionNames") if err := awsRestjson1_serializeDocument__listOf__string(v.ActionNames, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentBlackoutSlate(v *types.BlackoutSlate, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.BlackoutSlateImage != nil { ok := object.Key("blackoutSlateImage") if err := awsRestjson1_serializeDocumentInputLocation(v.BlackoutSlateImage, ok); err != nil { return err } } if len(v.NetworkEndBlackout) > 0 { ok := object.Key("networkEndBlackout") ok.String(string(v.NetworkEndBlackout)) } if v.NetworkEndBlackoutImage != nil { ok := object.Key("networkEndBlackoutImage") if err := awsRestjson1_serializeDocumentInputLocation(v.NetworkEndBlackoutImage, ok); err != nil { return err } } if v.NetworkId != nil { ok := object.Key("networkId") ok.String(*v.NetworkId) } if len(v.State) > 0 { ok := object.Key("state") ok.String(string(v.State)) } return nil } func awsRestjson1_serializeDocumentBurnInDestinationSettings(v *types.BurnInDestinationSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.Alignment) > 0 { ok := object.Key("alignment") ok.String(string(v.Alignment)) } if len(v.BackgroundColor) > 0 { ok := object.Key("backgroundColor") ok.String(string(v.BackgroundColor)) } if v.BackgroundOpacity != 0 { ok := object.Key("backgroundOpacity") ok.Integer(v.BackgroundOpacity) } if v.Font != nil { ok := object.Key("font") if err := awsRestjson1_serializeDocumentInputLocation(v.Font, ok); err != nil { return err } } if len(v.FontColor) > 0 { ok := object.Key("fontColor") ok.String(string(v.FontColor)) } if v.FontOpacity != 0 { ok := object.Key("fontOpacity") ok.Integer(v.FontOpacity) } if v.FontResolution != 0 { ok := object.Key("fontResolution") ok.Integer(v.FontResolution) } if v.FontSize != nil { ok := object.Key("fontSize") ok.String(*v.FontSize) } if len(v.OutlineColor) > 0 { ok := object.Key("outlineColor") ok.String(string(v.OutlineColor)) } if v.OutlineSize != 0 { ok := object.Key("outlineSize") ok.Integer(v.OutlineSize) } if len(v.ShadowColor) > 0 { ok := object.Key("shadowColor") ok.String(string(v.ShadowColor)) } if v.ShadowOpacity != 0 { ok := object.Key("shadowOpacity") ok.Integer(v.ShadowOpacity) } if v.ShadowXOffset != 0 { ok := object.Key("shadowXOffset") ok.Integer(v.ShadowXOffset) } if v.ShadowYOffset != 0 { ok := object.Key("shadowYOffset") ok.Integer(v.ShadowYOffset) } if len(v.TeletextGridControl) > 0 { ok := object.Key("teletextGridControl") ok.String(string(v.TeletextGridControl)) } if v.XPosition != 0 { ok := object.Key("xPosition") ok.Integer(v.XPosition) } if v.YPosition != 0 { ok := object.Key("yPosition") ok.Integer(v.YPosition) } return nil } func awsRestjson1_serializeDocumentCaptionDescription(v *types.CaptionDescription, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.Accessibility) > 0 { ok := object.Key("accessibility") ok.String(string(v.Accessibility)) } if v.CaptionSelectorName != nil { ok := object.Key("captionSelectorName") ok.String(*v.CaptionSelectorName) } if v.DestinationSettings != nil { ok := object.Key("destinationSettings") if err := awsRestjson1_serializeDocumentCaptionDestinationSettings(v.DestinationSettings, ok); err != nil { return err } } if v.LanguageCode != nil { ok := object.Key("languageCode") ok.String(*v.LanguageCode) } if v.LanguageDescription != nil { ok := object.Key("languageDescription") ok.String(*v.LanguageDescription) } if v.Name != nil { ok := object.Key("name") ok.String(*v.Name) } return nil } func awsRestjson1_serializeDocumentCaptionDestinationSettings(v *types.CaptionDestinationSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AribDestinationSettings != nil { ok := object.Key("aribDestinationSettings") if err := awsRestjson1_serializeDocumentAribDestinationSettings(v.AribDestinationSettings, ok); err != nil { return err } } if v.BurnInDestinationSettings != nil { ok := object.Key("burnInDestinationSettings") if err := awsRestjson1_serializeDocumentBurnInDestinationSettings(v.BurnInDestinationSettings, ok); err != nil { return err } } if v.DvbSubDestinationSettings != nil { ok := object.Key("dvbSubDestinationSettings") if err := awsRestjson1_serializeDocumentDvbSubDestinationSettings(v.DvbSubDestinationSettings, ok); err != nil { return err } } if v.EbuTtDDestinationSettings != nil { ok := object.Key("ebuTtDDestinationSettings") if err := awsRestjson1_serializeDocumentEbuTtDDestinationSettings(v.EbuTtDDestinationSettings, ok); err != nil { return err } } if v.EmbeddedDestinationSettings != nil { ok := object.Key("embeddedDestinationSettings") if err := awsRestjson1_serializeDocumentEmbeddedDestinationSettings(v.EmbeddedDestinationSettings, ok); err != nil { return err } } if v.EmbeddedPlusScte20DestinationSettings != nil { ok := object.Key("embeddedPlusScte20DestinationSettings") if err := awsRestjson1_serializeDocumentEmbeddedPlusScte20DestinationSettings(v.EmbeddedPlusScte20DestinationSettings, ok); err != nil { return err } } if v.RtmpCaptionInfoDestinationSettings != nil { ok := object.Key("rtmpCaptionInfoDestinationSettings") if err := awsRestjson1_serializeDocumentRtmpCaptionInfoDestinationSettings(v.RtmpCaptionInfoDestinationSettings, ok); err != nil { return err } } if v.Scte20PlusEmbeddedDestinationSettings != nil { ok := object.Key("scte20PlusEmbeddedDestinationSettings") if err := awsRestjson1_serializeDocumentScte20PlusEmbeddedDestinationSettings(v.Scte20PlusEmbeddedDestinationSettings, ok); err != nil { return err } } if v.Scte27DestinationSettings != nil { ok := object.Key("scte27DestinationSettings") if err := awsRestjson1_serializeDocumentScte27DestinationSettings(v.Scte27DestinationSettings, ok); err != nil { return err } } if v.SmpteTtDestinationSettings != nil { ok := object.Key("smpteTtDestinationSettings") if err := awsRestjson1_serializeDocumentSmpteTtDestinationSettings(v.SmpteTtDestinationSettings, ok); err != nil { return err } } if v.TeletextDestinationSettings != nil { ok := object.Key("teletextDestinationSettings") if err := awsRestjson1_serializeDocumentTeletextDestinationSettings(v.TeletextDestinationSettings, ok); err != nil { return err } } if v.TtmlDestinationSettings != nil { ok := object.Key("ttmlDestinationSettings") if err := awsRestjson1_serializeDocumentTtmlDestinationSettings(v.TtmlDestinationSettings, ok); err != nil { return err } } if v.WebvttDestinationSettings != nil { ok := object.Key("webvttDestinationSettings") if err := awsRestjson1_serializeDocumentWebvttDestinationSettings(v.WebvttDestinationSettings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentCaptionLanguageMapping(v *types.CaptionLanguageMapping, value smithyjson.Value) error { object := value.Object() defer object.Close() { ok := object.Key("captionChannel") ok.Integer(v.CaptionChannel) } if v.LanguageCode != nil { ok := object.Key("languageCode") ok.String(*v.LanguageCode) } if v.LanguageDescription != nil { ok := object.Key("languageDescription") ok.String(*v.LanguageDescription) } return nil } func awsRestjson1_serializeDocumentCaptionRectangle(v *types.CaptionRectangle, value smithyjson.Value) error { object := value.Object() defer object.Close() { ok := object.Key("height") switch { case math.IsNaN(v.Height): ok.String("NaN") case math.IsInf(v.Height, 1): ok.String("Infinity") case math.IsInf(v.Height, -1): ok.String("-Infinity") default: ok.Double(v.Height) } } { ok := object.Key("leftOffset") switch { case math.IsNaN(v.LeftOffset): ok.String("NaN") case math.IsInf(v.LeftOffset, 1): ok.String("Infinity") case math.IsInf(v.LeftOffset, -1): ok.String("-Infinity") default: ok.Double(v.LeftOffset) } } { ok := object.Key("topOffset") switch { case math.IsNaN(v.TopOffset): ok.String("NaN") case math.IsInf(v.TopOffset, 1): ok.String("Infinity") case math.IsInf(v.TopOffset, -1): ok.String("-Infinity") default: ok.Double(v.TopOffset) } } { ok := object.Key("width") switch { case math.IsNaN(v.Width): ok.String("NaN") case math.IsInf(v.Width, 1): ok.String("Infinity") case math.IsInf(v.Width, -1): ok.String("-Infinity") default: ok.Double(v.Width) } } return nil } func awsRestjson1_serializeDocumentCaptionSelector(v *types.CaptionSelector, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.LanguageCode != nil { ok := object.Key("languageCode") ok.String(*v.LanguageCode) } if v.Name != nil { ok := object.Key("name") ok.String(*v.Name) } if v.SelectorSettings != nil { ok := object.Key("selectorSettings") if err := awsRestjson1_serializeDocumentCaptionSelectorSettings(v.SelectorSettings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentCaptionSelectorSettings(v *types.CaptionSelectorSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AncillarySourceSettings != nil { ok := object.Key("ancillarySourceSettings") if err := awsRestjson1_serializeDocumentAncillarySourceSettings(v.AncillarySourceSettings, ok); err != nil { return err } } if v.AribSourceSettings != nil { ok := object.Key("aribSourceSettings") if err := awsRestjson1_serializeDocumentAribSourceSettings(v.AribSourceSettings, ok); err != nil { return err } } if v.DvbSubSourceSettings != nil { ok := object.Key("dvbSubSourceSettings") if err := awsRestjson1_serializeDocumentDvbSubSourceSettings(v.DvbSubSourceSettings, ok); err != nil { return err } } if v.EmbeddedSourceSettings != nil { ok := object.Key("embeddedSourceSettings") if err := awsRestjson1_serializeDocumentEmbeddedSourceSettings(v.EmbeddedSourceSettings, ok); err != nil { return err } } if v.Scte20SourceSettings != nil { ok := object.Key("scte20SourceSettings") if err := awsRestjson1_serializeDocumentScte20SourceSettings(v.Scte20SourceSettings, ok); err != nil { return err } } if v.Scte27SourceSettings != nil { ok := object.Key("scte27SourceSettings") if err := awsRestjson1_serializeDocumentScte27SourceSettings(v.Scte27SourceSettings, ok); err != nil { return err } } if v.TeletextSourceSettings != nil { ok := object.Key("teletextSourceSettings") if err := awsRestjson1_serializeDocumentTeletextSourceSettings(v.TeletextSourceSettings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentCdiInputSpecification(v *types.CdiInputSpecification, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.Resolution) > 0 { ok := object.Key("resolution") ok.String(string(v.Resolution)) } return nil } func awsRestjson1_serializeDocumentColorSpacePassthroughSettings(v *types.ColorSpacePassthroughSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() return nil } func awsRestjson1_serializeDocumentDolbyVision81Settings(v *types.DolbyVision81Settings, value smithyjson.Value) error { object := value.Object() defer object.Close() return nil } func awsRestjson1_serializeDocumentDvbNitSettings(v *types.DvbNitSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() { ok := object.Key("networkId") ok.Integer(v.NetworkId) } if v.NetworkName != nil { ok := object.Key("networkName") ok.String(*v.NetworkName) } if v.RepInterval != 0 { ok := object.Key("repInterval") ok.Integer(v.RepInterval) } return nil } func awsRestjson1_serializeDocumentDvbSdtSettings(v *types.DvbSdtSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.OutputSdt) > 0 { ok := object.Key("outputSdt") ok.String(string(v.OutputSdt)) } if v.RepInterval != 0 { ok := object.Key("repInterval") ok.Integer(v.RepInterval) } if v.ServiceName != nil { ok := object.Key("serviceName") ok.String(*v.ServiceName) } if v.ServiceProviderName != nil { ok := object.Key("serviceProviderName") ok.String(*v.ServiceProviderName) } return nil } func awsRestjson1_serializeDocumentDvbSubDestinationSettings(v *types.DvbSubDestinationSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.Alignment) > 0 { ok := object.Key("alignment") ok.String(string(v.Alignment)) } if len(v.BackgroundColor) > 0 { ok := object.Key("backgroundColor") ok.String(string(v.BackgroundColor)) } if v.BackgroundOpacity != 0 { ok := object.Key("backgroundOpacity") ok.Integer(v.BackgroundOpacity) } if v.Font != nil { ok := object.Key("font") if err := awsRestjson1_serializeDocumentInputLocation(v.Font, ok); err != nil { return err } } if len(v.FontColor) > 0 { ok := object.Key("fontColor") ok.String(string(v.FontColor)) } if v.FontOpacity != 0 { ok := object.Key("fontOpacity") ok.Integer(v.FontOpacity) } if v.FontResolution != 0 { ok := object.Key("fontResolution") ok.Integer(v.FontResolution) } if v.FontSize != nil { ok := object.Key("fontSize") ok.String(*v.FontSize) } if len(v.OutlineColor) > 0 { ok := object.Key("outlineColor") ok.String(string(v.OutlineColor)) } if v.OutlineSize != 0 { ok := object.Key("outlineSize") ok.Integer(v.OutlineSize) } if len(v.ShadowColor) > 0 { ok := object.Key("shadowColor") ok.String(string(v.ShadowColor)) } if v.ShadowOpacity != 0 { ok := object.Key("shadowOpacity") ok.Integer(v.ShadowOpacity) } if v.ShadowXOffset != 0 { ok := object.Key("shadowXOffset") ok.Integer(v.ShadowXOffset) } if v.ShadowYOffset != 0 { ok := object.Key("shadowYOffset") ok.Integer(v.ShadowYOffset) } if len(v.TeletextGridControl) > 0 { ok := object.Key("teletextGridControl") ok.String(string(v.TeletextGridControl)) } if v.XPosition != 0 { ok := object.Key("xPosition") ok.Integer(v.XPosition) } if v.YPosition != 0 { ok := object.Key("yPosition") ok.Integer(v.YPosition) } return nil } func awsRestjson1_serializeDocumentDvbSubSourceSettings(v *types.DvbSubSourceSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.OcrLanguage) > 0 { ok := object.Key("ocrLanguage") ok.String(string(v.OcrLanguage)) } if v.Pid != 0 { ok := object.Key("pid") ok.Integer(v.Pid) } return nil } func awsRestjson1_serializeDocumentDvbTdtSettings(v *types.DvbTdtSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.RepInterval != 0 { ok := object.Key("repInterval") ok.Integer(v.RepInterval) } return nil } func awsRestjson1_serializeDocumentEac3AtmosSettings(v *types.Eac3AtmosSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Bitrate != 0 { ok := object.Key("bitrate") switch { case math.IsNaN(v.Bitrate): ok.String("NaN") case math.IsInf(v.Bitrate, 1): ok.String("Infinity") case math.IsInf(v.Bitrate, -1): ok.String("-Infinity") default: ok.Double(v.Bitrate) } } if len(v.CodingMode) > 0 { ok := object.Key("codingMode") ok.String(string(v.CodingMode)) } if v.Dialnorm != 0 { ok := object.Key("dialnorm") ok.Integer(v.Dialnorm) } if len(v.DrcLine) > 0 { ok := object.Key("drcLine") ok.String(string(v.DrcLine)) } if len(v.DrcRf) > 0 { ok := object.Key("drcRf") ok.String(string(v.DrcRf)) } if v.HeightTrim != 0 { ok := object.Key("heightTrim") switch { case math.IsNaN(v.HeightTrim): ok.String("NaN") case math.IsInf(v.HeightTrim, 1): ok.String("Infinity") case math.IsInf(v.HeightTrim, -1): ok.String("-Infinity") default: ok.Double(v.HeightTrim) } } if v.SurroundTrim != 0 { ok := object.Key("surroundTrim") switch { case math.IsNaN(v.SurroundTrim): ok.String("NaN") case math.IsInf(v.SurroundTrim, 1): ok.String("Infinity") case math.IsInf(v.SurroundTrim, -1): ok.String("-Infinity") default: ok.Double(v.SurroundTrim) } } return nil } func awsRestjson1_serializeDocumentEac3Settings(v *types.Eac3Settings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.AttenuationControl) > 0 { ok := object.Key("attenuationControl") ok.String(string(v.AttenuationControl)) } if v.Bitrate != 0 { ok := object.Key("bitrate") switch { case math.IsNaN(v.Bitrate): ok.String("NaN") case math.IsInf(v.Bitrate, 1): ok.String("Infinity") case math.IsInf(v.Bitrate, -1): ok.String("-Infinity") default: ok.Double(v.Bitrate) } } if len(v.BitstreamMode) > 0 { ok := object.Key("bitstreamMode") ok.String(string(v.BitstreamMode)) } if len(v.CodingMode) > 0 { ok := object.Key("codingMode") ok.String(string(v.CodingMode)) } if len(v.DcFilter) > 0 { ok := object.Key("dcFilter") ok.String(string(v.DcFilter)) } if v.Dialnorm != 0 { ok := object.Key("dialnorm") ok.Integer(v.Dialnorm) } if len(v.DrcLine) > 0 { ok := object.Key("drcLine") ok.String(string(v.DrcLine)) } if len(v.DrcRf) > 0 { ok := object.Key("drcRf") ok.String(string(v.DrcRf)) } if len(v.LfeControl) > 0 { ok := object.Key("lfeControl") ok.String(string(v.LfeControl)) } if len(v.LfeFilter) > 0 { ok := object.Key("lfeFilter") ok.String(string(v.LfeFilter)) } if v.LoRoCenterMixLevel != 0 { ok := object.Key("loRoCenterMixLevel") switch { case math.IsNaN(v.LoRoCenterMixLevel): ok.String("NaN") case math.IsInf(v.LoRoCenterMixLevel, 1): ok.String("Infinity") case math.IsInf(v.LoRoCenterMixLevel, -1): ok.String("-Infinity") default: ok.Double(v.LoRoCenterMixLevel) } } if v.LoRoSurroundMixLevel != 0 { ok := object.Key("loRoSurroundMixLevel") switch { case math.IsNaN(v.LoRoSurroundMixLevel): ok.String("NaN") case math.IsInf(v.LoRoSurroundMixLevel, 1): ok.String("Infinity") case math.IsInf(v.LoRoSurroundMixLevel, -1): ok.String("-Infinity") default: ok.Double(v.LoRoSurroundMixLevel) } } if v.LtRtCenterMixLevel != 0 { ok := object.Key("ltRtCenterMixLevel") switch { case math.IsNaN(v.LtRtCenterMixLevel): ok.String("NaN") case math.IsInf(v.LtRtCenterMixLevel, 1): ok.String("Infinity") case math.IsInf(v.LtRtCenterMixLevel, -1): ok.String("-Infinity") default: ok.Double(v.LtRtCenterMixLevel) } } if v.LtRtSurroundMixLevel != 0 { ok := object.Key("ltRtSurroundMixLevel") switch { case math.IsNaN(v.LtRtSurroundMixLevel): ok.String("NaN") case math.IsInf(v.LtRtSurroundMixLevel, 1): ok.String("Infinity") case math.IsInf(v.LtRtSurroundMixLevel, -1): ok.String("-Infinity") default: ok.Double(v.LtRtSurroundMixLevel) } } if len(v.MetadataControl) > 0 { ok := object.Key("metadataControl") ok.String(string(v.MetadataControl)) } if len(v.PassthroughControl) > 0 { ok := object.Key("passthroughControl") ok.String(string(v.PassthroughControl)) } if len(v.PhaseControl) > 0 { ok := object.Key("phaseControl") ok.String(string(v.PhaseControl)) } if len(v.StereoDownmix) > 0 { ok := object.Key("stereoDownmix") ok.String(string(v.StereoDownmix)) } if len(v.SurroundExMode) > 0 { ok := object.Key("surroundExMode") ok.String(string(v.SurroundExMode)) } if len(v.SurroundMode) > 0 { ok := object.Key("surroundMode") ok.String(string(v.SurroundMode)) } return nil } func awsRestjson1_serializeDocumentEbuTtDDestinationSettings(v *types.EbuTtDDestinationSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.CopyrightHolder != nil { ok := object.Key("copyrightHolder") ok.String(*v.CopyrightHolder) } if len(v.FillLineGap) > 0 { ok := object.Key("fillLineGap") ok.String(string(v.FillLineGap)) } if v.FontFamily != nil { ok := object.Key("fontFamily") ok.String(*v.FontFamily) } if len(v.StyleControl) > 0 { ok := object.Key("styleControl") ok.String(string(v.StyleControl)) } return nil } func awsRestjson1_serializeDocumentEmbeddedDestinationSettings(v *types.EmbeddedDestinationSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() return nil } func awsRestjson1_serializeDocumentEmbeddedPlusScte20DestinationSettings(v *types.EmbeddedPlusScte20DestinationSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() return nil } func awsRestjson1_serializeDocumentEmbeddedSourceSettings(v *types.EmbeddedSourceSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.Convert608To708) > 0 { ok := object.Key("convert608To708") ok.String(string(v.Convert608To708)) } if len(v.Scte20Detection) > 0 { ok := object.Key("scte20Detection") ok.String(string(v.Scte20Detection)) } if v.Source608ChannelNumber != 0 { ok := object.Key("source608ChannelNumber") ok.Integer(v.Source608ChannelNumber) } if v.Source608TrackNumber != 0 { ok := object.Key("source608TrackNumber") ok.Integer(v.Source608TrackNumber) } return nil } func awsRestjson1_serializeDocumentEncoderSettings(v *types.EncoderSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AudioDescriptions != nil { ok := object.Key("audioDescriptions") if err := awsRestjson1_serializeDocument__listOfAudioDescription(v.AudioDescriptions, ok); err != nil { return err } } if v.AvailBlanking != nil { ok := object.Key("availBlanking") if err := awsRestjson1_serializeDocumentAvailBlanking(v.AvailBlanking, ok); err != nil { return err } } if v.AvailConfiguration != nil { ok := object.Key("availConfiguration") if err := awsRestjson1_serializeDocumentAvailConfiguration(v.AvailConfiguration, ok); err != nil { return err } } if v.BlackoutSlate != nil { ok := object.Key("blackoutSlate") if err := awsRestjson1_serializeDocumentBlackoutSlate(v.BlackoutSlate, ok); err != nil { return err } } if v.CaptionDescriptions != nil { ok := object.Key("captionDescriptions") if err := awsRestjson1_serializeDocument__listOfCaptionDescription(v.CaptionDescriptions, ok); err != nil { return err } } if v.FeatureActivations != nil { ok := object.Key("featureActivations") if err := awsRestjson1_serializeDocumentFeatureActivations(v.FeatureActivations, ok); err != nil { return err } } if v.GlobalConfiguration != nil { ok := object.Key("globalConfiguration") if err := awsRestjson1_serializeDocumentGlobalConfiguration(v.GlobalConfiguration, ok); err != nil { return err } } if v.MotionGraphicsConfiguration != nil { ok := object.Key("motionGraphicsConfiguration") if err := awsRestjson1_serializeDocumentMotionGraphicsConfiguration(v.MotionGraphicsConfiguration, ok); err != nil { return err } } if v.NielsenConfiguration != nil { ok := object.Key("nielsenConfiguration") if err := awsRestjson1_serializeDocumentNielsenConfiguration(v.NielsenConfiguration, ok); err != nil { return err } } if v.OutputGroups != nil { ok := object.Key("outputGroups") if err := awsRestjson1_serializeDocument__listOfOutputGroup(v.OutputGroups, ok); err != nil { return err } } if v.TimecodeConfig != nil { ok := object.Key("timecodeConfig") if err := awsRestjson1_serializeDocumentTimecodeConfig(v.TimecodeConfig, ok); err != nil { return err } } if v.VideoDescriptions != nil { ok := object.Key("videoDescriptions") if err := awsRestjson1_serializeDocument__listOfVideoDescription(v.VideoDescriptions, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentEsam(v *types.Esam, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcquisitionPointId != nil { ok := object.Key("acquisitionPointId") ok.String(*v.AcquisitionPointId) } if v.AdAvailOffset != 0 { ok := object.Key("adAvailOffset") ok.Integer(v.AdAvailOffset) } if v.PasswordParam != nil { ok := object.Key("passwordParam") ok.String(*v.PasswordParam) } if v.PoisEndpoint != nil { ok := object.Key("poisEndpoint") ok.String(*v.PoisEndpoint) } if v.Username != nil { ok := object.Key("username") ok.String(*v.Username) } if v.ZoneIdentity != nil { ok := object.Key("zoneIdentity") ok.String(*v.ZoneIdentity) } return nil } func awsRestjson1_serializeDocumentFailoverCondition(v *types.FailoverCondition, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.FailoverConditionSettings != nil { ok := object.Key("failoverConditionSettings") if err := awsRestjson1_serializeDocumentFailoverConditionSettings(v.FailoverConditionSettings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentFailoverConditionSettings(v *types.FailoverConditionSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AudioSilenceSettings != nil { ok := object.Key("audioSilenceSettings") if err := awsRestjson1_serializeDocumentAudioSilenceFailoverSettings(v.AudioSilenceSettings, ok); err != nil { return err } } if v.InputLossSettings != nil { ok := object.Key("inputLossSettings") if err := awsRestjson1_serializeDocumentInputLossFailoverSettings(v.InputLossSettings, ok); err != nil { return err } } if v.VideoBlackSettings != nil { ok := object.Key("videoBlackSettings") if err := awsRestjson1_serializeDocumentVideoBlackFailoverSettings(v.VideoBlackSettings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentFeatureActivations(v *types.FeatureActivations, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.InputPrepareScheduleActions) > 0 { ok := object.Key("inputPrepareScheduleActions") ok.String(string(v.InputPrepareScheduleActions)) } return nil } func awsRestjson1_serializeDocumentFecOutputSettings(v *types.FecOutputSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.ColumnDepth != 0 { ok := object.Key("columnDepth") ok.Integer(v.ColumnDepth) } if len(v.IncludeFec) > 0 { ok := object.Key("includeFec") ok.String(string(v.IncludeFec)) } if v.RowLength != 0 { ok := object.Key("rowLength") ok.Integer(v.RowLength) } return nil } func awsRestjson1_serializeDocumentFixedModeScheduleActionStartSettings(v *types.FixedModeScheduleActionStartSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Time != nil { ok := object.Key("time") ok.String(*v.Time) } return nil } func awsRestjson1_serializeDocumentFmp4HlsSettings(v *types.Fmp4HlsSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AudioRenditionSets != nil { ok := object.Key("audioRenditionSets") ok.String(*v.AudioRenditionSets) } if len(v.NielsenId3Behavior) > 0 { ok := object.Key("nielsenId3Behavior") ok.String(string(v.NielsenId3Behavior)) } if len(v.TimedMetadataBehavior) > 0 { ok := object.Key("timedMetadataBehavior") ok.String(string(v.TimedMetadataBehavior)) } return nil } func awsRestjson1_serializeDocumentFollowModeScheduleActionStartSettings(v *types.FollowModeScheduleActionStartSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.FollowPoint) > 0 { ok := object.Key("followPoint") ok.String(string(v.FollowPoint)) } if v.ReferenceActionName != nil { ok := object.Key("referenceActionName") ok.String(*v.ReferenceActionName) } return nil } func awsRestjson1_serializeDocumentFrameCaptureCdnSettings(v *types.FrameCaptureCdnSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.FrameCaptureS3Settings != nil { ok := object.Key("frameCaptureS3Settings") if err := awsRestjson1_serializeDocumentFrameCaptureS3Settings(v.FrameCaptureS3Settings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentFrameCaptureGroupSettings(v *types.FrameCaptureGroupSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Destination != nil { ok := object.Key("destination") if err := awsRestjson1_serializeDocumentOutputLocationRef(v.Destination, ok); err != nil { return err } } if v.FrameCaptureCdnSettings != nil { ok := object.Key("frameCaptureCdnSettings") if err := awsRestjson1_serializeDocumentFrameCaptureCdnSettings(v.FrameCaptureCdnSettings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentFrameCaptureHlsSettings(v *types.FrameCaptureHlsSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() return nil } func awsRestjson1_serializeDocumentFrameCaptureOutputSettings(v *types.FrameCaptureOutputSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.NameModifier != nil { ok := object.Key("nameModifier") ok.String(*v.NameModifier) } return nil } func awsRestjson1_serializeDocumentFrameCaptureS3Settings(v *types.FrameCaptureS3Settings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.CannedAcl) > 0 { ok := object.Key("cannedAcl") ok.String(string(v.CannedAcl)) } return nil } func awsRestjson1_serializeDocumentFrameCaptureSettings(v *types.FrameCaptureSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.CaptureInterval != 0 { ok := object.Key("captureInterval") ok.Integer(v.CaptureInterval) } if len(v.CaptureIntervalUnits) > 0 { ok := object.Key("captureIntervalUnits") ok.String(string(v.CaptureIntervalUnits)) } if v.TimecodeBurninSettings != nil { ok := object.Key("timecodeBurninSettings") if err := awsRestjson1_serializeDocumentTimecodeBurninSettings(v.TimecodeBurninSettings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentGlobalConfiguration(v *types.GlobalConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.InitialAudioGain != 0 { ok := object.Key("initialAudioGain") ok.Integer(v.InitialAudioGain) } if len(v.InputEndAction) > 0 { ok := object.Key("inputEndAction") ok.String(string(v.InputEndAction)) } if v.InputLossBehavior != nil { ok := object.Key("inputLossBehavior") if err := awsRestjson1_serializeDocumentInputLossBehavior(v.InputLossBehavior, ok); err != nil { return err } } if len(v.OutputLockingMode) > 0 { ok := object.Key("outputLockingMode") ok.String(string(v.OutputLockingMode)) } if len(v.OutputTimingSource) > 0 { ok := object.Key("outputTimingSource") ok.String(string(v.OutputTimingSource)) } if len(v.SupportLowFramerateInputs) > 0 { ok := object.Key("supportLowFramerateInputs") ok.String(string(v.SupportLowFramerateInputs)) } return nil } func awsRestjson1_serializeDocumentH264ColorSpaceSettings(v *types.H264ColorSpaceSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.ColorSpacePassthroughSettings != nil { ok := object.Key("colorSpacePassthroughSettings") if err := awsRestjson1_serializeDocumentColorSpacePassthroughSettings(v.ColorSpacePassthroughSettings, ok); err != nil { return err } } if v.Rec601Settings != nil { ok := object.Key("rec601Settings") if err := awsRestjson1_serializeDocumentRec601Settings(v.Rec601Settings, ok); err != nil { return err } } if v.Rec709Settings != nil { ok := object.Key("rec709Settings") if err := awsRestjson1_serializeDocumentRec709Settings(v.Rec709Settings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentH264FilterSettings(v *types.H264FilterSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.TemporalFilterSettings != nil { ok := object.Key("temporalFilterSettings") if err := awsRestjson1_serializeDocumentTemporalFilterSettings(v.TemporalFilterSettings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentH264Settings(v *types.H264Settings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.AdaptiveQuantization) > 0 { ok := object.Key("adaptiveQuantization") ok.String(string(v.AdaptiveQuantization)) } if len(v.AfdSignaling) > 0 { ok := object.Key("afdSignaling") ok.String(string(v.AfdSignaling)) } if v.Bitrate != 0 { ok := object.Key("bitrate") ok.Integer(v.Bitrate) } if v.BufFillPct != 0 { ok := object.Key("bufFillPct") ok.Integer(v.BufFillPct) } if v.BufSize != 0 { ok := object.Key("bufSize") ok.Integer(v.BufSize) } if len(v.ColorMetadata) > 0 { ok := object.Key("colorMetadata") ok.String(string(v.ColorMetadata)) } if v.ColorSpaceSettings != nil { ok := object.Key("colorSpaceSettings") if err := awsRestjson1_serializeDocumentH264ColorSpaceSettings(v.ColorSpaceSettings, ok); err != nil { return err } } if len(v.EntropyEncoding) > 0 { ok := object.Key("entropyEncoding") ok.String(string(v.EntropyEncoding)) } if v.FilterSettings != nil { ok := object.Key("filterSettings") if err := awsRestjson1_serializeDocumentH264FilterSettings(v.FilterSettings, ok); err != nil { return err } } if len(v.FixedAfd) > 0 { ok := object.Key("fixedAfd") ok.String(string(v.FixedAfd)) } if len(v.FlickerAq) > 0 { ok := object.Key("flickerAq") ok.String(string(v.FlickerAq)) } if len(v.ForceFieldPictures) > 0 { ok := object.Key("forceFieldPictures") ok.String(string(v.ForceFieldPictures)) } if len(v.FramerateControl) > 0 { ok := object.Key("framerateControl") ok.String(string(v.FramerateControl)) } if v.FramerateDenominator != 0 { ok := object.Key("framerateDenominator") ok.Integer(v.FramerateDenominator) } if v.FramerateNumerator != 0 { ok := object.Key("framerateNumerator") ok.Integer(v.FramerateNumerator) } if len(v.GopBReference) > 0 { ok := object.Key("gopBReference") ok.String(string(v.GopBReference)) } if v.GopClosedCadence != 0 { ok := object.Key("gopClosedCadence") ok.Integer(v.GopClosedCadence) } if v.GopNumBFrames != 0 { ok := object.Key("gopNumBFrames") ok.Integer(v.GopNumBFrames) } if v.GopSize != 0 { ok := object.Key("gopSize") switch { case math.IsNaN(v.GopSize): ok.String("NaN") case math.IsInf(v.GopSize, 1): ok.String("Infinity") case math.IsInf(v.GopSize, -1): ok.String("-Infinity") default: ok.Double(v.GopSize) } } if len(v.GopSizeUnits) > 0 { ok := object.Key("gopSizeUnits") ok.String(string(v.GopSizeUnits)) } if len(v.Level) > 0 { ok := object.Key("level") ok.String(string(v.Level)) } if len(v.LookAheadRateControl) > 0 { ok := object.Key("lookAheadRateControl") ok.String(string(v.LookAheadRateControl)) } if v.MaxBitrate != 0 { ok := object.Key("maxBitrate") ok.Integer(v.MaxBitrate) } if v.MinIInterval != 0 { ok := object.Key("minIInterval") ok.Integer(v.MinIInterval) } if v.NumRefFrames != 0 { ok := object.Key("numRefFrames") ok.Integer(v.NumRefFrames) } if len(v.ParControl) > 0 { ok := object.Key("parControl") ok.String(string(v.ParControl)) } if v.ParDenominator != 0 { ok := object.Key("parDenominator") ok.Integer(v.ParDenominator) } if v.ParNumerator != 0 { ok := object.Key("parNumerator") ok.Integer(v.ParNumerator) } if len(v.Profile) > 0 { ok := object.Key("profile") ok.String(string(v.Profile)) } if len(v.QualityLevel) > 0 { ok := object.Key("qualityLevel") ok.String(string(v.QualityLevel)) } if v.QvbrQualityLevel != 0 { ok := object.Key("qvbrQualityLevel") ok.Integer(v.QvbrQualityLevel) } if len(v.RateControlMode) > 0 { ok := object.Key("rateControlMode") ok.String(string(v.RateControlMode)) } if len(v.ScanType) > 0 { ok := object.Key("scanType") ok.String(string(v.ScanType)) } if len(v.SceneChangeDetect) > 0 { ok := object.Key("sceneChangeDetect") ok.String(string(v.SceneChangeDetect)) } if v.Slices != 0 { ok := object.Key("slices") ok.Integer(v.Slices) } if v.Softness != 0 { ok := object.Key("softness") ok.Integer(v.Softness) } if len(v.SpatialAq) > 0 { ok := object.Key("spatialAq") ok.String(string(v.SpatialAq)) } if len(v.SubgopLength) > 0 { ok := object.Key("subgopLength") ok.String(string(v.SubgopLength)) } if len(v.Syntax) > 0 { ok := object.Key("syntax") ok.String(string(v.Syntax)) } if len(v.TemporalAq) > 0 { ok := object.Key("temporalAq") ok.String(string(v.TemporalAq)) } if v.TimecodeBurninSettings != nil { ok := object.Key("timecodeBurninSettings") if err := awsRestjson1_serializeDocumentTimecodeBurninSettings(v.TimecodeBurninSettings, ok); err != nil { return err } } if len(v.TimecodeInsertion) > 0 { ok := object.Key("timecodeInsertion") ok.String(string(v.TimecodeInsertion)) } return nil } func awsRestjson1_serializeDocumentH265ColorSpaceSettings(v *types.H265ColorSpaceSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.ColorSpacePassthroughSettings != nil { ok := object.Key("colorSpacePassthroughSettings") if err := awsRestjson1_serializeDocumentColorSpacePassthroughSettings(v.ColorSpacePassthroughSettings, ok); err != nil { return err } } if v.DolbyVision81Settings != nil { ok := object.Key("dolbyVision81Settings") if err := awsRestjson1_serializeDocumentDolbyVision81Settings(v.DolbyVision81Settings, ok); err != nil { return err } } if v.Hdr10Settings != nil { ok := object.Key("hdr10Settings") if err := awsRestjson1_serializeDocumentHdr10Settings(v.Hdr10Settings, ok); err != nil { return err } } if v.Rec601Settings != nil { ok := object.Key("rec601Settings") if err := awsRestjson1_serializeDocumentRec601Settings(v.Rec601Settings, ok); err != nil { return err } } if v.Rec709Settings != nil { ok := object.Key("rec709Settings") if err := awsRestjson1_serializeDocumentRec709Settings(v.Rec709Settings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentH265FilterSettings(v *types.H265FilterSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.TemporalFilterSettings != nil { ok := object.Key("temporalFilterSettings") if err := awsRestjson1_serializeDocumentTemporalFilterSettings(v.TemporalFilterSettings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentH265Settings(v *types.H265Settings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.AdaptiveQuantization) > 0 { ok := object.Key("adaptiveQuantization") ok.String(string(v.AdaptiveQuantization)) } if len(v.AfdSignaling) > 0 { ok := object.Key("afdSignaling") ok.String(string(v.AfdSignaling)) } if len(v.AlternativeTransferFunction) > 0 { ok := object.Key("alternativeTransferFunction") ok.String(string(v.AlternativeTransferFunction)) } if v.Bitrate != 0 { ok := object.Key("bitrate") ok.Integer(v.Bitrate) } if v.BufSize != 0 { ok := object.Key("bufSize") ok.Integer(v.BufSize) } if len(v.ColorMetadata) > 0 { ok := object.Key("colorMetadata") ok.String(string(v.ColorMetadata)) } if v.ColorSpaceSettings != nil { ok := object.Key("colorSpaceSettings") if err := awsRestjson1_serializeDocumentH265ColorSpaceSettings(v.ColorSpaceSettings, ok); err != nil { return err } } if v.FilterSettings != nil { ok := object.Key("filterSettings") if err := awsRestjson1_serializeDocumentH265FilterSettings(v.FilterSettings, ok); err != nil { return err } } if len(v.FixedAfd) > 0 { ok := object.Key("fixedAfd") ok.String(string(v.FixedAfd)) } if len(v.FlickerAq) > 0 { ok := object.Key("flickerAq") ok.String(string(v.FlickerAq)) } { ok := object.Key("framerateDenominator") ok.Integer(v.FramerateDenominator) } { ok := object.Key("framerateNumerator") ok.Integer(v.FramerateNumerator) } if v.GopClosedCadence != 0 { ok := object.Key("gopClosedCadence") ok.Integer(v.GopClosedCadence) } if v.GopSize != 0 { ok := object.Key("gopSize") switch { case math.IsNaN(v.GopSize): ok.String("NaN") case math.IsInf(v.GopSize, 1): ok.String("Infinity") case math.IsInf(v.GopSize, -1): ok.String("-Infinity") default: ok.Double(v.GopSize) } } if len(v.GopSizeUnits) > 0 { ok := object.Key("gopSizeUnits") ok.String(string(v.GopSizeUnits)) } if len(v.Level) > 0 { ok := object.Key("level") ok.String(string(v.Level)) } if len(v.LookAheadRateControl) > 0 { ok := object.Key("lookAheadRateControl") ok.String(string(v.LookAheadRateControl)) } if v.MaxBitrate != 0 { ok := object.Key("maxBitrate") ok.Integer(v.MaxBitrate) } if v.MinIInterval != 0 { ok := object.Key("minIInterval") ok.Integer(v.MinIInterval) } if v.ParDenominator != 0 { ok := object.Key("parDenominator") ok.Integer(v.ParDenominator) } if v.ParNumerator != 0 { ok := object.Key("parNumerator") ok.Integer(v.ParNumerator) } if len(v.Profile) > 0 { ok := object.Key("profile") ok.String(string(v.Profile)) } if v.QvbrQualityLevel != 0 { ok := object.Key("qvbrQualityLevel") ok.Integer(v.QvbrQualityLevel) } if len(v.RateControlMode) > 0 { ok := object.Key("rateControlMode") ok.String(string(v.RateControlMode)) } if len(v.ScanType) > 0 { ok := object.Key("scanType") ok.String(string(v.ScanType)) } if len(v.SceneChangeDetect) > 0 { ok := object.Key("sceneChangeDetect") ok.String(string(v.SceneChangeDetect)) } if v.Slices != 0 { ok := object.Key("slices") ok.Integer(v.Slices) } if len(v.Tier) > 0 { ok := object.Key("tier") ok.String(string(v.Tier)) } if v.TimecodeBurninSettings != nil { ok := object.Key("timecodeBurninSettings") if err := awsRestjson1_serializeDocumentTimecodeBurninSettings(v.TimecodeBurninSettings, ok); err != nil { return err } } if len(v.TimecodeInsertion) > 0 { ok := object.Key("timecodeInsertion") ok.String(string(v.TimecodeInsertion)) } return nil } func awsRestjson1_serializeDocumentHdr10Settings(v *types.Hdr10Settings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.MaxCll != 0 { ok := object.Key("maxCll") ok.Integer(v.MaxCll) } if v.MaxFall != 0 { ok := object.Key("maxFall") ok.Integer(v.MaxFall) } return nil } func awsRestjson1_serializeDocumentHlsAkamaiSettings(v *types.HlsAkamaiSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.ConnectionRetryInterval != 0 { ok := object.Key("connectionRetryInterval") ok.Integer(v.ConnectionRetryInterval) } if v.FilecacheDuration != 0 { ok := object.Key("filecacheDuration") ok.Integer(v.FilecacheDuration) } if len(v.HttpTransferMode) > 0 { ok := object.Key("httpTransferMode") ok.String(string(v.HttpTransferMode)) } if v.NumRetries != 0 { ok := object.Key("numRetries") ok.Integer(v.NumRetries) } if v.RestartDelay != 0 { ok := object.Key("restartDelay") ok.Integer(v.RestartDelay) } if v.Salt != nil { ok := object.Key("salt") ok.String(*v.Salt) } if v.Token != nil { ok := object.Key("token") ok.String(*v.Token) } return nil } func awsRestjson1_serializeDocumentHlsBasicPutSettings(v *types.HlsBasicPutSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.ConnectionRetryInterval != 0 { ok := object.Key("connectionRetryInterval") ok.Integer(v.ConnectionRetryInterval) } if v.FilecacheDuration != 0 { ok := object.Key("filecacheDuration") ok.Integer(v.FilecacheDuration) } if v.NumRetries != 0 { ok := object.Key("numRetries") ok.Integer(v.NumRetries) } if v.RestartDelay != 0 { ok := object.Key("restartDelay") ok.Integer(v.RestartDelay) } return nil } func awsRestjson1_serializeDocumentHlsCdnSettings(v *types.HlsCdnSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.HlsAkamaiSettings != nil { ok := object.Key("hlsAkamaiSettings") if err := awsRestjson1_serializeDocumentHlsAkamaiSettings(v.HlsAkamaiSettings, ok); err != nil { return err } } if v.HlsBasicPutSettings != nil { ok := object.Key("hlsBasicPutSettings") if err := awsRestjson1_serializeDocumentHlsBasicPutSettings(v.HlsBasicPutSettings, ok); err != nil { return err } } if v.HlsMediaStoreSettings != nil { ok := object.Key("hlsMediaStoreSettings") if err := awsRestjson1_serializeDocumentHlsMediaStoreSettings(v.HlsMediaStoreSettings, ok); err != nil { return err } } if v.HlsS3Settings != nil { ok := object.Key("hlsS3Settings") if err := awsRestjson1_serializeDocumentHlsS3Settings(v.HlsS3Settings, ok); err != nil { return err } } if v.HlsWebdavSettings != nil { ok := object.Key("hlsWebdavSettings") if err := awsRestjson1_serializeDocumentHlsWebdavSettings(v.HlsWebdavSettings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentHlsGroupSettings(v *types.HlsGroupSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AdMarkers != nil { ok := object.Key("adMarkers") if err := awsRestjson1_serializeDocument__listOfHlsAdMarkers(v.AdMarkers, ok); err != nil { return err } } if v.BaseUrlContent != nil { ok := object.Key("baseUrlContent") ok.String(*v.BaseUrlContent) } if v.BaseUrlContent1 != nil { ok := object.Key("baseUrlContent1") ok.String(*v.BaseUrlContent1) } if v.BaseUrlManifest != nil { ok := object.Key("baseUrlManifest") ok.String(*v.BaseUrlManifest) } if v.BaseUrlManifest1 != nil { ok := object.Key("baseUrlManifest1") ok.String(*v.BaseUrlManifest1) } if v.CaptionLanguageMappings != nil { ok := object.Key("captionLanguageMappings") if err := awsRestjson1_serializeDocument__listOfCaptionLanguageMapping(v.CaptionLanguageMappings, ok); err != nil { return err } } if len(v.CaptionLanguageSetting) > 0 { ok := object.Key("captionLanguageSetting") ok.String(string(v.CaptionLanguageSetting)) } if len(v.ClientCache) > 0 { ok := object.Key("clientCache") ok.String(string(v.ClientCache)) } if len(v.CodecSpecification) > 0 { ok := object.Key("codecSpecification") ok.String(string(v.CodecSpecification)) } if v.ConstantIv != nil { ok := object.Key("constantIv") ok.String(*v.ConstantIv) } if v.Destination != nil { ok := object.Key("destination") if err := awsRestjson1_serializeDocumentOutputLocationRef(v.Destination, ok); err != nil { return err } } if len(v.DirectoryStructure) > 0 { ok := object.Key("directoryStructure") ok.String(string(v.DirectoryStructure)) } if len(v.DiscontinuityTags) > 0 { ok := object.Key("discontinuityTags") ok.String(string(v.DiscontinuityTags)) } if len(v.EncryptionType) > 0 { ok := object.Key("encryptionType") ok.String(string(v.EncryptionType)) } if v.HlsCdnSettings != nil { ok := object.Key("hlsCdnSettings") if err := awsRestjson1_serializeDocumentHlsCdnSettings(v.HlsCdnSettings, ok); err != nil { return err } } if len(v.HlsId3SegmentTagging) > 0 { ok := object.Key("hlsId3SegmentTagging") ok.String(string(v.HlsId3SegmentTagging)) } if len(v.IFrameOnlyPlaylists) > 0 { ok := object.Key("iFrameOnlyPlaylists") ok.String(string(v.IFrameOnlyPlaylists)) } if len(v.IncompleteSegmentBehavior) > 0 { ok := object.Key("incompleteSegmentBehavior") ok.String(string(v.IncompleteSegmentBehavior)) } if v.IndexNSegments != 0 { ok := object.Key("indexNSegments") ok.Integer(v.IndexNSegments) } if len(v.InputLossAction) > 0 { ok := object.Key("inputLossAction") ok.String(string(v.InputLossAction)) } if len(v.IvInManifest) > 0 { ok := object.Key("ivInManifest") ok.String(string(v.IvInManifest)) } if len(v.IvSource) > 0 { ok := object.Key("ivSource") ok.String(string(v.IvSource)) } if v.KeepSegments != 0 { ok := object.Key("keepSegments") ok.Integer(v.KeepSegments) } if v.KeyFormat != nil { ok := object.Key("keyFormat") ok.String(*v.KeyFormat) } if v.KeyFormatVersions != nil { ok := object.Key("keyFormatVersions") ok.String(*v.KeyFormatVersions) } if v.KeyProviderSettings != nil { ok := object.Key("keyProviderSettings") if err := awsRestjson1_serializeDocumentKeyProviderSettings(v.KeyProviderSettings, ok); err != nil { return err } } if len(v.ManifestCompression) > 0 { ok := object.Key("manifestCompression") ok.String(string(v.ManifestCompression)) } if len(v.ManifestDurationFormat) > 0 { ok := object.Key("manifestDurationFormat") ok.String(string(v.ManifestDurationFormat)) } if v.MinSegmentLength != 0 { ok := object.Key("minSegmentLength") ok.Integer(v.MinSegmentLength) } if len(v.Mode) > 0 { ok := object.Key("mode") ok.String(string(v.Mode)) } if len(v.OutputSelection) > 0 { ok := object.Key("outputSelection") ok.String(string(v.OutputSelection)) } if len(v.ProgramDateTime) > 0 { ok := object.Key("programDateTime") ok.String(string(v.ProgramDateTime)) } if len(v.ProgramDateTimeClock) > 0 { ok := object.Key("programDateTimeClock") ok.String(string(v.ProgramDateTimeClock)) } if v.ProgramDateTimePeriod != 0 { ok := object.Key("programDateTimePeriod") ok.Integer(v.ProgramDateTimePeriod) } if len(v.RedundantManifest) > 0 { ok := object.Key("redundantManifest") ok.String(string(v.RedundantManifest)) } if len(v.SegmentationMode) > 0 { ok := object.Key("segmentationMode") ok.String(string(v.SegmentationMode)) } if v.SegmentLength != 0 { ok := object.Key("segmentLength") ok.Integer(v.SegmentLength) } if v.SegmentsPerSubdirectory != 0 { ok := object.Key("segmentsPerSubdirectory") ok.Integer(v.SegmentsPerSubdirectory) } if len(v.StreamInfResolution) > 0 { ok := object.Key("streamInfResolution") ok.String(string(v.StreamInfResolution)) } if len(v.TimedMetadataId3Frame) > 0 { ok := object.Key("timedMetadataId3Frame") ok.String(string(v.TimedMetadataId3Frame)) } if v.TimedMetadataId3Period != 0 { ok := object.Key("timedMetadataId3Period") ok.Integer(v.TimedMetadataId3Period) } if v.TimestampDeltaMilliseconds != 0 { ok := object.Key("timestampDeltaMilliseconds") ok.Integer(v.TimestampDeltaMilliseconds) } if len(v.TsFileMode) > 0 { ok := object.Key("tsFileMode") ok.String(string(v.TsFileMode)) } return nil } func awsRestjson1_serializeDocumentHlsId3SegmentTaggingScheduleActionSettings(v *types.HlsId3SegmentTaggingScheduleActionSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Id3 != nil { ok := object.Key("id3") ok.String(*v.Id3) } if v.Tag != nil { ok := object.Key("tag") ok.String(*v.Tag) } return nil } func awsRestjson1_serializeDocumentHlsInputSettings(v *types.HlsInputSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Bandwidth != 0 { ok := object.Key("bandwidth") ok.Integer(v.Bandwidth) } if v.BufferSegments != 0 { ok := object.Key("bufferSegments") ok.Integer(v.BufferSegments) } if v.Retries != 0 { ok := object.Key("retries") ok.Integer(v.Retries) } if v.RetryInterval != 0 { ok := object.Key("retryInterval") ok.Integer(v.RetryInterval) } if len(v.Scte35Source) > 0 { ok := object.Key("scte35Source") ok.String(string(v.Scte35Source)) } return nil } func awsRestjson1_serializeDocumentHlsMediaStoreSettings(v *types.HlsMediaStoreSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.ConnectionRetryInterval != 0 { ok := object.Key("connectionRetryInterval") ok.Integer(v.ConnectionRetryInterval) } if v.FilecacheDuration != 0 { ok := object.Key("filecacheDuration") ok.Integer(v.FilecacheDuration) } if len(v.MediaStoreStorageClass) > 0 { ok := object.Key("mediaStoreStorageClass") ok.String(string(v.MediaStoreStorageClass)) } if v.NumRetries != 0 { ok := object.Key("numRetries") ok.Integer(v.NumRetries) } if v.RestartDelay != 0 { ok := object.Key("restartDelay") ok.Integer(v.RestartDelay) } return nil } func awsRestjson1_serializeDocumentHlsOutputSettings(v *types.HlsOutputSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.H265PackagingType) > 0 { ok := object.Key("h265PackagingType") ok.String(string(v.H265PackagingType)) } if v.HlsSettings != nil { ok := object.Key("hlsSettings") if err := awsRestjson1_serializeDocumentHlsSettings(v.HlsSettings, ok); err != nil { return err } } if v.NameModifier != nil { ok := object.Key("nameModifier") ok.String(*v.NameModifier) } if v.SegmentModifier != nil { ok := object.Key("segmentModifier") ok.String(*v.SegmentModifier) } return nil } func awsRestjson1_serializeDocumentHlsS3Settings(v *types.HlsS3Settings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.CannedAcl) > 0 { ok := object.Key("cannedAcl") ok.String(string(v.CannedAcl)) } return nil } func awsRestjson1_serializeDocumentHlsSettings(v *types.HlsSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AudioOnlyHlsSettings != nil { ok := object.Key("audioOnlyHlsSettings") if err := awsRestjson1_serializeDocumentAudioOnlyHlsSettings(v.AudioOnlyHlsSettings, ok); err != nil { return err } } if v.Fmp4HlsSettings != nil { ok := object.Key("fmp4HlsSettings") if err := awsRestjson1_serializeDocumentFmp4HlsSettings(v.Fmp4HlsSettings, ok); err != nil { return err } } if v.FrameCaptureHlsSettings != nil { ok := object.Key("frameCaptureHlsSettings") if err := awsRestjson1_serializeDocumentFrameCaptureHlsSettings(v.FrameCaptureHlsSettings, ok); err != nil { return err } } if v.StandardHlsSettings != nil { ok := object.Key("standardHlsSettings") if err := awsRestjson1_serializeDocumentStandardHlsSettings(v.StandardHlsSettings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentHlsTimedMetadataScheduleActionSettings(v *types.HlsTimedMetadataScheduleActionSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Id3 != nil { ok := object.Key("id3") ok.String(*v.Id3) } return nil } func awsRestjson1_serializeDocumentHlsWebdavSettings(v *types.HlsWebdavSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.ConnectionRetryInterval != 0 { ok := object.Key("connectionRetryInterval") ok.Integer(v.ConnectionRetryInterval) } if v.FilecacheDuration != 0 { ok := object.Key("filecacheDuration") ok.Integer(v.FilecacheDuration) } if len(v.HttpTransferMode) > 0 { ok := object.Key("httpTransferMode") ok.String(string(v.HttpTransferMode)) } if v.NumRetries != 0 { ok := object.Key("numRetries") ok.Integer(v.NumRetries) } if v.RestartDelay != 0 { ok := object.Key("restartDelay") ok.Integer(v.RestartDelay) } return nil } func awsRestjson1_serializeDocumentHtmlMotionGraphicsSettings(v *types.HtmlMotionGraphicsSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() return nil } func awsRestjson1_serializeDocumentImmediateModeScheduleActionStartSettings(v *types.ImmediateModeScheduleActionStartSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() return nil } func awsRestjson1_serializeDocumentInputAttachment(v *types.InputAttachment, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AutomaticInputFailoverSettings != nil { ok := object.Key("automaticInputFailoverSettings") if err := awsRestjson1_serializeDocumentAutomaticInputFailoverSettings(v.AutomaticInputFailoverSettings, ok); err != nil { return err } } if v.InputAttachmentName != nil { ok := object.Key("inputAttachmentName") ok.String(*v.InputAttachmentName) } if v.InputId != nil { ok := object.Key("inputId") ok.String(*v.InputId) } if v.InputSettings != nil { ok := object.Key("inputSettings") if err := awsRestjson1_serializeDocumentInputSettings(v.InputSettings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentInputChannelLevel(v *types.InputChannelLevel, value smithyjson.Value) error { object := value.Object() defer object.Close() { ok := object.Key("gain") ok.Integer(v.Gain) } { ok := object.Key("inputChannel") ok.Integer(v.InputChannel) } return nil } func awsRestjson1_serializeDocumentInputClippingSettings(v *types.InputClippingSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.InputTimecodeSource) > 0 { ok := object.Key("inputTimecodeSource") ok.String(string(v.InputTimecodeSource)) } if v.StartTimecode != nil { ok := object.Key("startTimecode") if err := awsRestjson1_serializeDocumentStartTimecode(v.StartTimecode, ok); err != nil { return err } } if v.StopTimecode != nil { ok := object.Key("stopTimecode") if err := awsRestjson1_serializeDocumentStopTimecode(v.StopTimecode, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentInputDestinationRequest(v *types.InputDestinationRequest, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.StreamName != nil { ok := object.Key("streamName") ok.String(*v.StreamName) } return nil } func awsRestjson1_serializeDocumentInputDeviceConfigurableSettings(v *types.InputDeviceConfigurableSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.ConfiguredInput) > 0 { ok := object.Key("configuredInput") ok.String(string(v.ConfiguredInput)) } if v.LatencyMs != 0 { ok := object.Key("latencyMs") ok.Integer(v.LatencyMs) } if v.MaxBitrate != 0 { ok := object.Key("maxBitrate") ok.Integer(v.MaxBitrate) } return nil } func awsRestjson1_serializeDocumentInputDeviceRequest(v *types.InputDeviceRequest, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Id != nil { ok := object.Key("id") ok.String(*v.Id) } return nil } func awsRestjson1_serializeDocumentInputDeviceSettings(v *types.InputDeviceSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Id != nil { ok := object.Key("id") ok.String(*v.Id) } return nil } func awsRestjson1_serializeDocumentInputLocation(v *types.InputLocation, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.PasswordParam != nil { ok := object.Key("passwordParam") ok.String(*v.PasswordParam) } if v.Uri != nil { ok := object.Key("uri") ok.String(*v.Uri) } if v.Username != nil { ok := object.Key("username") ok.String(*v.Username) } return nil } func awsRestjson1_serializeDocumentInputLossBehavior(v *types.InputLossBehavior, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.BlackFrameMsec != 0 { ok := object.Key("blackFrameMsec") ok.Integer(v.BlackFrameMsec) } if v.InputLossImageColor != nil { ok := object.Key("inputLossImageColor") ok.String(*v.InputLossImageColor) } if v.InputLossImageSlate != nil { ok := object.Key("inputLossImageSlate") if err := awsRestjson1_serializeDocumentInputLocation(v.InputLossImageSlate, ok); err != nil { return err } } if len(v.InputLossImageType) > 0 { ok := object.Key("inputLossImageType") ok.String(string(v.InputLossImageType)) } if v.RepeatFrameMsec != 0 { ok := object.Key("repeatFrameMsec") ok.Integer(v.RepeatFrameMsec) } return nil } func awsRestjson1_serializeDocumentInputLossFailoverSettings(v *types.InputLossFailoverSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.InputLossThresholdMsec != 0 { ok := object.Key("inputLossThresholdMsec") ok.Integer(v.InputLossThresholdMsec) } return nil } func awsRestjson1_serializeDocumentInputPrepareScheduleActionSettings(v *types.InputPrepareScheduleActionSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.InputAttachmentNameReference != nil { ok := object.Key("inputAttachmentNameReference") ok.String(*v.InputAttachmentNameReference) } if v.InputClippingSettings != nil { ok := object.Key("inputClippingSettings") if err := awsRestjson1_serializeDocumentInputClippingSettings(v.InputClippingSettings, ok); err != nil { return err } } if v.UrlPath != nil { ok := object.Key("urlPath") if err := awsRestjson1_serializeDocument__listOf__string(v.UrlPath, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentInputSettings(v *types.InputSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AudioSelectors != nil { ok := object.Key("audioSelectors") if err := awsRestjson1_serializeDocument__listOfAudioSelector(v.AudioSelectors, ok); err != nil { return err } } if v.CaptionSelectors != nil { ok := object.Key("captionSelectors") if err := awsRestjson1_serializeDocument__listOfCaptionSelector(v.CaptionSelectors, ok); err != nil { return err } } if len(v.DeblockFilter) > 0 { ok := object.Key("deblockFilter") ok.String(string(v.DeblockFilter)) } if len(v.DenoiseFilter) > 0 { ok := object.Key("denoiseFilter") ok.String(string(v.DenoiseFilter)) } if v.FilterStrength != 0 { ok := object.Key("filterStrength") ok.Integer(v.FilterStrength) } if len(v.InputFilter) > 0 { ok := object.Key("inputFilter") ok.String(string(v.InputFilter)) } if v.NetworkInputSettings != nil { ok := object.Key("networkInputSettings") if err := awsRestjson1_serializeDocumentNetworkInputSettings(v.NetworkInputSettings, ok); err != nil { return err } } if v.Scte35Pid != 0 { ok := object.Key("scte35Pid") ok.Integer(v.Scte35Pid) } if len(v.Smpte2038DataPreference) > 0 { ok := object.Key("smpte2038DataPreference") ok.String(string(v.Smpte2038DataPreference)) } if len(v.SourceEndBehavior) > 0 { ok := object.Key("sourceEndBehavior") ok.String(string(v.SourceEndBehavior)) } if v.VideoSelector != nil { ok := object.Key("videoSelector") if err := awsRestjson1_serializeDocumentVideoSelector(v.VideoSelector, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentInputSourceRequest(v *types.InputSourceRequest, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.PasswordParam != nil { ok := object.Key("passwordParam") ok.String(*v.PasswordParam) } if v.Url != nil { ok := object.Key("url") ok.String(*v.Url) } if v.Username != nil { ok := object.Key("username") ok.String(*v.Username) } return nil } func awsRestjson1_serializeDocumentInputSpecification(v *types.InputSpecification, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.Codec) > 0 { ok := object.Key("codec") ok.String(string(v.Codec)) } if len(v.MaximumBitrate) > 0 { ok := object.Key("maximumBitrate") ok.String(string(v.MaximumBitrate)) } if len(v.Resolution) > 0 { ok := object.Key("resolution") ok.String(string(v.Resolution)) } return nil } func awsRestjson1_serializeDocumentInputSwitchScheduleActionSettings(v *types.InputSwitchScheduleActionSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.InputAttachmentNameReference != nil { ok := object.Key("inputAttachmentNameReference") ok.String(*v.InputAttachmentNameReference) } if v.InputClippingSettings != nil { ok := object.Key("inputClippingSettings") if err := awsRestjson1_serializeDocumentInputClippingSettings(v.InputClippingSettings, ok); err != nil { return err } } if v.UrlPath != nil { ok := object.Key("urlPath") if err := awsRestjson1_serializeDocument__listOf__string(v.UrlPath, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentInputVpcRequest(v *types.InputVpcRequest, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.SecurityGroupIds != nil { ok := object.Key("securityGroupIds") if err := awsRestjson1_serializeDocument__listOf__string(v.SecurityGroupIds, ok); err != nil { return err } } if v.SubnetIds != nil { ok := object.Key("subnetIds") if err := awsRestjson1_serializeDocument__listOf__string(v.SubnetIds, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentInputWhitelistRuleCidr(v *types.InputWhitelistRuleCidr, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Cidr != nil { ok := object.Key("cidr") ok.String(*v.Cidr) } return nil } func awsRestjson1_serializeDocumentKeyProviderSettings(v *types.KeyProviderSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.StaticKeySettings != nil { ok := object.Key("staticKeySettings") if err := awsRestjson1_serializeDocumentStaticKeySettings(v.StaticKeySettings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentM2tsSettings(v *types.M2tsSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.AbsentInputAudioBehavior) > 0 { ok := object.Key("absentInputAudioBehavior") ok.String(string(v.AbsentInputAudioBehavior)) } if len(v.Arib) > 0 { ok := object.Key("arib") ok.String(string(v.Arib)) } if v.AribCaptionsPid != nil { ok := object.Key("aribCaptionsPid") ok.String(*v.AribCaptionsPid) } if len(v.AribCaptionsPidControl) > 0 { ok := object.Key("aribCaptionsPidControl") ok.String(string(v.AribCaptionsPidControl)) } if len(v.AudioBufferModel) > 0 { ok := object.Key("audioBufferModel") ok.String(string(v.AudioBufferModel)) } if v.AudioFramesPerPes != 0 { ok := object.Key("audioFramesPerPes") ok.Integer(v.AudioFramesPerPes) } if v.AudioPids != nil { ok := object.Key("audioPids") ok.String(*v.AudioPids) } if len(v.AudioStreamType) > 0 { ok := object.Key("audioStreamType") ok.String(string(v.AudioStreamType)) } if v.Bitrate != 0 { ok := object.Key("bitrate") ok.Integer(v.Bitrate) } if len(v.BufferModel) > 0 { ok := object.Key("bufferModel") ok.String(string(v.BufferModel)) } if len(v.CcDescriptor) > 0 { ok := object.Key("ccDescriptor") ok.String(string(v.CcDescriptor)) } if v.DvbNitSettings != nil { ok := object.Key("dvbNitSettings") if err := awsRestjson1_serializeDocumentDvbNitSettings(v.DvbNitSettings, ok); err != nil { return err } } if v.DvbSdtSettings != nil { ok := object.Key("dvbSdtSettings") if err := awsRestjson1_serializeDocumentDvbSdtSettings(v.DvbSdtSettings, ok); err != nil { return err } } if v.DvbSubPids != nil { ok := object.Key("dvbSubPids") ok.String(*v.DvbSubPids) } if v.DvbTdtSettings != nil { ok := object.Key("dvbTdtSettings") if err := awsRestjson1_serializeDocumentDvbTdtSettings(v.DvbTdtSettings, ok); err != nil { return err } } if v.DvbTeletextPid != nil { ok := object.Key("dvbTeletextPid") ok.String(*v.DvbTeletextPid) } if len(v.Ebif) > 0 { ok := object.Key("ebif") ok.String(string(v.Ebif)) } if len(v.EbpAudioInterval) > 0 { ok := object.Key("ebpAudioInterval") ok.String(string(v.EbpAudioInterval)) } if v.EbpLookaheadMs != 0 { ok := object.Key("ebpLookaheadMs") ok.Integer(v.EbpLookaheadMs) } if len(v.EbpPlacement) > 0 { ok := object.Key("ebpPlacement") ok.String(string(v.EbpPlacement)) } if v.EcmPid != nil { ok := object.Key("ecmPid") ok.String(*v.EcmPid) } if len(v.EsRateInPes) > 0 { ok := object.Key("esRateInPes") ok.String(string(v.EsRateInPes)) } if v.EtvPlatformPid != nil { ok := object.Key("etvPlatformPid") ok.String(*v.EtvPlatformPid) } if v.EtvSignalPid != nil { ok := object.Key("etvSignalPid") ok.String(*v.EtvSignalPid) } if v.FragmentTime != 0 { ok := object.Key("fragmentTime") switch { case math.IsNaN(v.FragmentTime): ok.String("NaN") case math.IsInf(v.FragmentTime, 1): ok.String("Infinity") case math.IsInf(v.FragmentTime, -1): ok.String("-Infinity") default: ok.Double(v.FragmentTime) } } if len(v.Klv) > 0 { ok := object.Key("klv") ok.String(string(v.Klv)) } if v.KlvDataPids != nil { ok := object.Key("klvDataPids") ok.String(*v.KlvDataPids) } if len(v.NielsenId3Behavior) > 0 { ok := object.Key("nielsenId3Behavior") ok.String(string(v.NielsenId3Behavior)) } if v.NullPacketBitrate != 0 { ok := object.Key("nullPacketBitrate") switch { case math.IsNaN(v.NullPacketBitrate): ok.String("NaN") case math.IsInf(v.NullPacketBitrate, 1): ok.String("Infinity") case math.IsInf(v.NullPacketBitrate, -1): ok.String("-Infinity") default: ok.Double(v.NullPacketBitrate) } } if v.PatInterval != 0 { ok := object.Key("patInterval") ok.Integer(v.PatInterval) } if len(v.PcrControl) > 0 { ok := object.Key("pcrControl") ok.String(string(v.PcrControl)) } if v.PcrPeriod != 0 { ok := object.Key("pcrPeriod") ok.Integer(v.PcrPeriod) } if v.PcrPid != nil { ok := object.Key("pcrPid") ok.String(*v.PcrPid) } if v.PmtInterval != 0 { ok := object.Key("pmtInterval") ok.Integer(v.PmtInterval) } if v.PmtPid != nil { ok := object.Key("pmtPid") ok.String(*v.PmtPid) } if v.ProgramNum != 0 { ok := object.Key("programNum") ok.Integer(v.ProgramNum) } if len(v.RateMode) > 0 { ok := object.Key("rateMode") ok.String(string(v.RateMode)) } if v.Scte27Pids != nil { ok := object.Key("scte27Pids") ok.String(*v.Scte27Pids) } if len(v.Scte35Control) > 0 { ok := object.Key("scte35Control") ok.String(string(v.Scte35Control)) } if v.Scte35Pid != nil { ok := object.Key("scte35Pid") ok.String(*v.Scte35Pid) } if v.Scte35PrerollPullupMilliseconds != 0 { ok := object.Key("scte35PrerollPullupMilliseconds") switch { case math.IsNaN(v.Scte35PrerollPullupMilliseconds): ok.String("NaN") case math.IsInf(v.Scte35PrerollPullupMilliseconds, 1): ok.String("Infinity") case math.IsInf(v.Scte35PrerollPullupMilliseconds, -1): ok.String("-Infinity") default: ok.Double(v.Scte35PrerollPullupMilliseconds) } } if len(v.SegmentationMarkers) > 0 { ok := object.Key("segmentationMarkers") ok.String(string(v.SegmentationMarkers)) } if len(v.SegmentationStyle) > 0 { ok := object.Key("segmentationStyle") ok.String(string(v.SegmentationStyle)) } if v.SegmentationTime != 0 { ok := object.Key("segmentationTime") switch { case math.IsNaN(v.SegmentationTime): ok.String("NaN") case math.IsInf(v.SegmentationTime, 1): ok.String("Infinity") case math.IsInf(v.SegmentationTime, -1): ok.String("-Infinity") default: ok.Double(v.SegmentationTime) } } if len(v.TimedMetadataBehavior) > 0 { ok := object.Key("timedMetadataBehavior") ok.String(string(v.TimedMetadataBehavior)) } if v.TimedMetadataPid != nil { ok := object.Key("timedMetadataPid") ok.String(*v.TimedMetadataPid) } if v.TransportStreamId != 0 { ok := object.Key("transportStreamId") ok.Integer(v.TransportStreamId) } if v.VideoPid != nil { ok := object.Key("videoPid") ok.String(*v.VideoPid) } return nil } func awsRestjson1_serializeDocumentM3u8Settings(v *types.M3u8Settings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AudioFramesPerPes != 0 { ok := object.Key("audioFramesPerPes") ok.Integer(v.AudioFramesPerPes) } if v.AudioPids != nil { ok := object.Key("audioPids") ok.String(*v.AudioPids) } if v.EcmPid != nil { ok := object.Key("ecmPid") ok.String(*v.EcmPid) } if len(v.NielsenId3Behavior) > 0 { ok := object.Key("nielsenId3Behavior") ok.String(string(v.NielsenId3Behavior)) } if v.PatInterval != 0 { ok := object.Key("patInterval") ok.Integer(v.PatInterval) } if len(v.PcrControl) > 0 { ok := object.Key("pcrControl") ok.String(string(v.PcrControl)) } if v.PcrPeriod != 0 { ok := object.Key("pcrPeriod") ok.Integer(v.PcrPeriod) } if v.PcrPid != nil { ok := object.Key("pcrPid") ok.String(*v.PcrPid) } if v.PmtInterval != 0 { ok := object.Key("pmtInterval") ok.Integer(v.PmtInterval) } if v.PmtPid != nil { ok := object.Key("pmtPid") ok.String(*v.PmtPid) } if v.ProgramNum != 0 { ok := object.Key("programNum") ok.Integer(v.ProgramNum) } if len(v.Scte35Behavior) > 0 { ok := object.Key("scte35Behavior") ok.String(string(v.Scte35Behavior)) } if v.Scte35Pid != nil { ok := object.Key("scte35Pid") ok.String(*v.Scte35Pid) } if len(v.TimedMetadataBehavior) > 0 { ok := object.Key("timedMetadataBehavior") ok.String(string(v.TimedMetadataBehavior)) } if v.TimedMetadataPid != nil { ok := object.Key("timedMetadataPid") ok.String(*v.TimedMetadataPid) } if v.TransportStreamId != 0 { ok := object.Key("transportStreamId") ok.Integer(v.TransportStreamId) } if v.VideoPid != nil { ok := object.Key("videoPid") ok.String(*v.VideoPid) } return nil } func awsRestjson1_serializeDocumentMaintenanceCreateSettings(v *types.MaintenanceCreateSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.MaintenanceDay) > 0 { ok := object.Key("maintenanceDay") ok.String(string(v.MaintenanceDay)) } if v.MaintenanceStartTime != nil { ok := object.Key("maintenanceStartTime") ok.String(*v.MaintenanceStartTime) } return nil } func awsRestjson1_serializeDocumentMaintenanceUpdateSettings(v *types.MaintenanceUpdateSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.MaintenanceDay) > 0 { ok := object.Key("maintenanceDay") ok.String(string(v.MaintenanceDay)) } if v.MaintenanceScheduledDate != nil { ok := object.Key("maintenanceScheduledDate") ok.String(*v.MaintenanceScheduledDate) } if v.MaintenanceStartTime != nil { ok := object.Key("maintenanceStartTime") ok.String(*v.MaintenanceStartTime) } return nil } func awsRestjson1_serializeDocumentMediaConnectFlowRequest(v *types.MediaConnectFlowRequest, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.FlowArn != nil { ok := object.Key("flowArn") ok.String(*v.FlowArn) } return nil } func awsRestjson1_serializeDocumentMediaPackageGroupSettings(v *types.MediaPackageGroupSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Destination != nil { ok := object.Key("destination") if err := awsRestjson1_serializeDocumentOutputLocationRef(v.Destination, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentMediaPackageOutputDestinationSettings(v *types.MediaPackageOutputDestinationSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.ChannelId != nil { ok := object.Key("channelId") ok.String(*v.ChannelId) } return nil } func awsRestjson1_serializeDocumentMediaPackageOutputSettings(v *types.MediaPackageOutputSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() return nil } func awsRestjson1_serializeDocumentMotionGraphicsActivateScheduleActionSettings(v *types.MotionGraphicsActivateScheduleActionSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Duration != 0 { ok := object.Key("duration") ok.Long(v.Duration) } if v.PasswordParam != nil { ok := object.Key("passwordParam") ok.String(*v.PasswordParam) } if v.Url != nil { ok := object.Key("url") ok.String(*v.Url) } if v.Username != nil { ok := object.Key("username") ok.String(*v.Username) } return nil } func awsRestjson1_serializeDocumentMotionGraphicsConfiguration(v *types.MotionGraphicsConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.MotionGraphicsInsertion) > 0 { ok := object.Key("motionGraphicsInsertion") ok.String(string(v.MotionGraphicsInsertion)) } if v.MotionGraphicsSettings != nil { ok := object.Key("motionGraphicsSettings") if err := awsRestjson1_serializeDocumentMotionGraphicsSettings(v.MotionGraphicsSettings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentMotionGraphicsDeactivateScheduleActionSettings(v *types.MotionGraphicsDeactivateScheduleActionSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() return nil } func awsRestjson1_serializeDocumentMotionGraphicsSettings(v *types.MotionGraphicsSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.HtmlMotionGraphicsSettings != nil { ok := object.Key("htmlMotionGraphicsSettings") if err := awsRestjson1_serializeDocumentHtmlMotionGraphicsSettings(v.HtmlMotionGraphicsSettings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentMp2Settings(v *types.Mp2Settings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Bitrate != 0 { ok := object.Key("bitrate") switch { case math.IsNaN(v.Bitrate): ok.String("NaN") case math.IsInf(v.Bitrate, 1): ok.String("Infinity") case math.IsInf(v.Bitrate, -1): ok.String("-Infinity") default: ok.Double(v.Bitrate) } } if len(v.CodingMode) > 0 { ok := object.Key("codingMode") ok.String(string(v.CodingMode)) } if v.SampleRate != 0 { ok := object.Key("sampleRate") switch { case math.IsNaN(v.SampleRate): ok.String("NaN") case math.IsInf(v.SampleRate, 1): ok.String("Infinity") case math.IsInf(v.SampleRate, -1): ok.String("-Infinity") default: ok.Double(v.SampleRate) } } return nil } func awsRestjson1_serializeDocumentMpeg2FilterSettings(v *types.Mpeg2FilterSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.TemporalFilterSettings != nil { ok := object.Key("temporalFilterSettings") if err := awsRestjson1_serializeDocumentTemporalFilterSettings(v.TemporalFilterSettings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentMpeg2Settings(v *types.Mpeg2Settings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.AdaptiveQuantization) > 0 { ok := object.Key("adaptiveQuantization") ok.String(string(v.AdaptiveQuantization)) } if len(v.AfdSignaling) > 0 { ok := object.Key("afdSignaling") ok.String(string(v.AfdSignaling)) } if len(v.ColorMetadata) > 0 { ok := object.Key("colorMetadata") ok.String(string(v.ColorMetadata)) } if len(v.ColorSpace) > 0 { ok := object.Key("colorSpace") ok.String(string(v.ColorSpace)) } if len(v.DisplayAspectRatio) > 0 { ok := object.Key("displayAspectRatio") ok.String(string(v.DisplayAspectRatio)) } if v.FilterSettings != nil { ok := object.Key("filterSettings") if err := awsRestjson1_serializeDocumentMpeg2FilterSettings(v.FilterSettings, ok); err != nil { return err } } if len(v.FixedAfd) > 0 { ok := object.Key("fixedAfd") ok.String(string(v.FixedAfd)) } { ok := object.Key("framerateDenominator") ok.Integer(v.FramerateDenominator) } { ok := object.Key("framerateNumerator") ok.Integer(v.FramerateNumerator) } if v.GopClosedCadence != 0 { ok := object.Key("gopClosedCadence") ok.Integer(v.GopClosedCadence) } if v.GopNumBFrames != 0 { ok := object.Key("gopNumBFrames") ok.Integer(v.GopNumBFrames) } if v.GopSize != 0 { ok := object.Key("gopSize") switch { case math.IsNaN(v.GopSize): ok.String("NaN") case math.IsInf(v.GopSize, 1): ok.String("Infinity") case math.IsInf(v.GopSize, -1): ok.String("-Infinity") default: ok.Double(v.GopSize) } } if len(v.GopSizeUnits) > 0 { ok := object.Key("gopSizeUnits") ok.String(string(v.GopSizeUnits)) } if len(v.ScanType) > 0 { ok := object.Key("scanType") ok.String(string(v.ScanType)) } if len(v.SubgopLength) > 0 { ok := object.Key("subgopLength") ok.String(string(v.SubgopLength)) } if v.TimecodeBurninSettings != nil { ok := object.Key("timecodeBurninSettings") if err := awsRestjson1_serializeDocumentTimecodeBurninSettings(v.TimecodeBurninSettings, ok); err != nil { return err } } if len(v.TimecodeInsertion) > 0 { ok := object.Key("timecodeInsertion") ok.String(string(v.TimecodeInsertion)) } return nil } func awsRestjson1_serializeDocumentMsSmoothGroupSettings(v *types.MsSmoothGroupSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AcquisitionPointId != nil { ok := object.Key("acquisitionPointId") ok.String(*v.AcquisitionPointId) } if len(v.AudioOnlyTimecodeControl) > 0 { ok := object.Key("audioOnlyTimecodeControl") ok.String(string(v.AudioOnlyTimecodeControl)) } if len(v.CertificateMode) > 0 { ok := object.Key("certificateMode") ok.String(string(v.CertificateMode)) } if v.ConnectionRetryInterval != 0 { ok := object.Key("connectionRetryInterval") ok.Integer(v.ConnectionRetryInterval) } if v.Destination != nil { ok := object.Key("destination") if err := awsRestjson1_serializeDocumentOutputLocationRef(v.Destination, ok); err != nil { return err } } if v.EventId != nil { ok := object.Key("eventId") ok.String(*v.EventId) } if len(v.EventIdMode) > 0 { ok := object.Key("eventIdMode") ok.String(string(v.EventIdMode)) } if len(v.EventStopBehavior) > 0 { ok := object.Key("eventStopBehavior") ok.String(string(v.EventStopBehavior)) } if v.FilecacheDuration != 0 { ok := object.Key("filecacheDuration") ok.Integer(v.FilecacheDuration) } if v.FragmentLength != 0 { ok := object.Key("fragmentLength") ok.Integer(v.FragmentLength) } if len(v.InputLossAction) > 0 { ok := object.Key("inputLossAction") ok.String(string(v.InputLossAction)) } if v.NumRetries != 0 { ok := object.Key("numRetries") ok.Integer(v.NumRetries) } if v.RestartDelay != 0 { ok := object.Key("restartDelay") ok.Integer(v.RestartDelay) } if len(v.SegmentationMode) > 0 { ok := object.Key("segmentationMode") ok.String(string(v.SegmentationMode)) } if v.SendDelayMs != 0 { ok := object.Key("sendDelayMs") ok.Integer(v.SendDelayMs) } if len(v.SparseTrackType) > 0 { ok := object.Key("sparseTrackType") ok.String(string(v.SparseTrackType)) } if len(v.StreamManifestBehavior) > 0 { ok := object.Key("streamManifestBehavior") ok.String(string(v.StreamManifestBehavior)) } if v.TimestampOffset != nil { ok := object.Key("timestampOffset") ok.String(*v.TimestampOffset) } if len(v.TimestampOffsetMode) > 0 { ok := object.Key("timestampOffsetMode") ok.String(string(v.TimestampOffsetMode)) } return nil } func awsRestjson1_serializeDocumentMsSmoothOutputSettings(v *types.MsSmoothOutputSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.H265PackagingType) > 0 { ok := object.Key("h265PackagingType") ok.String(string(v.H265PackagingType)) } if v.NameModifier != nil { ok := object.Key("nameModifier") ok.String(*v.NameModifier) } return nil } func awsRestjson1_serializeDocumentMultiplexGroupSettings(v *types.MultiplexGroupSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() return nil } func awsRestjson1_serializeDocumentMultiplexOutputSettings(v *types.MultiplexOutputSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Destination != nil { ok := object.Key("destination") if err := awsRestjson1_serializeDocumentOutputLocationRef(v.Destination, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentMultiplexProgramChannelDestinationSettings(v *types.MultiplexProgramChannelDestinationSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.MultiplexId != nil { ok := object.Key("multiplexId") ok.String(*v.MultiplexId) } if v.ProgramName != nil { ok := object.Key("programName") ok.String(*v.ProgramName) } return nil } func awsRestjson1_serializeDocumentMultiplexProgramServiceDescriptor(v *types.MultiplexProgramServiceDescriptor, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.ProviderName != nil { ok := object.Key("providerName") ok.String(*v.ProviderName) } if v.ServiceName != nil { ok := object.Key("serviceName") ok.String(*v.ServiceName) } return nil } func awsRestjson1_serializeDocumentMultiplexProgramSettings(v *types.MultiplexProgramSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.PreferredChannelPipeline) > 0 { ok := object.Key("preferredChannelPipeline") ok.String(string(v.PreferredChannelPipeline)) } { ok := object.Key("programNumber") ok.Integer(v.ProgramNumber) } if v.ServiceDescriptor != nil { ok := object.Key("serviceDescriptor") if err := awsRestjson1_serializeDocumentMultiplexProgramServiceDescriptor(v.ServiceDescriptor, ok); err != nil { return err } } if v.VideoSettings != nil { ok := object.Key("videoSettings") if err := awsRestjson1_serializeDocumentMultiplexVideoSettings(v.VideoSettings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentMultiplexSettings(v *types.MultiplexSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.MaximumVideoBufferDelayMilliseconds != 0 { ok := object.Key("maximumVideoBufferDelayMilliseconds") ok.Integer(v.MaximumVideoBufferDelayMilliseconds) } { ok := object.Key("transportStreamBitrate") ok.Integer(v.TransportStreamBitrate) } { ok := object.Key("transportStreamId") ok.Integer(v.TransportStreamId) } if v.TransportStreamReservedBitrate != 0 { ok := object.Key("transportStreamReservedBitrate") ok.Integer(v.TransportStreamReservedBitrate) } return nil } func awsRestjson1_serializeDocumentMultiplexStatmuxVideoSettings(v *types.MultiplexStatmuxVideoSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.MaximumBitrate != 0 { ok := object.Key("maximumBitrate") ok.Integer(v.MaximumBitrate) } if v.MinimumBitrate != 0 { ok := object.Key("minimumBitrate") ok.Integer(v.MinimumBitrate) } if v.Priority != 0 { ok := object.Key("priority") ok.Integer(v.Priority) } return nil } func awsRestjson1_serializeDocumentMultiplexVideoSettings(v *types.MultiplexVideoSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.ConstantBitrate != 0 { ok := object.Key("constantBitrate") ok.Integer(v.ConstantBitrate) } if v.StatmuxSettings != nil { ok := object.Key("statmuxSettings") if err := awsRestjson1_serializeDocumentMultiplexStatmuxVideoSettings(v.StatmuxSettings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentNetworkInputSettings(v *types.NetworkInputSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.HlsInputSettings != nil { ok := object.Key("hlsInputSettings") if err := awsRestjson1_serializeDocumentHlsInputSettings(v.HlsInputSettings, ok); err != nil { return err } } if len(v.ServerValidation) > 0 { ok := object.Key("serverValidation") ok.String(string(v.ServerValidation)) } return nil } func awsRestjson1_serializeDocumentNielsenCBET(v *types.NielsenCBET, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.CbetCheckDigitString != nil { ok := object.Key("cbetCheckDigitString") ok.String(*v.CbetCheckDigitString) } if len(v.CbetStepaside) > 0 { ok := object.Key("cbetStepaside") ok.String(string(v.CbetStepaside)) } if v.Csid != nil { ok := object.Key("csid") ok.String(*v.Csid) } return nil } func awsRestjson1_serializeDocumentNielsenConfiguration(v *types.NielsenConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.DistributorId != nil { ok := object.Key("distributorId") ok.String(*v.DistributorId) } if len(v.NielsenPcmToId3Tagging) > 0 { ok := object.Key("nielsenPcmToId3Tagging") ok.String(string(v.NielsenPcmToId3Tagging)) } return nil } func awsRestjson1_serializeDocumentNielsenNaesIiNw(v *types.NielsenNaesIiNw, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.CheckDigitString != nil { ok := object.Key("checkDigitString") ok.String(*v.CheckDigitString) } { ok := object.Key("sid") switch { case math.IsNaN(v.Sid): ok.String("NaN") case math.IsInf(v.Sid, 1): ok.String("Infinity") case math.IsInf(v.Sid, -1): ok.String("-Infinity") default: ok.Double(v.Sid) } } if len(v.Timezone) > 0 { ok := object.Key("timezone") ok.String(string(v.Timezone)) } return nil } func awsRestjson1_serializeDocumentNielsenWatermarksSettings(v *types.NielsenWatermarksSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.NielsenCbetSettings != nil { ok := object.Key("nielsenCbetSettings") if err := awsRestjson1_serializeDocumentNielsenCBET(v.NielsenCbetSettings, ok); err != nil { return err } } if len(v.NielsenDistributionType) > 0 { ok := object.Key("nielsenDistributionType") ok.String(string(v.NielsenDistributionType)) } if v.NielsenNaesIiNwSettings != nil { ok := object.Key("nielsenNaesIiNwSettings") if err := awsRestjson1_serializeDocumentNielsenNaesIiNw(v.NielsenNaesIiNwSettings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentOutput(v *types.Output, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AudioDescriptionNames != nil { ok := object.Key("audioDescriptionNames") if err := awsRestjson1_serializeDocument__listOf__string(v.AudioDescriptionNames, ok); err != nil { return err } } if v.CaptionDescriptionNames != nil { ok := object.Key("captionDescriptionNames") if err := awsRestjson1_serializeDocument__listOf__string(v.CaptionDescriptionNames, ok); err != nil { return err } } if v.OutputName != nil { ok := object.Key("outputName") ok.String(*v.OutputName) } if v.OutputSettings != nil { ok := object.Key("outputSettings") if err := awsRestjson1_serializeDocumentOutputSettings(v.OutputSettings, ok); err != nil { return err } } if v.VideoDescriptionName != nil { ok := object.Key("videoDescriptionName") ok.String(*v.VideoDescriptionName) } return nil } func awsRestjson1_serializeDocumentOutputDestination(v *types.OutputDestination, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Id != nil { ok := object.Key("id") ok.String(*v.Id) } if v.MediaPackageSettings != nil { ok := object.Key("mediaPackageSettings") if err := awsRestjson1_serializeDocument__listOfMediaPackageOutputDestinationSettings(v.MediaPackageSettings, ok); err != nil { return err } } if v.MultiplexSettings != nil { ok := object.Key("multiplexSettings") if err := awsRestjson1_serializeDocumentMultiplexProgramChannelDestinationSettings(v.MultiplexSettings, ok); err != nil { return err } } if v.Settings != nil { ok := object.Key("settings") if err := awsRestjson1_serializeDocument__listOfOutputDestinationSettings(v.Settings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentOutputDestinationSettings(v *types.OutputDestinationSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.PasswordParam != nil { ok := object.Key("passwordParam") ok.String(*v.PasswordParam) } if v.StreamName != nil { ok := object.Key("streamName") ok.String(*v.StreamName) } if v.Url != nil { ok := object.Key("url") ok.String(*v.Url) } if v.Username != nil { ok := object.Key("username") ok.String(*v.Username) } return nil } func awsRestjson1_serializeDocumentOutputGroup(v *types.OutputGroup, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Name != nil { ok := object.Key("name") ok.String(*v.Name) } if v.OutputGroupSettings != nil { ok := object.Key("outputGroupSettings") if err := awsRestjson1_serializeDocumentOutputGroupSettings(v.OutputGroupSettings, ok); err != nil { return err } } if v.Outputs != nil { ok := object.Key("outputs") if err := awsRestjson1_serializeDocument__listOfOutput(v.Outputs, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentOutputGroupSettings(v *types.OutputGroupSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.ArchiveGroupSettings != nil { ok := object.Key("archiveGroupSettings") if err := awsRestjson1_serializeDocumentArchiveGroupSettings(v.ArchiveGroupSettings, ok); err != nil { return err } } if v.FrameCaptureGroupSettings != nil { ok := object.Key("frameCaptureGroupSettings") if err := awsRestjson1_serializeDocumentFrameCaptureGroupSettings(v.FrameCaptureGroupSettings, ok); err != nil { return err } } if v.HlsGroupSettings != nil { ok := object.Key("hlsGroupSettings") if err := awsRestjson1_serializeDocumentHlsGroupSettings(v.HlsGroupSettings, ok); err != nil { return err } } if v.MediaPackageGroupSettings != nil { ok := object.Key("mediaPackageGroupSettings") if err := awsRestjson1_serializeDocumentMediaPackageGroupSettings(v.MediaPackageGroupSettings, ok); err != nil { return err } } if v.MsSmoothGroupSettings != nil { ok := object.Key("msSmoothGroupSettings") if err := awsRestjson1_serializeDocumentMsSmoothGroupSettings(v.MsSmoothGroupSettings, ok); err != nil { return err } } if v.MultiplexGroupSettings != nil { ok := object.Key("multiplexGroupSettings") if err := awsRestjson1_serializeDocumentMultiplexGroupSettings(v.MultiplexGroupSettings, ok); err != nil { return err } } if v.RtmpGroupSettings != nil { ok := object.Key("rtmpGroupSettings") if err := awsRestjson1_serializeDocumentRtmpGroupSettings(v.RtmpGroupSettings, ok); err != nil { return err } } if v.UdpGroupSettings != nil { ok := object.Key("udpGroupSettings") if err := awsRestjson1_serializeDocumentUdpGroupSettings(v.UdpGroupSettings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentOutputLocationRef(v *types.OutputLocationRef, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.DestinationRefId != nil { ok := object.Key("destinationRefId") ok.String(*v.DestinationRefId) } return nil } func awsRestjson1_serializeDocumentOutputSettings(v *types.OutputSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.ArchiveOutputSettings != nil { ok := object.Key("archiveOutputSettings") if err := awsRestjson1_serializeDocumentArchiveOutputSettings(v.ArchiveOutputSettings, ok); err != nil { return err } } if v.FrameCaptureOutputSettings != nil { ok := object.Key("frameCaptureOutputSettings") if err := awsRestjson1_serializeDocumentFrameCaptureOutputSettings(v.FrameCaptureOutputSettings, ok); err != nil { return err } } if v.HlsOutputSettings != nil { ok := object.Key("hlsOutputSettings") if err := awsRestjson1_serializeDocumentHlsOutputSettings(v.HlsOutputSettings, ok); err != nil { return err } } if v.MediaPackageOutputSettings != nil { ok := object.Key("mediaPackageOutputSettings") if err := awsRestjson1_serializeDocumentMediaPackageOutputSettings(v.MediaPackageOutputSettings, ok); err != nil { return err } } if v.MsSmoothOutputSettings != nil { ok := object.Key("msSmoothOutputSettings") if err := awsRestjson1_serializeDocumentMsSmoothOutputSettings(v.MsSmoothOutputSettings, ok); err != nil { return err } } if v.MultiplexOutputSettings != nil { ok := object.Key("multiplexOutputSettings") if err := awsRestjson1_serializeDocumentMultiplexOutputSettings(v.MultiplexOutputSettings, ok); err != nil { return err } } if v.RtmpOutputSettings != nil { ok := object.Key("rtmpOutputSettings") if err := awsRestjson1_serializeDocumentRtmpOutputSettings(v.RtmpOutputSettings, ok); err != nil { return err } } if v.UdpOutputSettings != nil { ok := object.Key("udpOutputSettings") if err := awsRestjson1_serializeDocumentUdpOutputSettings(v.UdpOutputSettings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentPassThroughSettings(v *types.PassThroughSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() return nil } func awsRestjson1_serializeDocumentPauseStateScheduleActionSettings(v *types.PauseStateScheduleActionSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Pipelines != nil { ok := object.Key("pipelines") if err := awsRestjson1_serializeDocument__listOfPipelinePauseStateSettings(v.Pipelines, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentPipelinePauseStateSettings(v *types.PipelinePauseStateSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.PipelineId) > 0 { ok := object.Key("pipelineId") ok.String(string(v.PipelineId)) } return nil } func awsRestjson1_serializeDocumentRawSettings(v *types.RawSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() return nil } func awsRestjson1_serializeDocumentRec601Settings(v *types.Rec601Settings, value smithyjson.Value) error { object := value.Object() defer object.Close() return nil } func awsRestjson1_serializeDocumentRec709Settings(v *types.Rec709Settings, value smithyjson.Value) error { object := value.Object() defer object.Close() return nil } func awsRestjson1_serializeDocumentRemixSettings(v *types.RemixSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.ChannelMappings != nil { ok := object.Key("channelMappings") if err := awsRestjson1_serializeDocument__listOfAudioChannelMapping(v.ChannelMappings, ok); err != nil { return err } } if v.ChannelsIn != 0 { ok := object.Key("channelsIn") ok.Integer(v.ChannelsIn) } if v.ChannelsOut != 0 { ok := object.Key("channelsOut") ok.Integer(v.ChannelsOut) } return nil } func awsRestjson1_serializeDocumentRenewalSettings(v *types.RenewalSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.AutomaticRenewal) > 0 { ok := object.Key("automaticRenewal") ok.String(string(v.AutomaticRenewal)) } if v.RenewalCount != 0 { ok := object.Key("renewalCount") ok.Integer(v.RenewalCount) } return nil } func awsRestjson1_serializeDocumentRtmpCaptionInfoDestinationSettings(v *types.RtmpCaptionInfoDestinationSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() return nil } func awsRestjson1_serializeDocumentRtmpGroupSettings(v *types.RtmpGroupSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AdMarkers != nil { ok := object.Key("adMarkers") if err := awsRestjson1_serializeDocument__listOfRtmpAdMarkers(v.AdMarkers, ok); err != nil { return err } } if len(v.AuthenticationScheme) > 0 { ok := object.Key("authenticationScheme") ok.String(string(v.AuthenticationScheme)) } if len(v.CacheFullBehavior) > 0 { ok := object.Key("cacheFullBehavior") ok.String(string(v.CacheFullBehavior)) } if v.CacheLength != 0 { ok := object.Key("cacheLength") ok.Integer(v.CacheLength) } if len(v.CaptionData) > 0 { ok := object.Key("captionData") ok.String(string(v.CaptionData)) } if len(v.InputLossAction) > 0 { ok := object.Key("inputLossAction") ok.String(string(v.InputLossAction)) } if v.RestartDelay != 0 { ok := object.Key("restartDelay") ok.Integer(v.RestartDelay) } return nil } func awsRestjson1_serializeDocumentRtmpOutputSettings(v *types.RtmpOutputSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.CertificateMode) > 0 { ok := object.Key("certificateMode") ok.String(string(v.CertificateMode)) } if v.ConnectionRetryInterval != 0 { ok := object.Key("connectionRetryInterval") ok.Integer(v.ConnectionRetryInterval) } if v.Destination != nil { ok := object.Key("destination") if err := awsRestjson1_serializeDocumentOutputLocationRef(v.Destination, ok); err != nil { return err } } if v.NumRetries != 0 { ok := object.Key("numRetries") ok.Integer(v.NumRetries) } return nil } func awsRestjson1_serializeDocumentScheduleAction(v *types.ScheduleAction, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.ActionName != nil { ok := object.Key("actionName") ok.String(*v.ActionName) } if v.ScheduleActionSettings != nil { ok := object.Key("scheduleActionSettings") if err := awsRestjson1_serializeDocumentScheduleActionSettings(v.ScheduleActionSettings, ok); err != nil { return err } } if v.ScheduleActionStartSettings != nil { ok := object.Key("scheduleActionStartSettings") if err := awsRestjson1_serializeDocumentScheduleActionStartSettings(v.ScheduleActionStartSettings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentScheduleActionSettings(v *types.ScheduleActionSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.HlsId3SegmentTaggingSettings != nil { ok := object.Key("hlsId3SegmentTaggingSettings") if err := awsRestjson1_serializeDocumentHlsId3SegmentTaggingScheduleActionSettings(v.HlsId3SegmentTaggingSettings, ok); err != nil { return err } } if v.HlsTimedMetadataSettings != nil { ok := object.Key("hlsTimedMetadataSettings") if err := awsRestjson1_serializeDocumentHlsTimedMetadataScheduleActionSettings(v.HlsTimedMetadataSettings, ok); err != nil { return err } } if v.InputPrepareSettings != nil { ok := object.Key("inputPrepareSettings") if err := awsRestjson1_serializeDocumentInputPrepareScheduleActionSettings(v.InputPrepareSettings, ok); err != nil { return err } } if v.InputSwitchSettings != nil { ok := object.Key("inputSwitchSettings") if err := awsRestjson1_serializeDocumentInputSwitchScheduleActionSettings(v.InputSwitchSettings, ok); err != nil { return err } } if v.MotionGraphicsImageActivateSettings != nil { ok := object.Key("motionGraphicsImageActivateSettings") if err := awsRestjson1_serializeDocumentMotionGraphicsActivateScheduleActionSettings(v.MotionGraphicsImageActivateSettings, ok); err != nil { return err } } if v.MotionGraphicsImageDeactivateSettings != nil { ok := object.Key("motionGraphicsImageDeactivateSettings") if err := awsRestjson1_serializeDocumentMotionGraphicsDeactivateScheduleActionSettings(v.MotionGraphicsImageDeactivateSettings, ok); err != nil { return err } } if v.PauseStateSettings != nil { ok := object.Key("pauseStateSettings") if err := awsRestjson1_serializeDocumentPauseStateScheduleActionSettings(v.PauseStateSettings, ok); err != nil { return err } } if v.Scte35InputSettings != nil { ok := object.Key("scte35InputSettings") if err := awsRestjson1_serializeDocumentScte35InputScheduleActionSettings(v.Scte35InputSettings, ok); err != nil { return err } } if v.Scte35ReturnToNetworkSettings != nil { ok := object.Key("scte35ReturnToNetworkSettings") if err := awsRestjson1_serializeDocumentScte35ReturnToNetworkScheduleActionSettings(v.Scte35ReturnToNetworkSettings, ok); err != nil { return err } } if v.Scte35SpliceInsertSettings != nil { ok := object.Key("scte35SpliceInsertSettings") if err := awsRestjson1_serializeDocumentScte35SpliceInsertScheduleActionSettings(v.Scte35SpliceInsertSettings, ok); err != nil { return err } } if v.Scte35TimeSignalSettings != nil { ok := object.Key("scte35TimeSignalSettings") if err := awsRestjson1_serializeDocumentScte35TimeSignalScheduleActionSettings(v.Scte35TimeSignalSettings, ok); err != nil { return err } } if v.StaticImageActivateSettings != nil { ok := object.Key("staticImageActivateSettings") if err := awsRestjson1_serializeDocumentStaticImageActivateScheduleActionSettings(v.StaticImageActivateSettings, ok); err != nil { return err } } if v.StaticImageDeactivateSettings != nil { ok := object.Key("staticImageDeactivateSettings") if err := awsRestjson1_serializeDocumentStaticImageDeactivateScheduleActionSettings(v.StaticImageDeactivateSettings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentScheduleActionStartSettings(v *types.ScheduleActionStartSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.FixedModeScheduleActionStartSettings != nil { ok := object.Key("fixedModeScheduleActionStartSettings") if err := awsRestjson1_serializeDocumentFixedModeScheduleActionStartSettings(v.FixedModeScheduleActionStartSettings, ok); err != nil { return err } } if v.FollowModeScheduleActionStartSettings != nil { ok := object.Key("followModeScheduleActionStartSettings") if err := awsRestjson1_serializeDocumentFollowModeScheduleActionStartSettings(v.FollowModeScheduleActionStartSettings, ok); err != nil { return err } } if v.ImmediateModeScheduleActionStartSettings != nil { ok := object.Key("immediateModeScheduleActionStartSettings") if err := awsRestjson1_serializeDocumentImmediateModeScheduleActionStartSettings(v.ImmediateModeScheduleActionStartSettings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentScte20PlusEmbeddedDestinationSettings(v *types.Scte20PlusEmbeddedDestinationSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() return nil } func awsRestjson1_serializeDocumentScte20SourceSettings(v *types.Scte20SourceSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.Convert608To708) > 0 { ok := object.Key("convert608To708") ok.String(string(v.Convert608To708)) } if v.Source608ChannelNumber != 0 { ok := object.Key("source608ChannelNumber") ok.Integer(v.Source608ChannelNumber) } return nil } func awsRestjson1_serializeDocumentScte27DestinationSettings(v *types.Scte27DestinationSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() return nil } func awsRestjson1_serializeDocumentScte27SourceSettings(v *types.Scte27SourceSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.OcrLanguage) > 0 { ok := object.Key("ocrLanguage") ok.String(string(v.OcrLanguage)) } if v.Pid != 0 { ok := object.Key("pid") ok.Integer(v.Pid) } return nil } func awsRestjson1_serializeDocumentScte35DeliveryRestrictions(v *types.Scte35DeliveryRestrictions, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.ArchiveAllowedFlag) > 0 { ok := object.Key("archiveAllowedFlag") ok.String(string(v.ArchiveAllowedFlag)) } if len(v.DeviceRestrictions) > 0 { ok := object.Key("deviceRestrictions") ok.String(string(v.DeviceRestrictions)) } if len(v.NoRegionalBlackoutFlag) > 0 { ok := object.Key("noRegionalBlackoutFlag") ok.String(string(v.NoRegionalBlackoutFlag)) } if len(v.WebDeliveryAllowedFlag) > 0 { ok := object.Key("webDeliveryAllowedFlag") ok.String(string(v.WebDeliveryAllowedFlag)) } return nil } func awsRestjson1_serializeDocumentScte35Descriptor(v *types.Scte35Descriptor, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Scte35DescriptorSettings != nil { ok := object.Key("scte35DescriptorSettings") if err := awsRestjson1_serializeDocumentScte35DescriptorSettings(v.Scte35DescriptorSettings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentScte35DescriptorSettings(v *types.Scte35DescriptorSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.SegmentationDescriptorScte35DescriptorSettings != nil { ok := object.Key("segmentationDescriptorScte35DescriptorSettings") if err := awsRestjson1_serializeDocumentScte35SegmentationDescriptor(v.SegmentationDescriptorScte35DescriptorSettings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentScte35InputScheduleActionSettings(v *types.Scte35InputScheduleActionSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.InputAttachmentNameReference != nil { ok := object.Key("inputAttachmentNameReference") ok.String(*v.InputAttachmentNameReference) } if len(v.Mode) > 0 { ok := object.Key("mode") ok.String(string(v.Mode)) } return nil } func awsRestjson1_serializeDocumentScte35ReturnToNetworkScheduleActionSettings(v *types.Scte35ReturnToNetworkScheduleActionSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() { ok := object.Key("spliceEventId") ok.Long(v.SpliceEventId) } return nil } func awsRestjson1_serializeDocumentScte35SegmentationDescriptor(v *types.Scte35SegmentationDescriptor, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.DeliveryRestrictions != nil { ok := object.Key("deliveryRestrictions") if err := awsRestjson1_serializeDocumentScte35DeliveryRestrictions(v.DeliveryRestrictions, ok); err != nil { return err } } if len(v.SegmentationCancelIndicator) > 0 { ok := object.Key("segmentationCancelIndicator") ok.String(string(v.SegmentationCancelIndicator)) } if v.SegmentationDuration != 0 { ok := object.Key("segmentationDuration") ok.Long(v.SegmentationDuration) } { ok := object.Key("segmentationEventId") ok.Long(v.SegmentationEventId) } if v.SegmentationTypeId != 0 { ok := object.Key("segmentationTypeId") ok.Integer(v.SegmentationTypeId) } if v.SegmentationUpid != nil { ok := object.Key("segmentationUpid") ok.String(*v.SegmentationUpid) } if v.SegmentationUpidType != 0 { ok := object.Key("segmentationUpidType") ok.Integer(v.SegmentationUpidType) } if v.SegmentNum != 0 { ok := object.Key("segmentNum") ok.Integer(v.SegmentNum) } if v.SegmentsExpected != 0 { ok := object.Key("segmentsExpected") ok.Integer(v.SegmentsExpected) } if v.SubSegmentNum != 0 { ok := object.Key("subSegmentNum") ok.Integer(v.SubSegmentNum) } if v.SubSegmentsExpected != 0 { ok := object.Key("subSegmentsExpected") ok.Integer(v.SubSegmentsExpected) } return nil } func awsRestjson1_serializeDocumentScte35SpliceInsert(v *types.Scte35SpliceInsert, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AdAvailOffset != 0 { ok := object.Key("adAvailOffset") ok.Integer(v.AdAvailOffset) } if len(v.NoRegionalBlackoutFlag) > 0 { ok := object.Key("noRegionalBlackoutFlag") ok.String(string(v.NoRegionalBlackoutFlag)) } if len(v.WebDeliveryAllowedFlag) > 0 { ok := object.Key("webDeliveryAllowedFlag") ok.String(string(v.WebDeliveryAllowedFlag)) } return nil } func awsRestjson1_serializeDocumentScte35SpliceInsertScheduleActionSettings(v *types.Scte35SpliceInsertScheduleActionSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Duration != 0 { ok := object.Key("duration") ok.Long(v.Duration) } { ok := object.Key("spliceEventId") ok.Long(v.SpliceEventId) } return nil } func awsRestjson1_serializeDocumentScte35TimeSignalApos(v *types.Scte35TimeSignalApos, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AdAvailOffset != 0 { ok := object.Key("adAvailOffset") ok.Integer(v.AdAvailOffset) } if len(v.NoRegionalBlackoutFlag) > 0 { ok := object.Key("noRegionalBlackoutFlag") ok.String(string(v.NoRegionalBlackoutFlag)) } if len(v.WebDeliveryAllowedFlag) > 0 { ok := object.Key("webDeliveryAllowedFlag") ok.String(string(v.WebDeliveryAllowedFlag)) } return nil } func awsRestjson1_serializeDocumentScte35TimeSignalScheduleActionSettings(v *types.Scte35TimeSignalScheduleActionSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Scte35Descriptors != nil { ok := object.Key("scte35Descriptors") if err := awsRestjson1_serializeDocument__listOfScte35Descriptor(v.Scte35Descriptors, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentSmpteTtDestinationSettings(v *types.SmpteTtDestinationSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() return nil } func awsRestjson1_serializeDocumentStandardHlsSettings(v *types.StandardHlsSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.AudioRenditionSets != nil { ok := object.Key("audioRenditionSets") ok.String(*v.AudioRenditionSets) } if v.M3u8Settings != nil { ok := object.Key("m3u8Settings") if err := awsRestjson1_serializeDocumentM3u8Settings(v.M3u8Settings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentStartTimecode(v *types.StartTimecode, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Timecode != nil { ok := object.Key("timecode") ok.String(*v.Timecode) } return nil } func awsRestjson1_serializeDocumentStaticImageActivateScheduleActionSettings(v *types.StaticImageActivateScheduleActionSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Duration != 0 { ok := object.Key("duration") ok.Integer(v.Duration) } if v.FadeIn != 0 { ok := object.Key("fadeIn") ok.Integer(v.FadeIn) } if v.FadeOut != 0 { ok := object.Key("fadeOut") ok.Integer(v.FadeOut) } if v.Height != 0 { ok := object.Key("height") ok.Integer(v.Height) } if v.Image != nil { ok := object.Key("image") if err := awsRestjson1_serializeDocumentInputLocation(v.Image, ok); err != nil { return err } } if v.ImageX != 0 { ok := object.Key("imageX") ok.Integer(v.ImageX) } if v.ImageY != 0 { ok := object.Key("imageY") ok.Integer(v.ImageY) } if v.Layer != 0 { ok := object.Key("layer") ok.Integer(v.Layer) } if v.Opacity != 0 { ok := object.Key("opacity") ok.Integer(v.Opacity) } if v.Width != 0 { ok := object.Key("width") ok.Integer(v.Width) } return nil } func awsRestjson1_serializeDocumentStaticImageDeactivateScheduleActionSettings(v *types.StaticImageDeactivateScheduleActionSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.FadeOut != 0 { ok := object.Key("fadeOut") ok.Integer(v.FadeOut) } if v.Layer != 0 { ok := object.Key("layer") ok.Integer(v.Layer) } return nil } func awsRestjson1_serializeDocumentStaticKeySettings(v *types.StaticKeySettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.KeyProviderServer != nil { ok := object.Key("keyProviderServer") if err := awsRestjson1_serializeDocumentInputLocation(v.KeyProviderServer, ok); err != nil { return err } } if v.StaticKeyValue != nil { ok := object.Key("staticKeyValue") ok.String(*v.StaticKeyValue) } return nil } func awsRestjson1_serializeDocumentStopTimecode(v *types.StopTimecode, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.LastFrameClippingBehavior) > 0 { ok := object.Key("lastFrameClippingBehavior") ok.String(string(v.LastFrameClippingBehavior)) } if v.Timecode != nil { ok := object.Key("timecode") ok.String(*v.Timecode) } return nil } func awsRestjson1_serializeDocumentTags(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() for key := range v { om := object.Key(key) om.String(v[key]) } return nil } func awsRestjson1_serializeDocumentTeletextDestinationSettings(v *types.TeletextDestinationSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() return nil } func awsRestjson1_serializeDocumentTeletextSourceSettings(v *types.TeletextSourceSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.OutputRectangle != nil { ok := object.Key("outputRectangle") if err := awsRestjson1_serializeDocumentCaptionRectangle(v.OutputRectangle, ok); err != nil { return err } } if v.PageNumber != nil { ok := object.Key("pageNumber") ok.String(*v.PageNumber) } return nil } func awsRestjson1_serializeDocumentTemporalFilterSettings(v *types.TemporalFilterSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.PostFilterSharpening) > 0 { ok := object.Key("postFilterSharpening") ok.String(string(v.PostFilterSharpening)) } if len(v.Strength) > 0 { ok := object.Key("strength") ok.String(string(v.Strength)) } return nil } func awsRestjson1_serializeDocumentTimecodeBurninSettings(v *types.TimecodeBurninSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.FontSize) > 0 { ok := object.Key("fontSize") ok.String(string(v.FontSize)) } if len(v.Position) > 0 { ok := object.Key("position") ok.String(string(v.Position)) } if v.Prefix != nil { ok := object.Key("prefix") ok.String(*v.Prefix) } return nil } func awsRestjson1_serializeDocumentTimecodeConfig(v *types.TimecodeConfig, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.Source) > 0 { ok := object.Key("source") ok.String(string(v.Source)) } if v.SyncThreshold != 0 { ok := object.Key("syncThreshold") ok.Integer(v.SyncThreshold) } return nil } func awsRestjson1_serializeDocumentTtmlDestinationSettings(v *types.TtmlDestinationSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.StyleControl) > 0 { ok := object.Key("styleControl") ok.String(string(v.StyleControl)) } return nil } func awsRestjson1_serializeDocumentUdpContainerSettings(v *types.UdpContainerSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.M2tsSettings != nil { ok := object.Key("m2tsSettings") if err := awsRestjson1_serializeDocumentM2tsSettings(v.M2tsSettings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentUdpGroupSettings(v *types.UdpGroupSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.InputLossAction) > 0 { ok := object.Key("inputLossAction") ok.String(string(v.InputLossAction)) } if len(v.TimedMetadataId3Frame) > 0 { ok := object.Key("timedMetadataId3Frame") ok.String(string(v.TimedMetadataId3Frame)) } if v.TimedMetadataId3Period != 0 { ok := object.Key("timedMetadataId3Period") ok.Integer(v.TimedMetadataId3Period) } return nil } func awsRestjson1_serializeDocumentUdpOutputSettings(v *types.UdpOutputSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.BufferMsec != 0 { ok := object.Key("bufferMsec") ok.Integer(v.BufferMsec) } if v.ContainerSettings != nil { ok := object.Key("containerSettings") if err := awsRestjson1_serializeDocumentUdpContainerSettings(v.ContainerSettings, ok); err != nil { return err } } if v.Destination != nil { ok := object.Key("destination") if err := awsRestjson1_serializeDocumentOutputLocationRef(v.Destination, ok); err != nil { return err } } if v.FecOutputSettings != nil { ok := object.Key("fecOutputSettings") if err := awsRestjson1_serializeDocumentFecOutputSettings(v.FecOutputSettings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentVideoBlackFailoverSettings(v *types.VideoBlackFailoverSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.BlackDetectThreshold != 0 { ok := object.Key("blackDetectThreshold") switch { case math.IsNaN(v.BlackDetectThreshold): ok.String("NaN") case math.IsInf(v.BlackDetectThreshold, 1): ok.String("Infinity") case math.IsInf(v.BlackDetectThreshold, -1): ok.String("-Infinity") default: ok.Double(v.BlackDetectThreshold) } } if v.VideoBlackThresholdMsec != 0 { ok := object.Key("videoBlackThresholdMsec") ok.Integer(v.VideoBlackThresholdMsec) } return nil } func awsRestjson1_serializeDocumentVideoCodecSettings(v *types.VideoCodecSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.FrameCaptureSettings != nil { ok := object.Key("frameCaptureSettings") if err := awsRestjson1_serializeDocumentFrameCaptureSettings(v.FrameCaptureSettings, ok); err != nil { return err } } if v.H264Settings != nil { ok := object.Key("h264Settings") if err := awsRestjson1_serializeDocumentH264Settings(v.H264Settings, ok); err != nil { return err } } if v.H265Settings != nil { ok := object.Key("h265Settings") if err := awsRestjson1_serializeDocumentH265Settings(v.H265Settings, ok); err != nil { return err } } if v.Mpeg2Settings != nil { ok := object.Key("mpeg2Settings") if err := awsRestjson1_serializeDocumentMpeg2Settings(v.Mpeg2Settings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentVideoDescription(v *types.VideoDescription, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.CodecSettings != nil { ok := object.Key("codecSettings") if err := awsRestjson1_serializeDocumentVideoCodecSettings(v.CodecSettings, ok); err != nil { return err } } if v.Height != 0 { ok := object.Key("height") ok.Integer(v.Height) } if v.Name != nil { ok := object.Key("name") ok.String(*v.Name) } if len(v.RespondToAfd) > 0 { ok := object.Key("respondToAfd") ok.String(string(v.RespondToAfd)) } if len(v.ScalingBehavior) > 0 { ok := object.Key("scalingBehavior") ok.String(string(v.ScalingBehavior)) } if v.Sharpness != 0 { ok := object.Key("sharpness") ok.Integer(v.Sharpness) } if v.Width != 0 { ok := object.Key("width") ok.Integer(v.Width) } return nil } func awsRestjson1_serializeDocumentVideoSelector(v *types.VideoSelector, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.ColorSpace) > 0 { ok := object.Key("colorSpace") ok.String(string(v.ColorSpace)) } if v.ColorSpaceSettings != nil { ok := object.Key("colorSpaceSettings") if err := awsRestjson1_serializeDocumentVideoSelectorColorSpaceSettings(v.ColorSpaceSettings, ok); err != nil { return err } } if len(v.ColorSpaceUsage) > 0 { ok := object.Key("colorSpaceUsage") ok.String(string(v.ColorSpaceUsage)) } if v.SelectorSettings != nil { ok := object.Key("selectorSettings") if err := awsRestjson1_serializeDocumentVideoSelectorSettings(v.SelectorSettings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentVideoSelectorColorSpaceSettings(v *types.VideoSelectorColorSpaceSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Hdr10Settings != nil { ok := object.Key("hdr10Settings") if err := awsRestjson1_serializeDocumentHdr10Settings(v.Hdr10Settings, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentVideoSelectorPid(v *types.VideoSelectorPid, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Pid != 0 { ok := object.Key("pid") ok.Integer(v.Pid) } return nil } func awsRestjson1_serializeDocumentVideoSelectorProgramId(v *types.VideoSelectorProgramId, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.ProgramId != 0 { ok := object.Key("programId") ok.Integer(v.ProgramId) } return nil } func awsRestjson1_serializeDocumentVideoSelectorSettings(v *types.VideoSelectorSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.VideoSelectorPid != nil { ok := object.Key("videoSelectorPid") if err := awsRestjson1_serializeDocumentVideoSelectorPid(v.VideoSelectorPid, ok); err != nil { return err } } if v.VideoSelectorProgramId != nil { ok := object.Key("videoSelectorProgramId") if err := awsRestjson1_serializeDocumentVideoSelectorProgramId(v.VideoSelectorProgramId, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentVpcOutputSettings(v *types.VpcOutputSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.PublicAddressAllocationIds != nil { ok := object.Key("publicAddressAllocationIds") if err := awsRestjson1_serializeDocument__listOf__string(v.PublicAddressAllocationIds, ok); err != nil { return err } } if v.SecurityGroupIds != nil { ok := object.Key("securityGroupIds") if err := awsRestjson1_serializeDocument__listOf__string(v.SecurityGroupIds, ok); err != nil { return err } } if v.SubnetIds != nil { ok := object.Key("subnetIds") if err := awsRestjson1_serializeDocument__listOf__string(v.SubnetIds, ok); err != nil { return err } } return nil } func awsRestjson1_serializeDocumentWavSettings(v *types.WavSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.BitDepth != 0 { ok := object.Key("bitDepth") switch { case math.IsNaN(v.BitDepth): ok.String("NaN") case math.IsInf(v.BitDepth, 1): ok.String("Infinity") case math.IsInf(v.BitDepth, -1): ok.String("-Infinity") default: ok.Double(v.BitDepth) } } if len(v.CodingMode) > 0 { ok := object.Key("codingMode") ok.String(string(v.CodingMode)) } if v.SampleRate != 0 { ok := object.Key("sampleRate") switch { case math.IsNaN(v.SampleRate): ok.String("NaN") case math.IsInf(v.SampleRate, 1): ok.String("Infinity") case math.IsInf(v.SampleRate, -1): ok.String("-Infinity") default: ok.Double(v.SampleRate) } } return nil } func awsRestjson1_serializeDocumentWebvttDestinationSettings(v *types.WebvttDestinationSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() if len(v.StyleControl) > 0 { ok := object.Key("styleControl") ok.String(string(v.StyleControl)) } return nil }
10,964