aws-cdk-lib 2.166.0__py3-none-any.whl → 2.167.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of aws-cdk-lib might be problematic. Click here for more details.

Files changed (38) hide show
  1. aws_cdk/__init__.py +1 -1
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.166.0.jsii.tgz → aws-cdk-lib@2.167.1.jsii.tgz} +0 -0
  4. aws_cdk/aws_apigateway/__init__.py +9 -0
  5. aws_cdk/aws_appsync/__init__.py +209 -79
  6. aws_cdk/aws_bedrock/__init__.py +51 -45
  7. aws_cdk/aws_cleanrooms/__init__.py +66 -5
  8. aws_cdk/aws_cloudfront/__init__.py +21 -3
  9. aws_cdk/aws_cloudfront/experimental/__init__.py +3 -3
  10. aws_cdk/aws_codebuild/__init__.py +59 -29
  11. aws_cdk/aws_datasync/__init__.py +51 -0
  12. aws_cdk/aws_ec2/__init__.py +305 -9
  13. aws_cdk/aws_ecs/__init__.py +37 -34
  14. aws_cdk/aws_elasticache/__init__.py +5 -3
  15. aws_cdk/aws_elasticloadbalancingv2/__init__.py +73 -46
  16. aws_cdk/aws_gamelift/__init__.py +52 -40
  17. aws_cdk/aws_inspectorv2/__init__.py +6 -12
  18. aws_cdk/aws_kms/__init__.py +2 -0
  19. aws_cdk/aws_lambda/__init__.py +336 -19
  20. aws_cdk/aws_lambda_nodejs/__init__.py +3 -3
  21. aws_cdk/aws_logs/__init__.py +214 -0
  22. aws_cdk/aws_nimblestudio/__init__.py +6 -103
  23. aws_cdk/aws_quicksight/__init__.py +481 -10
  24. aws_cdk/aws_rds/__init__.py +602 -0
  25. aws_cdk/aws_s3_assets/__init__.py +37 -0
  26. aws_cdk/aws_s3_deployment/__init__.py +5 -0
  27. aws_cdk/aws_servicecatalog/__init__.py +52 -4
  28. aws_cdk/aws_ses/__init__.py +5 -3
  29. aws_cdk/aws_stepfunctions/__init__.py +8 -0
  30. aws_cdk/aws_synthetics/__init__.py +12 -1
  31. aws_cdk/aws_wisdom/__init__.py +344 -24
  32. aws_cdk/triggers/__init__.py +3 -3
  33. {aws_cdk_lib-2.166.0.dist-info → aws_cdk_lib-2.167.1.dist-info}/METADATA +1 -1
  34. {aws_cdk_lib-2.166.0.dist-info → aws_cdk_lib-2.167.1.dist-info}/RECORD +38 -38
  35. {aws_cdk_lib-2.166.0.dist-info → aws_cdk_lib-2.167.1.dist-info}/WHEEL +1 -1
  36. {aws_cdk_lib-2.166.0.dist-info → aws_cdk_lib-2.167.1.dist-info}/LICENSE +0 -0
  37. {aws_cdk_lib-2.166.0.dist-info → aws_cdk_lib-2.167.1.dist-info}/NOTICE +0 -0
  38. {aws_cdk_lib-2.166.0.dist-info → aws_cdk_lib-2.167.1.dist-info}/top_level.txt +0 -0
