// Sets the retention of the specified log group. A retention policy allows you to
// configure the number of days for which to retain log events in the specified log
// group.
Sets the retention of the specified log group. A retention policy allows you to
configure the number of days for which to retain log events in the specified log
group.
// Sets the retention of the specified log group . A retention policy allows you to // configure the number of days for which to retain log events in the specified log // group .
func (c *Client) PutRetentionPolicy(ctx context.Context, params *PutRetentionPolicyInput, optFns ...func(*Options)) (*PutRetentionPolicyOutput, error) {
	if params == nil {
		params = &PutRetentionPolicyInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "PutRetentionPolicy", params, optFns, addOperationPutRetentionPolicyMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*PutRetentionPolicyOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) PutRetentionPolicy ( ctx context . Context , params * PutRetentionPolicyInput , optFns ... func ( * Options ) ) ( * PutRetentionPolicyOutput , error ) { if params == nil { params = & PutRetentionPolicyInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationPutRetentionPolicyMiddlewares ) if err != nil { return nil , err } out := result . ( * PutRetentionPolicyOutput ) out . ResultMetadata = metadata return out , nil }
Sets the retention of the specified log group.
Sets the retention of the specified log group .