aws-cdk-lib 2.145.0__py3-none-any.whl → 2.146.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.

@@ -12866,16 +12866,21 @@ class Role(
12866
12866
 
12867
12867
  Example::
12868
12868
 
12869
- # definition: sfn.IChainable
12870
- role = iam.Role(self, "Role",
12871
- assumed_by=iam.ServicePrincipal("lambda.amazonaws.com")
12872
- )
12873
- state_machine = sfn.StateMachine(self, "StateMachine",
12874
- definition_body=sfn.DefinitionBody.from_chainable(definition)
12869
+ # Option 3: Create a new role that allows the account root principal to assume. Add this role in the `system:masters` and witch to this role from the AWS console.
12870
+ # cluster: eks.Cluster
12871
+
12872
+
12873
+ console_read_only_role = iam.Role(self, "ConsoleReadOnlyRole",
12874
+ assumed_by=iam.ArnPrincipal("arn_for_trusted_principal")
12875
12875
  )
12876
+ console_read_only_role.add_to_policy(iam.PolicyStatement(
12877
+ actions=["eks:AccessKubernetesApi", "eks:Describe*", "eks:List*"
12878
+ ],
12879
+ resources=[cluster.cluster_arn]
12880
+ ))
12876
12881
 
12877
- # Give role permission to get execution history of ALL executions for the state machine
12878
- state_machine.grant_execution(role, "states:GetExecutionHistory")
12882
+ # Add this role to system:masters RBAC group
12883
+ cluster.aws_auth.add_masters_role(console_read_only_role)
12879
12884
  '''
12880
12885
 
12881
12886
  def __init__(
@@ -5358,6 +5358,12 @@ class EngineVersion(
5358
5358
  '''AWS OpenSearch 2.11.'''
5359
5359
  return typing.cast("EngineVersion", jsii.sget(cls, "OPENSEARCH_2_11"))
5360
5360
 
5361
+ @jsii.python.classproperty
5362
+ @jsii.member(jsii_name="OPENSEARCH_2_13")
5363
+ def OPENSEARCH_2_13(cls) -> "EngineVersion":
5364
+ '''AWS OpenSearch 2.13.'''
5365
+ return typing.cast("EngineVersion", jsii.sget(cls, "OPENSEARCH_2_13"))
5366
+
5361
5367
  @jsii.python.classproperty
5362
5368
  @jsii.member(jsii_name="OPENSEARCH_2_3")
5363
5369
  def OPENSEARCH_2_3(cls) -> "EngineVersion":