Skip to content

Commit

Permalink
rename querydefinitions -> querydefinition (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfbaker7 authored Mar 17, 2021
1 parent a776f36 commit a0363cb
Show file tree
Hide file tree
Showing 26 changed files with 44 additions and 46 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"artifact_type": "RESOURCE",
"typeName": "AWS::Logs::QueryDefinitions",
"typeName": "AWS::Logs::QueryDefinition",
"language": "java",
"runtime": "java8",
"entrypoint": "software.amazon.logs.querydefinitions.HandlerWrapper::handleRequest",
"testEntrypoint": "software.amazon.logs.querydefinitions.HandlerWrapper::testEntrypoint",
"entrypoint": "software.amazon.logs.querydefinition.HandlerWrapper::handleRequest",
"testEntrypoint": "software.amazon.logs.querydefinition.HandlerWrapper::testEntrypoint",
"settings": {
"version": false,
"subparser_name": null,
Expand All @@ -16,10 +16,10 @@
"software",
"amazon",
"logs",
"querydefinitions"
"querydefinition"
],
"codegen_template_path": "default",
"protocolVersion": "2.0.0"
},
"executableEntrypoint": "software.amazon.logs.querydefinitions.HandlerWrapperExecutable"
"executableEntrypoint": "software.amazon.logs.querydefinition.HandlerWrapperExecutable"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# AWS::Logs::QueryDefinitions
# AWS::Logs::QueryDefinition

This repository is for the QueryDefinitions CloudFormation resource type.
This repository is for the QueryDefinition CloudFormation resource type.

