code: @PluginFactory
      public static CloudWatchAppender createAppender(@PluginAttribute("name") final String name,
                                                      @PluginAttribute("awsLogStreamName") final String awsLogStreamName,
                                                      @PluginAttribute("awsLogGroupName") final String awsLogGroupName,
                                                      @PluginAttribute("awsLogStreamFlushPeriodInSeconds") final String awsLogStreamFlushPeriodInSeconds,
                                                      @PluginAttribute("credentialAccessKey") final String credentialAccessKey,
                                                      @PluginAttribute("credentialSecretKey") final String credentialSecretKey,
                                                      @PluginAttribute("awsLogRegionName") final String awsLogRegionName,
                                                      @PluginElement("Layout") final Layout<Serializable> layout) {
          return new CloudWatchAppender(
              name,
              awsLogGroupName,
              awsLogStreamName,
              awsLogStreamFlushPeriodInSeconds,
              StringUtils.defaultIfBlank(credentialAccessKey, System.getProperty("AWS_ACCESS_KEY")),
              StringUtils.defaultIfBlank(credentialSecretKey, System.getProperty("AWS_SECRET_KEY")),
              StringUtils.defaultIfBlank(awsLogRegionName, System.getProperty("AWS_REGION_NAME")),
              layout);
      }
docs: Create appender cloud watch appender.
  
  @param name                             the name
  @param awsLogStreamName                 the aws log stream name
  @param awsLogGroupName                  the aws log group name
  @param awsLogStreamFlushPeriodInSeconds the aws log stream flush period in seconds
  @param credentialAccessKey              the credential access key
  @param credentialSecretKey              the credential secret key
  @param awsLogRegionName                 the aws log region name
  @param layout                           the layout
  @return the cloud watch appender