Class: AWSCDK::EC2::CfnNetworkPerformanceMetricSubscriptionProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnNetworkPerformanceMetricSubscriptionProps
- Defined in:
- ec2/cfn_network_performance_metric_subscription_props.rb
Overview
Properties for defining a CfnNetworkPerformanceMetricSubscription.
Instance Attribute Summary collapse
-
#destination ⇒ String
readonly
The Region or Availability Zone that's the target for the subscription.
-
#metric ⇒ String
readonly
The metric used for the subscription.
-
#source ⇒ String
readonly
The Region or Availability Zone that's the source for the subscription.
-
#statistic ⇒ String
readonly
The statistic used for the subscription.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(destination:, metric:, source:, statistic:) ⇒ CfnNetworkPerformanceMetricSubscriptionProps
constructor
A new instance of CfnNetworkPerformanceMetricSubscriptionProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(destination:, metric:, source:, statistic:) ⇒ CfnNetworkPerformanceMetricSubscriptionProps
Returns a new instance of CfnNetworkPerformanceMetricSubscriptionProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'ec2/cfn_network_performance_metric_subscription_props.rb', line 13 def initialize(destination:, metric:, source:, statistic:) @destination = destination Jsii::Type.check_type(@destination, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "destination") @metric = metric Jsii::Type.check_type(@metric, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "metric") @source = source Jsii::Type.check_type(@source, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "source") @statistic = statistic Jsii::Type.check_type(@statistic, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "statistic") end |
Instance Attribute Details
#destination ⇒ String (readonly)
The Region or Availability Zone that's the target for the subscription.
For example, eu-west-1 .
30 31 32 |
# File 'ec2/cfn_network_performance_metric_subscription_props.rb', line 30 def destination @destination end |
#metric ⇒ String (readonly)
The metric used for the subscription.
35 36 37 |
# File 'ec2/cfn_network_performance_metric_subscription_props.rb', line 35 def metric @metric end |
#source ⇒ String (readonly)
The Region or Availability Zone that's the source for the subscription.
For example, us-east-1 .
42 43 44 |
# File 'ec2/cfn_network_performance_metric_subscription_props.rb', line 42 def source @source end |
#statistic ⇒ String (readonly)
The statistic used for the subscription.
47 48 49 |
# File 'ec2/cfn_network_performance_metric_subscription_props.rb', line 47 def statistic @statistic end |
Class Method Details
.jsii_properties ⇒ Object
49 50 51 52 53 54 55 56 |
# File 'ec2/cfn_network_performance_metric_subscription_props.rb', line 49 def self.jsii_properties { :destination => "destination", :metric => "metric", :source => "source", :statistic => "statistic", } end |
Instance Method Details
#to_jsii ⇒ Object
58 59 60 61 62 63 64 65 66 67 |
# File 'ec2/cfn_network_performance_metric_subscription_props.rb', line 58 def to_jsii result = {} result.merge!({ "destination" => @destination, "metric" => @metric, "source" => @source, "statistic" => @statistic, }) result.compact end |