A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.aws.amazon.com/sdkforruby/api/Aws/AutoScalingPlans/Client.html below:

Client — AWS SDK for Ruby V2

Examples:

Request syntax with placeholder values


resp = client.create_scaling_plan({
  scaling_plan_name: "ScalingPlanName",   application_source: {     cloud_formation_stack_arn: "XmlString",
    tag_filters: [
      {
        key: "XmlStringMaxLen128",
        values: ["XmlStringMaxLen256"],
      },
    ],
  },
  scaling_instructions: [     {
      service_namespace: "autoscaling",       resource_id: "ResourceIdMaxLen1600",       scalable_dimension: "autoscaling:autoScalingGroup:DesiredCapacity",       min_capacity: 1,       max_capacity: 1,       target_tracking_configurations: [         {
          predefined_scaling_metric_specification: {
            predefined_scaling_metric_type: "ASGAverageCPUUtilization",             resource_label: "ResourceLabel",
          },
          customized_scaling_metric_specification: {
            metric_name: "MetricName",             namespace: "MetricNamespace",             dimensions: [
              {
                name: "MetricDimensionName",                 value: "MetricDimensionValue",               },
            ],
            statistic: "Average",             unit: "MetricUnit",
          },
          target_value: 1.0,           disable_scale_in: false,
          scale_out_cooldown: 1,
          scale_in_cooldown: 1,
          estimated_instance_warmup: 1,
        },
      ],
      predefined_load_metric_specification: {
        predefined_load_metric_type: "ASGTotalCPUUtilization",         resource_label: "ResourceLabel",
      },
      customized_load_metric_specification: {
        metric_name: "MetricName",         namespace: "MetricNamespace",         dimensions: [
          {
            name: "MetricDimensionName",             value: "MetricDimensionValue",           },
        ],
        statistic: "Average",         unit: "MetricUnit",
      },
      scheduled_action_buffer_time: 1,
      predictive_scaling_max_capacity_behavior: "SetForecastCapacityToMaxCapacity",       predictive_scaling_max_capacity_buffer: 1,
      predictive_scaling_mode: "ForecastAndScale",       scaling_policy_update_behavior: "KeepExternalPolicies",       disable_dynamic_scaling: false,
    },
  ],
})

Response structure


resp.scaling_plan_version 

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4