Class: AWSCDK::EKS::CfnAccessEntry::AccessScopeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EKS::CfnAccessEntry::AccessScopeProperty
- Defined in:
- eks/cfn_access_entry.rb
Overview
The scope of an AccessPolicy that's associated to an AccessEntry .
Instance Attribute Summary collapse
-
#namespaces ⇒ Array<String>?
readonly
A Kubernetes
namespacethat an access policy is scoped to. -
#type ⇒ String
readonly
The scope type of an access policy.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type:, namespaces: nil) ⇒ AccessScopeProperty
constructor
A new instance of AccessScopeProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(type:, namespaces: nil) ⇒ AccessScopeProperty
Returns a new instance of AccessScopeProperty.
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
#namespaces ⇒ Array<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 |
#type ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |