Skip to content

Commit

Permalink
This release enables AWS Compute Optimizer to analyze and generate op…
Browse files Browse the repository at this point in the history
…timization recommendations for Amazon RDS MySQL and RDS PostgreSQL.
  • Loading branch information
aws-sdk-dotnet-automation committed Jun 20, 2024
1 parent 6d558a0 commit 613bd93
Show file tree
Hide file tree
Showing 58 changed files with 8,983 additions and 175 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@
<min>0</min>
<max>1000</max>
</property-value-rule>
<property-value-rule>
<property>Amazon.ComputeOptimizer.Model.GetRDSDatabaseRecommendationsRequest.MaxResults</property>
<min>0</min>
<max>1000</max>
</property-value-rule>
<property-value-rule>
<property>Amazon.ComputeOptimizer.Model.GetRecommendationPreferencesRequest.MaxResults</property>
<min>0</min>
Expand All @@ -60,6 +65,11 @@
<min>0</min>
<max>4</max>
</property-value-rule>
<property-value-rule>
<property>Amazon.ComputeOptimizer.Model.RDSDBInstanceRecommendationOption.PerformanceRisk</property>
<min>0</min>
<max>4</max>
</property-value-rule>
<property-value-rule>
<property>Amazon.ComputeOptimizer.Model.VolumeRecommendationOption.PerformanceRisk</property>
<min>0</min>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/

/*
* Do not modify this file. This file is generated from the compute-optimizer-2019-11-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;

using Amazon.Runtime;
using Amazon.Runtime.Internal;

#pragma warning disable CS0612,CS0618,CS1570
namespace Amazon.ComputeOptimizer.Model
{
/// <summary>
/// The configuration of the recommended RDS storage.
/// </summary>
public partial class DBStorageConfiguration
{
private int? _allocatedStorage;
private int? _iops;
private int? _maxAllocatedStorage;
private int? _storageThroughput;
private string _storageType;

/// <summary>
/// Gets and sets the property AllocatedStorage.
/// <para>
/// The size of the RDS storage in gigabytes (GB).
/// </para>
/// </summary>
public int AllocatedStorage
{
get { return this._allocatedStorage.GetValueOrDefault(); }
set { this._allocatedStorage = value; }
}

// Check to see if AllocatedStorage property is set
internal bool IsSetAllocatedStorage()
{
return this._allocatedStorage.HasValue;
}

/// <summary>
/// Gets and sets the property Iops.
/// <para>
/// The provisioned IOPs of the RDS storage.
/// </para>
/// </summary>
public int Iops
{
get { return this._iops.GetValueOrDefault(); }
set { this._iops = value; }
}

// Check to see if Iops property is set
internal bool IsSetIops()
{
return this._iops.HasValue;
}

/// <summary>
/// Gets and sets the property MaxAllocatedStorage.
/// <para>
/// The maximum limit in gibibytes (GiB) to which Amazon RDS can automatically scale
/// the storage of the RDS instance.
/// </para>
/// </summary>
public int MaxAllocatedStorage
{
get { return this._maxAllocatedStorage.GetValueOrDefault(); }
set { this._maxAllocatedStorage = value; }
}

// Check to see if MaxAllocatedStorage property is set
internal bool IsSetMaxAllocatedStorage()
{
return this._maxAllocatedStorage.HasValue;
}

/// <summary>
/// Gets and sets the property StorageThroughput.
/// <para>
/// The storage throughput of the RDS storage.
/// </para>
/// </summary>
public int StorageThroughput
{
get { return this._storageThroughput.GetValueOrDefault(); }
set { this._storageThroughput = value; }
}

// Check to see if StorageThroughput property is set
internal bool IsSetStorageThroughput()
{
return this._storageThroughput.HasValue;
}

/// <summary>
/// Gets and sets the property StorageType.
/// <para>
/// The type of RDS storage.
/// </para>
/// </summary>
public string StorageType
{
get { return this._storageType; }
set { this._storageType = value; }
}

// Check to see if StorageType property is set
internal bool IsSetStorageType()
{
return this._storageType != null;
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,6 @@ internal bool IsSetRecommendationPreferenceNames()
/// are part of Auto Scaling groups. The <c>AutoScalingGroup</c> option encompasses only
/// instances that are part of an Auto Scaling group.
/// </para>
/// <note>
/// <para>
/// The valid values for this parameter are <c>Ec2Instance</c> and <c>AutoScalingGroup</c>.
/// </para>
/// </note>
/// </summary>
[AWSProperty(Required=true)]
public ResourceType ResourceType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,18 @@ public partial class EffectiveRecommendationPreferences
/// <ul> <li>
/// <para>
/// A <a>GetEC2InstanceRecommendations</a> or <a>GetAutoScalingGroupRecommendations</a>
/// request, Compute Optimizer returns recommendations that consist of Graviton2 instance
/// request, Compute Optimizer returns recommendations that consist of Graviton instance
/// types only.
/// </para>
/// </li> <li>
/// <para>
/// A <a>GetEC2RecommendationProjectedMetrics</a> request, Compute Optimizer returns projected
/// utilization metrics for Graviton2 instance type recommendations only.
/// utilization metrics for Graviton instance type recommendations only.
/// </para>
/// </li> <li>
/// <para>
/// A <a>ExportEC2InstanceRecommendations</a> or <a>ExportAutoScalingGroupRecommendations</a>
/// request, Compute Optimizer exports recommendations that consist of Graviton2 instance
/// request, Compute Optimizer exports recommendations that consist of Graviton instance
/// types only.
/// </para>
/// </li> </ul>
Expand Down
Loading

0 comments on commit 613bd93

Please sign in to comment.