@@ -14121,10 +14121,10 @@ class CfnEIP(
14121
14121
  '''
14122
14122
  :param scope: Scope in which this resource is defined.
14123
14123
  :param id: Construct identifier for this resource (unique in its scope).
14124
- :param address: Describes an Elastic IP address, or a carrier IP address.
14124
+ :param address: An Elastic IP address or a carrier IP address in a Wavelength Zone.
14125
14125
  :param domain: The network ( ``vpc`` ). If you define an Elastic IP address and associate it with a VPC that is defined in the same template, you must declare a dependency on the VPC-gateway attachment by using the `DependsOn Attribute <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html>`_ on this resource.
14126
14126
  :param instance_id: The ID of the instance. .. epigraph:: Updates to the ``InstanceId`` property may require *some interruptions* . Updates on an EIP reassociates the address on its associated resource.
14127
- :param ipam_pool_id:
14127
+ :param ipam_pool_id: The ID of an IPAM pool which has an Amazon-provided or BYOIP public IPv4 CIDR provisioned to it. For more information, see `Allocate sequential Elastic IP addresses from an IPAM pool <https://docs.aws.amazon.com/vpc/latest/ipam/tutorials-eip-pool.html>`_ in the *Amazon VPC IPAM User Guide* .
14128
14128
  :param network_border_group: A unique set of Availability Zones, Local Zones, or Wavelength Zones from which AWS advertises IP addresses. Use this parameter to limit the IP address to this location. IP addresses cannot move between network border groups. Use `DescribeAvailabilityZones <https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeAvailabilityZones.html>`_ to view the network border groups.
14129
14129
  :param public_ipv4_pool: The ID of an address pool that you own. Use this parameter to let Amazon EC2 select an address from the address pool. .. epigraph:: Updates to the ``PublicIpv4Pool`` property may require *some interruptions* . Updates on an EIP reassociates the address on its associated resource.
14130
14130
  :param tags: Any tags assigned to the Elastic IP address. .. epigraph:: Updates to the ``Tags`` property may require *some interruptions* . Updates on an EIP reassociates the address on its associated resource.
@@ -14211,7 +14211,7 @@ class CfnEIP(
14211
14211
  @builtins.property
14212
14212
  @jsii.member(jsii_name="address")
14213
14213
  def address(self) -> typing.Optional[builtins.str]:
14214
- '''Describes an Elastic IP address, or a carrier IP address.'''
14214
+ '''An Elastic IP address or a carrier IP address in a Wavelength Zone.'''
14215
14215
  return typing.cast(typing.Optional[builtins.str], jsii.get(self, "address"))
14216
14216
 
14217
14217
  @address.setter
@@ -14250,6 +14250,7 @@ class CfnEIP(
14250
14250
  @builtins.property
14251
14251
  @jsii.member(jsii_name="ipamPoolId")
14252
14252
  def ipam_pool_id(self) -> typing.Optional[builtins.str]:
14253
+ '''The ID of an IPAM pool which has an Amazon-provided or BYOIP public IPv4 CIDR provisioned to it.'''
14253
14254
  return typing.cast(typing.Optional[builtins.str], jsii.get(self, "ipamPoolId"))
14254
14255
 
14255
14256
  @ipam_pool_id.setter
@@ -14654,10 +14655,10 @@ class CfnEIPProps:
14654
14655
  ) -> None:
14655
14656
  '''Properties for defining a ``CfnEIP``.
14656
14657
 
14657
- :param address: Describes an Elastic IP address, or a carrier IP address.
14658
+ :param address: An Elastic IP address or a carrier IP address in a Wavelength Zone.
14658
14659
  :param domain: The network ( ``vpc`` ). If you define an Elastic IP address and associate it with a VPC that is defined in the same template, you must declare a dependency on the VPC-gateway attachment by using the `DependsOn Attribute <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html>`_ on this resource.
14659
14660
  :param instance_id: The ID of the instance. .. epigraph:: Updates to the ``InstanceId`` property may require *some interruptions* . Updates on an EIP reassociates the address on its associated resource.
14660
- :param ipam_pool_id:
14661
+ :param ipam_pool_id: The ID of an IPAM pool which has an Amazon-provided or BYOIP public IPv4 CIDR provisioned to it. For more information, see `Allocate sequential Elastic IP addresses from an IPAM pool <https://docs.aws.amazon.com/vpc/latest/ipam/tutorials-eip-pool.html>`_ in the *Amazon VPC IPAM User Guide* .
14661
14662
  :param network_border_group: A unique set of Availability Zones, Local Zones, or Wavelength Zones from which AWS advertises IP addresses. Use this parameter to limit the IP address to this location. IP addresses cannot move between network border groups. Use `DescribeAvailabilityZones <https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeAvailabilityZones.html>`_ to view the network border groups.
14662
14663
  :param public_ipv4_pool: The ID of an address pool that you own. Use this parameter to let Amazon EC2 select an address from the address pool. .. epigraph:: Updates to the ``PublicIpv4Pool`` property may require *some interruptions* . Updates on an EIP reassociates the address on its associated resource.
14663
14664
  :param tags: Any tags assigned to the Elastic IP address. .. epigraph:: Updates to the ``Tags`` property may require *some interruptions* . Updates on an EIP reassociates the address on its associated resource.
@@ -14712,7 +14713,7 @@ class CfnEIPProps:
14712
14713
 
14713
14714
  @builtins.property
14714
14715
  def address(self) -> typing.Optional[builtins.str]:
14715
- '''Describes an Elastic IP address, or a carrier IP address.
14716
+ '''An Elastic IP address or a carrier IP address in a Wavelength Zone.
14716
14717
 
14717
14718
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-eip.html#cfn-ec2-eip-address
14718
14719
  '''
@@ -14745,7 +14746,10 @@ class CfnEIPProps:
14745
14746
 
14746
14747
  @builtins.property
14747
14748
  def ipam_pool_id(self) -> typing.Optional[builtins.str]:
14748
- '''
14749
+ '''The ID of an IPAM pool which has an Amazon-provided or BYOIP public IPv4 CIDR provisioned to it.
14750
+
14751
+ For more information, see `Allocate sequential Elastic IP addresses from an IPAM pool <https://docs.aws.amazon.com/vpc/latest/ipam/tutorials-eip-pool.html>`_ in the *Amazon VPC IPAM User Guide* .
14752
+
14749
14753
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-eip.html#cfn-ec2-eip-ipampoolid
14750
14754
  '''
14751
14755
  result = self._values.get("ipam_pool_id")
@@ -42877,6 +42881,208 @@ class CfnSecurityGroupProps:
42877
42881
  )
42878
42882
 
42879
42883
 
