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

NAME

Paws::ComputeOptimizer::GetEC2InstanceRecommendations - Arguments for method GetEC2InstanceRecommendations on Paws::ComputeOptimizer

DESCRIPTION

This class represents the parameters used for calling the method GetEC2InstanceRecommendations on the AWS Compute Optimizer service. Use the attributes of this class as arguments to method GetEC2InstanceRecommendations.

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

SYNOPSIS

    my $compute-optimizer = Paws->service('ComputeOptimizer');
    my $GetEC2InstanceRecommendationsResponse =
      $compute -optimizer->GetEC2InstanceRecommendations(
      AccountIds => [ 'MyAccountId', ... ],    # OPTIONAL
      Filters    => [
        {
          Name => 'Finding'
          , # values: Finding, FindingReasonCodes, RecommendationSourceType; OPTIONAL
          Values => [ 'MyFilterValue', ... ],    # OPTIONAL
        },
        ...
      ],    # OPTIONAL
      InstanceArns => [ 'MyInstanceArn', ... ],    # OPTIONAL
      MaxResults   => 1,                           # OPTIONAL
      NextToken    => 'MyNextToken',               # OPTIONAL
      );

    # Results:
    my $Errors = $GetEC2InstanceRecommendationsResponse->Errors;
    my $InstanceRecommendations =
      $GetEC2InstanceRecommendationsResponse->InstanceRecommendations;
    my $NextToken = $GetEC2InstanceRecommendationsResponse->NextToken;

# Returns a Paws::ComputeOptimizer::GetEC2InstanceRecommendationsResponse 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/compute-optimizer/GetEC2InstanceRecommendations

ATTRIBUTES

AccountIds => ArrayRef[Str|Undef]

The ID of the AWS account for which to return instance recommendations.

If your account is the management account of an organization, use this parameter to specify the member account for which you want to return instance recommendations.

Only one account ID can be specified per request.

Filters => ArrayRef[Paws::ComputeOptimizer::Filter]

An array of objects that describe a filter that returns a more specific list of instance recommendations.

InstanceArns => ArrayRef[Str|Undef]

The Amazon Resource Name (ARN) of the instances for which to return recommendations.

MaxResults => Int

The maximum number of instance recommendations to return with a single request.

To retrieve the remaining results, make another request with the returned NextToken value.

NextToken => Str

The token to advance to the next page of instance recommendations.

SEE ALSO

This class forms part of Paws, documenting arguments for method GetEC2InstanceRecommendations in Paws::ComputeOptimizer

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