Class: AWSCDK::ApplicationAutoScaling::ScalableTargetAttributes
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ApplicationAutoScaling::ScalableTargetAttributes
- Defined in:
- application_auto_scaling/scalable_target_attributes.rb
Overview
Attributes for importing a scalable target.
Instance Attribute Summary collapse
-
#scalable_dimension ⇒ String
readonly
The scalable dimension that's associated with the scalable target.
-
#scalable_target_id ⇒ String
readonly
The scalable target ID.
-
#service_namespace ⇒ String
readonly
The namespace of the AWS service that provides the resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(scalable_dimension:, scalable_target_id:, service_namespace:) ⇒ ScalableTargetAttributes
constructor
A new instance of ScalableTargetAttributes.
- #to_jsii ⇒ Object
Constructor Details
#initialize(scalable_dimension:, scalable_target_id:, service_namespace:) ⇒ ScalableTargetAttributes
Returns a new instance of ScalableTargetAttributes.
10 11 12 13 14 15 16 17 |
# File 'application_auto_scaling/scalable_target_attributes.rb', line 10 def initialize(scalable_dimension:, scalable_target_id:, service_namespace:) @scalable_dimension = scalable_dimension Jsii::Type.check_type(@scalable_dimension, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "scalableDimension") @scalable_target_id = scalable_target_id Jsii::Type.check_type(@scalable_target_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "scalableTargetId") @service_namespace = service_namespace Jsii::Type.check_type(@service_namespace, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "serviceNamespace") end |
Instance Attribute Details
#scalable_dimension ⇒ String (readonly)
The scalable dimension that's associated with the scalable target.
22 23 24 |
# File 'application_auto_scaling/scalable_target_attributes.rb', line 22 def scalable_dimension @scalable_dimension end |
#scalable_target_id ⇒ String (readonly)
The scalable target ID.
26 27 28 |
# File 'application_auto_scaling/scalable_target_attributes.rb', line 26 def scalable_target_id @scalable_target_id end |
#service_namespace ⇒ String (readonly)
The namespace of the AWS service that provides the resource.
30 31 32 |
# File 'application_auto_scaling/scalable_target_attributes.rb', line 30 def service_namespace @service_namespace end |
Class Method Details
.jsii_properties ⇒ Object
32 33 34 35 36 37 38 |
# File 'application_auto_scaling/scalable_target_attributes.rb', line 32 def self.jsii_properties { :scalable_dimension => "scalableDimension", :scalable_target_id => "scalableTargetId", :service_namespace => "serviceNamespace", } end |
Instance Method Details
#to_jsii ⇒ Object
40 41 42 43 44 45 46 47 48 |
# File 'application_auto_scaling/scalable_target_attributes.rb', line 40 def to_jsii result = {} result.merge!({ "scalableDimension" => @scalable_dimension, "scalableTargetId" => @scalable_target_id, "serviceNamespace" => @service_namespace, }) result.compact end |