42884
+ @jsii.implements(_IInspectable_c2943556)
42885
+ class CfnSecurityGroupVpcAssociation(
42886
+ _CfnResource_9df397a6,
42887
+ metaclass=jsii.JSIIMeta,
42888
+ jsii_type="aws-cdk-lib.aws_ec2.CfnSecurityGroupVpcAssociation",
42889
+ ):
42890
+ '''A security group association with a VPC.
42891
+
42892
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-securitygroupvpcassociation.html
42893
+ :cloudformationResource: AWS::EC2::SecurityGroupVpcAssociation
42894
+ :exampleMetadata: fixture=_generated
42895
+
42896
+ Example::
42897
+
42898
+ # The code below shows an example of how to instantiate this type.
42899
+ # The values are placeholders you should change.
42900
+ from aws_cdk import aws_ec2 as ec2
42901
+
42902
+ cfn_security_group_vpc_association = ec2.CfnSecurityGroupVpcAssociation(self, "MyCfnSecurityGroupVpcAssociation",
42903
+ group_id="groupId",
42904
+ vpc_id="vpcId"
42905
+ )
42906
+ '''
42907
+
42908
+ def __init__(
42909
+ self,
42910
+ scope: _constructs_77d1e7e8.Construct,
42911
+ id: builtins.str,
42912
+ *,
42913
+ group_id: builtins.str,
42914
+ vpc_id: builtins.str,
42915
+ ) -> None:
42916
+ '''
42917
+ :param scope: Scope in which this resource is defined.
42918
+ :param id: Construct identifier for this resource (unique in its scope).
42919
+ :param group_id: The association's security group ID.
42920
+ :param vpc_id: The association's VPC ID.
42921
+ '''
42922
+ if __debug__:
42923
+ type_hints = typing.get_type_hints(_typecheckingstub__8ef924d53acf4952f6e0712b289196e5433c7a379c29292778e606fc67d28d33)
42924
+ check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
42925
+ check_type(argname="argument id", value=id, expected_type=type_hints["id"])
42926
+ props = CfnSecurityGroupVpcAssociationProps(group_id=group_id, vpc_id=vpc_id)
42927
+
42928
+ jsii.create(self.__class__, self, [scope, id, props])
42929
+
42930
+ @jsii.member(jsii_name="inspect")
42931
+ def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
42932
+ '''Examines the CloudFormation resource and discloses attributes.
42933
+
42934
+ :param inspector: tree inspector to collect and process attributes.
42935
+ '''
42936
+ if __debug__:
42937
+ type_hints = typing.get_type_hints(_typecheckingstub__3b795589f9573dd12035364cf54b516679d09c552bd1ec30cda2b8af867c8a38)
42938
+ check_type(argname="argument inspector", value=inspector, expected_type=type_hints["inspector"])
42939
+ return typing.cast(None, jsii.invoke(self, "inspect", [inspector]))
42940
+
42941
+ @jsii.member(jsii_name="renderProperties")
42942
+ def _render_properties(
42943
+ self,
42944
+ props: typing.Mapping[builtins.str, typing.Any],
42945
+ ) -> typing.Mapping[builtins.str, typing.Any]:
42946
+ '''
42947
+ :param props: -
42948
+ '''
42949
+ if __debug__:
42950
+ type_hints = typing.get_type_hints(_typecheckingstub__4b10db158649118e3454cff2ebbf5af15bbad50af6e0d2ad16d18c33aaa545eb)
42951
+ check_type(argname="argument props", value=props, expected_type=type_hints["props"])
42952
+ return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "renderProperties", [props]))
42953
+
42954
+ @jsii.python.classproperty
42955
+ @jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME")
42956
+ def CFN_RESOURCE_TYPE_NAME(cls) -> builtins.str:
42957
+ '''The CloudFormation resource type name for this resource class.'''
42958
+ return typing.cast(builtins.str, jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME"))
42959
+
42960
+ @builtins.property
42961
+ @jsii.member(jsii_name="attrState")
42962
+ def attr_state(self) -> builtins.str:
42963
+ '''The association's state.
42964
+
42965
+ :cloudformationAttribute: State
42966
+ '''
42967
+ return typing.cast(builtins.str, jsii.get(self, "attrState"))
42968
+
42969
+ @builtins.property
42970
+ @jsii.member(jsii_name="attrStateReason")
42971
+ def attr_state_reason(self) -> builtins.str:
42972
+ '''The association's state reason.
42973
+
42974
+ :cloudformationAttribute: StateReason
42975
+ '''
42976
+ return typing.cast(builtins.str, jsii.get(self, "attrStateReason"))
42977
+
42978
+ @builtins.property
42979
+ @jsii.member(jsii_name="attrVpcOwnerId")
42980
+ def attr_vpc_owner_id(self) -> builtins.str:
42981
+ '''The AWS account ID of the owner of the VPC.
42982
+
42983
+ :cloudformationAttribute: VpcOwnerId
42984
+ '''
42985
+ return typing.cast(builtins.str, jsii.get(self, "attrVpcOwnerId"))
42986
+
42987
+ @builtins.property
42988
+ @jsii.member(jsii_name="cfnProperties")
42989
+ def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
42990
+ return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "cfnProperties"))
42991
+
42992
+ @builtins.property
42993
+ @jsii.member(jsii_name="groupId")
42994
+ def group_id(self) -> builtins.str:
42995
+ '''The association's security group ID.'''
42996
+ return typing.cast(builtins.str, jsii.get(self, "groupId"))
42997
+
42998
+ @group_id.setter
42999
+ def group_id(self, value: builtins.str) -> None:
43000
+ if __debug__:
43001
+ type_hints = typing.get_type_hints(_typecheckingstub__dbfe370ca161992c0cae87f8e6c8e5335b02d12cdc9c58c298adc37823186981)
43002
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
43003
+ jsii.set(self, "groupId", value) # pyright: ignore[reportArgumentType]
43004
+
43005
+ @builtins.property
43006
+ @jsii.member(jsii_name="vpcId")
43007
+ def vpc_id(self) -> builtins.str:
43008
+ '''The association's VPC ID.'''
43009
+ return typing.cast(builtins.str, jsii.get(self, "vpcId"))
43010
+
43011
+ @vpc_id.setter
43012
+ def vpc_id(self, value: builtins.str) -> None:
43013
+ if __debug__:
43014
+ type_hints = typing.get_type_hints(_typecheckingstub__61cdbe72d309edde5399294ad29626026a3ccb424a9a810c66ac713d99b04a09)
43015
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
43016
+ jsii.set(self, "vpcId", value) # pyright: ignore[reportArgumentType]
43017
+
43018
+
43019
+ @jsii.data_type(
43020
+ jsii_type="aws-cdk-lib.aws_ec2.CfnSecurityGroupVpcAssociationProps",
43021
+ jsii_struct_bases=[],
43022
+ name_mapping={"group_id": "groupId", "vpc_id": "vpcId"},
43023
+ )
43024
+ class CfnSecurityGroupVpcAssociationProps:
43025
+ def __init__(self, *, group_id: builtins.str, vpc_id: builtins.str) -> None:
43026
+ '''Properties for defining a ``CfnSecurityGroupVpcAssociation``.
43027
+
43028
+ :param group_id: The association's security group ID.
43029
+ :param vpc_id: The association's VPC ID.
43030
+
43031
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-securitygroupvpcassociation.html
43032
+ :exampleMetadata: fixture=_generated
43033
+
43034
+ Example::
43035
+
43036
+ # The code below shows an example of how to instantiate this type.
43037
+ # The values are placeholders you should change.
43038
+ from aws_cdk import aws_ec2 as ec2
43039
+
43040
+ cfn_security_group_vpc_association_props = ec2.CfnSecurityGroupVpcAssociationProps(
43041
+ group_id="groupId",
43042
+ vpc_id="vpcId"
43043
+ )
43044
+ '''
43045
+ if __debug__:
43046
+ type_hints = typing.get_type_hints(_typecheckingstub__87ba04fafd179cdc829033f2003bf4578598a141055d5898627ff9a12c5222d9)
43047
+ check_type(argname="argument group_id", value=group_id, expected_type=type_hints["group_id"])
43048
+ check_type(argname="argument vpc_id", value=vpc_id, expected_type=type_hints["vpc_id"])
43049
+ self._values: typing.Dict[builtins.str, typing.Any] = {
43050
+ "group_id": group_id,
43051
+ "vpc_id": vpc_id,
43052
+ }
43053
+
43054
+ @builtins.property
43055
+ def group_id(self) -> builtins.str:
43056
+ '''The association's security group ID.
43057
+
43058
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-securitygroupvpcassociation.html#cfn-ec2-securitygroupvpcassociation-groupid
43059
+ '''
43060
+ result = self._values.get("group_id")
43061
+ assert result is not None, "Required property 'group_id' is missing"
43062
+ return typing.cast(builtins.str, result)
43063
+
43064
+ @builtins.property
43065
+ def vpc_id(self) -> builtins.str:
43066
+ '''The association's VPC ID.
43067
+
43068
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-securitygroupvpcassociation.html#cfn-ec2-securitygroupvpcassociation-vpcid
43069
+ '''
43070
+ result = self._values.get("vpc_id")
43071
+ assert result is not None, "Required property 'vpc_id' is missing"
43072
+ return typing.cast(builtins.str, result)
43073
+
43074
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
43075
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
43076
+
43077
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
43078
+ return not (rhs == self)
43079
+
43080
+ def __repr__(self) -> str:
43081
+ return "CfnSecurityGroupVpcAssociationProps(%s)" % ", ".join(
43082
+ k + "=" + repr(v) for k, v in self._values.items()
43083
+ )
43084
+
43085
+
42880
43086
  @jsii.implements(_IInspectable_c2943556)
