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.

Returns a paginated list of instance profiles for your account in the current region.

Note:

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

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

Syntax

C#
public abstract DescribeInstanceProfilesResponse DescribeInstanceProfiles(
         DescribeInstanceProfilesRequest request
)

Parameters

request
Type: Amazon.DatabaseMigrationService.Model.DescribeInstanceProfilesRequest

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

Return Value


The response from the DescribeInstanceProfiles service method, as returned by DatabaseMigrationService.

Exceptions

ExceptionCondition
AccessDeniedException DMS was denied access to the endpoint. Check that the role is correctly configured.
FailedDependencyException A dependency threw an exception.
ResourceNotFoundException The resource could not be found.

Examples

Returns a paginated list of instance profiles for your account in the current region.

Describe Instance Profiles


var client = new AmazonDatabaseMigrationServiceClient();
var response = client.DescribeInstanceProfiles(new DescribeInstanceProfilesRequest 
{
    Filters = new List<Filter> {
        new Filter {
            Name = "instance-profile-identifier",
            Values = new List<string> {
                "arn:aws:dms:us-east-1:012345678901:instance-profile:EXAMPLEABCDEFGHIJKLMNOPQRSTUVWXYZ012345"
            }
        }
    },
    Marker = "0123456789abcdefghijklmnopqrs",
    MaxRecords = 20
});

List<InstanceProfile> instanceProfiles = response.InstanceProfiles;
string marker = response.Marker;

            

Version Information

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

See Also