aws-cdk-lib 2.158.0__py3-none-any.whl → 2.159.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 (62) hide show
  1. aws_cdk/__init__.py +36 -19
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.158.0.jsii.tgz → aws-cdk-lib@2.159.1.jsii.tgz} +0 -0
  4. aws_cdk/aws_amplify/__init__.py +22 -8
  5. aws_cdk/aws_apigatewayv2/__init__.py +30 -0
  6. aws_cdk/aws_appconfig/__init__.py +3 -3
  7. aws_cdk/aws_applicationinsights/__init__.py +544 -4
  8. aws_cdk/aws_applicationsignals/__init__.py +170 -142
  9. aws_cdk/aws_athena/__init__.py +15 -15
  10. aws_cdk/aws_auditmanager/__init__.py +5 -5
  11. aws_cdk/aws_bedrock/__init__.py +7 -7
  12. aws_cdk/aws_codebuild/__init__.py +39 -18
  13. aws_cdk/aws_codeconnections/__init__.py +1 -1
  14. aws_cdk/aws_cognito/__init__.py +390 -203
  15. aws_cdk/aws_connect/__init__.py +1679 -152
  16. aws_cdk/aws_datazone/__init__.py +665 -40
  17. aws_cdk/aws_docdb/__init__.py +6 -1
  18. aws_cdk/aws_dynamodb/__init__.py +5 -5
  19. aws_cdk/aws_ec2/__init__.py +121 -36
  20. aws_cdk/aws_ecr/__init__.py +14 -6
  21. aws_cdk/aws_ecs/__init__.py +20 -20
  22. aws_cdk/aws_elasticloadbalancingv2/__init__.py +167 -20
  23. aws_cdk/aws_emr/__init__.py +8 -8
  24. aws_cdk/aws_events/__init__.py +19 -17
  25. aws_cdk/aws_events_targets/__init__.py +165 -85
  26. aws_cdk/aws_fms/__init__.py +59 -0
  27. aws_cdk/aws_fsx/__init__.py +3 -3
  28. aws_cdk/aws_gamelift/__init__.py +40 -52
  29. aws_cdk/aws_globalaccelerator/__init__.py +22 -29
  30. aws_cdk/aws_iam/__init__.py +22 -20
  31. aws_cdk/aws_iotfleetwise/__init__.py +419 -0
  32. aws_cdk/aws_iotsitewise/__init__.py +90 -1
  33. aws_cdk/aws_iotwireless/__init__.py +205 -0
  34. aws_cdk/aws_lambda/__init__.py +129 -16
  35. aws_cdk/aws_lex/__init__.py +15 -1
  36. aws_cdk/aws_logs/__init__.py +1 -1
  37. aws_cdk/aws_mediaconnect/__init__.py +111 -0
  38. aws_cdk/aws_medialive/__init__.py +7988 -3262
  39. aws_cdk/aws_msk/__init__.py +287 -479
  40. aws_cdk/aws_opensearchservice/__init__.py +6 -0
  41. aws_cdk/aws_pcaconnectorscep/__init__.py +69 -30
  42. aws_cdk/aws_pipes/__init__.py +49 -0
  43. aws_cdk/aws_qbusiness/__init__.py +11 -14
  44. aws_cdk/aws_quicksight/__init__.py +638 -99
  45. aws_cdk/aws_rds/__init__.py +38 -27
  46. aws_cdk/aws_s3/__init__.py +215 -33
  47. aws_cdk/aws_s3objectlambda/__init__.py +2 -2
  48. aws_cdk/aws_sagemaker/__init__.py +872 -58
  49. aws_cdk/aws_secretsmanager/__init__.py +22 -8
  50. aws_cdk/aws_securityhub/__init__.py +261 -19
  51. aws_cdk/aws_securitylake/__init__.py +327 -7
  52. aws_cdk/aws_servicediscovery/__init__.py +5 -5
  53. aws_cdk/aws_sns/__init__.py +0 -8
  54. aws_cdk/aws_ssm/__init__.py +20 -12
  55. aws_cdk/aws_stepfunctions_tasks/__init__.py +36 -0
  56. aws_cdk/cx_api/__init__.py +19 -0
  57. {aws_cdk_lib-2.158.0.dist-info → aws_cdk_lib-2.159.1.dist-info}/METADATA +1 -1
  58. {aws_cdk_lib-2.158.0.dist-info → aws_cdk_lib-2.159.1.dist-info}/RECORD +62 -62
  59. {aws_cdk_lib-2.158.0.dist-info → aws_cdk_lib-2.159.1.dist-info}/LICENSE +0 -0
  60. {aws_cdk_lib-2.158.0.dist-info → aws_cdk_lib-2.159.1.dist-info}/NOTICE +0 -0
  61. {aws_cdk_lib-2.158.0.dist-info → aws_cdk_lib-2.159.1.dist-info}/WHEEL +0 -0
  62. {aws_cdk_lib-2.158.0.dist-info → aws_cdk_lib-2.159.1.dist-info}/top_level.txt +0 -0
@@ -878,9 +878,7 @@ class CfnContainerGroupDefinition(
878
878
  metaclass=jsii.JSIIMeta,
879
879
  jsii_type="aws-cdk-lib.aws_gamelift.CfnContainerGroupDefinition",
880
880
  ):
881
- '''*This data type is currently not available.
882
-
883
- It is under improvement as we respond to customer feedback from the Containers public preview.*
881
+ '''*This data type is used with the Amazon GameLift containers feature, which is currently in public preview.*.
884
882
 
885
883
  The properties that describe a container group resource. Container group definition properties can't be updated. To change a property, create a new container group definition.
886
884
 
