@aws-cdk/cdk
Advanced tools
Changelog
0.27.0 (2019-03-28)
npx cdk
npx cdk
(#2113) (32bca05)cloudWatchLogsRetentionTimeDays
in @aws-cdk/aws-cloudtrail
now uses a logs.RetentionDays
instead of a LogRetention
.stack._toCloudFormation
method is now unavailable and is replaced by @aws-cdk/assert.SynthUtils.toCloudFormation(stack)
.kmsKeyArn: string
by kmsKey: kms.IEncryptionKey
in DatabaseClusterProps
VpcNetwork.isPublicSubnet()
has been renamed to
VpcNetwork.isPublicSubnetIds()
.aws-serverless
to aws-sam
vpcPlacement
has been renamed to vpcSubnets
on all objects, subnetsToUse
has been renamed to subnetType
.
natGatewayPlacement
has been renamed to natGatewaySubnets
.Changelog
0.26.0 (2019-03-20)
_toCloudFormation
) (#2047) (515868b), closes #2044 #2016Database
and Table
(#1988) (3117cd3)ContainerImage.fromDockerHub
has been renamed to ContainerImage.fromRegistry
.Changelog
0.25.2 (2019-03-07)
@aws-cdk/cdk
module is not present (#1953) (929e854)viewerProtocolPolicy
to the distribution's behaviors (#1932) (615ecd4)App
API (#1919) (02f991d)Changelog
0.25.0 (2019-02-28)
construct.node.stack
attribute (#1753) (a46cfd8), closes #798CloudTrail.addS3EventSelector
accepts an options
object instead of only a ReadWriteType
value.codedeploy.amazonaws.com
)
yourself.parameter.valueAsString
=>
parameter.stringValue
, rename parameter.valueAsList
=>
parameter.stringListValue
, rename ssmParameter.parameterValue
=>
ssmParameter.stringValue
or ssmParameter.stringListValue
depending
on type, rename secretString.value
=> secretString.stringValue
,
rename secret.toSecretString()
=>secret.secretString
Stack.find(c)
and Stack.tryFind(c)
were
replaced by c.node.stack
.partitionKey
is now a required property when defining a
dynamodb.Table
. The addPartitionKey
and addSortKey
methods have been removed.myConstruct.apply( ... )
to
myConstruct.node.apply( ... )
.toCodePipelineAction
.AutoScalingGroup
, renamed minSize
=>
minCapacity
, maxSize
=> maxCapacity
, for consistency with
desiredCapacity
and also Application AutoScaling.
For ECS's addDefaultAutoScalingGroupCapacity()
, instanceCount
=>
desiredCapacity
and the function now takes an ID (pass
"DefaultAutoScalingGroup"
to avoid interruption to your deployments).Changelog
0.24.0 (2019-02-06)
cdk.Tag
has been renamed to cdk.CfnTag
to enable cdk.Tag
to be the Tag Aspect.Changelog
0.23.0 (2019-02-04)
selectionPattern
to integrationResponses
(#1636) (7cdbcec), closes #1608roleName
available on IRole
(#1589) (9128390)role
property in the CloudFormation Actions has been renamed to deploymentRole
.role
property in the app-delivery
package has been renamed to deploymentRole
.Changelog
0.22.0 (2019-01-10)
This is a major release with multiple breaking changes in the core layers. Please consult the breaking changes section below for details.
We are focusing these days on finalizing the common patterns and APIs of the CDK framework and the AWS Construct Library, which is why you are seeing all these breaking changes. Expect a few more releases with changes of that nature as we stabilize these APIs, so you might want to hold off with upgrading. We will communicate when this foundational work is complete.
export()
and import()
to share constructs between stacks, you can stop doing that, instead of FooImportProps
accept an IFoo
directly on the consuming stack, and use that object as usual.ArnUtils.fromComponents()
and ArnUtils.parse()
have been moved onto Stack
.AWS::AccountId
etc) are now also accessible via Stack
, as stack.accountId
etc.Fn
class (e.g. Fn.join(...)
instead of new FnJoin(...).toString()
)resolve()
has been moved to this.node.resolve()
.CloudFormationJSON.stringify()
has been moved to this.node.stringifyJson()
. validate()
now should be protected
.cloudformation.XxxResource
classes have been removed. Use the CfnXxx
classes instead.CfnXxx
resource attributes that represented a list of strings are now typed as string[]
s (via #1144). Attributes that represent strings, are still typed as string
(#712) and all other attribute types are represented as cdk.Token
.route53.TXTRecord
class was renamed to route53.TxtRecord
.zone
when created (not assuming zone is the parent construct).lambda.FunctionRef
to lambda.Function
.XxxRef
abstract classes are now IXxx
interfacesXxxRefProps
are now XxxImportProps
XxxRef.import(...)
are now Xxx.import(...)
accept XxxImportProps
and return IXxx
export(): XxxImportProps
is now defined in IXxx
and implemented by imported resources