The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Paws::AutoScalingPlans::CreateScalingPlan - Arguments for method CreateScalingPlan on Paws::AutoScalingPlans

DESCRIPTION

This class represents the parameters used for calling the method CreateScalingPlan on the AWS Auto Scaling Plans service. Use the attributes of this class as arguments to method CreateScalingPlan.

You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateScalingPlan.

SYNOPSIS

    my $autoscaling = Paws->service('AutoScalingPlans');
    my $CreateScalingPlanResponse = $autoscaling->CreateScalingPlan(
      ApplicationSource => {
        CloudFormationStackARN => 'MyXmlString',    # OPTIONAL
        TagFilters             => [
          {
            Values => [
              'MyXmlStringMaxLen256', ...           # min: 1, max: 256
            ],                                      # OPTIONAL
            Key => 'MyXmlStringMaxLen128',          # min: 1, max: 128; OPTIONAL
          },
          ...
        ],                                          # OPTIONAL
      },
      ScalingInstructions => [
        {
          MinCapacity => 1,
          MaxCapacity => 1,
          ServiceNamespace =>
            'autoscaling',    # values: autoscaling, ecs, ec2, rds, dynamodb
          TargetTrackingConfigurations => [
            {
              TargetValue                          => 1,
              CustomizedScalingMetricSpecification => {
                Namespace => 'MyMetricNamespace',
                Statistic => 'Average'
                ,    # values: Average, Minimum, Maximum, SampleCount, Sum
                MetricName => 'MyMetricName',
                Dimensions => [
                  {
                    Name  => 'MyMetricDimensionName',
                    Value => 'MyMetricDimensionValue',

                  },
                  ...
                ],    # OPTIONAL
                Unit => 'MyMetricUnit',    # OPTIONAL
              },    # OPTIONAL
              DisableScaleIn                       => 1,    # OPTIONAL
              EstimatedInstanceWarmup              => 1,    # OPTIONAL
              ScaleInCooldown                      => 1,    # OPTIONAL
              PredefinedScalingMetricSpecification => {
                PredefinedScalingMetricType => 'ASGAverageCPUUtilization'
                , # values: ASGAverageCPUUtilization, ASGAverageNetworkIn, ASGAverageNetworkOut, DynamoDBReadCapacityUtilization, DynamoDBWriteCapacityUtilization, ECSServiceAverageCPUUtilization, ECSServiceAverageMemoryUtilization, ALBRequestCountPerTarget, RDSReaderAverageCPUUtilization, RDSReaderAverageDatabaseConnections, EC2SpotFleetRequestAverageCPUUtilization, EC2SpotFleetRequestAverageNetworkIn, EC2SpotFleetRequestAverageNetworkOut
                ResourceLabel =>
                  'MyResourceLabel',    # min: 1, max: 1023; OPTIONAL
              },    # OPTIONAL
              ScaleOutCooldown => 1,    # OPTIONAL
            },
            ...
          ],
          ResourceId => 'MyResourceIdMaxLen1600',    # min: 1, max: 1600
          ScalableDimension => 'autoscaling:autoScalingGroup:DesiredCapacity'
          , # values: autoscaling:autoScalingGroup:DesiredCapacity, ecs:service:DesiredCount, ec2:spot-fleet-request:TargetCapacity, rds:cluster:ReadReplicaCount, dynamodb:table:ReadCapacityUnits, dynamodb:table:WriteCapacityUnits, dynamodb:index:ReadCapacityUnits, dynamodb:index:WriteCapacityUnits

        },
        ...
      ],
      ScalingPlanName => 'MyScalingPlanName',

    );

    # Results:
    my $ScalingPlanVersion = $CreateScalingPlanResponse->ScalingPlanVersion;

    # Returns a L<Paws::AutoScalingPlans::CreateScalingPlanResponse> object.

Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see https://docs.aws.amazon.com/goto/WebAPI/autoscaling/CreateScalingPlan

ATTRIBUTES

REQUIRED ApplicationSource => Paws::AutoScalingPlans::ApplicationSource

A CloudFormation stack or set of tags. You can create one scaling plan per application source.

REQUIRED ScalingInstructions => ArrayRef[Paws::AutoScalingPlans::ScalingInstruction]

The scaling instructions.

REQUIRED ScalingPlanName => Str

The name of the scaling plan. Names cannot contain vertical bars, colons, or forward slashes.

SEE ALSO

This class forms part of Paws, documenting arguments for method CreateScalingPlan in Paws::AutoScalingPlans

BUGS and CONTRIBUTIONS

The source code is located here: https://github.com/pplu/aws-sdk-perl

Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues