aws/CloudWatchLogsProvider.js
/**
		 * Sets retention in days for a log group
		 *
		 * @param {String} logGroupName - The name of the log group.
		 * @param {Number} retentionInDays - The number of days to retain the log events in the specified log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, and 3653.
		 * @returns {Promise}
		 */
Sets retention in days for a log group
@param {String} logGroupName - The name of the log group.
@param {Number} retentionInDays - The number of days to retain the log events in the specified log group.
Sets retention in days for a log group @param { String } logGroupName - The name of the log group . @param { Number } retentionInDays - The number of days to retain the log events in the specified log group .
putRetentionPolicy(logGroupName, retentionInDays) {
			return Promise.resolve()
				.then(() => {
					checkReady.call(this);
					assert.argumentIsRequired(logGroupName, 'logGroupName', String);
					assert.argumentIsRequired(retentionInDays, 'retentionInDays', Number);
					return promise.build((resolve, reject) => {
						this._cloudWatchLogs.putRetentionPolicy({logGroupName, retentionInDays}, (e) => {
							if (e) {
								logger.error(e);
								reject(e);
							} else {
								resolve(true);
							}
						});
					});
				});
		}
putRetentionPolicy ( logGroupName , retentionInDays ) { return Promise . resolve ( ) . then ( ( ) => { checkReady . call ( this ) ; assert . argumentIsRequired ( logGroupName , 'logGroupName' , String ) ; assert . argumentIsRequired ( retentionInDays , 'retentionInDays' , Number ) ; return promise . build ( ( resolve , reject ) => { this . _cloudWatchLogs . putRetentionPolicy ( { logGroupName , retentionInDays } , ( e ) => { if ( e ) { logger . error ( e ) ; reject ( e ) ; } else { resolve ( true ) ; } } ) ; } ) ; } ) ; }
Sets retention in days for a log group
 @param {String} logGroupName - The name of the log group.
Sets retention in days for a log group @param { String } logGroupName - The name of the log group .