Class: AWSCDK::ApplicationAutoScaling::ScalableTargetAttributes

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
application_auto_scaling/scalable_target_attributes.rb

Overview

Attributes for importing a scalable target.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(scalable_dimension:, scalable_target_id:, service_namespace:) ⇒ ScalableTargetAttributes

Returns a new instance of ScalableTargetAttributes.

Parameters:

  • scalable_dimension (String)

    The scalable dimension that's associated with the scalable target.

  • scalable_target_id (String)

    The scalable target ID.

  • service_namespace (String)

    The namespace of the AWS service that provides the resource.



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_dimensionString (readonly)

The scalable dimension that's associated with the scalable target.

Returns:

  • (String)


22
23
24
# File 'application_auto_scaling/scalable_target_attributes.rb', line 22

def scalable_dimension
  @scalable_dimension
end

#scalable_target_idString (readonly)

The scalable target ID.

Returns:

  • (String)


26
27
28
# File 'application_auto_scaling/scalable_target_attributes.rb', line 26

def scalable_target_id
  @scalable_target_id
end

#service_namespaceString (readonly)

The namespace of the AWS service that provides the resource.

Returns:

  • (String)


30
31
32
# File 'application_auto_scaling/scalable_target_attributes.rb', line 30

def service_namespace
  @service_namespace
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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