Skip to content

Commit e6f6dbf

Browse files
authored
Documentation (#34)
* rename `springnativeawslambda` package to `springnativeawslambda.function` Signed-off-by: Matto <muhamadto@gmail.com> * rename `springnativeawslambda` package to `springnativeawslambda.function` Signed-off-by: Matto <muhamadto@gmail.com> * rename `springnativeawslambda` package to `springnativeawslambda.function` Signed-off-by: Matto <muhamadto@gmail.com> * added asserj style tests Signed-off-by: Matto <muhamadto@gmail.com> * added asserj style tests Signed-off-by: Matto <muhamadto@gmail.com> * removed CloudFormationIntrinsicFunction.java Signed-off-by: Matto <muhamadto@gmail.com> * added license and documentation to java files Signed-off-by: Matto <muhamadto@gmail.com> * added license and documentation to java files Signed-off-by: Matto <muhamadto@gmail.com> * utilised `hasResource` instead if `findResource` as it gives superior logging Signed-off-by: Matto <muhamadto@gmail.com> * Added Dynamodb tables test resource * added bucket and EcsTaskDefinition * added Bucket Assertion class * Fixed compilation error and converted some classes into records Signed-off-by: Matto <muhamadto@gmail.com> * converted getter methods into static members Signed-off-by: Matto <muhamadto@gmail.com> * converted getter methods into static members Signed-off-by: Matto <muhamadto@gmail.com> * refactoring Signed-off-by: Matto <muhamadto@gmail.com> * refactoring Signed-off-by: Matto <muhamadto@gmail.com> * 🚀 Doco Signed-off-by: Matto <muhamadto@gmail.com> * 🚀 Doco Signed-off-by: Matto <muhamadto@gmail.com> --------- Signed-off-by: Matto <muhamadto@gmail.com>
1 parent bbf496a commit e6f6dbf

File tree

88 files changed

+3331
-1403
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+3331
-1403
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,19 @@
1+
#
2+
# Licensed to Muhammad Hamadto
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# See the NOTICE file distributed with this work for additional information regarding copyright ownership.
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
#
118
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.1/apache-maven-3.8.1-bin.zip
219
wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar

mvnw

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
11
#!/bin/sh
2-
# ----------------------------------------------------------------------------
3-
# Licensed to the Apache Software Foundation (ASF) under one
4-
# or more contributor license agreements. See the NOTICE file
5-
# distributed with this work for additional information
6-
# regarding copyright ownership. The ASF licenses this file
7-
# to you under the Apache License, Version 2.0 (the
8-
# "License"); you may not use this file except in compliance
9-
# with the License. You may obtain a copy of the License at
102
#
11-
# https://www.apache.org/licenses/LICENSE-2.0
3+
# Licensed to Muhammad Hamadto
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# See the NOTICE file distributed with this work for additional information regarding copyright ownership.
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#
1218
#
13-
# Unless required by applicable law or agreed to in writing,
14-
# software distributed under the License is distributed on an
15-
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16-
# KIND, either express or implied. See the License for the
17-
# specific language governing permissions and limitations
18-
# under the License.
19-
# ----------------------------------------------------------------------------
2019

2120
# ----------------------------------------------------------------------------
2221
# Maven Start Up Batch script

pom.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
~ Licensed to Muhammad Hamadto
4+
~
5+
~ Licensed under the Apache License, Version 2.0 (the "License");
6+
~ you may not use this file except in compliance with the License.
7+
~ You may obtain a copy of the License at
8+
~ http://www.apache.org/licenses/LICENSE-2.0
9+
~
10+
~ See the NOTICE file distributed with this work for additional information regarding copyright ownership.
11+
~
12+
~ Unless required by applicable law or agreed to in writing, software
13+
~ distributed under the License is distributed on an "AS IS" BASIS,
14+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
~ See the License for the specific language governing permissions and
16+
~ limitations under the License.
17+
~
18+
-->
19+
220
<project xmlns="http://maven.apache.org/POM/4.0.0"
321
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
422
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">

settings-spring.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
<!--
2+
~ Licensed to Muhammad Hamadto
3+
~
4+
~ Licensed under the Apache License, Version 2.0 (the "License");
5+
~ you may not use this file except in compliance with the License.
6+
~ You may obtain a copy of the License at
7+
~ http://www.apache.org/licenses/LICENSE-2.0
8+
~
9+
~ See the NOTICE file distributed with this work for additional information regarding copyright ownership.
10+
~
11+
~ Unless required by applicable law or agreed to in writing, software
12+
~ distributed under the License is distributed on an "AS IS" BASIS,
13+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
~ See the License for the specific language governing permissions and
15+
~ limitations under the License.
16+
~
17+
-->
18+
119
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
220
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
321
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">

spring-native-aws-lambda-function/pom.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
~ Licensed to Muhammad Hamadto
4+
~
5+
~ Licensed under the Apache License, Version 2.0 (the "License");
6+
~ you may not use this file except in compliance with the License.
7+
~ You may obtain a copy of the License at
8+
~ http://www.apache.org/licenses/LICENSE-2.0
9+
~
10+
~ See the NOTICE file distributed with this work for additional information regarding copyright ownership.
11+
~
12+
~ Unless required by applicable law or agreed to in writing, software
13+
~ distributed under the License is distributed on an "AS IS" BASIS,
14+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
~ See the License for the specific language governing permissions and
16+
~ limitations under the License.
17+
~
18+
-->
19+
220
<project xmlns="http://maven.apache.org/POM/4.0.0"
321
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
422
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
Lines changed: 45 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,47 @@
1+
<!--
2+
~ Licensed to Muhammad Hamadto
3+
~
4+
~ Licensed under the Apache License, Version 2.0 (the "License");
5+
~ you may not use this file except in compliance with the License.
6+
~ You may obtain a copy of the License at
7+
~ http://www.apache.org/licenses/LICENSE-2.0
8+
~
9+
~ See the NOTICE file distributed with this work for additional information regarding copyright ownership.
10+
~
11+
~ Unless required by applicable law or agreed to in writing, software
12+
~ distributed under the License is distributed on an "AS IS" BASIS,
13+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
~ See the License for the specific language governing permissions and
15+
~ limitations under the License.
16+
~
17+
-->
18+
119
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
2-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 https://maven.apache.org/xsd/assembly-1.1.2.xsd">
4-
<id>native-zip</id>
5-
<formats>
6-
<format>zip</format>
7-
</formats>
8-
<baseDirectory></baseDirectory>
9-
<fileSets>
10-
<fileSet>
11-
<directory>src/shell/native</directory>
12-
<outputDirectory>/</outputDirectory>
13-
<useDefaultExcludes>true</useDefaultExcludes>
14-
<fileMode>0775</fileMode>
15-
<includes>
16-
<include>bootstrap</include>
17-
</includes>
18-
</fileSet>
19-
<fileSet>
20-
<directory>target</directory>
21-
<outputDirectory>/</outputDirectory>
22-
<useDefaultExcludes>true</useDefaultExcludes>
23-
<fileMode>0775</fileMode>
24-
<includes>
25-
<include>spring-native-aws-lambda-function</include>
26-
</includes>
27-
</fileSet>
28-
</fileSets>
20+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21+
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 https://maven.apache.org/xsd/assembly-1.1.2.xsd">
22+
<id>native-zip</id>
23+
<formats>
24+
<format>zip</format>
25+
</formats>
26+
<baseDirectory></baseDirectory>
27+
<fileSets>
28+
<fileSet>
29+
<directory>src/shell/native</directory>
30+
<outputDirectory>/</outputDirectory>
31+
<useDefaultExcludes>true</useDefaultExcludes>
32+
<fileMode>0775</fileMode>
33+
<includes>
34+
<include>bootstrap</include>
35+
</includes>
36+
</fileSet>
37+
<fileSet>
38+
<directory>target</directory>
39+
<outputDirectory>/</outputDirectory>
40+
<useDefaultExcludes>true</useDefaultExcludes>
41+
<fileMode>0775</fileMode>
42+
<includes>
43+
<include>spring-native-aws-lambda-function</include>
44+
</includes>
45+
</fileSet>
46+
</fileSets>
2947
</assembly>

spring-native-aws-lambda-function/src/main/java/com/coffeebeans/springnativeawslambda/function/SpringNativeAwsLambdaApplication.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/*
2+
* Licensed to Muhammad Hamadto
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
* http://www.apache.org/licenses/LICENSE-2.0
8+
*
9+
* See the NOTICE file distributed with this work for additional information regarding copyright ownership.
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*
17+
*/
18+
119
package com.coffeebeans.springnativeawslambda.function;
220

321
import com.coffeebeans.springnativeawslambda.function.model.Request;

spring-native-aws-lambda-function/src/main/java/com/coffeebeans/springnativeawslambda/function/functions/ExampleFunction.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/*
2+
* Licensed to Muhammad Hamadto
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
* http://www.apache.org/licenses/LICENSE-2.0
8+
*
9+
* See the NOTICE file distributed with this work for additional information regarding copyright ownership.
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*
17+
*/
18+
119
package com.coffeebeans.springnativeawslambda.function.functions;
220

321
import com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent;

spring-native-aws-lambda-function/src/main/java/com/coffeebeans/springnativeawslambda/function/model/Request.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/*
2+
* Licensed to Muhammad Hamadto
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
* http://www.apache.org/licenses/LICENSE-2.0
8+
*
9+
* See the NOTICE file distributed with this work for additional information regarding copyright ownership.
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*
17+
*/
18+
119
package com.coffeebeans.springnativeawslambda.function.model;
220

321
import java.io.Serializable;

spring-native-aws-lambda-function/src/main/java/com/coffeebeans/springnativeawslambda/function/model/Response.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/*
2+
* Licensed to Muhammad Hamadto
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
* http://www.apache.org/licenses/LICENSE-2.0
8+
*
9+
* See the NOTICE file distributed with this work for additional information regarding copyright ownership.
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*
17+
*/
18+
119
package com.coffeebeans.springnativeawslambda.function.model;
220

321
import com.fasterxml.jackson.annotation.JsonProperty;

0 commit comments

Comments
 (0)