Class: AWSCDK::Interfaces::AWSApplicationautoscaling::ScalableTargetReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_applicationautoscaling/scalable_target_reference.rb

Overview

A reference to a ScalableTarget resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resource_id:, scalable_dimension:, service_namespace:) ⇒ ScalableTargetReference

Returns a new instance of ScalableTargetReference.

Parameters:

  • resource_id (String)

    The ResourceId of the ScalableTarget resource.

  • scalable_dimension (String)

    The ScalableDimension of the ScalableTarget resource.

  • service_namespace (String)

    The ServiceNamespace of the ScalableTarget resource.



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

The ResourceId of the ScalableTarget resource.

Returns:

  • (String)


22
23
24
# File 'interfaces/aws_applicationautoscaling/scalable_target_reference.rb', line 22

def resource_id
  @resource_id
end

#scalable_dimensionString (readonly)

The ScalableDimension of the ScalableTarget resource.

Returns:

  • (String)


26
27
28
# File 'interfaces/aws_applicationautoscaling/scalable_target_reference.rb', line 26

def scalable_dimension
  @scalable_dimension
end

#service_namespaceString (readonly)

The ServiceNamespace of the ScalableTarget resource.

Returns:

  • (String)


30
31
32
# File 'interfaces/aws_applicationautoscaling/scalable_target_reference.rb', line 30

def service_namespace
  @service_namespace
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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