Class: AWSCDK::EKS::CfnCluster::EncryptionConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EKS::CfnCluster::EncryptionConfigProperty
- Defined in:
- eks/cfn_cluster.rb
Overview
The encryption configuration for the cluster.
Instance Attribute Summary collapse
-
#provider ⇒ AWSCDK::IResolvable, ...
readonly
The encryption provider for the cluster.
-
#resources ⇒ Array<String>?
readonly
Specifies the resources to be encrypted.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(provider: nil, resources: nil) ⇒ EncryptionConfigProperty
constructor
A new instance of EncryptionConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(provider: nil, resources: nil) ⇒ EncryptionConfigProperty
Returns a new instance of EncryptionConfigProperty.
1172 1173 1174 1175 1176 1177 |
# File 'eks/cfn_cluster.rb', line 1172 def initialize(provider: nil, resources: nil) @provider = provider.is_a?(Hash) ? ::AWSCDK::EKS::CfnCluster::ProviderProperty.new(**provider.transform_keys(&:to_sym)) : provider Jsii::Type.check_type(@provider, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19la3MuQ2ZuQ2x1c3Rlci5Qcm92aWRlclByb3BlcnR5In1dfX0=")), "provider") unless @provider.nil? @resources = resources Jsii::Type.check_type(@resources, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "resources") unless @resources.nil? end |
Instance Attribute Details
#provider ⇒ AWSCDK::IResolvable, ... (readonly)
The encryption provider for the cluster.
1183 1184 1185 |
# File 'eks/cfn_cluster.rb', line 1183 def provider @provider end |
#resources ⇒ Array<String>? (readonly)
Specifies the resources to be encrypted.
The only supported value is secrets .
1190 1191 1192 |
# File 'eks/cfn_cluster.rb', line 1190 def resources @resources end |
Class Method Details
.jsii_properties ⇒ Object
1192 1193 1194 1195 1196 1197 |
# File 'eks/cfn_cluster.rb', line 1192 def self.jsii_properties { :provider => "provider", :resources => "resources", } end |
Instance Method Details
#to_jsii ⇒ Object
1199 1200 1201 1202 1203 1204 1205 1206 |
# File 'eks/cfn_cluster.rb', line 1199 def to_jsii result = {} result.merge!({ "provider" => @provider, "resources" => @resources, }) result.compact end |