This repository has been archived by the owner on Jan 23, 2024. It is now read-only.
[Snyk] Upgrade @aws-cdk/aws-codebuild from 0.24.1 to 0.39.0 #5
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.
Snyk has created this PR to upgrade @aws-cdk/aws-codebuild from 0.24.1 to 0.39.0.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.Release notes
Package name: @aws-cdk/aws-codebuild
Bug Fixes
assets
,aws-ecr-assets
andaws-s3-assets
are now experimental instead of stableBREAKING CHANGES
assets
is now experimental instead of stableaws-ecr-assets
is now experimental instead of stableaws-s3-assets
is now experimental instead of stableBug Fixes
Features
BREAKING CHANGES
LinuxBuildImage.fromDockerHub()
has been renamed tofromDockerRegistry()
andWindowsBuildImage.fromDockerHub()
has been renamed tofromDockerRegistry()
aws-iam.User
andGroup
:managedPolicyArns
=>managedPolicies
.IPv4
=>Ipv4
,IPv6
=>Ipv6
,AZs
=>Azs
.Bug Fixes
BREAKING CHANGES
construct.findChild()
now only looks up direct childrenPort.toRuleJSON
was renamed totoRuleJson
PipelineProject.addSecondaryArtifact
now returns void (formerly any)Project.addSecondaryArtifact
now returns void (formerly any)Bug Fixes
Features
Bug Fixes
Features
Bug Fixes
Code Refactoring
clusterName
from Services (#2980) (a6e4f6a)Features
onXxx()
methods (#2921) (ea10f0d), closes #2913BREAKING CHANGES
@aws-cdk/cdk
module was renamed to@aws-cdk/core
, python:aws_cdk.core
, java: the artifactcdk
in groupIdsoftware.amazon.awscdk
was renamed tocore
@aws-cdk/cdk.Duration
instead ofnumber
, and were renamed to exclude any unit indication.app.run()
has been removed (useapp.synth()
).CfnResource.options
property was renamed toCfnResource.cfnOptions
to avoid conflicts with properties introduced by derived classes.CfnXxx.cfnResourceTypeName
is nowCFN_RESOURCE_TYPE_NAME
in generated CFN resources.ContextProvider
is no longer designed to be extended. UseContextProvider.getValue
andContextProvider.getKey
as utilities.Context.getSsmParameter
has been removed. Usessm.StringParameter.valueFromLookup
Context.getAvailabilityZones
has been removed. Usestack.availabilityZones
Context.getDefaultAccount
andgetDefaultRegion
have been removed an no longer available. Use the environment variablesCDK_DEFAULT_ACCOUNT
andCDK_DEFAULT_REGION
instead.StackProps.autoRun
was renamed toStackProps.autoSynth
.CfnElement.refAsString
renamed toref
ofstring
type. TheIResolvable
version have been removed.IStringValue
renamed toIStringProducer
Include
renamed toCfnInclude
Cfn
prefix was added to the following types:CfnCreationPolicy
,CfnResourceAutoScalingCreationPolicy
,CfnResourceAutoScalingCreationPolicy
,CfnDeletionPolicy
,CfnUpdatePolicy
,CfnAutoScalingRollingUpdate
,CfnAutoScalingReplacingUpdate
,CfnAutoScalingScheduledAction
,CfnCodeDeployLambdaAliasUpdate
,CfnTag
CfnRuleAssertion
,CfnDynamicReferenceProps
deepMerge
is no longer exported.CfnOutputProps.export
was renamed toexportName
.CfnOutput
all properties are now privateStringListCfnOutput
has been removedFn
were madestatic
, and theFn
constructor was made private.VpcNetworkProvider
has been removed. UseVpc.fromLookup
.ec2.MachineImage
will now resolve AMIs from SSM during deployment.ecs.EcsOptimizedAmi
will now resolve AMis from SSM during deployment.hardwareType
wasSTANDARD
. Now it always defaults to Amazon Linux v2.service.clusterName
has been replaced with.cluster
.requiredTransform
is nowREQUIRED_TRANSFORM
in generated code.AwsCustomResource
class was moved to a new module called @aws-cdk/custom-resourcecapabilities
property is now an array to support multiple capabilities.Pipeline.crossRegionScaffoldStacks
has been renamed tocrossRegionSupport
, and its type changed fromCrossRegionScaffoldStack
toCrossRegionSupport
.CodeCommitAction.pollForSourceChanges
totrigger
and make it an enum.trigger
, and make it an enum.CloudFormationAction
andCloudFormationDeployAction
.HostedZoneProvider
has been removed. UseHostedZone.fromLookup
.Bug Fixes
cdk context
(#2870) (b8a1c8e), closes #2854Code Refactoring
name
inStageProps
tostageName
. (#2882) (be574a1)hwType
tohardwareType
(#2916) (1aa0589), closes #2896aws-sns-subscribers
(#2804) (9ef899c)Features
BREAKING CHANGES
AssetProps.packaging
has been removed and is now automatically discovered based on the file type.ZipDirectoryAsset
has been removed, useaws-s3-assets.Asset
.FileAsset
has been removed, useaws-s3-assets.Asset
.Code.directory
andCode.file
have been removed. UseCode.asset
.hardwareType
fromhwType
.TableOptions.pitrEnabled
renamed topointInTimeRecovery
.TableOptions.sseEnabled
renamed toserverSideEncryption
.TableOptions.ttlAttributeName
renamed totimeToLiveAttribute
.TableOptions.streamSpecification
renamedstream
.ContainerImage.fromAsset()
now takes only build directorydirectly (no need to pass
scope
orid
anymore).ISecret.secretJsonValue
renamed tosecretValueFromJson
.ParameterStoreString
has been removed. UseStringParameter.fromStringParameterAttributes
.ParameterStoreSecureString
has been removed. UseStringParameter.fromSecureStringParameterAttributes
.ParameterOptions.name
was renamed toparameterName
.newStream
renamed toaddStream
and doesn't need a scopenewSubscriptionFilter
renamed toaddSubscriptionFilter
and doesn't need a scopenewMetricFilter
renamed toaddMetricFilter
and doesn't need a scopeNewSubscriptionFilterProps
renamed toSubscriptionProps
NewLogStreamProps
renamed toLogStreamOptions
NewMetricFilterProps
renamed toMetricFilterOptions
JSONPattern
renamed toJsonPattern
MethodOptions.authorizerId
is now calledauthorizer
and accepts anIAuthorizer
which is a placeholder interface for the authorizer resource.restapi.executeApiArn
renamed toarnForExecuteApi
.restapi.latestDeployment
anddeploymentStage
are now read-only.EventPattern.detail
is now a map.scheduleExpression: string
is nowschedule: Schedule
.cdk.RemovalPolicy
to configure the resource's removal policy.
applyRemovalPolicy
is nowCfnResource.applyRemovalPolicy
.RemovalPolicy.Orphan
has been renamed toRetain
.RemovalPolicy.Forbid
has been removed, useRetain
.RepositoryProps.retain
is nowremovalPolicy
, and defaults toRetain
instead of remove since ECR is a stateful resourceKeyProps.retain
is nowremovalPolicy
LogGroupProps.retainLogGroup
is nowremovalPolicy
LogStreamProps.retainLogStream
is nowremovalPolicy
DatabaseClusterProps.deleteReplacePolicy
is nowremovalPolicy
DatabaseInstanceNewProps.deleteReplacePolicy
is nowremovalPolicy
attr
instead of the resource type. For example, in S3bucket.bucketArn
is nowbucket.attrArn
.propertyOverrides
has been removed from all "Cfn" resources, insteadusers can now read/write resource properties directly on the resource class. For example, instead of
lambda.propertyOverrides.runtime
just uselambda.runtime
.stageName
instead ofname
Function.addLayer
toaddLayers
and made it variadicIFunction.handler
propertyIVersion.versionArn
property (the value is atfunctionArn
)SingletonLayerVersion
LogRetention
PolicyStatement
no longer has a fluid API, and accepts aprops object to be able to set the important fields.
ImportedResourcePrincipal
toUnknownPrincipal
.managedPolicyArns
renamed tomanagedPolicies
, takesreturn value from
ManagedPolicy.fromAwsManagedPolicyName()
.PolicyDocument.postProcess()
is now removed.PolicyDocument.addStatement()
renamed toaddStatements
.PolicyStatement
is no longerIResolvable
, call.toStatementJson()
to retrieve the IAM policy statement JSON.
AwsPrincipal
has been removed, useArnPrincipal
instead.s3.StorageClass
is now an enum-like class instead of a regularenum. This means that you need to call
.value
in order to obtain it's value.s3.Coordinates
renamed tos3.Location
Artifact.s3Coordinates
renamed toArtifact.s3Location
.BuildSpec
object.lambda.Runtime.NodeJS*
are nowlambda.Runtime.Nodejs*
Stack
APIstack.name
renamed tostack.stackName
stack.stackName
will return the concrete stack name. UseAws.stackName
to indicate { Ref: "AWS::StackName" }.stack.account
andstack.region
will return the concrete account/region only if they are explicitly specified when the stack is defined (under theenv
prop). 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.logicalId
has been removed. Usestack.getLogicalId()
stack.env
has been removed, usestack.account
,stack.region
andstack.environment
insteadstack.accountId
renamed tostack.account
(to allow treating account more abstractly)AvailabilityZoneProvider
can now be accessed throughContext.getAvailabilityZones()
SSMParameterProvider
can now be accessed throughContext.getSsmParameter()
parseArn
is nowArn.parse
arnFromComponents
is nowarn.format
node.lock
andnode.unlock
are now privatestack.requireRegion
andrequireAccountId
have been removed. UseToken.unresolved(stack.region)
insteadstack.parentApp
have been removed. UseApp.isApp(stack.node.root)
instead.stack.missingContext
is now privatestack.renameLogical
have been renamed tostack.renameLogicalId
IAddressingScheme
,HashedAddressingScheme
andLogicalIDs
are now internal. OverrideStack.allocateLogicalId
to 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-subscribers
package.
roleName
inRoleProps
is now of typePhysicalName
bucketName
inBucketProps
is now of typePhysicalName
roleName
inRoleProps
is now of typePhysicalName
Bug Fixes
aws-cloudwatch-actions
(#2688) (e3df21a)Code Refactoring
Features
BREAKING CHANGES
recordValue: string
prop inroute53.TxtRecord
changed tovalues: string[]
recordValue
prop inroute53.CnameRecord
renamed todomainName
route53.AliasRecord
has been removed, useroute53.ARecord
orroute53.AaaaRecord
with thetarget
prop.EncryptionKeyAlias
class 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.stack
is nowStack.of(construct)
(fixes #2766)node.resolve
has been moved tostack.resolve
.node.stringifyJson
has been moved tostack.stringifyJson
.node.validateTree
is nowConstructNode.validate(node)
node.prepareTree
is nowConstructNode.prepare(node)
node.getContext
is nownode.tryGetContext
node.recordReference
is nownode.addReference
node.apply
is nownode.applyAspect
node.ancestors()
is nownode.scopes
node.required
has been removed.node.typename
has been removed.node.addChild
is now privatenode.findReferences()
is nownode.references
node.findDependencies()
is nownode.dependencies
stack.dependencies()
is nowstack.dependencies
CfnElement.stackPath
has been removed.CloudFormationLang
is now internal (usestack.toJsonString()
)requires an integration object from the
@aws-cdk/aws-cloudwatch-actions
package.
targets.EcsEc2Task
renamed totargets.EcsTask
endpoint
is now typestring
(previouslyany
)result
in the Pass state is now typemap
(previouslyany
)@aws-cdk/applet-js
,@aws-cdk/aws-autoscaling-api
,@aws-cdk/aws-codedeploy-api
addPropertyOverride
should match in capitalization to the CloudFormation schema (normally pascal case). For example,addPropertyOverride('accessControl', 'xxx')
should now beaddPropertyOverride('AccessControl', 'xxx')
.rds.RotationSingleUser
renamed tords.SecretRotation
rds.ClusterParameterGroup
no longer hassetParameter()
andremoveParameter()
methods, use the parameters prop directly in the constructor instead.IMPORTANT: apps created with the CDK version 0.33.0 and above cannot be used with an older CLI version.
Bug Fixes
cdk docs
open the new API reference (#2633) (6450758)dependencyRoots
from public API (#2668) (2ba5ad2), closes #2348Features
noUnusedLocals
andnoUnusedParameters
from typescript templates (#2654) (b061826)BREAKING CHANGES
@aws-cdk/aws-logs-destinations
package.addPutJobResultPolicy
property when creating LambdaInvokeAction.--interactive
has been removed--numbered
has been removed--staging
is now a boolean flag that indicates whether assets should be copied to the--output
directory or directly referenced (--no-staging
is useful for e.g. local debugging with SAM CLI)SynthUtils.templateForStackName
has been removed (useSynthUtils.synthesize(stack).template
).cxapi.SynthesizedStack
renamed tocxapi.CloudFormationStackArtifact
with multiple API changes.cdk.App.run()
now returns acxapi.CloudAssembly
instead ofcdk.ISynthesisSession
.@aws-cdk/aws-s3-notifications
package.@aws-cdk/aws-autoscaling-hooktargets
package.EcsQueueWorkerService
,FargateQueueWorkerService
,LoadBalancedEcsService
,LoadBalancedFargateService
andLoadBalancedFargateServiceApplets
.leftAxisRange
=>leftYAxis
,rightAxisRange
=>rightYAxis
, renameYAxisRange
=>YAxisProps
.Bug Fixes
Code Refactoring
Features
BREAKING CHANGES
Load Balancer as an Alias Record Target now requires an integration
object from the
@aws-cdk/aws-route53-targets
package.IBucket.arnForObject
method no longerconcatenates path fragments on your behalf. Pass the
/
-concatenatedkey pattern instead.
export
methods from all AWS resources have been removed. CloudFormation Exports are now automatically created when attributes are referenced across stacks within the same app. To export resources manually, you can explicitly define aCfnOutput
.kms.EncryptionKey
renamed tokms.Key
ec2.VpcNetwork
renamed toec2.Vpc
ec2.VpcSubnet
renamed toec2.Subnet
cloudtrail.CloudTrail
renamedto
cloudtrail.Trail`XxxAttribute
andXxxImportProps
interfaces which were no longer in used after their correspondingexport
method was deleted and there was no use for them in imports.ecs.ClusterAttributes
now acceptsIVpc
andISecurityGroup
instead of attributes. You can use theircorresponding
fromXxx
methods to import them as needed.servicediscovery.CnameInstance.instanceCname
renamed tocname
.glue.IDatabase.locationUrl
is now only inglue.Database
(not on the interface)ec2.TcpPortFromAttribute
andUdpPortFromAttribute
removed. UseTcpPort
andUdpPort
withnew Token(x).toNumber
instead.ec2.VpcNetwork.importFromContext
renamed toec2.Vpc.fromLookup
iam.IRole.roleId
has been removed from the interface, butRole.roleId
is still available for owned resources.loadBalancer
property in ServerDeploymentGroupProps has been changed.apigateway.ResourceBase.trackChild
is now internal.cloudfront.S3OriginConfig.originAccessIdentity
is noworiginAccessIdentityId
codedeploy.LambdaDeploymentGroup.alarms
is nowcloudwatch.IAlarm[]
(previouslycloudwatch.Alarm[]
)codepipeline.crossRegionScaffoldingStacks
renamed tocrossRegionScaffolding
codepipeline.CrossRegionScaffoldingStack
renamed tocodepipeline.CrossRegionScaffolding
and cannot be instantiated (abstract)ec2.VpcSubnet.addDefaultRouteToNAT
renamed toaddDefaultNatRoute
and made publicec2.VpcSubnet.addDefaultRouteToIGW
renamed toaddDefaultInternetRoute
, made public and first argument is the gateway ID (string) and not the CFN L1 classecs.Ec2EventRuleTarget.taskDefinition
is nowITaskDefinition
(previouslyTaskDefinition
)lambda.IEventSource.bind
now acceptsIFunction
instead ofFunctionBase
. UseIFunction.addEventSourceMapping
to add an event source mapping under the function.lambda.Layer.grantUsage
renamed tolambda.layer.addPermission
and returns voidstepfunctions.StateMachine.role
is nowiam.IRole
(previouslyiam.Role
)onXxx()
CloudWatch Event methods now have the signature:onAlarm
was renamed toaddAlarmAction
onOk
was renamed toaddOkAction
onInsufficientData
was renamed toaddInsufficientDataAction
onLifecycleTransition
was renamed toaddLifecycleHook
onPreHook
was renamed toaddPreHook
onPostHook
was renamed toaddPostHook
onXxx
were renamed toaddXxxTrigger
onImagePushed
was renamed toonCloudTrailImagePushed
onEvent
was renamed toaddEventNotification
onObjectCreated
was renamed toaddObjectCreatedNotification
onObjectRemoved
was renamed toaddObjectRemovedNotification
onPutObject
was renamed toonCloudTrailPutObject
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs