AccessEntryProps
- class aws_cdk.aws_eks.AccessEntryProps(*, access_policies, cluster, principal, access_entry_name=None, access_entry_type=None, removal_policy=None)
Bases:
objectRepresents the properties required to create an Amazon EKS access entry.
- Parameters:
access_policies (
Sequence[IAccessPolicy]) – The access policies that define the permissions and scope for the access entry.cluster (
ICluster) – The Amazon EKS cluster to which the access entry applies.principal (
str) – The Amazon Resource Name (ARN) of the principal (user or role) to associate the access entry with.access_entry_name (
Optional[str]) – The name of the AccessEntry. Default: - No access entry name is providedaccess_entry_type (
Optional[AccessEntryType]) – The type of the AccessEntry. Default: STANDARDremoval_policy (
Optional[RemovalPolicy]) – The removal policy applied to the access entry. The removal policy controls what happens to the resource if it stops being managed by CloudFormation. This can happen in one of three situations: - The resource is removed from the template, so CloudFormation stops managing it - A change to the resource is made that requires it to be replaced, so CloudFormation stops managing it - The stack is deleted, so CloudFormation stops managing all resources in it Default: RemovalPolicy.DESTROY
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk as cdk from aws_cdk import aws_eks as eks # access_policy: eks.AccessPolicy # cluster: eks.Cluster access_entry_props = eks.AccessEntryProps( access_policies=[access_policy], cluster=cluster, principal="principal", # the properties below are optional access_entry_name="accessEntryName", access_entry_type=eks.AccessEntryType.STANDARD, removal_policy=cdk.RemovalPolicy.DESTROY )
Attributes
- access_entry_name
The name of the AccessEntry.
- Default:
No access entry name is provided
- access_entry_type
The type of the AccessEntry.
- Default:
STANDARD
- access_policies
The access policies that define the permissions and scope for the access entry.
- cluster
The Amazon EKS cluster to which the access entry applies.
- principal
The Amazon Resource Name (ARN) of the principal (user or role) to associate the access entry with.
- removal_policy
The removal policy applied to the access entry.
The removal policy controls what happens to the resource if it stops being managed by CloudFormation. This can happen in one of three situations:
The resource is removed from the template, so CloudFormation stops managing it
A change to the resource is made that requires it to be replaced, so CloudFormation stops managing it
The stack is deleted, so CloudFormation stops managing all resources in it
- Default:
RemovalPolicy.DESTROY