Registry / cloud / aws-aws-cdk-go-awscdk-v2

aws-aws-cdk-go-awscdk-v2

JSON →
library2.251.0gogounverified

Version 2 of the AWS Cloud Development Kit library for defining cloud infrastructure in Go.

go get github.com/aws/aws-cdk-go/awscdk/v2
INSTALL
IMPORT
SIG · AWS-AWS-CDK-GO-AWS
A
aws-aws-cdk-go-awscdk-v2
cloudgov2.251.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

awscdk
github.com/aws/aws-cdk-go/awscdk/v2

Define and synthesize a minimal CDK stack

package main import ( "github.com/aws/aws-cdk-go/awscdk/v2" "github.com/aws/constructs-go/constructs/v10" "github.com/aws/jsii-runtime-go" ) type MyStack struct { awscdk.Stack } func NewMyStack(scope constructs.Construct, id string, props *awscdk.StackProps) awscdk.Stack { stack := awscdk.NewStack(scope, &id, props) return stack } func main() { app := awscdk.NewApp(nil) NewMyStack(app, "MyStack", nil) app.Synth(nil) }
Debug
Known issues
breakingCDK v2 is not backward-compatible with v1; constructs and APIs differ significantly.
fix
Use v2 imports and follow v2 patterns; do not mix v1 and v2 constructs.
affects: >=2.0.0
Upgrade
Version history
2.251.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
34 hits · last 30 days
node
30
OpenAI (training)
1
Resources
aws-aws-cdk-go-awscdk-v2 — go get aws-aws-cdk-go-awscdk-v2 · libregistry