Class: AWSCDK::EKS::AccessPolicy
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::EKS::AccessPolicy
- Includes:
- IAccessPolicy
- Defined in:
- eks/access_policy.rb
Overview
Represents an Amazon EKS Access Policy that implements the IAccessPolicy interface.
Class Method Summary collapse
-
.from_access_policy_name(policy_name, options) ⇒ AWSCDK::EKS::IAccessPolicy
Import AccessPolicy by name.
- .jsii_overridable_methods ⇒ Object
Instance Method Summary collapse
-
#access_scope ⇒ AWSCDK::EKS::AccessScope
The scope of the access policy, which determines the level of access granted.
-
#initialize(props) ⇒ AccessPolicy
constructor
Constructs a new instance of the AccessPolicy class.
-
#policy ⇒ String
The access policy itself, which defines the specific permissions.
Constructor Details
#initialize(props) ⇒ AccessPolicy
Constructs a new instance of the AccessPolicy class.
12 13 14 15 16 |
# File 'eks/access_policy.rb', line 12 def initialize(props) props = props.is_a?(Hash) ? ::AWSCDK::EKS::AccessPolicyProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWtzLkFjY2Vzc1BvbGljeVByb3BzIn0=")), "props") Jsii::Object.instance_method(:initialize).bind(self).call(props) end |
Class Method Details
.from_access_policy_name(policy_name, options) ⇒ AWSCDK::EKS::IAccessPolicy
Import AccessPolicy by name.
30 31 32 33 34 35 |
# File 'eks/access_policy.rb', line 30 def self.from_access_policy_name(policy_name, ) Jsii::Type.check_type(policy_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "policyName") = .is_a?(Hash) ? ::AWSCDK::EKS::AccessPolicyNameOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWtzLkFjY2Vzc1BvbGljeU5hbWVPcHRpb25zIn0=")), "options") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_eks.AccessPolicy", "fromAccessPolicyName", [policy_name, ]) end |
.jsii_overridable_methods ⇒ Object
18 19 20 21 22 23 |
# File 'eks/access_policy.rb', line 18 def self.jsii_overridable_methods { :access_scope => { kind: :property, name: "accessScope", is_optional: false }, :policy => { kind: :property, name: "policy", is_optional: false }, } end |
Instance Method Details
#access_scope ⇒ AWSCDK::EKS::AccessScope
The scope of the access policy, which determines the level of access granted.
40 41 42 |
# File 'eks/access_policy.rb', line 40 def access_scope() jsii_get_property("accessScope") end |
#policy ⇒ String
The access policy itself, which defines the specific permissions.
47 48 49 |
# File 'eks/access_policy.rb', line 47 def policy() jsii_get_property("policy") end |