Class: AWSCDK::MSK::CfnClusterPolicyProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MSK::CfnClusterPolicyProps
- Defined in:
- msk/cfn_cluster_policy_props.rb
Overview
Properties for defining a CfnClusterPolicy.
Instance Attribute Summary collapse
-
#cluster_arn ⇒ String
readonly
The Amazon Resource Name (ARN) that uniquely identifies the cluster.
-
#policy ⇒ Object
readonly
Resource policy for the cluster.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cluster_arn:, policy:) ⇒ CfnClusterPolicyProps
constructor
A new instance of CfnClusterPolicyProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(cluster_arn:, policy:) ⇒ CfnClusterPolicyProps
Returns a new instance of CfnClusterPolicyProps.
11 12 13 14 15 16 |
# File 'msk/cfn_cluster_policy_props.rb', line 11 def initialize(cluster_arn:, policy:) @cluster_arn = cluster_arn Jsii::Type.check_type(@cluster_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "clusterArn") @policy = policy Jsii::Type.check_type(@policy, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "policy") end |
Instance Attribute Details
#cluster_arn ⇒ String (readonly)
The Amazon Resource Name (ARN) that uniquely identifies the cluster.
22 23 24 |
# File 'msk/cfn_cluster_policy_props.rb', line 22 def cluster_arn @cluster_arn end |
#policy ⇒ Object (readonly)
Resource policy for the cluster.
The maximum size supported for a resource-based policy document is 20 KB.
29 30 31 |
# File 'msk/cfn_cluster_policy_props.rb', line 29 def policy @policy end |
Class Method Details
.jsii_properties ⇒ Object
31 32 33 34 35 36 |
# File 'msk/cfn_cluster_policy_props.rb', line 31 def self.jsii_properties { :cluster_arn => "clusterArn", :policy => "policy", } end |
Instance Method Details
#to_jsii ⇒ Object
38 39 40 41 42 43 44 45 |
# File 'msk/cfn_cluster_policy_props.rb', line 38 def to_jsii result = {} result.merge!({ "clusterArn" => @cluster_arn, "policy" => @policy, }) result.compact end |