Class: AWSCDK::EKS::CfnCluster::AccessConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
eks/cfn_cluster.rb

Overview

The access configuration for the cluster.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(authentication_mode: nil, bootstrap_cluster_creator_admin_permissions: nil) ⇒ AccessConfigProperty

Returns a new instance of AccessConfigProperty.

Parameters:

  • authentication_mode (String, nil) (defaults to: nil)

    The desired authentication mode for the cluster.

  • bootstrap_cluster_creator_admin_permissions (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Specifies whether or not the cluster creator IAM principal was set as a cluster admin access entry during cluster creation time.



867
868
869
870
871
872
# File 'eks/cfn_cluster.rb', line 867

def initialize(authentication_mode: nil, bootstrap_cluster_creator_admin_permissions: nil)
  @authentication_mode = authentication_mode
  Jsii::Type.check_type(@authentication_mode, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "authenticationMode") unless @authentication_mode.nil?
  @bootstrap_cluster_creator_admin_permissions = bootstrap_cluster_creator_admin_permissions
  Jsii::Type.check_type(@bootstrap_cluster_creator_admin_permissions, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "bootstrapClusterCreatorAdminPermissions") unless @bootstrap_cluster_creator_admin_permissions.nil?
end

Instance Attribute Details

#authentication_modeString? (readonly)

The desired authentication mode for the cluster.

If you create a cluster by using the EKS API, AWS SDKs, or AWS CloudFormation , the default is CONFIG_MAP . If you create the cluster by using the AWS Management Console , the default value is API_AND_CONFIG_MAP .



880
881
882
# File 'eks/cfn_cluster.rb', line 880

def authentication_mode
  @authentication_mode
end

#bootstrap_cluster_creator_admin_permissionsBoolean, ... (readonly)

Specifies whether or not the cluster creator IAM principal was set as a cluster admin access entry during cluster creation time.

The default value is true .



887
888
889
# File 'eks/cfn_cluster.rb', line 887

def bootstrap_cluster_creator_admin_permissions
  @bootstrap_cluster_creator_admin_permissions
end

Class Method Details

.jsii_propertiesObject



889
890
891
892
893
894
# File 'eks/cfn_cluster.rb', line 889

def self.jsii_properties
  {
    :authentication_mode => "authenticationMode",
    :bootstrap_cluster_creator_admin_permissions => "bootstrapClusterCreatorAdminPermissions",
  }
end

Instance Method Details

#to_jsiiObject



896
897
898
899
900
901
902
903
# File 'eks/cfn_cluster.rb', line 896

def to_jsii
  result = {}
  result.merge!({
    "authenticationMode" => @authentication_mode,
    "bootstrapClusterCreatorAdminPermissions" => @bootstrap_cluster_creator_admin_permissions,
  })
  result.compact
end