Class: AWSCDK::Interfaces::AWSApplicationautoscaling::ScalableTargetReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSApplicationautoscaling::ScalableTargetReference
- Defined in:
- interfaces/aws_applicationautoscaling/scalable_target_reference.rb
Overview
A reference to a ScalableTarget resource.
Instance Attribute Summary collapse
-
#resource_id ⇒ String
readonly
The ResourceId of the ScalableTarget resource.
-
#scalable_dimension ⇒ String
readonly
The ScalableDimension of the ScalableTarget resource.
-
#service_namespace ⇒ String
readonly
The ServiceNamespace of the ScalableTarget resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(resource_id:, scalable_dimension:, service_namespace:) ⇒ ScalableTargetReference
constructor
A new instance of ScalableTargetReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(resource_id:, scalable_dimension:, service_namespace:) ⇒ ScalableTargetReference
Returns a new instance of ScalableTargetReference.
10 11 12 13 14 15 16 17 |
# File 'interfaces/aws_applicationautoscaling/scalable_target_reference.rb', line 10 def initialize(resource_id:, scalable_dimension:, service_namespace:) @resource_id = resource_id Jsii::Type.check_type(@resource_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resourceId") @scalable_dimension = scalable_dimension Jsii::Type.check_type(@scalable_dimension, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "scalableDimension") @service_namespace = service_namespace Jsii::Type.check_type(@service_namespace, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "serviceNamespace") end |
Instance Attribute Details
#resource_id ⇒ String (readonly)
The ResourceId of the ScalableTarget resource.
22 23 24 |
# File 'interfaces/aws_applicationautoscaling/scalable_target_reference.rb', line 22 def resource_id @resource_id end |
#scalable_dimension ⇒ String (readonly)
The ScalableDimension of the ScalableTarget resource.
26 27 28 |
# File 'interfaces/aws_applicationautoscaling/scalable_target_reference.rb', line 26 def scalable_dimension @scalable_dimension end |
#service_namespace ⇒ String (readonly)
The ServiceNamespace of the ScalableTarget resource.
30 31 32 |
# File 'interfaces/aws_applicationautoscaling/scalable_target_reference.rb', line 30 def service_namespace @service_namespace end |
Class Method Details
.jsii_properties ⇒ Object
32 33 34 35 36 37 38 |
# File 'interfaces/aws_applicationautoscaling/scalable_target_reference.rb', line 32 def self.jsii_properties { :resource_id => "resourceId", :scalable_dimension => "scalableDimension", :service_namespace => "serviceNamespace", } end |
Instance Method Details
#to_jsii ⇒ Object
40 41 42 43 44 45 46 47 48 |
# File 'interfaces/aws_applicationautoscaling/scalable_target_reference.rb', line 40 def to_jsii result = {} result.merge!({ "resourceId" => @resource_id, "scalableDimension" => @scalable_dimension, "serviceNamespace" => @service_namespace, }) result.compact end |