agent-claw: automated task changes
This commit is contained in:
42
cdk/node_modules/aws-cdk/lib/init-templates/app/java/src/main/java/com/myorg/%name.PascalCased%App.template.java
generated
vendored
Normal file
42
cdk/node_modules/aws-cdk/lib/init-templates/app/java/src/main/java/com/myorg/%name.PascalCased%App.template.java
generated
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
package com.myorg;
|
||||
|
||||
import software.amazon.awscdk.App;
|
||||
import software.amazon.awscdk.Environment;
|
||||
import software.amazon.awscdk.StackProps;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
public class %name.PascalCased%App {
|
||||
public static void main(final String[] args) {
|
||||
App app = new App();
|
||||
|
||||
new %name.PascalCased%Stack(app, "%stackname%", StackProps.builder()
|
||||
// If you don't specify 'env', this stack will be environment-agnostic.
|
||||
// Account/Region-dependent features and context lookups will not work,
|
||||
// but a single synthesized template can be deployed anywhere.
|
||||
|
||||
// Uncomment the next block to specialize this stack for the AWS Account
|
||||
// and Region that are implied by the current CLI configuration.
|
||||
/*
|
||||
.env(Environment.builder()
|
||||
.account(System.getenv("CDK_DEFAULT_ACCOUNT"))
|
||||
.region(System.getenv("CDK_DEFAULT_REGION"))
|
||||
.build())
|
||||
*/
|
||||
|
||||
// Uncomment the next block if you know exactly what Account and Region you
|
||||
// want to deploy the stack to.
|
||||
/*
|
||||
.env(Environment.builder()
|
||||
.account("123456789012")
|
||||
.region("us-east-1")
|
||||
.build())
|
||||
*/
|
||||
|
||||
// For more information, see https://docs.aws.amazon.com/cdk/latest/guide/environments.html
|
||||
.build());
|
||||
|
||||
app.synth();
|
||||
}
|
||||
}
|
||||
|
||||
24
cdk/node_modules/aws-cdk/lib/init-templates/app/java/src/main/java/com/myorg/%name.PascalCased%Stack.template.java
generated
vendored
Normal file
24
cdk/node_modules/aws-cdk/lib/init-templates/app/java/src/main/java/com/myorg/%name.PascalCased%Stack.template.java
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
package com.myorg;
|
||||
|
||||
import software.constructs.Construct;
|
||||
import software.amazon.awscdk.Stack;
|
||||
import software.amazon.awscdk.StackProps;
|
||||
// import software.amazon.awscdk.Duration;
|
||||
// import software.amazon.awscdk.services.sqs.Queue;
|
||||
|
||||
public class %name.PascalCased%Stack extends Stack {
|
||||
public %name.PascalCased%Stack(final Construct scope, final String id) {
|
||||
this(scope, id, null);
|
||||
}
|
||||
|
||||
public %name.PascalCased%Stack(final Construct scope, final String id, final StackProps props) {
|
||||
super(scope, id, props);
|
||||
|
||||
// The code that defines your stack goes here
|
||||
|
||||
// example resource
|
||||
// final Queue queue = Queue.Builder.create(this, "%name.PascalCased%Queue")
|
||||
// .visibilityTimeout(Duration.seconds(300))
|
||||
// .build();
|
||||
}
|
||||
}
|
||||
26
cdk/node_modules/aws-cdk/lib/init-templates/app/java/src/test/java/com/myorg/%name.PascalCased%Test.template.java
generated
vendored
Normal file
26
cdk/node_modules/aws-cdk/lib/init-templates/app/java/src/test/java/com/myorg/%name.PascalCased%Test.template.java
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
// package com.myorg;
|
||||
|
||||
// import software.amazon.awscdk.App;
|
||||
// import software.amazon.awscdk.assertions.Template;
|
||||
// import java.io.IOException;
|
||||
|
||||
// import java.util.HashMap;
|
||||
|
||||
// import org.junit.jupiter.api.Test;
|
||||
|
||||
// example test. To run these tests, uncomment this file, along with the
|
||||
// example resource in java/src/main/java/com/myorg/%name.PascalCased%Stack.java
|
||||
// public class %name.PascalCased%Test {
|
||||
|
||||
// @Test
|
||||
// public void testStack() throws IOException {
|
||||
// App app = new App();
|
||||
// %name.PascalCased%Stack stack = new %name.PascalCased%Stack(app, "test");
|
||||
|
||||
// Template template = Template.fromStack(stack);
|
||||
|
||||
// template.hasResourceProperties("AWS::SQS::Queue", new HashMap<String, Number>() {{
|
||||
// put("VisibilityTimeout", 300);
|
||||
// }});
|
||||
// }
|
||||
// }
|
||||
Reference in New Issue
Block a user