*To get started run:*
```
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"typeName": "AWS::Logs::QueryDefinitions",
"description": "The resource schema for AWSLogs QueryDefinitions",
"typeName": "AWS::Logs::QueryDefinition",
"description": "The resource schema for AWSLogs QueryDefinition",
"sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-logs.git",
"definitions": {
"LogGroup": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# AWS::Logs::QueryDefinitions
# AWS::Logs::QueryDefinition

The resource schema for AWSLogs QueryDefinitions
The resource schema for AWSLogs QueryDefinition

## Syntax

Expand All @@ -10,7 +10,7 @@ To declare this entity in your AWS CloudFormation template, use the following sy

<pre>
{
"Type" : "AWS::Logs::QueryDefinitions",
"Type" : "AWS::Logs::QueryDefinition",
"Properties" : {
"<a href="#name" title="Name">Name</a>" : <i>String</i>,
"<a href="#querystring" title="QueryString">QueryString</a>" : <i>String</i>,
Expand All @@ -22,7 +22,7 @@ To declare this entity in your AWS CloudFormation template, use the following sy
### YAML

<pre>
Type: AWS::Logs::QueryDefinitions
Type: AWS::Logs::QueryDefinition
Properties:
<a href="#name" title="Name">Name</a>: <i>String</i>
<a href="#querystring" title="QueryString">QueryString</a>: <i>String</i>
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>software.amazon.logs.querydefinitions</groupId>
<artifactId>aws-logs-querydefinitions-handler</artifactId>
<name>aws-logs-querydefinitions-handler</name>
<groupId>software.amazon.logs.querydefinition</groupId>
<artifactId>aws-logs-querydefinition-handler</artifactId>
<name>aws-logs-querydefinition-handler</name>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>

Expand Down Expand Up @@ -219,7 +219,7 @@
<resource>
<directory>${project.basedir}</directory>
<includes>
<include>aws-logs-querydefinitions.json</include>
<include>aws-logs-querydefinition.json</include>
</includes>
</resource>
</resources>
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package software.amazon.logs.querydefinitions;
package software.amazon.logs.querydefinition;

import software.amazon.cloudformation.proxy.StdCallbackContext;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package software.amazon.logs.querydefinitions;
package software.amazon.logs.querydefinition;

import software.amazon.awssdk.services.cloudwatchlogs.CloudWatchLogsClient;
import software.amazon.cloudformation.LambdaWrapper;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package software.amazon.logs.querydefinition;

class Configuration extends BaseConfiguration {

public Configuration() {
super("aws-logs-querydefinition.json");
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package software.amazon.logs.querydefinitions;
package software.amazon.logs.querydefinition;

import software.amazon.awssdk.services.cloudwatchlogs.model.InvalidParameterException;
import software.amazon.awssdk.services.cloudwatchlogs.model.PutQueryDefinitionResponse;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package software.amazon.logs.querydefinitions;
package software.amazon.logs.querydefinition;

import software.amazon.awssdk.services.cloudwatchlogs.model.DeleteQueryDefinitionResponse;
import software.amazon.awssdk.services.cloudwatchlogs.model.InvalidParameterException;
Expand All @@ -10,7 +10,6 @@
import software.amazon.cloudformation.proxy.AmazonWebServicesClientProxy;
import software.amazon.cloudformation.proxy.Logger;
import software.amazon.cloudformation.proxy.ProgressEvent;
import software.amazon.cloudformation.proxy.OperationStatus;
import software.amazon.cloudformation.proxy.ResourceHandlerRequest;

public class DeleteHandler extends BaseHandler<CallbackContext> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package software.amazon.logs.querydefinitions;
package software.amazon.logs.querydefinition;

import software.amazon.awssdk.services.cloudwatchlogs.model.DescribeQueryDefinitionsResponse;
import software.amazon.awssdk.services.cloudwatchlogs.model.InvalidParameterException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package software.amazon.logs.querydefinitions;
package software.amazon.logs.querydefinition;

import software.amazon.awssdk.services.cloudwatchlogs.model.DescribeQueryDefinitionsRequest;
import software.amazon.awssdk.services.cloudwatchlogs.model.DescribeQueryDefinitionsResponse;
import software.amazon.awssdk.services.cloudwatchlogs.model.InvalidParameterException;
import software.amazon.awssdk.services.cloudwatchlogs.model.QueryDefinition;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package software.amazon.logs.querydefinitions;
package software.amazon.logs.querydefinition;

import software.amazon.awssdk.services.cloudwatchlogs.model.DeleteQueryDefinitionRequest;
import software.amazon.awssdk.services.cloudwatchlogs.model.DescribeQueryDefinitionsRequest;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package software.amazon.logs.querydefinitions;
package software.amazon.logs.querydefinition;

import software.amazon.awssdk.services.cloudwatchlogs.model.InvalidParameterException;
import software.amazon.awssdk.services.cloudwatchlogs.model.ResourceNotFoundException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package software.amazon.logs.querydefinitions;
package software.amazon.logs.querydefinition;

import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package software.amazon.logs.querydefinitions;
package software.amazon.logs.querydefinition;

import com.google.common.collect.ImmutableList;
import org.mockito.ArgumentMatchers;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package software.amazon.logs.querydefinitions;
package software.amazon.logs.querydefinition;

import org.mockito.ArgumentMatchers;
import software.amazon.awssdk.services.cloudwatchlogs.model.DeleteQueryDefinitionResponse;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package software.amazon.logs.querydefinitions;
package software.amazon.logs.querydefinition;

import com.google.common.collect.ImmutableList;
import org.mockito.ArgumentMatchers;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package software.amazon.logs.querydefinitions;
package software.amazon.logs.querydefinition;

import com.google.common.collect.ImmutableList;
import org.mockito.ArgumentMatchers;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package software.amazon.logs.querydefinitions;
package software.amazon.logs.querydefinition;

import org.mockito.ArgumentMatchers;
import software.amazon.awssdk.services.cloudwatchlogs.model.PutQueryDefinitionResponse;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
AWSTemplateFormatVersion: "2010-09-09"
Transform: AWS::Serverless-2016-10-31
Description: AWS SAM template for the AWS::Logs::QueryDefinitions resource type
Description: AWS SAM template for the AWS::Logs::QueryDefinition resource type

Globals:
Function:
Expand All @@ -11,13 +11,13 @@ Resources:
TypeFunction:
Type: AWS::Serverless::Function
Properties:
Handler: software.amazon.logs.querydefinitions.HandlerWrapper::handleRequest
Handler: software.amazon.logs.querydefinition.HandlerWrapper::handleRequest
Runtime: java8
CodeUri: ./target/aws-logs-querydefinitions-handler-1.0-SNAPSHOT.jar
CodeUri: ./target/aws-logs-querydefinition-handler-1.0-SNAPSHOT.jar

TestEntrypoint:
Type: AWS::Serverless::Function
Properties:
Handler: software.amazon.logs.querydefinitions.HandlerWrapper::testEntrypoint
Handler: software.amazon.logs.querydefinition.HandlerWrapper::testEntrypoint
Runtime: java8
CodeUri: ./target/aws-logs-querydefinitions-handler-1.0-SNAPSHOT.jar
CodeUri: ./target/aws-logs-querydefinition-handler-1.0-SNAPSHOT.jar

This file was deleted.

0 comments on commit a0363cb

Please sign in to comment.