Class: AWSCDK::AutoScalingPlans::CfnScalingPlan::ApplicationSourceProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AutoScalingPlans::CfnScalingPlan::ApplicationSourceProperty
- Defined in:
- auto_scaling_plans/cfn_scaling_plan.rb
Overview
ApplicationSource is a property of ScalingPlan that specifies the application source to use with a scaling plan. You can create one scaling plan per application source.
Instance Attribute Summary collapse
-
#cloud_formation_stack_arn ⇒ String?
readonly
The Amazon Resource Name (ARN) of a CloudFormation stack.
-
#tag_filters ⇒ AWSCDK::IResolvable, ...
readonly
A set of tag filters (keys and values).
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cloud_formation_stack_arn: nil, tag_filters: nil) ⇒ ApplicationSourceProperty
constructor
A new instance of ApplicationSourceProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(cloud_formation_stack_arn: nil, tag_filters: nil) ⇒ ApplicationSourceProperty
Returns a new instance of ApplicationSourceProperty.
535 536 537 538 539 540 |
# File 'auto_scaling_plans/cfn_scaling_plan.rb', line 535 def initialize(cloud_formation_stack_arn: nil, tag_filters: nil) @cloud_formation_stack_arn = cloud_formation_stack_arn Jsii::Type.check_type(@cloud_formation_stack_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "cloudFormationStackArn") unless @cloud_formation_stack_arn.nil? @tag_filters = tag_filters Jsii::Type.check_type(@tag_filters, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXV0b3NjYWxpbmdwbGFucy5DZm5TY2FsaW5nUGxhbi5UYWdGaWx0ZXJQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "tagFilters") unless @tag_filters.nil? end |
Instance Attribute Details
#cloud_formation_stack_arn ⇒ String? (readonly)
The Amazon Resource Name (ARN) of a CloudFormation stack.
You must specify either a CloudFormationStackARN or TagFilters .
548 549 550 |
# File 'auto_scaling_plans/cfn_scaling_plan.rb', line 548 def cloud_formation_stack_arn @cloud_formation_stack_arn end |
#tag_filters ⇒ AWSCDK::IResolvable, ... (readonly)
A set of tag filters (keys and values).
Each tag filter specified must contain a key with values as optional. Each scaling plan can include up to 50 keys, and each key can include up to 20 values.
Tags are part of the syntax that you use to specify the resources you want returned when configuring a scaling plan from the AWS Auto Scaling console. You do not need to specify valid tag filter values when you create a scaling plan with CloudFormation. The Key and Values properties can accept any value as long as the combination of values is unique across scaling plans. However, if you also want to use the AWS Auto Scaling console to edit the scaling plan, then you must specify valid values.
You must specify either a CloudFormationStackARN or TagFilters .
559 560 561 |
# File 'auto_scaling_plans/cfn_scaling_plan.rb', line 559 def tag_filters @tag_filters end |
Class Method Details
.jsii_properties ⇒ Object
561 562 563 564 565 566 |
# File 'auto_scaling_plans/cfn_scaling_plan.rb', line 561 def self.jsii_properties { :cloud_formation_stack_arn => "cloudFormationStackArn", :tag_filters => "tagFilters", } end |
Instance Method Details
#to_jsii ⇒ Object
568 569 570 571 572 573 574 575 |
# File 'auto_scaling_plans/cfn_scaling_plan.rb', line 568 def to_jsii result = {} result.merge!({ "cloudFormationStackArn" => @cloud_formation_stack_arn, "tagFilters" => @tag_filters, }) result.compact end |