aws-cdk-lib 2.197.0__py3-none-any.whl → 2.199.0__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/_jsii/__init__.py +1 -1
  2. aws_cdk/_jsii/{aws-cdk-lib@2.197.0.jsii.tgz → aws-cdk-lib@2.199.0.jsii.tgz} +0 -0
  3. aws_cdk/aws_appconfig/__init__.py +296 -48
  4. aws_cdk/aws_applicationautoscaling/__init__.py +36 -0
  5. aws_cdk/aws_appsync/__init__.py +31 -21
  6. aws_cdk/aws_aps/__init__.py +343 -0
  7. aws_cdk/aws_autoscaling/__init__.py +2 -1
  8. aws_cdk/aws_bedrock/__init__.py +387 -4
  9. aws_cdk/aws_codepipeline/__init__.py +4 -2
  10. aws_cdk/aws_datasync/__init__.py +885 -839
  11. aws_cdk/aws_deadline/__init__.py +23 -4
  12. aws_cdk/aws_ec2/__init__.py +229 -12
  13. aws_cdk/aws_ecs/__init__.py +14 -2
  14. aws_cdk/aws_ecs_patterns/__init__.py +64 -12
  15. aws_cdk/aws_eks/__init__.py +40 -9
  16. aws_cdk/aws_elasticloadbalancingv2/__init__.py +14 -8
  17. aws_cdk/aws_events_targets/__init__.py +78 -1
  18. aws_cdk/aws_gamelift/__init__.py +15 -17
  19. aws_cdk/aws_lex/__init__.py +1245 -172
  20. aws_cdk/aws_mediapackagev2/__init__.py +11 -10
  21. aws_cdk/aws_omics/__init__.py +41 -19
  22. aws_cdk/aws_pcs/__init__.py +126 -0
  23. aws_cdk/aws_rds/__init__.py +48 -21
  24. aws_cdk/aws_rolesanywhere/__init__.py +14 -13
  25. aws_cdk/aws_sagemaker/__init__.py +38 -12
  26. aws_cdk/aws_ses/__init__.py +437 -0
  27. aws_cdk/aws_ssmquicksetup/__init__.py +10 -2
  28. aws_cdk/aws_stepfunctions_tasks/__init__.py +1502 -2
  29. aws_cdk/aws_synthetics/__init__.py +137 -3
  30. aws_cdk/aws_vpclattice/__init__.py +219 -209
  31. aws_cdk/aws_wafv2/__init__.py +4 -4
  32. aws_cdk/aws_workspaces/__init__.py +5 -3
  33. {aws_cdk_lib-2.197.0.dist-info → aws_cdk_lib-2.199.0.dist-info}/METADATA +2 -2
  34. {aws_cdk_lib-2.197.0.dist-info → aws_cdk_lib-2.199.0.dist-info}/RECORD +38 -38
  35. {aws_cdk_lib-2.197.0.dist-info → aws_cdk_lib-2.199.0.dist-info}/LICENSE +0 -0
  36. {aws_cdk_lib-2.197.0.dist-info → aws_cdk_lib-2.199.0.dist-info}/NOTICE +0 -0
  37. {aws_cdk_lib-2.197.0.dist-info → aws_cdk_lib-2.199.0.dist-info}/WHEEL +0 -0
  38. {aws_cdk_lib-2.197.0.dist-info → aws_cdk_lib-2.199.0.dist-info}/top_level.txt +0 -0
@@ -447,7 +447,8 @@ class CfnFleet(
447
447
  ),
448
448
 
449
449
  # the properties below are optional
450
- storage_profile_id="storageProfileId"
450
+ storage_profile_id="storageProfileId",
451
+ tag_propagation_mode="tagPropagationMode"
451
452
  ),