@@ -972,8 +970,8 @@ class CfnContainerGroupDefinition(
972
970
  :param container_definitions: The set of container definitions that are included in the container group.
973
971
  :param name: A descriptive identifier for the container group definition. The name value is unique in an AWS Region.
974
972
  :param operating_system: The platform required for all containers in the container group definition. .. epigraph:: Amazon Linux 2 (AL2) will reach end of support on 6/30/2025. See more details in the `Amazon Linux 2 FAQs <https://docs.aws.amazon.com/https://aws.amazon.com/amazon-linux-2/faqs/>`_ . For game servers that are hosted on AL2 and use Amazon GameLift server SDK 4.x., first update the game server build to server SDK 5.x, and then deploy to AL2023 instances. See `Migrate to Amazon GameLift server SDK version 5. <https://docs.aws.amazon.com/gamelift/latest/developerguide/reference-serversdk5-migration.html>`_
975
- :param total_cpu_limit: The amount of CPU units on a fleet instance to allocate for the container group. All containers in the group share these resources. This property is an integer value in CPU units (1 vCPU is equal to 1024 CPU units). You can set additional limits for each ``ContainerDefinition`` in the group. If individual containers have limits, this value must be equal to or greater than the sum of all container-specific CPU limits in the group.
976
- :param total_memory_limit: The amount of memory (in MiB) on a fleet instance to allocate for the container group. All containers in the group share these resources. You can set additional limits for each ``ContainerDefinition`` in the group. If individual containers have limits, this value must meet the following requirements: - Equal to or greater than the sum of all container-specific soft memory limits in the group. - Equal to or greater than any container-specific hard limits in the group.
973
+ :param total_cpu_limit: The amount of CPU units on a fleet instance to allocate for the container group. All containers in the group share these resources. This property is an integer value in CPU units (1 vCPU is equal to 1024 CPU units). You can set additional limits for each ``ContainerDefinition`` in the group. If individual containers have limits, this value must be equal to or greater than the sum of all container-specific CPU limits in the group. For more details on memory allocation, see the `Container fleet design guide <https://docs.aws.amazon.com/gamelift/latest/developerguide/containers-design-fleet>`_ .
974
+ :param total_memory_limit: The amount of memory (in MiB) on a fleet instance to allocate for the container group. All containers in the group share these resources. You can set additional limits for each ``ContainerDefinition`` in the group. If individual containers have limits, this value must meet the following requirements: - Equal to or greater than the sum of all container-specific soft memory limits in the group. - Equal to or greater than any container-specific hard limits in the group. For more details on memory allocation, see the `Container fleet design guide <https://docs.aws.amazon.com/gamelift/latest/developerguide/containers-design-fleet>`_ .
977
975
  :param scheduling_strategy: The method for deploying the container group across fleet instances. A replica container group might have multiple copies on each fleet instance. A daemon container group maintains only one copy per fleet instance.
978
976
  :param tags: An array of key-value pairs to apply to this resource.
979
977
  '''
@@ -1187,9 +1185,7 @@ class CfnContainerGroupDefinition(
1187
1185
  resolved_image_digest: typing.Optional[builtins.str] = None,
1188
1186
  working_directory: typing.Optional[builtins.str] = None,
1189
1187
  ) -> None:
1190
- '''*This data type is currently not available.
1191
-
1192
- It is under improvement as we respond to customer feedback from the Containers public preview.*
1188
+ '''*This data type is used with the Amazon GameLift containers feature, which is currently in public preview.*.
1193
1189
 
1194
1190
  Describes a container in a container fleet, the resources available to the container, and the commands that are run when the container starts. Container properties can't be updated. To change a property, create a new container group definition. See also ``ContainerDefinitionInput`` .
1195
1191
 
@@ -1487,9 +1483,7 @@ class CfnContainerGroupDefinition(
1487
1483
  condition: builtins.str,
1488
1484
  container_name: builtins.str,
1489
1485
  ) -> None:
1490
- '''*This data type is currently not available.
1491
-
1492
- It is under improvement as we respond to customer feedback from the Containers public preview.*
1486
+ '''*This data type is used with the Amazon GameLift containers feature, which is currently in public preview.*.
1493
1487
 
1494
1488
  A container's dependency on another container in the same container group. The dependency impacts how the dependent container is able to start or shut down based the status of the other container.
1495
1489
 
@@ -1566,9 +1560,7 @@ class CfnContainerGroupDefinition(
1566
1560
  )
1567
1561
  class ContainerEnvironmentProperty:
1568
1562
  def __init__(self, *, name: builtins.str, value: builtins.str) -> None:
1569
- '''*This data type is currently not available.
1570
-
1571
- It is under improvement as we respond to customer feedback from the Containers public preview.*
1563
+ '''*This data type is used with the Amazon GameLift containers feature, which is currently in public preview.*.
1572
1564
 
1573
1565
  An environment variable to set inside a container, in the form of a key-value pair.
1574
1566
 
@@ -1782,9 +1774,7 @@ class CfnContainerGroupDefinition(
1782
1774
  protocol: builtins.str,
1783
1775
  to_port: jsii.Number,
1784
1776
  ) -> None:
1785
- '''*This data type is currently not available.
1786
-
1787
- It is under improvement as we respond to customer feedback from the Containers public preview.*
1777
+ '''*This data type is used with the Amazon GameLift containers feature, which is currently in public preview.*.
1788
1778
 
1789
1779
  A set of one or more port numbers that can be opened on the container.
1790
1780
 
@@ -2026,8 +2016,8 @@ class CfnContainerGroupDefinitionProps:
2026
2016
  :param container_definitions: The set of container definitions that are included in the container group.
2027
2017
  :param name: A descriptive identifier for the container group definition. The name value is unique in an AWS Region.
2028
2018
  :param operating_system: The platform required for all containers in the container group definition. .. epigraph:: Amazon Linux 2 (AL2) will reach end of support on 6/30/2025. See more details in the `Amazon Linux 2 FAQs <https://docs.aws.amazon.com/https://aws.amazon.com/amazon-linux-2/faqs/>`_ . For game servers that are hosted on AL2 and use Amazon GameLift server SDK 4.x., first update the game server build to server SDK 5.x, and then deploy to AL2023 instances. See `Migrate to Amazon GameLift server SDK version 5. <https://docs.aws.amazon.com/gamelift/latest/developerguide/reference-serversdk5-migration.html>`_
2029
- :param total_cpu_limit: The amount of CPU units on a fleet instance to allocate for the container group. All containers in the group share these resources. This property is an integer value in CPU units (1 vCPU is equal to 1024 CPU units). You can set additional limits for each ``ContainerDefinition`` in the group. If individual containers have limits, this value must be equal to or greater than the sum of all container-specific CPU limits in the group.
2030
- :param total_memory_limit: The amount of memory (in MiB) on a fleet instance to allocate for the container group. All containers in the group share these resources. You can set additional limits for each ``ContainerDefinition`` in the group. If individual containers have limits, this value must meet the following requirements: - Equal to or greater than the sum of all container-specific soft memory limits in the group. - Equal to or greater than any container-specific hard limits in the group.
2019
+ :param total_cpu_limit: The amount of CPU units on a fleet instance to allocate for the container group. All containers in the group share these resources. This property is an integer value in CPU units (1 vCPU is equal to 1024 CPU units). You can set additional limits for each ``ContainerDefinition`` in the group. If individual containers have limits, this value must be equal to or greater than the sum of all container-specific CPU limits in the group. For more details on memory allocation, see the `Container fleet design guide <https://docs.aws.amazon.com/gamelift/latest/developerguide/containers-design-fleet>`_ .
2020
+ :param total_memory_limit: The amount of memory (in MiB) on a fleet instance to allocate for the container group. All containers in the group share these resources. You can set additional limits for each ``ContainerDefinition`` in the group. If individual containers have limits, this value must meet the following requirements: - Equal to or greater than the sum of all container-specific soft memory limits in the group. - Equal to or greater than any container-specific hard limits in the group. For more details on memory allocation, see the `Container fleet design guide <https://docs.aws.amazon.com/gamelift/latest/developerguide/containers-design-fleet>`_ .
2031
2021
  :param scheduling_strategy: The method for deploying the container group across fleet instances. A replica container group might have multiple copies on each fleet instance. A daemon container group maintains only one copy per fleet instance.
2032
2022
  :param tags: An array of key-value pairs to apply to this resource.
2033
2023
 
@@ -2161,6 +2151,8 @@ class CfnContainerGroupDefinitionProps:
2161
2151
 
2162
2152
  You can set additional limits for each ``ContainerDefinition`` in the group. If individual containers have limits, this value must be equal to or greater than the sum of all container-specific CPU limits in the group.
2163
2153
 
2154
+ For more details on memory allocation, see the `Container fleet design guide <https://docs.aws.amazon.com/gamelift/latest/developerguide/containers-design-fleet>`_ .
2155
+
2164
2156
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-containergroupdefinition.html#cfn-gamelift-containergroupdefinition-totalcpulimit
2165
2157
  '''
2166
2158
  result = self._values.get("total_cpu_limit")
@@ -2178,6 +2170,8 @@ class CfnContainerGroupDefinitionProps:
2178
2170
  - Equal to or greater than the sum of all container-specific soft memory limits in the group.
2179
2171
  - Equal to or greater than any container-specific hard limits in the group.
2180
2172
 
2173
+ For more details on memory allocation, see the `Container fleet design guide <https://docs.aws.amazon.com/gamelift/latest/developerguide/containers-design-fleet>`_ .
2174
+
2181
2175
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-containergroupdefinition.html#cfn-gamelift-containergroupdefinition-totalmemorylimit
2182
2176
  '''
2183
2177
  result = self._values.get("total_memory_limit")
@@ -2369,18 +2363,18 @@ class CfnFleet(
2369
2363
  :param id: Construct identifier for this resource (unique in its scope).
2370
2364
  :param name: A descriptive label that is associated with a fleet. Fleet names do not need to be unique.
2371
2365
  :param anywhere_configuration: Amazon GameLift Anywhere configuration options.
2372
- :param apply_capacity: Current resource capacity settings for managed EC2 fleets. For multi-location fleets, location values might refer to a fleet's remote location or its home Region. *Returned by:* `DescribeFleetCapacity <https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeFleetCapacity.html>`_ , `DescribeFleetLocationCapacity <https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeFleetLocationCapacity.html>`_ , `UpdateFleetCapacity <https://docs.aws.amazon.com/gamelift/latest/apireference/API_UpdateFleetCapacity.html>`_
2366
+ :param apply_capacity: Current resource capacity settings for managed EC2 fleets and container fleets. For multi-location fleets, location values might refer to a fleet's remote location or its home Region. *Returned by:* `DescribeFleetCapacity <https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeFleetCapacity.html>`_ , `DescribeFleetLocationCapacity <https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeFleetLocationCapacity.html>`_ , `UpdateFleetCapacity <https://docs.aws.amazon.com/gamelift/latest/apireference/API_UpdateFleetCapacity.html>`_
2373
2367
  :param build_id: A unique identifier for a build to be deployed on the new fleet. If you are deploying the fleet with a custom game build, you must specify this property. The build must have been successfully uploaded to Amazon GameLift and be in a ``READY`` status. This fleet setting cannot be changed once the fleet is created.
2374
2368
  :param certificate_configuration: Prompts Amazon GameLift to generate a TLS/SSL certificate for the fleet. Amazon GameLift uses the certificates to encrypt traffic between game clients and the game servers running on Amazon GameLift. By default, the ``CertificateConfiguration`` is ``DISABLED`` . You can't change this property after you create the fleet. AWS Certificate Manager (ACM) certificates expire after 13 months. Certificate expiration can cause fleets to fail, preventing players from connecting to instances in the fleet. We recommend you replace fleets before 13 months, consider using fleet aliases for a smooth transition. .. epigraph:: ACM isn't available in all AWS regions. A fleet creation request with certificate generation enabled in an unsupported Region, fails with a 4xx error. For more information about the supported Regions, see `Supported Regions <https://docs.aws.amazon.com/acm/latest/userguide/acm-regions.html>`_ in the *AWS Certificate Manager User Guide* .
2375
2369
  :param compute_type: The type of compute resource used to host your game servers. - ``EC2`` – The game server build is deployed to Amazon EC2 instances for cloud hosting. This is the default setting. - ``CONTAINER`` – Container images with your game server build and supporting software are deployed to Amazon EC2 instances for cloud hosting. With this compute type, you must specify the ``ContainerGroupsConfiguration`` parameter. - ``ANYWHERE`` – Game servers or container images with your game server and supporting software are deployed to compute resources that are provided and managed by you. With this compute type, you can also set the ``AnywhereConfiguration`` parameter.
2376
- :param container_groups_configuration: *This data type is currently not available. It is under improvement as we respond to customer feedback from the Containers public preview.* Configuration details for a set of container groups, for use when creating a fleet with compute type ``CONTAINER`` . *Used with:* ``CreateFleet``
2370
+ :param container_groups_configuration: *This data type is used with the Amazon GameLift containers feature, which is currently in public preview.*. Configuration details for a set of container groups, for use when creating a fleet with compute type ``CONTAINER`` . *Used with:* ``CreateFleet``
2377
2371
  :param description: A description for the fleet.
2378
2372
  :param desired_ec2_instances: The number of EC2 instances that you want this fleet to host. When creating a new fleet, GameLift automatically sets this value to "1" and initiates a single instance. Once the fleet is active, update this value to trigger GameLift to add or remove instances from the fleet.
2379
2373
  :param ec2_inbound_permissions: The IP address ranges and port settings that allow inbound traffic to access game server processes and other processes on this fleet. Set this parameter for EC2 and container fleets. You can leave this parameter empty when creating the fleet, but you must call ``UpdateFleetPortSettings`` to set it before players can connect to game sessions. As a best practice, we recommend opening ports for remote access only when you need them and closing them when you're finished. For Realtime Servers fleets, Amazon GameLift automatically sets TCP and UDP ranges. To manage inbound access for a container fleet, set this parameter to the same port numbers that you set for the fleet's connection port range. During the life of the fleet, update this parameter to control which connection ports are open to inbound traffic.
2380
2374
  :param ec2_instance_type: The Amazon GameLift-supported Amazon EC2 instance type to use with EC2 and container fleets. Instance type determines the computing resources that will be used to host your game servers, including CPU, memory, storage, and networking capacity. See `Amazon Elastic Compute Cloud Instance Types <https://docs.aws.amazon.com/ec2/instance-types/>`_ for detailed descriptions of Amazon EC2 instance types.
2381
2375
  :param fleet_type: Indicates whether to use On-Demand or Spot instances for this fleet. By default, this property is set to ``ON_DEMAND`` . Learn more about when to use `On-Demand versus Spot Instances <https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-ec2-instances.html#gamelift-ec2-instances-spot>`_ . This fleet property can't be changed after the fleet is created.
2382
- :param instance_role_arn: A unique identifier for an IAM role with access permissions to other AWS services. Any application that runs on an instance in the fleet--including install scripts, server processes, and other processes--can use these permissions to interact with AWS resources that you own or have access to. For more information about using the role with your game server builds, see `Communicate with other AWS resources from your fleets <https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-server-resources.html>`_ . This attribute is used with fleets where ``ComputeType`` is "EC2".
2383
- :param instance_role_credentials_provider: Indicates that fleet instances maintain a shared credentials file for the IAM role defined in ``InstanceRoleArn`` . Shared credentials allow applications that are deployed with the game server executable to communicate with other AWS resources. This property is used only when the game server is integrated with the server SDK version 5.x. For more information about using shared credentials, see `Communicate with other AWS resources from your fleets <https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-server-resources.html>`_ . This attribute is used with fleets where ``ComputeType`` is "EC2".
2376
+ :param instance_role_arn: A unique identifier for an IAM role with access permissions to other AWS services. Any application that runs on an instance in the fleet--including install scripts, server processes, and other processes--can use these permissions to interact with AWS resources that you own or have access to. For more information about using the role with your game server builds, see `Communicate with other AWS resources from your fleets <https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-server-resources.html>`_ . This attribute is used with fleets where ``ComputeType`` is "EC2" or "Container".
2377
+ :param instance_role_credentials_provider: Indicates that fleet instances maintain a shared credentials file for the IAM role defined in ``InstanceRoleArn`` . Shared credentials allow applications that are deployed with the game server executable to communicate with other AWS resources. This property is used only when the game server is integrated with the server SDK version 5.x. For more information about using shared credentials, see `Communicate with other AWS resources from your fleets <https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-server-resources.html>`_ . This attribute is used with fleets where ``ComputeType`` is "EC2" or "Container".
2384
2378
  :param locations: A set of remote locations to deploy additional instances to and manage as a multi-location fleet. Use this parameter when creating a fleet in AWS Regions that support multiple locations. You can add any AWS Region or Local Zone that's supported by Amazon GameLift. Provide a list of one or more AWS Region codes, such as ``us-west-2`` , or Local Zone names. When using this parameter, Amazon GameLift requires you to include your home location in the request. For a list of supported Regions and Local Zones, see `Amazon GameLift service locations <https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-regions.html>`_ for managed hosting.
2385
2379
  :param log_paths: (deprecated) This parameter is no longer used. When hosting a custom game build, specify where Amazon GameLift should store log files using the Amazon GameLift server API call ProcessReady()
2386
2380
  :param max_size: The maximum number of instances that are allowed in the specified fleet location. If this parameter is not set, the default is 1.
@@ -2522,7 +2516,7 @@ class CfnFleet(
2522
2516
  @builtins.property
2523
2517
  @jsii.member(jsii_name="applyCapacity")
2524
2518
  def apply_capacity(self) -> typing.Optional[builtins.str]:
2525
- '''Current resource capacity settings for managed EC2 fleets.'''
2519
+ '''Current resource capacity settings for managed EC2 fleets and container fleets.'''
2526
2520
  return typing.cast(typing.Optional[builtins.str], jsii.get(self, "applyCapacity"))
2527
2521
 
2528
2522
  @apply_capacity.setter
@@ -2581,7 +2575,7 @@ class CfnFleet(
2581
2575
  def container_groups_configuration(
2582
2576
  self,
2583
2577
  ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFleet.ContainerGroupsConfigurationProperty"]]:
2584
- '''*This data type is currently not available.'''
2578
+ '''*This data type is used with the Amazon GameLift containers feature, which is currently in public preview.*.'''
2585
2579
  return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFleet.ContainerGroupsConfigurationProperty"]], jsii.get(self, "containerGroupsConfiguration"))
2586
2580
 
2587
2581
  @container_groups_configuration.setter
@@ -3033,9 +3027,7 @@ class CfnFleet(
3033
3027
  )
3034
3028
  class ConnectionPortRangeProperty:
3035
3029
  def __init__(self, *, from_port: jsii.Number, to_port: jsii.Number) -> None:
3036
- '''*This data type is currently not available.
3037
-
3038
- It is under improvement as we respond to customer feedback from the Containers public preview.*
3030
+ '''*This operation has been expanded to use with the Amazon GameLift containers feature, which is currently in public preview.*.
3039
3031
 
3040
3032
  The set of port numbers to open on each instance in a container fleet. Connection ports are used by inbound traffic to connect with processes that are running in containers on the fleet.
3041
3033
 
@@ -3117,9 +3109,7 @@ class CfnFleet(
3117
3109
  container_group_definition_names: typing.Sequence[builtins.str],
3118
3110
  container_groups_per_instance: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnFleet.ContainerGroupsPerInstanceProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
3119
3111
  ) -> None:
3120
- '''*This data type is currently not available.
3121
-
3122
- It is under improvement as we respond to customer feedback from the Containers public preview.*
3112
+ '''*This data type is used with the Amazon GameLift containers feature, which is currently in public preview.*.
3123
3113
 
3124
3114
  Configuration details for a set of container groups, for use when creating a fleet with compute type ``CONTAINER`` .
3125
3115
 
@@ -3232,9 +3222,7 @@ class CfnFleet(
3232
3222
  desired_replica_container_groups_per_instance: typing.Optional[jsii.Number] = None,
3233
3223
  max_replica_container_groups_per_instance: typing.Optional[jsii.Number] = None,
3234
3224
  ) -> None:
3235
- '''*This data type is currently not available.
3236
-
3237
- It is under improvement as we respond to customer feedback from the Containers public preview.*
3225
+ '''*This data type is used with the Amazon GameLift containers feature, which is currently in public preview.*.
3238
3226
 
3239
3227
  Determines how many replica container groups that Amazon GameLift deploys to each instance in a container fleet.
3240
3228
 
@@ -3445,7 +3433,7 @@ class CfnFleet(
3445
3433
  max_size: jsii.Number,
3446
3434
  min_size: jsii.Number,
3447
3435
  ) -> None:
3448
- '''Current resource capacity settings for managed EC2 fleets.
3436
+ '''Current resource capacity settings for managed EC2 fleets and container fleets.
3449
3437
 
3450
3438
  For multi-location fleets, location values might refer to a fleet's remote location or its home Region.
3451
3439
 
@@ -3540,10 +3528,12 @@ class CfnFleet(
3540
3528
  location: builtins.str,
3541
3529
  location_capacity: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnFleet.LocationCapacityProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
3542
3530
  ) -> None:
3543
- '''A remote location where a multi-location fleet can deploy game servers for game hosting.
3531
+ '''*This data type has been expanded to use with the Amazon GameLift containers feature, which is currently in public preview.*.
3532
+
3533
+ A remote location where a multi-location fleet can deploy game servers for game hosting.
3544
3534
 
3545
3535
  :param location: An AWS Region code, such as ``us-west-2`` . For a list of supported Regions and Local Zones, see `Amazon GameLift service locations <https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-regions.html>`_ for managed hosting.
3546
- :param location_capacity: Current resource capacity settings for managed EC2 fleets. For multi-location fleets, location values might refer to a fleet's remote location or its home Region. *Returned by:* `DescribeFleetCapacity <https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeFleetCapacity.html>`_ , `DescribeFleetLocationCapacity <https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeFleetLocationCapacity.html>`_ , `UpdateFleetCapacity <https://docs.aws.amazon.com/gamelift/latest/apireference/API_UpdateFleetCapacity.html>`_
3536
+ :param location_capacity: Current resource capacity settings for managed EC2 fleets and container fleets. For multi-location fleets, location values might refer to a fleet's remote location or its home Region. *Returned by:* `DescribeFleetCapacity <https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeFleetCapacity.html>`_ , `DescribeFleetLocationCapacity <https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeFleetLocationCapacity.html>`_ , `UpdateFleetCapacity <https://docs.aws.amazon.com/gamelift/latest/apireference/API_UpdateFleetCapacity.html>`_
3547
3537
 
3548
3538
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-locationconfiguration.html
3549
3539
  :exampleMetadata: fixture=_generated
@@ -3591,7 +3581,7 @@ class CfnFleet(
3591
3581
  def location_capacity(
3592
3582
  self,
3593
3583
  ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFleet.LocationCapacityProperty"]]:
3594
- '''Current resource capacity settings for managed EC2 fleets.
3584
+ '''Current resource capacity settings for managed EC2 fleets and container fleets.
3595
3585
 
3596
3586
  For multi-location fleets, location values might refer to a fleet's remote location or its home Region.
3597
3587
 
@@ -3718,7 +3708,7 @@ class CfnFleet(
3718
3708
  A GameLift instance is limited to 50 processes running concurrently. To calculate the total number of processes in a runtime configuration, add the values of the ``ConcurrentExecutions`` parameter for each ServerProcess. Learn more about `Running Multiple Processes on a Fleet <https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-multiprocess.html>`_ .
3719
3709
 
3720
3710
  :param game_session_activation_timeout_seconds: The maximum amount of time (in seconds) allowed to launch a new game session and have it report ready to host players. During this time, the game session is in status ``ACTIVATING`` . If the game session does not become active before the timeout, it is ended and the game session status is changed to ``TERMINATED`` .
3721
- :param max_concurrent_game_session_activations: The number of game sessions in status ``ACTIVATING`` to allow on an instance. This setting limits the instance resources that can be used for new game activations at any one time.
3711
+ :param max_concurrent_game_session_activations: The number of game sessions in status ``ACTIVATING`` to allow on an instance or container. This setting limits the instance resources that can be used for new game activations at any one time.
3722
3712
  :param server_processes: A collection of server process configurations that identify what server processes to run on fleet computes.
3723
3713
 
3724
3714
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-runtimeconfiguration.html
@@ -3772,7 +3762,7 @@ class CfnFleet(
3772
3762
  def max_concurrent_game_session_activations(
3773
3763
  self,
3774
3764
  ) -> typing.Optional[jsii.Number]:
3775
- '''The number of game sessions in status ``ACTIVATING`` to allow on an instance.
3765
+ '''The number of game sessions in status ``ACTIVATING`` to allow on an instance or container.
3776
3766
 
3777
3767
  This setting limits the instance resources that can be used for new game activations at any one time.
3778
3768
 
@@ -4100,7 +4090,7 @@ class CfnFleet(
4100
4090
 
4101
4091
  Server processes run either an executable in a custom game build or a Realtime Servers script.
4102
4092
 
4103
- :param concurrent_executions: The number of server processes using this configuration that run concurrently on each instance.
4093
+ :param concurrent_executions: The number of server processes using this configuration that run concurrently on each instance or container..
4104
4094
  :param launch_path: The location of a game build executable or Realtime script. Game builds and Realtime scripts are installed on instances at the root: - Windows (custom game builds only): ``C:\\game`` . Example: " ``C:\\game\\MyGame\\server.exe`` " - Linux: ``/local/game`` . Examples: " ``/local/game/MyGame/server.exe`` " or " ``/local/game/MyRealtimeScript.js`` " .. epigraph:: Amazon GameLift doesn't support the use of setup scripts that launch the game executable. For custom game builds, this parameter must indicate the executable that calls the server SDK operations ``initSDK()`` and ``ProcessReady()`` .
4105
4095
  :param parameters: An optional list of parameters to pass to the server executable or Realtime script on launch. Length Constraints: Minimum length of 1. Maximum length of 1024. Pattern: [A-Za-z0-9_:.+/\\- =@{},?'[]"]+
4106
4096
 
@@ -4135,7 +4125,7 @@ class CfnFleet(
4135
4125
 
4136
4126
  @builtins.property
4137
4127
  def concurrent_executions(self) -> jsii.Number:
4138
- '''The number of server processes using this configuration that run concurrently on each instance.
4128
+ '''The number of server processes using this configuration that run concurrently on each instance or container..
4139
4129
 
4140
4130
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-serverprocess.html#cfn-gamelift-fleet-serverprocess-concurrentexecutions
4141
4131
  '''
@@ -4314,18 +4304,18 @@ class CfnFleetProps:
4314
4304
 
4315
4305
  :param name: A descriptive label that is associated with a fleet. Fleet names do not need to be unique.
4316
4306
  :param anywhere_configuration: Amazon GameLift Anywhere configuration options.
4317
- :param apply_capacity: Current resource capacity settings for managed EC2 fleets. For multi-location fleets, location values might refer to a fleet's remote location or its home Region. *Returned by:* `DescribeFleetCapacity <https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeFleetCapacity.html>`_ , `DescribeFleetLocationCapacity <https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeFleetLocationCapacity.html>`_ , `UpdateFleetCapacity <https://docs.aws.amazon.com/gamelift/latest/apireference/API_UpdateFleetCapacity.html>`_
4307
+ :param apply_capacity: Current resource capacity settings for managed EC2 fleets and container fleets. For multi-location fleets, location values might refer to a fleet's remote location or its home Region. *Returned by:* `DescribeFleetCapacity <https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeFleetCapacity.html>`_ , `DescribeFleetLocationCapacity <https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeFleetLocationCapacity.html>`_ , `UpdateFleetCapacity <https://docs.aws.amazon.com/gamelift/latest/apireference/API_UpdateFleetCapacity.html>`_
4318
4308
  :param build_id: A unique identifier for a build to be deployed on the new fleet. If you are deploying the fleet with a custom game build, you must specify this property. The build must have been successfully uploaded to Amazon GameLift and be in a ``READY`` status. This fleet setting cannot be changed once the fleet is created.
4319
4309
  :param certificate_configuration: Prompts Amazon GameLift to generate a TLS/SSL certificate for the fleet. Amazon GameLift uses the certificates to encrypt traffic between game clients and the game servers running on Amazon GameLift. By default, the ``CertificateConfiguration`` is ``DISABLED`` . You can't change this property after you create the fleet. AWS Certificate Manager (ACM) certificates expire after 13 months. Certificate expiration can cause fleets to fail, preventing players from connecting to instances in the fleet. We recommend you replace fleets before 13 months, consider using fleet aliases for a smooth transition. .. epigraph:: ACM isn't available in all AWS regions. A fleet creation request with certificate generation enabled in an unsupported Region, fails with a 4xx error. For more information about the supported Regions, see `Supported Regions <https://docs.aws.amazon.com/acm/latest/userguide/acm-regions.html>`_ in the *AWS Certificate Manager User Guide* .
4320
4310
  :param compute_type: The type of compute resource used to host your game servers. - ``EC2`` – The game server build is deployed to Amazon EC2 instances for cloud hosting. This is the default setting. - ``CONTAINER`` – Container images with your game server build and supporting software are deployed to Amazon EC2 instances for cloud hosting. With this compute type, you must specify the ``ContainerGroupsConfiguration`` parameter. - ``ANYWHERE`` – Game servers or container images with your game server and supporting software are deployed to compute resources that are provided and managed by you. With this compute type, you can also set the ``AnywhereConfiguration`` parameter.
4321
- :param container_groups_configuration: *This data type is currently not available. It is under improvement as we respond to customer feedback from the Containers public preview.* Configuration details for a set of container groups, for use when creating a fleet with compute type ``CONTAINER`` . *Used with:* ``CreateFleet``
4311
+ :param container_groups_configuration: *This data type is used with the Amazon GameLift containers feature, which is currently in public preview.*. Configuration details for a set of container groups, for use when creating a fleet with compute type ``CONTAINER`` . *Used with:* ``CreateFleet``
4322
4312
  :param description: A description for the fleet.
4323
4313
  :param desired_ec2_instances: The number of EC2 instances that you want this fleet to host. When creating a new fleet, GameLift automatically sets this value to "1" and initiates a single instance. Once the fleet is active, update this value to trigger GameLift to add or remove instances from the fleet.
4324
4314
  :param ec2_inbound_permissions: The IP address ranges and port settings that allow inbound traffic to access game server processes and other processes on this fleet. Set this parameter for EC2 and container fleets. You can leave this parameter empty when creating the fleet, but you must call ``UpdateFleetPortSettings`` to set it before players can connect to game sessions. As a best practice, we recommend opening ports for remote access only when you need them and closing them when you're finished. For Realtime Servers fleets, Amazon GameLift automatically sets TCP and UDP ranges. To manage inbound access for a container fleet, set this parameter to the same port numbers that you set for the fleet's connection port range. During the life of the fleet, update this parameter to control which connection ports are open to inbound traffic.
4325
4315
  :param ec2_instance_type: The Amazon GameLift-supported Amazon EC2 instance type to use with EC2 and container fleets. Instance type determines the computing resources that will be used to host your game servers, including CPU, memory, storage, and networking capacity. See `Amazon Elastic Compute Cloud Instance Types <https://docs.aws.amazon.com/ec2/instance-types/>`_ for detailed descriptions of Amazon EC2 instance types.
4326
4316
  :param fleet_type: Indicates whether to use On-Demand or Spot instances for this fleet. By default, this property is set to ``ON_DEMAND`` . Learn more about when to use `On-Demand versus Spot Instances <https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-ec2-instances.html#gamelift-ec2-instances-spot>`_ . This fleet property can't be changed after the fleet is created.
4327
- :param instance_role_arn: A unique identifier for an IAM role with access permissions to other AWS services. Any application that runs on an instance in the fleet--including install scripts, server processes, and other processes--can use these permissions to interact with AWS resources that you own or have access to. For more information about using the role with your game server builds, see `Communicate with other AWS resources from your fleets <https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-server-resources.html>`_ . This attribute is used with fleets where ``ComputeType`` is "EC2".
4328
- :param instance_role_credentials_provider: Indicates that fleet instances maintain a shared credentials file for the IAM role defined in ``InstanceRoleArn`` . Shared credentials allow applications that are deployed with the game server executable to communicate with other AWS resources. This property is used only when the game server is integrated with the server SDK version 5.x. For more information about using shared credentials, see `Communicate with other AWS resources from your fleets <https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-server-resources.html>`_ . This attribute is used with fleets where ``ComputeType`` is "EC2".
4317
+ :param instance_role_arn: A unique identifier for an IAM role with access permissions to other AWS services. Any application that runs on an instance in the fleet--including install scripts, server processes, and other processes--can use these permissions to interact with AWS resources that you own or have access to. For more information about using the role with your game server builds, see `Communicate with other AWS resources from your fleets <https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-server-resources.html>`_ . This attribute is used with fleets where ``ComputeType`` is "EC2" or "Container".
4318
+ :param instance_role_credentials_provider: Indicates that fleet instances maintain a shared credentials file for the IAM role defined in ``InstanceRoleArn`` . Shared credentials allow applications that are deployed with the game server executable to communicate with other AWS resources. This property is used only when the game server is integrated with the server SDK version 5.x. For more information about using shared credentials, see `Communicate with other AWS resources from your fleets <https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-server-resources.html>`_ . This attribute is used with fleets where ``ComputeType`` is "EC2" or "Container".
4329
4319
  :param locations: A set of remote locations to deploy additional instances to and manage as a multi-location fleet. Use this parameter when creating a fleet in AWS Regions that support multiple locations. You can add any AWS Region or Local Zone that's supported by Amazon GameLift. Provide a list of one or more AWS Region codes, such as ``us-west-2`` , or Local Zone names. When using this parameter, Amazon GameLift requires you to include your home location in the request. For a list of supported Regions and Local Zones, see `Amazon GameLift service locations <https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-regions.html>`_ for managed hosting.
4330
4320
  :param log_paths: (deprecated) This parameter is no longer used. When hosting a custom game build, specify where Amazon GameLift should store log files using the Amazon GameLift server API call ProcessReady()
4331
4321
  :param max_size: The maximum number of instances that are allowed in the specified fleet location. If this parameter is not set, the default is 1.
@@ -4556,7 +4546,7 @@ class CfnFleetProps:
4556
4546
 
4557
4547
  @builtins.property
4558
4548
  def apply_capacity(self) -> typing.Optional[builtins.str]:
4559
- '''Current resource capacity settings for managed EC2 fleets.
4549
+ '''Current resource capacity settings for managed EC2 fleets and container fleets.
4560
4550
 
4561
4551
  For multi-location fleets, location values might refer to a fleet's remote location or its home Region.
4562
4552
 
@@ -4613,9 +4603,7 @@ class CfnFleetProps:
4613
4603
  def container_groups_configuration(
4614
4604
  self,
4615
4605
  ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnFleet.ContainerGroupsConfigurationProperty]]:
