class CfnAccessEntryPropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.EKS.Mixins.CfnAccessEntryPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awseks/mixins#CfnAccessEntryPropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.eks.mixins.CfnAccessEntryPropsMixin |
Python | aws_cdk.mixins_preview.aws_eks.mixins.CfnAccessEntryPropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_eks » mixins » CfnAccessEntryPropsMixin |
Implements
IMixin
Extends
Mixin
Creates an access entry.
An access entry allows an IAM principal to access your cluster. Access entries can replace the need to maintain entries in the aws-auth ConfigMap for authentication. You have the following options for authorizing an IAM principal to access Kubernetes objects on your cluster: Kubernetes role-based access control (RBAC), Amazon EKS, or both. Kubernetes RBAC authorization requires you to create and manage Kubernetes Role , ClusterRole , RoleBinding , and ClusterRoleBinding objects, in addition to managing access entries. If you use Amazon EKS authorization exclusively, you don't need to create and manage Kubernetes Role , ClusterRole , RoleBinding , and ClusterRoleBinding objects.
For more information about access entries, see Access entries in the Amazon EKS User Guide .
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-accessentry.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins } from '@aws-cdk/mixins-preview';
import { mixins as eks_mixins } from '@aws-cdk/mixins-preview/aws-eks';
const cfnAccessEntryPropsMixin = new eks_mixins.CfnAccessEntryPropsMixin({
accessPolicies: [{
accessScope: {
namespaces: ['namespaces'],
type: 'type',
},
policyArn: 'policyArn',
}],
clusterName: 'clusterName',
kubernetesGroups: ['kubernetesGroups'],
principalArn: 'principalArn',
tags: [{
key: 'key',
value: 'value',
}],
type: 'type',
username: 'username',
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnAccessEntryPropsMixin(props: CfnAccessEntryMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Access Entry Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::EKS::AccessEntry.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): IConstruct
Parameters
- construct
IConstruct
Returns
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript