// Updates a branch for an Amplify app.
Updates a branch for an Amplify app.
// Updates a branch for an Amplify app .
func (c *Client) UpdateBranch(ctx context.Context, params *UpdateBranchInput, optFns ...func(*Options)) (*UpdateBranchOutput, error) {
	if params == nil {
		params = &UpdateBranchInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "UpdateBranch", params, optFns, addOperationUpdateBranchMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*UpdateBranchOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) UpdateBranch ( ctx context . Context , params * UpdateBranchInput , optFns ... func ( * Options ) ) ( * UpdateBranchOutput , error ) { if params == nil { params = & UpdateBranchInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationUpdateBranchMiddlewares ) if err != nil { return nil , err } out := result . ( * UpdateBranchOutput ) out . ResultMetadata = metadata return out , nil }
Updates a branch for an Amplify app.
Updates a branch for an Amplify app .