4616
- '''*This data type is currently not available.
4617
-
4618
- It is under improvement as we respond to customer feedback from the Containers public preview.*
4606
+ '''*This data type is used with the Amazon GameLift containers feature, which is currently in public preview.*.
4619
4607
 
4620
4608
  Configuration details for a set of container groups, for use when creating a fleet with compute type ``CONTAINER`` .
4621
4609
 
@@ -4687,7 +4675,7 @@ class CfnFleetProps:
4687
4675
  def instance_role_arn(self) -> typing.Optional[builtins.str]:
4688
4676
  '''A unique identifier for an IAM role with access permissions to other AWS services.
4689
4677
 
4690
- Any application that runs on an instance in the fleet--including install scripts, server processes, and other processes--can use these permissions to interact with AWS resources that you own or have access to. For more information about using the role with your game server builds, see `Communicate with other AWS resources from your fleets <https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-server-resources.html>`_ . This attribute is used with fleets where ``ComputeType`` is "EC2".
4678
+ Any application that runs on an instance in the fleet--including install scripts, server processes, and other processes--can use these permissions to interact with AWS resources that you own or have access to. For more information about using the role with your game server builds, see `Communicate with other AWS resources from your fleets <https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-server-resources.html>`_ . This attribute is used with fleets where ``ComputeType`` is "EC2" or "Container".
4691
4679
 
4692
4680
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-fleet.html#cfn-gamelift-fleet-instancerolearn
4693
4681
  '''
