@aws-cdk/aws-sns
Advanced tools
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 resourcesChangelog
0.21.0 (2018-12-20)
role
property in CFN CodePipeline Actions
from Role
to IRole
. This is needed to use imported Roles when creating Actions.includeBuildID
property of
S3BucketBuildArtifacts
was renamed to includeBuildId
(note the
lower-case trailing d
).Changelog
0.20.0 (2018-12-13)
addToPipeline
method to IRepository. (#1329) (c4a9b74)haveResource
can cause tests to
fail. If allowing extension of the expected values is the intended behavior, you can
switch to the haveResourceLike
matcher instead, which exposes the previous
behavior.Changelog
0.19.0 (2018-12-04)
ecr.RepositoryRef
has been replaced by ecr.IRepository
, which
means that RepositoryRef.import
is now Repository.import
. Futhermore, the CDK
Toolkit must also be upgraded since the docker asset protocol was modified.
IRepository.grantUseImage
was renamed to IRepository.grantPull
.addBuildToPipeline
was renamed to addToPipeline
and addTestToPipeline
was renamed to addPipelineToTest
in order to align
with naming conventions.CloudFormationCapabilities.IAM
renamed to
CloudFormation.AnonymousIAM
and PipelineCloudFormationDeployActionProps.capabilities?: CloudFormationCapabilities[]
has been changed to
PipelineCloudFormationDeployActionProps.capabilities?: CloudFormationCapabilities
no longer an array.
PipelineCloudFormationDeployActionProps.fullPermissions?:
has been
renamed to PipelineCloudFormationDeployActionProps.adminPermissions:
and is required instead of optional.<a name="0.18.1"></a>