AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Saves the specified migration and modernization preferences.

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to PutPortfolioPreferencesAsync.

Namespace: Amazon.MigrationHubStrategyRecommendations
Assembly: AWSSDK.MigrationHubStrategyRecommendations.dll
Version: 3.x.y.z

Syntax

C#
public virtual PutPortfolioPreferencesResponse PutPortfolioPreferences(
         PutPortfolioPreferencesRequest request
)

Parameters

request
Type: Amazon.MigrationHubStrategyRecommendations.Model.PutPortfolioPreferencesRequest

Container for the necessary parameters to execute the PutPortfolioPreferences service method.

Return Value


The response from the PutPortfolioPreferences service method, as returned by MigrationHubStrategyRecommendations.

Exceptions

ExceptionCondition
AccessDeniedException The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
ConflictException Exception to indicate that there is an ongoing task when a new task is created. Return when once the existing tasks are complete.
InternalServerException The server experienced an internal error. Try again.
ThrottlingException The request was denied due to request throttling.
ValidationException The request body isn't valid.

Version Information

.NET Framework:
Supported in: 4.5 and newer, 3.5

See Also