1// Code generated by smithy-go-codegen DO NOT EDIT. 2 3package mediaconnect 4 5import ( 6 "context" 7 awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" 8 "github.com/aws/aws-sdk-go-v2/aws/signer/v4" 9 "github.com/aws/aws-sdk-go-v2/service/mediaconnect/types" 10 "github.com/aws/smithy-go/middleware" 11 smithyhttp "github.com/aws/smithy-go/transport/http" 12) 13 14// Updates an existing flow output. 15func (c *Client) UpdateFlowOutput(ctx context.Context, params *UpdateFlowOutputInput, optFns ...func(*Options)) (*UpdateFlowOutputOutput, error) { 16 if params == nil { 17 params = &UpdateFlowOutputInput{} 18 } 19 20 result, metadata, err := c.invokeOperation(ctx, "UpdateFlowOutput", params, optFns, addOperationUpdateFlowOutputMiddlewares) 21 if err != nil { 22 return nil, err 23 } 24 25 out := result.(*UpdateFlowOutputOutput) 26 out.ResultMetadata = metadata 27 return out, nil 28} 29 30// The fields that you want to update in the output. 31type UpdateFlowOutputInput struct { 32 33 // The flow that is associated with the output that you want to update. 34 // 35 // This member is required. 36 FlowArn *string 37 38 // The ARN of the output that you want to update. 39 // 40 // This member is required. 41 OutputArn *string 42 43 // The range of IP addresses that should be allowed to initiate output requests to 44 // this flow. These IP addresses should be in the form of a Classless Inter-Domain 45 // Routing (CIDR) block; for example, 10.0.0.0/16. 46 CidrAllowList []string 47 48 // A description of the output. This description appears only on the AWS Elemental 49 // MediaConnect console and will not be seen by the end user. 50 Description *string 51 52 // The IP address where you want to send the output. 53 Destination *string 54 55 // The type of key used for the encryption. If no keyType is provided, the service 56 // will use the default setting (static-key). 57 Encryption *types.UpdateEncryption 58 59 // The maximum latency in milliseconds for Zixi-based streams. 60 MaxLatency int32 61 62 // The minimum latency in milliseconds for SRT-based streams. In streams that use 63 // the SRT protocol, this value that you set on your MediaConnect source or output 64 // represents the minimal potential latency of that connection. The latency of the 65 // stream is set to the highest number between the sender’s minimum latency and the 66 // receiver’s minimum latency. 67 MinLatency int32 68 69 // The port to use when content is distributed to this output. 70 Port int32 71 72 // The protocol to use for the output. 73 Protocol types.Protocol 74 75 // The remote ID for the Zixi-pull stream. 76 RemoteId *string 77 78 // The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams. 79 SmoothingLatency int32 80 81 // The stream ID that you want to use for this transport. This parameter applies 82 // only to Zixi-based streams. 83 StreamId *string 84 85 // The name of the VPC interface attachment to use for this output. 86 VpcInterfaceAttachment *types.VpcInterfaceAttachment 87} 88 89type UpdateFlowOutputOutput struct { 90 91 // The ARN of the flow that is associated with the updated output. 92 FlowArn *string 93 94 // The new settings of the output that you updated. 95 Output *types.Output 96 97 // Metadata pertaining to the operation's result. 98 ResultMetadata middleware.Metadata 99} 100 101func addOperationUpdateFlowOutputMiddlewares(stack *middleware.Stack, options Options) (err error) { 102 err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateFlowOutput{}, middleware.After) 103 if err != nil { 104 return err 105 } 106 err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateFlowOutput{}, middleware.After) 107 if err != nil { 108 return err 109 } 110 if err = addSetLoggerMiddleware(stack, options); err != nil { 111 return err 112 } 113 if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { 114 return err 115 } 116 if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { 117 return err 118 } 119 if err = addResolveEndpointMiddleware(stack, options); err != nil { 120 return err 121 } 122 if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { 123 return err 124 } 125 if err = addRetryMiddlewares(stack, options); err != nil { 126 return err 127 } 128 if err = addHTTPSignerV4Middleware(stack, options); err != nil { 129 return err 130 } 131 if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { 132 return err 133 } 134 if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { 135 return err 136 } 137 if err = addClientUserAgent(stack); err != nil { 138 return err 139 } 140 if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { 141 return err 142 } 143 if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { 144 return err 145 } 146 if err = addOpUpdateFlowOutputValidationMiddleware(stack); err != nil { 147 return err 148 } 149 if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateFlowOutput(options.Region), middleware.Before); err != nil { 150 return err 151 } 152 if err = addRequestIDRetrieverMiddleware(stack); err != nil { 153 return err 154 } 155 if err = addResponseErrorMiddleware(stack); err != nil { 156 return err 157 } 158 if err = addRequestResponseLogging(stack, options); err != nil { 159 return err 160 } 161 return nil 162} 163 164func newServiceMetadataMiddleware_opUpdateFlowOutput(region string) *awsmiddleware.RegisterServiceMetadata { 165 return &awsmiddleware.RegisterServiceMetadata{ 166 Region: region, 167 ServiceID: ServiceID, 168 SigningName: "mediaconnect", 169 OperationName: "UpdateFlowOutput", 170 } 171} 172