Class: AWSCDK::EKS::CfnAccessEntry::AccessScopeProperty

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

Overview

The scope of an AccessPolicy that's associated to an AccessEntry .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:, namespaces: nil) ⇒ AccessScopeProperty

Returns a new instance of AccessScopeProperty.

Parameters:

  • type (String)

    The scope type of an access policy.

  • namespaces (Array<String>, nil) (defaults to: nil)

    A Kubernetes namespace that an access policy is scoped to.



645
646
647
648
649
650
# File 'eks/cfn_access_entry.rb', line 645

def initialize(type:, namespaces: nil)
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type")
  @namespaces = namespaces
  Jsii::Type.check_type(@namespaces, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "namespaces") unless @namespaces.nil?
end

Instance Attribute Details

#namespacesArray<String>? (readonly)

A Kubernetes namespace that an access policy is scoped to.

A value is required if you specified namespace for Type .



663
664
665
# File 'eks/cfn_access_entry.rb', line 663

def namespaces
  @namespaces
end

#typeString (readonly)

The scope type of an access policy.



656
657
658
# File 'eks/cfn_access_entry.rb', line 656

def type
  @type
end

Class Method Details

.jsii_propertiesObject



665
666
667
668
669
670
# File 'eks/cfn_access_entry.rb', line 665

def self.jsii_properties
  {
    :type => "type",
    :namespaces => "namespaces",
  }
end

Instance Method Details

#to_jsiiObject



672
673
674
675
676
677
678
679
# File 'eks/cfn_access_entry.rb', line 672

def to_jsii
  result = {}
  result.merge!({
    "type" => @type,
    "namespaces" => @namespaces,
  })
  result.compact
end