@@ -4698,7 +4686,7 @@ class CfnFleetProps:
4698
4686
  def instance_role_credentials_provider(self) -> typing.Optional[builtins.str]:
4699
4687
  '''Indicates that fleet instances maintain a shared credentials file for the IAM role defined in ``InstanceRoleArn`` .
4700
4688
 
4701
- Shared credentials allow applications that are deployed with the game server executable to communicate with other AWS resources. This property is used only when the game server is integrated with the server SDK version 5.x. For more information about using shared credentials, see `Communicate with other AWS resources from your fleets <https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-server-resources.html>`_ . This attribute is used with fleets where ``ComputeType`` is "EC2".
4689
+ Shared credentials allow applications that are deployed with the game server executable to communicate with other AWS resources. This property is used only when the game server is integrated with the server SDK version 5.x. For more information about using shared credentials, see `Communicate with other AWS resources from your fleets <https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-server-resources.html>`_ . This attribute is used with fleets where ``ComputeType`` is "EC2" or "Container".
4702
4690
 
4703
4691
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-fleet.html#cfn-gamelift-fleet-instancerolecredentialsprovider
4704
4692
  '''
@@ -891,10 +891,8 @@ class CfnCrossAccountAttachment(
891
891
  # the properties below are optional
892
892
  principals=["principals"],
893
893
  resources=[globalaccelerator.CfnCrossAccountAttachment.ResourceProperty(
894
- endpoint_id="endpointId",
895
-
896
- # the properties below are optional
897
894
  cidr="cidr",
895
+ endpoint_id="endpointId",
898
896
  region="region"
899
897
  )],
900
898
  tags=[CfnTag(
@@ -1042,20 +1040,20 @@ class CfnCrossAccountAttachment(
1042
1040
  @jsii.data_type(
1043
1041
  jsii_type="aws-cdk-lib.aws_globalaccelerator.CfnCrossAccountAttachment.ResourceProperty",
1044
1042
  jsii_struct_bases=[],
1045
- name_mapping={"endpoint_id": "endpointId", "cidr": "cidr", "region": "region"},
1043
+ name_mapping={"cidr": "cidr", "endpoint_id": "endpointId", "region": "region"},
1046
1044
  )
1047
1045
  class ResourceProperty:
1048
1046
  def __init__(
1049
1047
  self,
1050
1048
  *,
1051
- endpoint_id: builtins.str,
1052
1049
  cidr: typing.Optional[builtins.str] = None,
1050
+ endpoint_id: typing.Optional[builtins.str] = None,
1053
1051
  region: typing.Optional[builtins.str] = None,
1054
1052
  ) -> None:
1055
1053
  '''A resource is one of the following: the ARN for an AWS resource that is supported by AWS Global Accelerator to be added as an endpoint, or a CIDR range that specifies a bring your own IP (BYOIP) address pool.
1056
1054
 
1057
- :param endpoint_id: The endpoint ID for the endpoint that is specified as a AWS resource. An endpoint ID for the cross-account feature is the ARN of an AWS resource, such as a Network Load Balancer, that Global Accelerator supports as an endpoint for an accelerator.
1058
1055
  :param cidr: An IP address range, in CIDR format, that is specified as resource. The address must be provisioned and advertised in AWS Global Accelerator by following the bring your own IP address (BYOIP) process for Global Accelerator For more information, see `Bring your own IP addresses (BYOIP) <https://docs.aws.amazon.com/global-accelerator/latest/dg/using-byoip.html>`_ in the AWS Global Accelerator Developer Guide.
1056
+ :param endpoint_id: The endpoint ID for the endpoint that is specified as a AWS resource. An endpoint ID for the cross-account feature is the ARN of an AWS resource, such as a Network Load Balancer, that Global Accelerator supports as an endpoint for an accelerator.
1059
1057
  :param region: The AWS Region where a shared endpoint resource is located.
1060
1058
 
1061
1059
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-globalaccelerator-crossaccountattachment-resource.html
@@ -1068,38 +1066,24 @@ class CfnCrossAccountAttachment(
1068
1066
  from aws_cdk import aws_globalaccelerator as globalaccelerator
1069
1067
 
1070
1068
  resource_property = globalaccelerator.CfnCrossAccountAttachment.ResourceProperty(
1071
- endpoint_id="endpointId",
1072
-
1073
- # the properties below are optional
1074
1069
  cidr="cidr",
1070
+ endpoint_id="endpointId",
1075
1071
  region="region"
1076
1072
  )
1077
1073
  '''
1078
1074
  if __debug__:
1079
1075
  type_hints = typing.get_type_hints(_typecheckingstub__7bd30ea319625d12c404c84e89e35a95437c89cec1dad797148fd3a2c913ddb7)
1080
- check_type(argname="argument endpoint_id", value=endpoint_id, expected_type=type_hints["endpoint_id"])
1081
1076
  check_type(argname="argument cidr", value=cidr, expected_type=type_hints["cidr"])
1077
+ check_type(argname="argument endpoint_id", value=endpoint_id, expected_type=type_hints["endpoint_id"])
1082
1078
  check_type(argname="argument region", value=region, expected_type=type_hints["region"])
1083
- self._values: typing.Dict[builtins.str, typing.Any] = {
1084
- "endpoint_id": endpoint_id,
1085
- }
1079
+ self._values: typing.Dict[builtins.str, typing.Any] = {}
1086
1080
  if cidr is not None:
1087
1081
  self._values["cidr"] = cidr
1082
+ if endpoint_id is not None:
1083
+ self._values["endpoint_id"] = endpoint_id
1088
1084
  if region is not None:
1089
1085
  self._values["region"] = region
1090
1086
 
1091
- @builtins.property
1092
- def endpoint_id(self) -> builtins.str:
1093
- '''The endpoint ID for the endpoint that is specified as a AWS resource.
1094
-
1095
- An endpoint ID for the cross-account feature is the ARN of an AWS resource, such as a Network Load Balancer, that Global Accelerator supports as an endpoint for an accelerator.
1096
-
1097
- :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-globalaccelerator-crossaccountattachment-resource.html#cfn-globalaccelerator-crossaccountattachment-resource-endpointid
1098
- '''
1099
- result = self._values.get("endpoint_id")
1100
- assert result is not None, "Required property 'endpoint_id' is missing"
1101
- return typing.cast(builtins.str, result)
1102
-
1103
1087
  @builtins.property
1104
1088
  def cidr(self) -> typing.Optional[builtins.str]:
1105
1089
  '''An IP address range, in CIDR format, that is specified as resource.
@@ -1113,6 +1097,17 @@ class CfnCrossAccountAttachment(
1113
1097
  result = self._values.get("cidr")
1114
1098
  return typing.cast(typing.Optional[builtins.str], result)
1115
1099
 
1100
+ @builtins.property
1101
+ def endpoint_id(self) -> typing.Optional[builtins.str]:
1102
+ '''The endpoint ID for the endpoint that is specified as a AWS resource.
1103
+
1104
+ An endpoint ID for the cross-account feature is the ARN of an AWS resource, such as a Network Load Balancer, that Global Accelerator supports as an endpoint for an accelerator.
1105
+
1106
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-globalaccelerator-crossaccountattachment-resource.html#cfn-globalaccelerator-crossaccountattachment-resource-endpointid
1107
+ '''
1108
+ result = self._values.get("endpoint_id")
1109
+ return typing.cast(typing.Optional[builtins.str], result)
1110
+
1116
1111
  @builtins.property
1117
1112
  def region(self) -> typing.Optional[builtins.str]:
1118
1113
  '''The AWS Region where a shared endpoint resource is located.
@@ -1175,10 +1170,8 @@ class CfnCrossAccountAttachmentProps:
1175
1170
  # the properties below are optional
1176
1171
  principals=["principals"],
1177
1172
  resources=[globalaccelerator.CfnCrossAccountAttachment.ResourceProperty(
1178
- endpoint_id="endpointId",
1179
-
1180
- # the properties below are optional
1181
1173
  cidr="cidr",
1174
+ endpoint_id="endpointId",
1182
1175
  region="region"
1183
1176
  )],
1184
1177
  tags=[CfnTag(
@@ -4337,8 +4330,8 @@ def _typecheckingstub__41d583733963eebabfa0286562bcae1a6871814ce66e72f32e495b730
4337
4330
 
4338
4331
  def _typecheckingstub__7bd30ea319625d12c404c84e89e35a95437c89cec1dad797148fd3a2c913ddb7(
4339
4332
  *,
4340
- endpoint_id: builtins.str,
4341
4333
  cidr: typing.Optional[builtins.str] = None,
4334
+ endpoint_id: typing.Optional[builtins.str] = None,
4342
4335
  region: typing.Optional[builtins.str] = None,
4343
4336
  ) -> None:
4344
4337
  """Type checking stubs"""
@@ -9906,20 +9906,21 @@ class PolicyStatement(
9906
9906
 
9907
9907
  Example::
9908
9908
 
9909
- # destination_bucket: s3.Bucket
9910
-
9911
-
9912
- deployment = s3deploy.BucketDeployment(self, "DeployFiles",
9913
- sources=[s3deploy.Source.asset(path.join(__dirname, "source-files"))],
9914
- destination_bucket=destination_bucket
9909
+ access_logs_bucket = s3.Bucket(self, "AccessLogsBucket",
9910
+ object_ownership=s3.ObjectOwnership.BUCKET_OWNER_ENFORCED
9915
9911
  )
9916
9912
 
9917
- deployment.handler_role.add_to_policy(
9913
+ access_logs_bucket.add_to_resource_policy(
9918
9914
  iam.PolicyStatement(
9919
- actions=["kms:Decrypt", "kms:DescribeKey"],
9920
- effect=iam.Effect.ALLOW,
9921
- resources=["<encryption key ARN>"]
9915
+ actions=["s3:*"],
9916
+ resources=[access_logs_bucket.bucket_arn, access_logs_bucket.arn_for_objects("*")],
9917
+ principals=[iam.AnyPrincipal()]
9922
9918
  ))
9919
+
9920
+ bucket = s3.Bucket(self, "MyBucket",
9921
+ server_access_logs_bucket=access_logs_bucket,
9922
+ server_access_logs_prefix="logs"
9923
+ )
9923
9924
  '''
9924
9925
 
9925
9926
  def __init__(
@@ -10467,20 +10468,21 @@ class PolicyStatementProps:
10467
10468
 
10468
10469
  Example::
10469
10470
 
10470
- # destination_bucket: s3.Bucket
10471
-
10472
-
10473
- deployment = s3deploy.BucketDeployment(self, "DeployFiles",
10474
- sources=[s3deploy.Source.asset(path.join(__dirname, "source-files"))],
10475
- destination_bucket=destination_bucket
10471
+ access_logs_bucket = s3.Bucket(self, "AccessLogsBucket",
10472
+ object_ownership=s3.ObjectOwnership.BUCKET_OWNER_ENFORCED
10476
10473
  )
10477
10474
 
10478
- deployment.handler_role.add_to_policy(
10475
+ access_logs_bucket.add_to_resource_policy(
10479
10476
  iam.PolicyStatement(
10480
- actions=["kms:Decrypt", "kms:DescribeKey"],
10481
- effect=iam.Effect.ALLOW,
10482
- resources=["<encryption key ARN>"]
10477
+ actions=["s3:*"],
10478
+ resources=[access_logs_bucket.bucket_arn, access_logs_bucket.arn_for_objects("*")],
10479
+ principals=[iam.AnyPrincipal()]
10483
10480
  ))
10481
+
10482
+ bucket = s3.Bucket(self, "MyBucket",
10483
+ server_access_logs_bucket=access_logs_bucket,
10484
+ server_access_logs_prefix="logs"
10485
+ )
10484
10486
  '''
10485
10487
  if __debug__:
10486
10488
  type_hints = typing.get_type_hints(_typecheckingstub__b1307ab5f5dd84b7184f36603f7af026efb2798812c35c96dbe60552fff14c3b)