// Adds or updates the specified tags for the specified log group. To list the tags
// for a log group, use ListTagsLogGroup
// (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsLogGroup.html).
// To remove tags, use UntagLogGroup
// (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UntagLogGroup.html).
// For more information about tags, see Tag Log Groups in Amazon CloudWatch Logs
// (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html#log-group-tagging)
// in the Amazon CloudWatch Logs User Guide.
Adds or updates the specified tags for the specified log group. To list the tags
for a log group, use ListTagsLogGroup
.
To remove tags, use UntagLogGroup
.
For more information about tags, see Tag Log Groups in Amazon CloudWatch Logs

in the Amazon CloudWatch Logs User Guide.
// Adds or updates the specified tags for the specified log group . To list the tags // for a log group use ListTagsLogGroup // ( https : // docs . aws . amazon . com / AmazonCloudWatchLogs / latest / APIReference / API_ListTagsLogGroup . html ) . // To remove tags use UntagLogGroup // ( https : // docs . aws . amazon . com / AmazonCloudWatchLogs / latest / APIReference / API_UntagLogGroup . html ) . // For more information about tags see Tag Log Groups in Amazon CloudWatch Logs // ( https : // docs . aws . amazon . com / AmazonCloudWatch / latest / logs / Working - with - log - groups - and - streams . html#log - group - tagging ) // in the Amazon CloudWatch Logs User Guide .
func (c *Client) TagLogGroup(ctx context.Context, params *TagLogGroupInput, optFns ...func(*Options)) (*TagLogGroupOutput, error) {
	if params == nil {
		params = &TagLogGroupInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "TagLogGroup", params, optFns, addOperationTagLogGroupMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*TagLogGroupOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) TagLogGroup ( ctx context . Context , params * TagLogGroupInput , optFns ... func ( * Options ) ) ( * TagLogGroupOutput , error ) { if params == nil { params = & TagLogGroupInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationTagLogGroupMiddlewares ) if err != nil { return nil , err } out := result . ( * TagLogGroupOutput ) out . ResultMetadata = metadata return out , nil }
Adds or updates the specified tags for the specified log group.
Adds or updates the specified tags for the specified log group .