452
453
  service_managed_ec2=deadline.CfnFleet.ServiceManagedEc2FleetConfigurationProperty(
453
454
  instance_capabilities=deadline.CfnFleet.ServiceManagedEc2InstanceCapabilitiesProperty(
@@ -1117,6 +1118,7 @@ class CfnFleet(
1117
1118
  "mode": "mode",
1118
1119
  "worker_capabilities": "workerCapabilities",
1119
1120
  "storage_profile_id": "storageProfileId",
1121
+ "tag_propagation_mode": "tagPropagationMode",
1120
1122
  },
1121
1123
  )
1122
1124
  class CustomerManagedFleetConfigurationProperty:
@@ -1126,12 +1128,14 @@ class CfnFleet(
1126
1128
  mode: builtins.str,
1127
1129
  worker_capabilities: typing.Union[_IResolvable_da3f097b, typing.Union["CfnFleet.CustomerManagedWorkerCapabilitiesProperty", typing.Dict[builtins.str, typing.Any]]],
1128
1130
  storage_profile_id: typing.Optional[builtins.str] = None,
1131
+ tag_propagation_mode: typing.Optional[builtins.str] = None,
1129
1132
  ) -> None:
1130
1133
  '''The details of a customer managed fleet configuration.
1131
1134
 
1132
1135
  :param mode: The AWS Auto Scaling mode for the customer managed fleet configuration.
1133
1136
  :param worker_capabilities: The worker capabilities for a customer managed fleet configuration.
1134
1137
  :param storage_profile_id: The storage profile ID.
1138
+ :param tag_propagation_mode:
1135
1139
 
1136
1140
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-deadline-fleet-customermanagedfleetconfiguration.html
1137
1141
  :exampleMetadata: fixture=_generated
@@ -1188,7 +1192,8 @@ class CfnFleet(
1188
1192
  ),
1189
1193
 
1190
1194
  # the properties below are optional
1191
- storage_profile_id="storageProfileId"
1195
+ storage_profile_id="storageProfileId",
1196
+ tag_propagation_mode="tagPropagationMode"
1192
1197
  )
1193
1198
  '''
1194
1199
  if __debug__:
@@ -1196,12 +1201,15 @@ class CfnFleet(
1196
1201
  check_type(argname="argument mode", value=mode, expected_type=type_hints["mode"])
1197
1202
  check_type(argname="argument worker_capabilities", value=worker_capabilities, expected_type=type_hints["worker_capabilities"])
1198
1203
  check_type(argname="argument storage_profile_id", value=storage_profile_id, expected_type=type_hints["storage_profile_id"])
1204
+ check_type(argname="argument tag_propagation_mode", value=tag_propagation_mode, expected_type=type_hints["tag_propagation_mode"])
1199
1205
  self._values: typing.Dict[builtins.str, typing.Any] = {
1200
1206
  "mode": mode,
1201
1207
  "worker_capabilities": worker_capabilities,
1202
1208
  }
1203
1209
  if storage_profile_id is not None:
1204
1210
  self._values["storage_profile_id"] = storage_profile_id
1211
+ if tag_propagation_mode is not None:
1212
+ self._values["tag_propagation_mode"] = tag_propagation_mode
1205
1213
 
1206
1214
  @builtins.property
1207
1215
  def mode(self) -> builtins.str:
@@ -1234,6 +1242,14 @@ class CfnFleet(
1234
1242
  result = self._values.get("storage_profile_id")
1235
1243
  return typing.cast(typing.Optional[builtins.str], result)
1236
1244
 
1245
+ @builtins.property
1246
+ def tag_propagation_mode(self) -> typing.Optional[builtins.str]:
1247
+ '''
1248
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-deadline-fleet-customermanagedfleetconfiguration.html#cfn-deadline-fleet-customermanagedfleetconfiguration-tagpropagationmode
1249
+ '''
1250
+ result = self._values.get("tag_propagation_mode")
1251
+ return typing.cast(typing.Optional[builtins.str], result)
1252
+
1237
1253
  def __eq__(self, rhs: typing.Any) -> builtins.bool:
1238
1254
  return isinstance(rhs, self.__class__) and rhs._values == self._values
1239
1255
 
@@ -1887,7 +1903,8 @@ class CfnFleet(
1887
1903
  ),
1888
1904
 
1889
1905
  # the properties below are optional
1890
- storage_profile_id="storageProfileId"
1906
+ storage_profile_id="storageProfileId",
1907
+ tag_propagation_mode="tagPropagationMode"
1891
1908
  ),
1892
1909
  service_managed_ec2=deadline.CfnFleet.ServiceManagedEc2FleetConfigurationProperty(
1893
1910
  instance_capabilities=deadline.CfnFleet.ServiceManagedEc2InstanceCapabilitiesProperty(
@@ -2748,7 +2765,8 @@ class CfnFleetProps:
2748
2765
  ),
2749
2766
 
2750
2767
  # the properties below are optional
2751
- storage_profile_id="storageProfileId"
2768
+ storage_profile_id="storageProfileId",
2769
+ tag_propagation_mode="tagPropagationMode"
2752
2770
  ),
2753
2771
  service_managed_ec2=deadline.CfnFleet.ServiceManagedEc2FleetConfigurationProperty(
2754
2772
  instance_capabilities=deadline.CfnFleet.ServiceManagedEc2InstanceCapabilitiesProperty(
@@ -6300,6 +6318,7 @@ def _typecheckingstub__1e0d0744c60a31b3157ef03f930266f6c000eafa44c6050607897ea5b
6300
6318
  mode: builtins.str,
6301
6319
  worker_capabilities: typing.Union[_IResolvable_da3f097b, typing.Union[CfnFleet.CustomerManagedWorkerCapabilitiesProperty, typing.Dict[builtins.str, typing.Any]]],
6302
6320
  storage_profile_id: typing.Optional[builtins.str] = None,
6321
+ tag_propagation_mode: typing.Optional[builtins.str] = None,
6303
6322
  ) -> None:
6304
6323
  """Type checking stubs"""
6305
6324
  pass
@@ -644,6 +644,14 @@ stack2 = Stack2(app, "Stack2",
644
644
  )
645
645
  ```
646
646
 
647
+ > Note: If you encounter an error like "Delete canceled. Cannot delete export ..."
648
+ > when using a cross-stack reference to a VPC, it's likely due to CloudFormation
649
+ > export/import constraints. In such cases, it's safer to use Vpc.fromLookup()
650
+ > in the consuming stack instead of directly referencing the VPC object, more details
651
+ > is provided in [Importing an existing VPC](#importing-an-existing-vpc). This
652
+ > avoids creating CloudFormation exports and gives more flexibility, especially
653
+ > when stacks need to be deleted or updated independently.
654
+
647
655
  ### Importing an existing VPC
648
656
 
649
657
  If your VPC is created outside your CDK app, you can use `Vpc.fromLookup()`.
@@ -16999,7 +17007,7 @@ class CfnHost(
16999
17007
  :param instance_family: The instance family supported by the Dedicated Host. For example, ``m5`` .
17000
17008
  :param instance_type: Specifies the instance type to be supported by the Dedicated Hosts. If you specify an instance type, the Dedicated Hosts support instances of the specified instance type only.
17001
17009
  :param outpost_arn: The Amazon Resource Name (ARN) of the AWS Outpost on which the Dedicated Host is allocated.
17002
- :param tags: Any tags assigned to the Host.
17010
+ :param tags: Any tags assigned to the Dedicated Host.
17003
17011
  '''
17004
17012
  if __debug__:
17005
17013
  type_hints = typing.get_type_hints(_typecheckingstub__e3a07acffdb551edbc817b7c424628c812f21356d7f697757a332323f6dcfde8)
@@ -17176,7 +17184,7 @@ class CfnHost(
17176
17184
  @builtins.property
17177
17185
  @jsii.member(jsii_name="tags")
17178
17186
  def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
17179
- '''Any tags assigned to the Host.'''
17187
+ '''Any tags assigned to the Dedicated Host.'''
17180
17188
  return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], jsii.get(self, "tags"))
17181
17189
 
17182
17190
  @tags.setter
@@ -17226,7 +17234,7 @@ class CfnHostProps:
17226
17234
  :param instance_family: The instance family supported by the Dedicated Host. For example, ``m5`` .
17227
17235
  :param instance_type: Specifies the instance type to be supported by the Dedicated Hosts. If you specify an instance type, the Dedicated Hosts support instances of the specified instance type only.
17228
17236
  :param outpost_arn: The Amazon Resource Name (ARN) of the AWS Outpost on which the Dedicated Host is allocated.
17229
- :param tags: Any tags assigned to the Host.
17237
+ :param tags: Any tags assigned to the Dedicated Host.
17230
17238
 
17231
17239
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-host.html
17232
17240
  :exampleMetadata: fixture=_generated
@@ -17372,7 +17380,7 @@ class CfnHostProps:
17372
17380
 
17373
17381
  @builtins.property
17374
17382
  def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
17375
- '''Any tags assigned to the Host.
17383
+ '''Any tags assigned to the Dedicated Host.
17376
17384
 
17377
17385
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-host.html#cfn-ec2-host-tags
17378
17386
  '''
@@ -20667,6 +20675,13 @@ class CfnInstance(
20667
20675
  license_specifications=[ec2.CfnInstance.LicenseSpecificationProperty(
20668
20676
  license_configuration_arn="licenseConfigurationArn"
20669
20677
  )],
20678
+ metadata_options=ec2.CfnInstance.MetadataOptionsProperty(
20679
+ http_endpoint="httpEndpoint",
20680
+ http_protocol_ipv6="httpProtocolIpv6",
20681
+ http_put_response_hop_limit=123,
20682
+ http_tokens="httpTokens",
20683
+ instance_metadata_tags="instanceMetadataTags"
20684
+ ),
20670
20685
  monitoring=False,
20671
20686
  network_interfaces=[ec2.CfnInstance.NetworkInterfaceProperty(
20672
20687
  device_index="deviceIndex",
@@ -20760,6 +20775,7 @@ class CfnInstance(
20760
20775
  key_name: typing.Optional[builtins.str] = None,
20761
20776
  launch_template: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnInstance.LaunchTemplateSpecificationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
20762
20777
  license_specifications: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnInstance.LicenseSpecificationProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
20778
+ metadata_options: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnInstance.MetadataOptionsProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
20763
20779
  monitoring: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
20764
20780
  network_interfaces: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnInstance.NetworkInterfaceProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
20765
20781
  placement_group_name: typing.Optional[builtins.str] = None,
@@ -20804,6 +20820,7 @@ class CfnInstance(
20804
20820
  :param key_name: The name of the key pair. You can create a key pair using `CreateKeyPair <https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateKeyPair.html>`_ or `ImportKeyPair <https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ImportKeyPair.html>`_ . .. epigraph:: If you do not specify a key pair, you can't connect to the instance unless you choose an AMI that is configured to allow users another way to log in.
20805
20821
  :param launch_template: The launch template. Any additional parameters that you specify for the new instance overwrite the corresponding parameters included in the launch template.
20806
20822
  :param license_specifications: The license configurations.
20823
+ :param metadata_options:
20807
20824
  :param monitoring: Specifies whether detailed monitoring is enabled for the instance. Specify ``true`` to enable detailed monitoring. Otherwise, basic monitoring is enabled. For more information about detailed monitoring, see `Enable or turn off detailed monitoring for your instances <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-cloudwatch-new.html>`_ in the *Amazon EC2 User Guide* .
20808
20825
  :param network_interfaces: The network interfaces to associate with the instance. .. epigraph:: If you use this property to point to a network interface, you must terminate the original interface before attaching a new one to allow the update of the instance to succeed. If this resource has a public IP address and is also in a VPC that is defined in the same template, you must use the `DependsOn Attribute <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html>`_ to declare a dependency on the VPC-gateway attachment.
20809
20826
  :param placement_group_name: The name of an existing placement group that you want to launch the instance into (cluster | partition | spread).
@@ -20850,6 +20867,7 @@ class CfnInstance(
20850
20867
  key_name=key_name,
20851
20868
  launch_template=launch_template,
20852
20869
  license_specifications=license_specifications,
20870
+ metadata_options=metadata_options,
20853
20871
  monitoring=monitoring,
20854
20872
  network_interfaces=network_interfaces,
20855
20873
  placement_group_name=placement_group_name,
@@ -21371,6 +21389,23 @@ class CfnInstance(
21371
21389
  check_type(argname="argument value", value=value, expected_type=type_hints["value"])
21372
21390
  jsii.set(self, "licenseSpecifications", value) # pyright: ignore[reportArgumentType]
21373
21391
 
21392
+ @builtins.property
21393
+ @jsii.member(jsii_name="metadataOptions")
21394
+ def metadata_options(
21395
+ self,
21396
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnInstance.MetadataOptionsProperty"]]:
21397
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnInstance.MetadataOptionsProperty"]], jsii.get(self, "metadataOptions"))
21398
+
21399
+ @metadata_options.setter
21400
+ def metadata_options(
21401
+ self,
21402
+ value: typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnInstance.MetadataOptionsProperty"]],
21403
+ ) -> None:
21404
+ if __debug__:
21405
+ type_hints = typing.get_type_hints(_typecheckingstub__829ee1a8f150cbfae9cd18b9c33d41b2e8f61b6ded5a58aa4c446baedaa0b5fc)
21406
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
21407
+ jsii.set(self, "metadataOptions", value) # pyright: ignore[reportArgumentType]
21408
+
21374
21409
  @builtins.property
21375
21410
  @jsii.member(jsii_name="monitoring")
21376
21411
  def monitoring(
@@ -22831,6 +22866,134 @@ class CfnInstance(
22831
22866
  k + "=" + repr(v) for k, v in self._values.items()
22832
22867
  )
22833
22868
 
22869
+ @jsii.data_type(
22870
+ jsii_type="aws-cdk-lib.aws_ec2.CfnInstance.MetadataOptionsProperty",
22871
+ jsii_struct_bases=[],
22872
+ name_mapping={
22873
+ "http_endpoint": "httpEndpoint",
22874
+ "http_protocol_ipv6": "httpProtocolIpv6",
22875
+ "http_put_response_hop_limit": "httpPutResponseHopLimit",
22876
+ "http_tokens": "httpTokens",
22877
+ "instance_metadata_tags": "instanceMetadataTags",
22878
+ },
22879
+ )
22880
+ class MetadataOptionsProperty:
22881
+ def __init__(
22882
+ self,
22883
+ *,
22884
+ http_endpoint: typing.Optional[builtins.str] = None,
22885
+ http_protocol_ipv6: typing.Optional[builtins.str] = None,
22886
+ http_put_response_hop_limit: typing.Optional[jsii.Number] = None,
22887
+ http_tokens: typing.Optional[builtins.str] = None,
22888
+ instance_metadata_tags: typing.Optional[builtins.str] = None,
22889
+ ) -> None:
22890
+ '''
22891
+ :param http_endpoint: Enables or disables the HTTP metadata endpoint on your instances. If you specify a value of disabled, you cannot access your instance metadata.
22892
+ :param http_protocol_ipv6: Enables or disables the IPv6 endpoint for the instance metadata service. To use this option, the instance must be a Nitro-based instance launched in a subnet that supports IPv6.
22893
+ :param http_put_response_hop_limit: The number of network hops that the metadata token can travel. Maximum is 64. Default: - 1
22894
+ :param http_tokens: Indicates whether IMDSv2 is required.
22895
+ :param instance_metadata_tags: Indicates whether tags from the instance are propagated to the EBS volumes.
22896
+
22897
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-metadataoptions.html
22898
+ :exampleMetadata: fixture=_generated
22899
+
22900
+ Example::
22901
+
22902
+ # The code below shows an example of how to instantiate this type.
22903
+ # The values are placeholders you should change.
22904
+ from aws_cdk import aws_ec2 as ec2
22905
+
22906
+ metadata_options_property = ec2.CfnInstance.MetadataOptionsProperty(
22907
+ http_endpoint="httpEndpoint",
22908
+ http_protocol_ipv6="httpProtocolIpv6",
22909
+ http_put_response_hop_limit=123,
22910
+ http_tokens="httpTokens",
22911
+ instance_metadata_tags="instanceMetadataTags"
22912
+ )
22913
+ '''
22914
+ if __debug__:
22915
+ type_hints = typing.get_type_hints(_typecheckingstub__dd62c780267fd82323185183a14d7164b77b99b5493e4e4f98f5cd11a52c16a3)
22916
+ check_type(argname="argument http_endpoint", value=http_endpoint, expected_type=type_hints["http_endpoint"])
22917
+ check_type(argname="argument http_protocol_ipv6", value=http_protocol_ipv6, expected_type=type_hints["http_protocol_ipv6"])
22918
+ check_type(argname="argument http_put_response_hop_limit", value=http_put_response_hop_limit, expected_type=type_hints["http_put_response_hop_limit"])
22919
+ check_type(argname="argument http_tokens", value=http_tokens, expected_type=type_hints["http_tokens"])
22920
+ check_type(argname="argument instance_metadata_tags", value=instance_metadata_tags, expected_type=type_hints["instance_metadata_tags"])
22921
+ self._values: typing.Dict[builtins.str, typing.Any] = {}
22922
+ if http_endpoint is not None:
22923
+ self._values["http_endpoint"] = http_endpoint
22924
+ if http_protocol_ipv6 is not None:
22925
+ self._values["http_protocol_ipv6"] = http_protocol_ipv6
22926
+ if http_put_response_hop_limit is not None:
22927
+ self._values["http_put_response_hop_limit"] = http_put_response_hop_limit
22928
+ if http_tokens is not None:
22929
+ self._values["http_tokens"] = http_tokens
22930
+ if instance_metadata_tags is not None:
22931
+ self._values["instance_metadata_tags"] = instance_metadata_tags
22932
+
22933
+ @builtins.property
22934
+ def http_endpoint(self) -> typing.Optional[builtins.str]:
22935
+ '''Enables or disables the HTTP metadata endpoint on your instances.
22936
+
22937
+ If you specify a value of disabled, you cannot access your instance metadata.
22938
+
22939
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-metadataoptions.html#cfn-ec2-instance-metadataoptions-httpendpoint
22940
+ '''
22941
+ result = self._values.get("http_endpoint")
22942
+ return typing.cast(typing.Optional[builtins.str], result)
22943
+
22944
+ @builtins.property
22945
+ def http_protocol_ipv6(self) -> typing.Optional[builtins.str]:
22946
+ '''Enables or disables the IPv6 endpoint for the instance metadata service.
22947
+
22948
+ To use this option, the instance must be a Nitro-based instance launched in a subnet that supports IPv6.
22949
+
22950
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-metadataoptions.html#cfn-ec2-instance-metadataoptions-httpprotocolipv6
22951
+ '''
22952
+ result = self._values.get("http_protocol_ipv6")
22953
+ return typing.cast(typing.Optional[builtins.str], result)
22954
+
22955
+ @builtins.property
22956
+ def http_put_response_hop_limit(self) -> typing.Optional[jsii.Number]:
22957
+ '''The number of network hops that the metadata token can travel.
22958
+
22959
+ Maximum is 64.
22960
+
22961
+ :default: - 1
22962
+
22963
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-metadataoptions.html#cfn-ec2-instance-metadataoptions-httpputresponsehoplimit
22964
+ '''
22965
+ result = self._values.get("http_put_response_hop_limit")
22966
+ return typing.cast(typing.Optional[jsii.Number], result)
22967
+
22968
+ @builtins.property
22969
+ def http_tokens(self) -> typing.Optional[builtins.str]:
22970
+ '''Indicates whether IMDSv2 is required.
22971
+
22972
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-metadataoptions.html#cfn-ec2-instance-metadataoptions-httptokens
22973
+ '''
22974
+ result = self._values.get("http_tokens")
22975
+ return typing.cast(typing.Optional[builtins.str], result)
22976
+
22977
+ @builtins.property
22978
+ def instance_metadata_tags(self) -> typing.Optional[builtins.str]:
22979
+ '''Indicates whether tags from the instance are propagated to the EBS volumes.
22980
+
22981
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-metadataoptions.html#cfn-ec2-instance-metadataoptions-instancemetadatatags
22982
+ '''
22983
+ result = self._values.get("instance_metadata_tags")
22984
+ return typing.cast(typing.Optional[builtins.str], result)
22985
+
22986
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
22987
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
22988
+
22989
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
22990
+ return not (rhs == self)
22991
+
22992
+ def __repr__(self) -> str:
22993
+ return "MetadataOptionsProperty(%s)" % ", ".join(
22994
+ k + "=" + repr(v) for k, v in self._values.items()
22995
+ )
22996
+
22834
22997
  @jsii.data_type(
22835
22998
  jsii_type="aws-cdk-lib.aws_ec2.CfnInstance.NetworkInterfaceProperty",
22836
22999
  jsii_struct_bases=[],
@@ -23958,6 +24121,7 @@ class CfnInstanceConnectEndpointProps:
23958
24121
  "key_name": "keyName",
23959
24122
  "launch_template": "launchTemplate",
23960
24123
  "license_specifications": "licenseSpecifications",
24124
+ "metadata_options": "metadataOptions",
23961
24125
  "monitoring": "monitoring",
23962
24126
  "network_interfaces": "networkInterfaces",
23963
24127
  "placement_group_name": "placementGroupName",
@@ -24004,6 +24168,7 @@ class CfnInstanceProps:
24004
24168
  key_name: typing.Optional[builtins.str] = None,
24005
24169
  launch_template: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnInstance.LaunchTemplateSpecificationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
24006
24170
  license_specifications: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnInstance.LicenseSpecificationProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
24171
+ metadata_options: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnInstance.MetadataOptionsProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
24007
24172
  monitoring: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
24008
24173
  network_interfaces: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnInstance.NetworkInterfaceProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
24009
24174
  placement_group_name: typing.Optional[builtins.str] = None,
@@ -24047,6 +24212,7 @@ class CfnInstanceProps:
24047
24212
  :param key_name: The name of the key pair. You can create a key pair using `CreateKeyPair <https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateKeyPair.html>`_ or `ImportKeyPair <https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ImportKeyPair.html>`_ . .. epigraph:: If you do not specify a key pair, you can't connect to the instance unless you choose an AMI that is configured to allow users another way to log in.
24048
24213
  :param launch_template: The launch template. Any additional parameters that you specify for the new instance overwrite the corresponding parameters included in the launch template.
24049
24214
  :param license_specifications: The license configurations.
24215
+ :param metadata_options:
24050
24216
  :param monitoring: Specifies whether detailed monitoring is enabled for the instance. Specify ``true`` to enable detailed monitoring. Otherwise, basic monitoring is enabled. For more information about detailed monitoring, see `Enable or turn off detailed monitoring for your instances <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-cloudwatch-new.html>`_ in the *Amazon EC2 User Guide* .
24051
24217
  :param network_interfaces: The network interfaces to associate with the instance. .. epigraph:: If you use this property to point to a network interface, you must terminate the original interface before attaching a new one to allow the update of the instance to succeed. If this resource has a public IP address and is also in a VPC that is defined in the same template, you must use the `DependsOn Attribute <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html>`_ to declare a dependency on the VPC-gateway attachment.
24052
24218
  :param placement_group_name: The name of an existing placement group that you want to launch the instance into (cluster | partition | spread).
@@ -24139,6 +24305,13 @@ class CfnInstanceProps:
24139
24305
  license_specifications=[ec2.CfnInstance.LicenseSpecificationProperty(
24140
24306
  license_configuration_arn="licenseConfigurationArn"
24141
24307
  )],
24308
+ metadata_options=ec2.CfnInstance.MetadataOptionsProperty(
24309
+ http_endpoint="httpEndpoint",
24310
+ http_protocol_ipv6="httpProtocolIpv6",
24311
+ http_put_response_hop_limit=123,
24312
+ http_tokens="httpTokens",
24313
+ instance_metadata_tags="instanceMetadataTags"
24314
+ ),
24142
24315
  monitoring=False,
24143
24316
  network_interfaces=[ec2.CfnInstance.NetworkInterfaceProperty(
24144
24317
  device_index="deviceIndex",
@@ -24228,6 +24401,7 @@ class CfnInstanceProps:
24228
24401
  check_type(argname="argument key_name", value=key_name, expected_type=type_hints["key_name"])
24229
24402
  check_type(argname="argument launch_template", value=launch_template, expected_type=type_hints["launch_template"])
24230
24403
  check_type(argname="argument license_specifications", value=license_specifications, expected_type=type_hints["license_specifications"])
24404
+ check_type(argname="argument metadata_options", value=metadata_options, expected_type=type_hints["metadata_options"])
24231
24405
  check_type(argname="argument monitoring", value=monitoring, expected_type=type_hints["monitoring"])
24232
24406
  check_type(argname="argument network_interfaces", value=network_interfaces, expected_type=type_hints["network_interfaces"])
24233
24407
  check_type(argname="argument placement_group_name", value=placement_group_name, expected_type=type_hints["placement_group_name"])
@@ -24293,6 +24467,8 @@ class CfnInstanceProps:
24293
24467
  self._values["launch_template"] = launch_template
24294
24468
  if license_specifications is not None:
24295
24469
  self._values["license_specifications"] = license_specifications
24470
+ if metadata_options is not None:
24471
+ self._values["metadata_options"] = metadata_options
24296
24472
  if monitoring is not None:
24297
24473
  self._values["monitoring"] = monitoring
24298
24474
  if network_interfaces is not None:
@@ -24635,6 +24811,16 @@ class CfnInstanceProps:
24635
24811
  result = self._values.get("license_specifications")
24636
24812
  return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnInstance.LicenseSpecificationProperty]]]], result)
24637
24813
 
24814
+ @builtins.property
24815
+ def metadata_options(
24816
+ self,
24817
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnInstance.MetadataOptionsProperty]]:
24818
+ '''
24819
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-instance.html#cfn-ec2-instance-metadataoptions
24820
+ '''
24821
+ result = self._values.get("metadata_options")
24822
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, CfnInstance.MetadataOptionsProperty]], result)
24823
+
24638
24824
  @builtins.property
24639
24825
  def monitoring(
24640
24826
  self,
@@ -80001,6 +80187,10 @@ class InstanceClass(enum.Enum):
80001
80187
  '''Storage optimized instances powered by 5th generation Intel Xeon Scalable processors, 7th generation.'''
80002
80188
  I7IE = "I7IE"
80003
80189
  '''Storage optimized instances powered by 5th generation Intel Xeon Scalable processors, 7th generation.'''
80190
+ IO7_INTEL = "IO7_INTEL"
80191
+ '''I/O-optimized instances with local NVME drive powered by 5th generation Intel Xeon Scalable processors, 7th generation.'''
80192
+ I7I = "I7I"
80193
+ '''I/O-optimized instances with local NVME drive powered by 5th generation Intel Xeon Scalable processors, 7th generation.'''
80004
80194
  STORAGE8_GRAVITON = "STORAGE8_GRAVITON"
80005
80195
  '''Storage optimized instances powered by Graviton4 processor, 8th generation.'''
80006
80196
  I8G = "I8G"
@@ -81996,6 +82186,11 @@ class InterfaceVpcEndpointAwsService(
81996
82186
  def DYNAMODB_FIPS(cls) -> "InterfaceVpcEndpointAwsService":
81997
82187
  return typing.cast("InterfaceVpcEndpointAwsService", jsii.sget(cls, "DYNAMODB_FIPS"))
81998
82188
 
82189
+ @jsii.python.classproperty
82190
+ @jsii.member(jsii_name="DYNAMODB_STREAMS")
82191
+ def DYNAMODB_STREAMS(cls) -> "InterfaceVpcEndpointAwsService":
82192
+ return typing.cast("InterfaceVpcEndpointAwsService", jsii.sget(cls, "DYNAMODB_STREAMS"))
82193
+
81999
82194
  @jsii.python.classproperty
82000
82195
  @jsii.member(jsii_name="EBS_DIRECT")
82001
82196
  def EBS_DIRECT(cls) -> "InterfaceVpcEndpointAwsService":
@@ -90338,15 +90533,18 @@ class SecurityGroup(
90338
90533
 
90339
90534
  Example::
90340
90535
 
90341
- # vpc: ec2.Vpc
90342
-
90536
+ vpc = ec2.Vpc(self, "Vpc", max_azs=1)
90537
+ cluster = ecs.Cluster(self, "EcsCluster", vpc=vpc)
90538
+ security_group = ec2.SecurityGroup(self, "SG", vpc=vpc)
90343
90539
 
90344
- my_security_group = ec2.SecurityGroup(self, "SecurityGroup", vpc=vpc)
90345
- autoscaling.AutoScalingGroup(self, "ASG",
90346
- vpc=vpc,
90347
- instance_type=ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE2, ec2.InstanceSize.MICRO),
90348
- machine_image=ec2.MachineImage.latest_amazon_linux2(),
90349
- security_group=my_security_group
90540
+ scheduled_fargate_task = ecs_patterns.ScheduledFargateTask(self, "ScheduledFargateTask",
90541
+ cluster=cluster,
90542
+ scheduled_fargate_task_image_options=ecsPatterns.ScheduledFargateTaskImageOptions(
90543
+ image=ecs.ContainerImage.from_registry("amazon/amazon-ecs-sample"),
90544
+ memory_limit_mi_b=512
90545
+ ),
90546
+ schedule=appscaling.Schedule.expression("rate(1 minute)"),
90547
+ security_groups=[security_group]
90350
90548
  )
90351
90549
  '''
90352
90550
 
@@ -105905,6 +106103,7 @@ def _typecheckingstub__c4a16bcac45df35102107cab13dbaea279aac225408d8ffe54a341484
105905
106103
  key_name: typing.Optional[builtins.str] = None,
105906
106104
  launch_template: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnInstance.LaunchTemplateSpecificationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
105907
106105
  license_specifications: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnInstance.LicenseSpecificationProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
106106
+ metadata_options: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnInstance.MetadataOptionsProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
105908
106107
  monitoring: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
105909
106108
  network_interfaces: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnInstance.NetworkInterfaceProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
105910
106109
  placement_group_name: typing.Optional[builtins.str] = None,
@@ -106081,6 +106280,12 @@ def _typecheckingstub__cc2686e45ed4c6d1878a8ae7e28861e3db1d532776cefb8db34c5911f
106081
106280
  """Type checking stubs"""
106082
106281
  pass
106083
106282
 
106283
+ def _typecheckingstub__829ee1a8f150cbfae9cd18b9c33d41b2e8f61b6ded5a58aa4c446baedaa0b5fc(
106284
+ value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnInstance.MetadataOptionsProperty]],
106285
+ ) -> None:
106286
+ """Type checking stubs"""
106287
+ pass
106288
+
106084
106289
  def _typecheckingstub__7a0da44bb62f454316060622acd522d46ed58c088bae4a9f6249bcf6deca5588(
106085
106290
  value: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]],
106086
106291
  ) -> None:
@@ -106290,6 +106495,17 @@ def _typecheckingstub__d052358cb33e29932cee94076b50021e871c21fc3250e7670a7f77437
106290
106495
  """Type checking stubs"""
106291
106496
  pass
106292
106497
 
106498
+ def _typecheckingstub__dd62c780267fd82323185183a14d7164b77b99b5493e4e4f98f5cd11a52c16a3(
106499
+ *,
106500
+ http_endpoint: typing.Optional[builtins.str] = None,
106501
+ http_protocol_ipv6: typing.Optional[builtins.str] = None,
106502
+ http_put_response_hop_limit: typing.Optional[jsii.Number] = None,
106503
+ http_tokens: typing.Optional[builtins.str] = None,
106504
+ instance_metadata_tags: typing.Optional[builtins.str] = None,
106505
+ ) -> None:
106506
+ """Type checking stubs"""
106507
+ pass
106508
+
106293
106509
  def _typecheckingstub__34d8c3e0456d2764eb1c3d4b68e63d75d3e51811fe46a5cc1a3cd7a841079228(
106294
106510
  *,
106295
106511
  device_index: builtins.str,
@@ -106443,6 +106659,7 @@ def _typecheckingstub__605ba8f22e222289aa0ed61b03690aaf9a4e8eabb86a9ba2b63d10f2b
106443
106659
  key_name: typing.Optional[builtins.str] = None,
106444
106660
  launch_template: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnInstance.LaunchTemplateSpecificationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
106445
106661
  license_specifications: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnInstance.LicenseSpecificationProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
106662
+ metadata_options: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnInstance.MetadataOptionsProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
106446
106663
  monitoring: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
106447
106664
  network_interfaces: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnInstance.NetworkInterfaceProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
106448
106665
  placement_group_name: typing.Optional[builtins.str] = None,