Update aws-cdk monorepo to 0.36.1 #2862
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.27.0->0.36.10.27.0->0.36.10.27.0->0.36.10.27.0->0.36.1Release Notes
aws/aws-cdk (Amazon.CDK)
v0.36.1Bug Fixes
Features
v0.36.0Bug Fixes
Code Refactoring
clusterNamefrom Services (#2980) (a6e4f6a)Features
onXxx()methods (#2921) (ea10f0d), closes #2913BREAKING CHANGES TO EXPERIMENTAL FEATURES
@aws-cdk/cdkmodule was renamed to@aws-cdk/core, python:aws_cdk.core, java: the artifactcdkin groupIdsoftware.amazon.awscdkwas renamed tocore@aws-cdk/cdk.Durationinstead ofnumber, and were renamed to exclude any unit indication.app.run()has been removed (useapp.synth()).CfnResource.optionsproperty was renamed toCfnResource.cfnOptionsto avoid conflicts with properties introduced by derived classes.CfnXxx.cfnResourceTypeNameis nowCFN_RESOURCE_TYPE_NAMEin generated CFN resources.ContextProvideris no longer designed to be extended. UseContextProvider.getValueandContextProvider.getKeyas utilities.Context.getSsmParameterhas been removed. Usessm.StringParameter.valueFromLookupContext.getAvailabilityZoneshas been removed. Usestack.availabilityZonesContext.getDefaultAccountandgetDefaultRegionhave been removed an no longer available. Use the environment variablesCDK_DEFAULT_ACCOUNTandCDK_DEFAULT_REGIONinstead.StackProps.autoRunwas renamed toStackProps.autoSynth.CfnElement.refAsStringrenamed torefofstringtype. TheIResolvableversion have been removed.IStringValuerenamed toIStringProducerIncluderenamed toCfnIncludeCfnprefix was added to the following types:CfnCreationPolicy,CfnResourceAutoScalingCreationPolicy,CfnResourceAutoScalingCreationPolicy,CfnDeletionPolicy,CfnUpdatePolicy,CfnAutoScalingRollingUpdate,CfnAutoScalingReplacingUpdate,CfnAutoScalingScheduledAction,CfnCodeDeployLambdaAliasUpdate,CfnTagCfnRuleAssertion,CfnDynamicReferencePropsdeepMergeis no longer exported.CfnOutputProps.exportwas renamed toexportName.CfnOutputall properties are now privateStringListCfnOutputhas been removedFnwere madestatic, and theFnconstructor was made private.VpcNetworkProviderhas been removed. UseVpc.fromLookup.ec2.MachineImagewill now resolve AMIs from SSM during deployment.ecs.EcsOptimizedAmiwill now resolve AMis from SSM during deployment.hardwareTypewasSTANDARD. Now it always defaults to Amazon Linux v2.service.clusterNamehas been replaced with.cluster.requiredTransformis nowREQUIRED_TRANSFORMin generated code.AwsCustomResourceclass was moved to a new module called @aws-cdk/custom-resourcecapabilitiesproperty is now an array to support multiple capabilities.Pipeline.crossRegionScaffoldStackshas been renamed tocrossRegionSupport, and its type changed fromCrossRegionScaffoldStacktoCrossRegionSupport.CodeCommitAction.pollForSourceChangestotriggerand make it an enum.trigger, and make it an enum.CloudFormationActionandCloudFormationDeployAction.HostedZoneProviderhas been removed. UseHostedZone.fromLookup.v0.35.0Bug Fixes
cdk context(#2870) (b8a1c8e), closes #2854Code Refactoring
nameinStagePropstostageName. (#2882) (be574a1)hwTypetohardwareType(#2916) (1aa0589), closes #2896aws-sns-subscribers(#2804) (9ef899c)Features
BREAKING CHANGES TO EXPERIMENTAL FEATURES
AssetProps.packaginghas been removed and is now automatically discovered based on the file type.ZipDirectoryAssethas been removed, useaws-s3-assets.Asset.FileAssethas been removed, useaws-s3-assets.Asset.Code.directoryandCode.filehave been removed. UseCode.asset.hardwareTypefromhwType.TableOptions.pitrEnabledrenamed topointInTimeRecovery.TableOptions.sseEnabledrenamed toserverSideEncryption.TableOptions.ttlAttributeNamerenamed totimeToLiveAttribute.TableOptions.streamSpecificationrenamedstream.ContainerImage.fromAsset()now takes only build directorydirectly (no need to pass
scopeoridanymore).ISecret.secretJsonValuerenamed tosecretValueFromJson.ParameterStoreStringhas been removed. UseStringParameter.fromStringParameterAttributes.ParameterStoreSecureStringhas been removed. UseStringParameter.fromSecureStringParameterAttributes.ParameterOptions.namewas renamed toparameterName.newStreamrenamed toaddStreamand doesn't need a scopenewSubscriptionFilterrenamed toaddSubscriptionFilterand doesn't need a scopenewMetricFilterrenamed toaddMetricFilterand doesn't need a scopeNewSubscriptionFilterPropsrenamed toSubscriptionPropsNewLogStreamPropsrenamed toLogStreamOptionsNewMetricFilterPropsrenamed toMetricFilterOptionsJSONPatternrenamed toJsonPatternMethodOptions.authorizerIdis now calledauthorizerand accepts anIAuthorizerwhich is a placeholder interface for the authorizer resource.restapi.executeApiArnrenamed toarnForExecuteApi.restapi.latestDeploymentanddeploymentStageare now read-only.EventPattern.detailis now a map.scheduleExpression: stringis nowschedule: Schedule.cdk.RemovalPolicyto configure the resource's removal policy.
applyRemovalPolicyis nowCfnResource.applyRemovalPolicy.RemovalPolicy.Orphanhas been renamed toRetain.RemovalPolicy.Forbidhas been removed, useRetain.RepositoryProps.retainis nowremovalPolicy, and defaults toRetaininstead of remove since ECR is a stateful resourceKeyProps.retainis nowremovalPolicyLogGroupProps.retainLogGroupis nowremovalPolicyLogStreamProps.retainLogStreamis nowremovalPolicyDatabaseClusterProps.deleteReplacePolicyis nowremovalPolicyDatabaseInstanceNewProps.deleteReplacePolicyis nowremovalPolicyattrinstead of the resource type. For example, in S3bucket.bucketArnis nowbucket.attrArn.propertyOverrideshas been removed from all "Cfn" resources, insteadusers can now read/write resource properties directly on the resource class. For example, instead of
lambda.propertyOverrides.runtimejust uselambda.runtime.stageNameinstead ofnameFunction.addLayertoaddLayersand made it variadicIFunction.handlerpropertyIVersion.versionArnproperty (the value is atfunctionArn)SingletonLayerVersionLogRetentionPolicyStatementno longer has a fluid API, and accepts aprops object to be able to set the important fields.
ImportedResourcePrincipaltoUnknownPrincipal.managedPolicyArnsrenamed tomanagedPolicies, takesreturn value from
ManagedPolicy.fromAwsManagedPolicyName().PolicyDocument.postProcess()is now removed.PolicyDocument.addStatement()renamed toaddStatements.PolicyStatementis no longerIResolvable, call.toStatementJson()to retrieve the IAM policy statement JSON.
AwsPrincipalhas been removed, useArnPrincipalinstead.s3.StorageClassis now an enum-like class instead of a regularenum. This means that you need to call
.valuein order to obtain it's value.s3.Coordinatesrenamed tos3.LocationArtifact.s3Coordinatesrenamed toArtifact.s3Location.BuildSpecobject.lambda.Runtime.NodeJS*are nowlambda.Runtime.Nodejs*StackAPIstack.namerenamed tostack.stackNamestack.stackNamewill return the concrete stack name. UseAws.stackNameto indicate { Ref: "AWS::StackName" }.stack.accountandstack.regionwill return the concrete account/region only if they are explicitly specified when the stack is defined (under theenvprop). Otherwise, they will return a token that resolves to the AWS::AccountId and AWS::Region intrinsic references. UseContext.getDefaultAccount()andContext.getDefaultRegion()to obtain the defaults passed through the toolkit in case those are needed. UseToken.isUnresolved(v)to check if you have a concrete or intrinsic.stack.logicalIdhas been removed. Usestack.getLogicalId()stack.envhas been removed, usestack.account,stack.regionandstack.environmentinsteadstack.accountIdrenamed tostack.account(to allow treating account more abstractly)AvailabilityZoneProvidercan now be accessed throughContext.getAvailabilityZones()SSMParameterProvidercan now be accessed throughContext.getSsmParameter()parseArnis nowArn.parsearnFromComponentsis nowarn.formatnode.lockandnode.unlockare now privatestack.requireRegionandrequireAccountIdhave been removed. UseToken.unresolved(stack.region)insteadstack.parentApphave been removed. UseApp.isApp(stack.node.root)instead.stack.missingContextis now privatestack.renameLogicalhave been renamed tostack.renameLogicalIdIAddressingScheme,HashedAddressingSchemeandLogicalIDsare now internal. OverrideStack.allocateLogicalIdto customize how logical IDs are allocated to resources.--rename, and the stacknames are now immutable on the stack artifact.
requires an integration object from the
@aws-cdk/aws-sns-subscriberspackage.
roleNameinRolePropsis now of typePhysicalNamebucketNameinBucketPropsis now of typePhysicalNameroleNameinRolePropsis now of typePhysicalNamev0.34.0Bug Fixes
aws-cloudwatch-actions(#2688) (e3df21a)Code Refactoring
Features
BREAKING CHANGES TO EXPERIMENTAL FEATURES
recordValue: stringprop inroute53.TxtRecordchanged tovalues: string[]recordValueprop inroute53.CnameRecordrenamed todomainNameroute53.AliasRecordhas been removed, useroute53.ARecordorroute53.AaaaRecordwith thetargetprop.EncryptionKeyAliasclass was renamed toAlias.Associated types (such as
EncryptionKeyAliasProps) were renamed in thesame way.
App.run()was renamed toApp.synth()(soft deprecation, it will be removed in the next release).node.stackis nowStack.of(construct)(fixes #2766)node.resolvehas been moved tostack.resolve.node.stringifyJsonhas been moved tostack.stringifyJson.node.validateTreeis nowConstructNode.validate(node)node.prepareTreeis nowConstructNode.prepare(node)node.getContextis nownode.tryGetContextnode.recordReferenceis nownode.addReferencenode.applyis nownode.applyAspectnode.ancestors()is nownode.scopesnode.requiredhas been removed.node.typenamehas been removed.node.addChildis now privatenode.findReferences()is nownode.referencesnode.findDependencies()is nownode.dependenciesstack.dependencies()is nowstack.dependenciesCfnElement.stackPathhas been removed.CloudFormationLangis now internal (usestack.toJsonString())requires an integration object from the
@aws-cdk/aws-cloudwatch-actionspackage.
targets.EcsEc2Taskrenamed totargets.EcsTaskendpointis now typestring(previouslyany)resultin the Pass state is now typemap(previouslyany)@aws-cdk/applet-js,@aws-cdk/aws-autoscaling-api,@aws-cdk/aws-codedeploy-apiaddPropertyOverrideshould match in capitalization to the CloudFormation schema (normally pascal case). For example,addPropertyOverride('accessControl', 'xxx')should now beaddPropertyOverride('AccessControl', 'xxx').rds.RotationSingleUserrenamed tords.SecretRotationrds.ClusterParameterGroupno longer hassetParameter()andremoveParameter()methods, use the parameters prop directly in the constructor instead.v0.33.0IMPORTANT: apps created with the CDK version 0.33.0 and above cannot be used with an older CLI version.
Bug Fixes
cdk docsopen the new API reference (#2633) (6450758)dependencyRootsfrom public API (#2668) (2ba5ad2), closes #2348Features
noUnusedLocalsandnoUnusedParametersfrom typescript templates (#2654) (b061826)BREAKING CHANGES TO EXPERIMENTAL FEATURES
@aws-cdk/aws-logs-destinationspackage.addPutJobResultPolicyproperty when creating LambdaInvokeAction.--interactivehas been removed--numberedhas been removed--stagingis now a boolean flag that indicates whether assets should be copied to the--outputdirectory or directly referenced (--no-stagingis useful for e.g. local debugging with SAM CLI)SynthUtils.templateForStackNamehas been removed (useSynthUtils.synthesize(stack).template).cxapi.SynthesizedStackrenamed tocxapi.CloudFormationStackArtifactwith multiple API changes.cdk.App.run()now returns acxapi.CloudAssemblyinstead ofcdk.ISynthesisSession.@aws-cdk/aws-s3-notificationspackage.@aws-cdk/aws-autoscaling-hooktargetspackage.EcsQueueWorkerService,FargateQueueWorkerService,LoadBalancedEcsService,LoadBalancedFargateServiceandLoadBalancedFargateServiceApplets.leftAxisRange=>leftYAxis,rightAxisRange=>rightYAxis, renameYAxisRange=>YAxisProps.v0.32.0Bug Fixes
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.