Class: AWSCDK::MSK::CfnReplicatorProps

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

Overview

Properties for defining a CfnReplicator.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(kafka_clusters:, replication_info_list:, replicator_name:, service_execution_role_arn:, description: nil, log_delivery: nil, tags: nil) ⇒ CfnReplicatorProps

Returns a new instance of CfnReplicatorProps.

Parameters:



16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'msk/cfn_replicator_props.rb', line 16

def initialize(kafka_clusters:, replication_info_list:, replicator_name:, service_execution_role_arn:, description: nil, log_delivery: nil, tags: nil)
  @kafka_clusters = kafka_clusters
  Jsii::Type.check_type(@kafka_clusters, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbXNrLkNmblJlcGxpY2F0b3IuS2Fma2FDbHVzdGVyUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "kafkaClusters")
  @replication_info_list = replication_info_list
  Jsii::Type.check_type(@replication_info_list, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbXNrLkNmblJlcGxpY2F0b3IuUmVwbGljYXRpb25JbmZvUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "replicationInfoList")
  @replicator_name = replicator_name
  Jsii::Type.check_type(@replicator_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "replicatorName")
  @service_execution_role_arn = service_execution_role_arn
  Jsii::Type.check_type(@service_execution_role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "serviceExecutionRoleArn")
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
  @log_delivery = log_delivery.is_a?(Hash) ? ::AWSCDK::MSK::CfnReplicator::LogDeliveryProperty.new(**log_delivery.transform_keys(&:to_sym)) : log_delivery
  Jsii::Type.check_type(@log_delivery, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tc2suQ2ZuUmVwbGljYXRvci5Mb2dEZWxpdmVyeVByb3BlcnR5In1dfX0=")), "logDelivery") unless @log_delivery.nil?
  @tags = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#descriptionString? (readonly)

A summary description of the replicator.



59
60
61
# File 'msk/cfn_replicator_props.rb', line 59

def description
  @description
end

#kafka_clustersAWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::MSK::CfnReplicator::KafkaClusterProperty> (readonly)

Kafka Clusters to use in setting up sources / targets for replication.



37
38
39
# File 'msk/cfn_replicator_props.rb', line 37

def kafka_clusters
  @kafka_clusters
end

#log_deliveryAWSCDK::IResolvable, ... (readonly)

Configuration for log delivery for the replicator.



64
65
66
# File 'msk/cfn_replicator_props.rb', line 64

def log_delivery
  @log_delivery
end

#replication_info_listAWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::MSK::CfnReplicator::ReplicationInfoProperty> (readonly)

A list of replication configurations, where each configuration targets a given source cluster to target cluster replication flow.



42
43
44
# File 'msk/cfn_replicator_props.rb', line 42

def replication_info_list
  @replication_info_list
end

#replicator_nameString (readonly)

The name of the replicator.

Alpha-numeric characters with '-' are allowed.



49
50
51
# File 'msk/cfn_replicator_props.rb', line 49

def replicator_name
  @replicator_name
end

#service_execution_role_arnString (readonly)

The ARN of the IAM role used by the replicator to access resources in the customer's account (e.g source and target clusters).



54
55
56
# File 'msk/cfn_replicator_props.rb', line 54

def service_execution_role_arn
  @service_execution_role_arn
end

#tagsArray<AWSCDK::CfnTag>? (readonly)

List of tags to attach to created Replicator.



69
70
71
# File 'msk/cfn_replicator_props.rb', line 69

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



71
72
73
74
75
76
77
78
79
80
81
# File 'msk/cfn_replicator_props.rb', line 71

def self.jsii_properties
  {
    :kafka_clusters => "kafkaClusters",
    :replication_info_list => "replicationInfoList",
    :replicator_name => "replicatorName",
    :service_execution_role_arn => "serviceExecutionRoleArn",
    :description => "description",
    :log_delivery => "logDelivery",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



83
84
85
86
87
88
89
90
91
92
93
94
95
# File 'msk/cfn_replicator_props.rb', line 83

def to_jsii
  result = {}
  result.merge!({
    "kafkaClusters" => @kafka_clusters,
    "replicationInfoList" => @replication_info_list,
    "replicatorName" => @replicator_name,
    "serviceExecutionRoleArn" => @service_execution_role_arn,
    "description" => @description,
    "logDelivery" => @log_delivery,
    "tags" => @tags,
  })
  result.compact
end