// Tags a resource with user-supplied tags.
Tags a resource with user-supplied tags.
// Tags a resource with user - supplied tags .
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, addOperationTagResourceMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*TagResourceOutput)
	out.ResultMetadata = metadata
	return out, nil
}
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 , " " , params , optFns , addOperationTagResourceMiddlewares ) if err != nil { return nil , err } out := result . ( * TagResourceOutput ) out . ResultMetadata = metadata return out , nil }
Tags a resource with user-supplied tags.
Tags a resource with user - supplied tags .