42881
43087
  class CfnSnapshotBlockPublicAccess(
42882
43088
  _CfnResource_9df397a6,
@@ -72235,6 +72441,7 @@ class InitFile(
72235
72441
  service_restart_handles: typing.Optional[typing.Sequence["InitServiceRestartHandle"]] = None,
72236
72442
  deploy_time: typing.Optional[builtins.bool] = None,
72237
72443
  readers: typing.Optional[typing.Sequence[_IGrantable_71c4f5de]] = None,
72444
+ source_kms_key: typing.Optional[_IKey_5f11635f] = None,
72238
72445
  asset_hash: typing.Optional[builtins.str] = None,
72239
72446
  asset_hash_type: typing.Optional[_AssetHashType_05b67f2d] = None,
72240
72447
  bundling: typing.Optional[typing.Union[_BundlingOptions_588cc936, typing.Dict[builtins.str, typing.Any]]] = None,
@@ -72255,6 +72462,7 @@ class InitFile(
72255
72462
  :param service_restart_handles: Restart the given service after this file has been written. Default: - Do not restart any service
72256
72463
  :param deploy_time: Whether or not the asset needs to exist beyond deployment time; i.e. are copied over to a different location and not needed afterwards. Setting this property to true has an impact on the lifecycle of the asset, because we will assume that it is safe to delete after the CloudFormation deployment succeeds. For example, Lambda Function assets are copied over to Lambda during deployment. Therefore, it is not necessary to store the asset in S3, so we consider those deployTime assets. Default: false
72257
72464
  :param readers: A list of principals that should be able to read this asset from S3. You can use ``asset.grantRead(principal)`` to grant read permissions later. Default: - No principals that can read file asset.
72465
+ :param source_kms_key: The ARN of the KMS key used to encrypt the handler code. Default: - the default server-side encryption with Amazon S3 managed keys(SSE-S3) key will be used.
72258
72466
  :param asset_hash: Specify a custom hash for this asset. If ``assetHashType`` is set it must be set to ``AssetHashType.CUSTOM``. For consistency, this custom hash will be SHA256 hashed and encoded as hex. The resulting hash will be the asset hash. NOTE: the hash is used in order to identify a specific revision of the asset, and used for optimizing and caching deployment activities related to this asset such as packaging, uploading to Amazon S3, etc. If you chose to customize the hash, you will need to make sure it is updated every time the asset changes, or otherwise it is possible that some deployments will not be invalidated. Default: - based on ``assetHashType``
72259
72467
  :param asset_hash_type: Specifies the type of hash to calculate for this asset. If ``assetHash`` is configured, this option must be ``undefined`` or ``AssetHashType.CUSTOM``. Default: - the default is ``AssetHashType.SOURCE``, but if ``assetHash`` is explicitly specified this value defaults to ``AssetHashType.CUSTOM``.
72260
72468
  :param bundling: Bundle the asset by executing a command in a Docker container or a custom bundling provider. The asset path will be mounted at ``/asset-input``. The Docker container is responsible for putting content at ``/asset-output``. The content at ``/asset-output`` will be zipped and used as the final asset. Default: - uploaded as-is to S3 if the asset is a regular file or a .zip file, archived into a .zip file and uploaded to S3 otherwise
@@ -72274,6 +72482,7 @@ class InitFile(
72274
72482
  service_restart_handles=service_restart_handles,
72275
72483
  deploy_time=deploy_time,
72276
72484
  readers=readers,
72485
+ source_kms_key=source_kms_key,
72277
72486
  asset_hash=asset_hash,
72278
72487
  asset_hash_type=asset_hash_type,
72279
72488
  bundling=bundling,
@@ -73396,6 +73605,7 @@ class InitSource(
73396
73605
  service_restart_handles: typing.Optional[typing.Sequence[InitServiceRestartHandle]] = None,
73397
73606
  deploy_time: typing.Optional[builtins.bool] = None,
73398
73607
  readers: typing.Optional[typing.Sequence[_IGrantable_71c4f5de]] = None,
73608
+ source_kms_key: typing.Optional[_IKey_5f11635f] = None,
73399
73609
  asset_hash: typing.Optional[builtins.str] = None,
73400
73610
  asset_hash_type: typing.Optional[_AssetHashType_05b67f2d] = None,
73401
73611
  bundling: typing.Optional[typing.Union[_BundlingOptions_588cc936, typing.Dict[builtins.str, typing.Any]]] = None,
@@ -73410,6 +73620,7 @@ class InitSource(
73410
73620
  :param service_restart_handles: Restart the given services after this archive has been extracted. Default: - Do not restart any service
73411
73621
  :param deploy_time: Whether or not the asset needs to exist beyond deployment time; i.e. are copied over to a different location and not needed afterwards. Setting this property to true has an impact on the lifecycle of the asset, because we will assume that it is safe to delete after the CloudFormation deployment succeeds. For example, Lambda Function assets are copied over to Lambda during deployment. Therefore, it is not necessary to store the asset in S3, so we consider those deployTime assets. Default: false
73412
73622
  :param readers: A list of principals that should be able to read this asset from S3. You can use ``asset.grantRead(principal)`` to grant read permissions later. Default: - No principals that can read file asset.
73623
+ :param source_kms_key: The ARN of the KMS key used to encrypt the handler code. Default: - the default server-side encryption with Amazon S3 managed keys(SSE-S3) key will be used.
73413
73624
  :param asset_hash: Specify a custom hash for this asset. If ``assetHashType`` is set it must be set to ``AssetHashType.CUSTOM``. For consistency, this custom hash will be SHA256 hashed and encoded as hex. The resulting hash will be the asset hash. NOTE: the hash is used in order to identify a specific revision of the asset, and used for optimizing and caching deployment activities related to this asset such as packaging, uploading to Amazon S3, etc. If you chose to customize the hash, you will need to make sure it is updated every time the asset changes, or otherwise it is possible that some deployments will not be invalidated. Default: - based on ``assetHashType``
73414
73625
  :param asset_hash_type: Specifies the type of hash to calculate for this asset. If ``assetHash`` is configured, this option must be ``undefined`` or ``AssetHashType.CUSTOM``. Default: - the default is ``AssetHashType.SOURCE``, but if ``assetHash`` is explicitly specified this value defaults to ``AssetHashType.CUSTOM``.
73415
73626
  :param bundling: Bundle the asset by executing a command in a Docker container or a custom bundling provider. The asset path will be mounted at ``/asset-input``. The Docker container is responsible for putting content at ``/asset-output``. The content at ``/asset-output`` will be zipped and used as the final asset. Default: - uploaded as-is to S3 if the asset is a regular file or a .zip file, archived into a .zip file and uploaded to S3 otherwise
@@ -73425,6 +73636,7 @@ class InitSource(
73425
73636
  service_restart_handles=service_restart_handles,
73426
73637
  deploy_time=deploy_time,
73427
73638
  readers=readers,
73639
+ source_kms_key=source_kms_key,
73428
73640
  asset_hash=asset_hash,
73429
73641
  asset_hash_type=asset_hash_type,
73430
73642
  bundling=bundling,
@@ -93311,6 +93523,7 @@ class InitCommand(
93311
93523
  "ignore_mode": "ignoreMode",
93312
93524
  "deploy_time": "deployTime",
93313
93525
  "readers": "readers",
93526
+ "source_kms_key": "sourceKMSKey",
93314
93527
  },
93315
93528
  )
93316
93529
  class InitFileAssetOptions(InitFileOptions, _AssetOptions_2aa69621):
@@ -93330,6 +93543,7 @@ class InitFileAssetOptions(InitFileOptions, _AssetOptions_2aa69621):
93330
93543
  ignore_mode: typing.Optional[_IgnoreMode_655a98e8] = None,
93331
93544
  deploy_time: typing.Optional[builtins.bool] = None,
93332
93545
  readers: typing.Optional[typing.Sequence[_IGrantable_71c4f5de]] = None,
93546
+ source_kms_key: typing.Optional[_IKey_5f11635f] = None,
93333
93547
  ) -> None:
93334
93548
  '''Additional options for creating an InitFile from an asset.
93335
93549
 
@@ -93346,6 +93560,7 @@ class InitFileAssetOptions(InitFileOptions, _AssetOptions_2aa69621):
93346
93560
  :param ignore_mode: The ignore behavior to use for ``exclude`` patterns. Default: IgnoreMode.GLOB
93347
93561
  :param deploy_time: Whether or not the asset needs to exist beyond deployment time; i.e. are copied over to a different location and not needed afterwards. Setting this property to true has an impact on the lifecycle of the asset, because we will assume that it is safe to delete after the CloudFormation deployment succeeds. For example, Lambda Function assets are copied over to Lambda during deployment. Therefore, it is not necessary to store the asset in S3, so we consider those deployTime assets. Default: false
93348
93562
  :param readers: A list of principals that should be able to read this asset from S3. You can use ``asset.grantRead(principal)`` to grant read permissions later. Default: - No principals that can read file asset.
93563
+ :param source_kms_key: The ARN of the KMS key used to encrypt the handler code. Default: - the default server-side encryption with Amazon S3 managed keys(SSE-S3) key will be used.
93349
93564
 
93350
93565
  :exampleMetadata: fixture=_generated
93351
93566
 
@@ -93356,10 +93571,12 @@ class InitFileAssetOptions(InitFileOptions, _AssetOptions_2aa69621):
93356
93571
  import aws_cdk as cdk
93357
93572
  from aws_cdk import aws_ec2 as ec2
93358
93573
  from aws_cdk import aws_iam as iam
93574
+ from aws_cdk import aws_kms as kms
93359
93575
 
93360
93576
  # docker_image: cdk.DockerImage
93361
93577
  # grantable: iam.IGrantable
93362
93578
  # init_service_restart_handle: ec2.InitServiceRestartHandle
93579
+ # key: kms.Key
93363
93580
  # local_bundling: cdk.ILocalBundling
93364
93581
 
93365
93582
  init_file_asset_options = ec2.InitFileAssetOptions(
@@ -93400,7 +93617,8 @@ class InitFileAssetOptions(InitFileOptions, _AssetOptions_2aa69621):
93400
93617
  mode="mode",
93401
93618
  owner="owner",
93402
93619
  readers=[grantable],
93403
- service_restart_handles=[init_service_restart_handle]
93620
+ service_restart_handles=[init_service_restart_handle],
93621
+ source_kMSKey=key
93404
93622
  )
93405
93623
  '''
93406
93624
  if isinstance(bundling, dict):
@@ -93420,6 +93638,7 @@ class InitFileAssetOptions(InitFileOptions, _AssetOptions_2aa69621):
93420
93638
  check_type(argname="argument ignore_mode", value=ignore_mode, expected_type=type_hints["ignore_mode"])
93421
93639
  check_type(argname="argument deploy_time", value=deploy_time, expected_type=type_hints["deploy_time"])
93422
93640
  check_type(argname="argument readers", value=readers, expected_type=type_hints["readers"])
93641
+ check_type(argname="argument source_kms_key", value=source_kms_key, expected_type=type_hints["source_kms_key"])
93423
93642
  self._values: typing.Dict[builtins.str, typing.Any] = {}
93424
93643
  if base64_encoded is not None:
93425
93644
  self._values["base64_encoded"] = base64_encoded
@@ -93447,6 +93666,8 @@ class InitFileAssetOptions(InitFileOptions, _AssetOptions_2aa69621):
93447
93666
  self._values["deploy_time"] = deploy_time
93448
93667
  if readers is not None:
93449
93668
  self._values["readers"] = readers
93669
+ if source_kms_key is not None:
93670
+ self._values["source_kms_key"] = source_kms_key
93450
93671
 
93451
93672
  @builtins.property
93452
93673
  def base64_encoded(self) -> typing.Optional[builtins.bool]:
@@ -93620,6 +93841,15 @@ class InitFileAssetOptions(InitFileOptions, _AssetOptions_2aa69621):
93620
93841
  result = self._values.get("readers")
93621
93842
  return typing.cast(typing.Optional[typing.List[_IGrantable_71c4f5de]], result)
93622
93843
 
93844
+ @builtins.property
93845
+ def source_kms_key(self) -> typing.Optional[_IKey_5f11635f]:
93846
+ '''The ARN of the KMS key used to encrypt the handler code.
93847
+
93848
+ :default: - the default server-side encryption with Amazon S3 managed keys(SSE-S3) key will be used.
93849
+ '''
93850
+ result = self._values.get("source_kms_key")
93851
+ return typing.cast(typing.Optional[_IKey_5f11635f], result)
93852
+
93623
93853
  def __eq__(self, rhs: typing.Any) -> builtins.bool:
93624
93854
  return isinstance(rhs, self.__class__) and rhs._values == self._values
93625
93855
 
@@ -93645,6 +93875,7 @@ class InitFileAssetOptions(InitFileOptions, _AssetOptions_2aa69621):
93645
93875
  "ignore_mode": "ignoreMode",
93646
93876
  "deploy_time": "deployTime",
93647
93877
  "readers": "readers",
93878
+ "source_kms_key": "sourceKMSKey",
93648
93879
  },
93649
93880
  )
93650
93881
  class InitSourceAssetOptions(InitSourceOptions, _AssetOptions_2aa69621):
@@ -93660,6 +93891,7 @@ class InitSourceAssetOptions(InitSourceOptions, _AssetOptions_2aa69621):
93660
93891
  ignore_mode: typing.Optional[_IgnoreMode_655a98e8] = None,
93661
93892
  deploy_time: typing.Optional[builtins.bool] = None,
93662
93893
  readers: typing.Optional[typing.Sequence[_IGrantable_71c4f5de]] = None,
93894
+ source_kms_key: typing.Optional[_IKey_5f11635f] = None,
93663
93895
  ) -> None:
93664
93896
  '''Additional options for an InitSource that builds an asset from local files.
93665
93897
 
@@ -93672,6 +93904,7 @@ class InitSourceAssetOptions(InitSourceOptions, _AssetOptions_2aa69621):
93672
93904
  :param ignore_mode: The ignore behavior to use for ``exclude`` patterns. Default: IgnoreMode.GLOB
93673
93905
  :param deploy_time: Whether or not the asset needs to exist beyond deployment time; i.e. are copied over to a different location and not needed afterwards. Setting this property to true has an impact on the lifecycle of the asset, because we will assume that it is safe to delete after the CloudFormation deployment succeeds. For example, Lambda Function assets are copied over to Lambda during deployment. Therefore, it is not necessary to store the asset in S3, so we consider those deployTime assets. Default: false
93674
93906
  :param readers: A list of principals that should be able to read this asset from S3. You can use ``asset.grantRead(principal)`` to grant read permissions later. Default: - No principals that can read file asset.
93907
+ :param source_kms_key: The ARN of the KMS key used to encrypt the handler code. Default: - the default server-side encryption with Amazon S3 managed keys(SSE-S3) key will be used.
93675
93908
 
93676
93909
  :exampleMetadata: fixture=_generated
93677
93910
 
@@ -93682,10 +93915,12 @@ class InitSourceAssetOptions(InitSourceOptions, _AssetOptions_2aa69621):
93682
93915
  import aws_cdk as cdk
93683
93916
  from aws_cdk import aws_ec2 as ec2
93684
93917
  from aws_cdk import aws_iam as iam
93918
+ from aws_cdk import aws_kms as kms
93685
93919
 
93686
93920
  # docker_image: cdk.DockerImage
93687
93921
  # grantable: iam.IGrantable
93688
93922
  # init_service_restart_handle: ec2.InitServiceRestartHandle
93923
+ # key: kms.Key
93689
93924
  # local_bundling: cdk.ILocalBundling
93690
93925
 
93691
93926
  init_source_asset_options = ec2.InitSourceAssetOptions(
@@ -93722,7 +93957,8 @@ class InitSourceAssetOptions(InitSourceOptions, _AssetOptions_2aa69621):
93722
93957
  follow_symlinks=cdk.SymlinkFollowMode.NEVER,
93723
93958
  ignore_mode=cdk.IgnoreMode.GLOB,
93724
93959
  readers=[grantable],
93725
- service_restart_handles=[init_service_restart_handle]
93960
+ service_restart_handles=[init_service_restart_handle],
93961
+ source_kMSKey=key
93726
93962
  )
93727
93963
  '''
93728
93964
  if isinstance(bundling, dict):
@@ -93738,6 +93974,7 @@ class InitSourceAssetOptions(InitSourceOptions, _AssetOptions_2aa69621):
93738
93974
  check_type(argname="argument ignore_mode", value=ignore_mode, expected_type=type_hints["ignore_mode"])
93739
93975
  check_type(argname="argument deploy_time", value=deploy_time, expected_type=type_hints["deploy_time"])
93740
93976
  check_type(argname="argument readers", value=readers, expected_type=type_hints["readers"])
93977
+ check_type(argname="argument source_kms_key", value=source_kms_key, expected_type=type_hints["source_kms_key"])
93741
93978
  self._values: typing.Dict[builtins.str, typing.Any] = {}
93742
93979
  if service_restart_handles is not None:
93743
93980
  self._values["service_restart_handles"] = service_restart_handles
@@ -93757,6 +93994,8 @@ class InitSourceAssetOptions(InitSourceOptions, _AssetOptions_2aa69621):
93757
93994
  self._values["deploy_time"] = deploy_time
93758
93995
  if readers is not None:
93759
93996
  self._values["readers"] = readers
93997
+ if source_kms_key is not None:
93998
+ self._values["source_kms_key"] = source_kms_key
93760
93999
 
93761
94000
  @builtins.property
93762
94001
  def service_restart_handles(
@@ -93881,6 +94120,15 @@ class InitSourceAssetOptions(InitSourceOptions, _AssetOptions_2aa69621):
93881
94120
  result = self._values.get("readers")
93882
94121
  return typing.cast(typing.Optional[typing.List[_IGrantable_71c4f5de]], result)
93883
94122
 
94123
+ @builtins.property
94124
+ def source_kms_key(self) -> typing.Optional[_IKey_5f11635f]:
94125
+ '''The ARN of the KMS key used to encrypt the handler code.
94126
+
94127
+ :default: - the default server-side encryption with Amazon S3 managed keys(SSE-S3) key will be used.
94128
+ '''
94129
+ result = self._values.get("source_kms_key")
94130
+ return typing.cast(typing.Optional[_IKey_5f11635f], result)
94131
+
93884
94132
  def __eq__(self, rhs: typing.Any) -> builtins.bool:
93885
94133
  return isinstance(rhs, self.__class__) and rhs._values == self._values
93886
94134
 
@@ -96464,6 +96712,8 @@ __all__ = [
96464
96712
  "CfnSecurityGroupIngress",
96465
96713
  "CfnSecurityGroupIngressProps",
96466
96714
  "CfnSecurityGroupProps",
96715
+ "CfnSecurityGroupVpcAssociation",
96716
+ "CfnSecurityGroupVpcAssociationProps",
96467
96717
  "CfnSnapshotBlockPublicAccess",
96468
96718
  "CfnSnapshotBlockPublicAccessProps",
96469
96719
  "CfnSpotFleet",
@@ -102388,6 +102638,48 @@ def _typecheckingstub__a21c9d7bd7156fd2dd5a288945bbf548f4ab7a9ee07ba36ecb2062ab6
102388
102638
  """Type checking stubs"""
102389
102639
  pass
102390
102640
 
102641
+ def _typecheckingstub__8ef924d53acf4952f6e0712b289196e5433c7a379c29292778e606fc67d28d33(
102642
+ scope: _constructs_77d1e7e8.Construct,
102643
+ id: builtins.str,
102644
+ *,
102645
+ group_id: builtins.str,
102646
+ vpc_id: builtins.str,
102647
+ ) -> None:
102648
+ """Type checking stubs"""
102649
+ pass
102650
+
102651
+ def _typecheckingstub__3b795589f9573dd12035364cf54b516679d09c552bd1ec30cda2b8af867c8a38(
102652
+ inspector: _TreeInspector_488e0dd5,
102653
+ ) -> None:
102654
+ """Type checking stubs"""
102655
+ pass
102656
+
102657
+ def _typecheckingstub__4b10db158649118e3454cff2ebbf5af15bbad50af6e0d2ad16d18c33aaa545eb(
102658
+ props: typing.Mapping[builtins.str, typing.Any],
102659
+ ) -> None:
102660
+ """Type checking stubs"""
102661
+ pass
102662
+
102663
+ def _typecheckingstub__dbfe370ca161992c0cae87f8e6c8e5335b02d12cdc9c58c298adc37823186981(
102664
+ value: builtins.str,
102665
+ ) -> None:
102666
+ """Type checking stubs"""
102667
+ pass
102668
+
102669
+ def _typecheckingstub__61cdbe72d309edde5399294ad29626026a3ccb424a9a810c66ac713d99b04a09(
102670
+ value: builtins.str,
102671
+ ) -> None:
102672
+ """Type checking stubs"""
102673
+ pass
102674
+
102675
+ def _typecheckingstub__87ba04fafd179cdc829033f2003bf4578598a141055d5898627ff9a12c5222d9(
102676
+ *,
102677
+ group_id: builtins.str,
102678
+ vpc_id: builtins.str,
102679
+ ) -> None:
102680
+ """Type checking stubs"""
102681
+ pass
102682
+
102391
102683
  def _typecheckingstub__995a1a5869d618c24a624831b2ad5e725b73ab6134ba003d66411c58faf1187e(
102392
102684
  scope: _constructs_77d1e7e8.Construct,
102393
102685
  id: builtins.str,
@@ -106523,6 +106815,7 @@ def _typecheckingstub__164f7ae4723652c2e5c3189a870d0dbd16f8bec14d0e807d648248a60
106523
106815
  service_restart_handles: typing.Optional[typing.Sequence[InitServiceRestartHandle]] = None,
106524
106816
  deploy_time: typing.Optional[builtins.bool] = None,
106525
106817
  readers: typing.Optional[typing.Sequence[_IGrantable_71c4f5de]] = None,
106818
+ source_kms_key: typing.Optional[_IKey_5f11635f] = None,
106526
106819
  asset_hash: typing.Optional[builtins.str] = None,
106527
106820
  asset_hash_type: typing.Optional[_AssetHashType_05b67f2d] = None,
106528
106821
  bundling: typing.Optional[typing.Union[_BundlingOptions_588cc936, typing.Dict[builtins.str, typing.Any]]] = None,
@@ -106770,6 +107063,7 @@ def _typecheckingstub__28af50587b7c2068b2cb49dbac75ce38a6ffdaf070d2c430abde336ae
106770
107063
  service_restart_handles: typing.Optional[typing.Sequence[InitServiceRestartHandle]] = None,
106771
107064
  deploy_time: typing.Optional[builtins.bool] = None,
106772
107065
  readers: typing.Optional[typing.Sequence[_IGrantable_71c4f5de]] = None,
107066
+ source_kms_key: typing.Optional[_IKey_5f11635f] = None,
106773
107067
  asset_hash: typing.Optional[builtins.str] = None,
106774
107068
  asset_hash_type: typing.Optional[_AssetHashType_05b67f2d] = None,
106775
107069
  bundling: typing.Optional[typing.Union[_BundlingOptions_588cc936, typing.Dict[builtins.str, typing.Any]]] = None,
@@ -108818,6 +109112,7 @@ def _typecheckingstub__6ce391dd6a64744f1d308a93bd2b78efee46c104a775f9153a5171d8a
108818
109112
  ignore_mode: typing.Optional[_IgnoreMode_655a98e8] = None,
108819
109113
  deploy_time: typing.Optional[builtins.bool] = None,
108820
109114
  readers: typing.Optional[typing.Sequence[_IGrantable_71c4f5de]] = None,
109115
+ source_kms_key: typing.Optional[_IKey_5f11635f] = None,
108821
109116
  ) -> None:
108822
109117
  """Type checking stubs"""
108823
109118
  pass
@@ -108833,6 +109128,7 @@ def _typecheckingstub__f3d9778b6f3d55d750d385b361f8381c51ee484d3c8920175605233fb
108833
109128
  ignore_mode: typing.Optional[_IgnoreMode_655a98e8] = None,
108834
109129
  deploy_time: typing.Optional[builtins.bool] = None,
108835
109130
  readers: typing.Optional[typing.Sequence[_IGrantable_71c4f5de]] = None,
109131
+ source_kms_key: typing.Optional[_IKey_5f11635f] = None,
108836
109132
  ) -> None:
108837
109133
  """Type checking stubs"""
108838
109134
  pass