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.
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
public abstract DescribeInstanceProfilesResponse DescribeInstanceProfiles( DescribeInstanceProfilesRequest request )
Container for the necessary parameters to execute the DescribeInstanceProfiles service method.
Exception | Condition |
---|---|
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. |
Returns a paginated list of instance profiles for your account in the current region.
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;
.NET Framework:
Supported in: 4.5 and newer, 3.5