Class: AWSCDK::MSK::CfnClusterPolicyProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
msk/cfn_cluster_policy_props.rb

Overview

Properties for defining a CfnClusterPolicy.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cluster_arn:, policy:) ⇒ CfnClusterPolicyProps

Returns a new instance of CfnClusterPolicyProps.

Parameters:

  • cluster_arn (String)

    The Amazon Resource Name (ARN) that uniquely identifies the cluster.

  • policy (Object)

    Resource policy for the cluster.



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_arnString (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

#policyObject (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_propertiesObject



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_jsiiObject



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