describe_instance_profiles
async
¶
describe_instance_profiles(
*,
config_overrides: Optional[AsyncDatabaseMigrationServiceClientConfig] = None,
filters: Optional[FilterList] = None,
max_records: Optional[IntegerOptional] = None,
marker: Optional[String] = None,
) -> DescribeInstanceProfilesResponse
Returns a paginated list of instance profiles for your account in the current region.
Required permissions: dms:ListInstanceProfiles. For more information, see Actions, resources, and condition keys for Database Migration Service.
Parameters:
-
filters(Optional[FilterList], default:None) –The filters to apply to the instance profiles.
The following filter names are supported:
-
instance-profile-identifier– The instance profile name or ARN.
-
-
max_records(Optional[IntegerOptional], default:None) –The maximum number of records to include in the response. If more records exist than the specified
MaxRecordsvalue, DMS includes a pagination token in the response so that you can retrieve the remaining results. -
marker(Optional[String], default:None) –Specifies the unique pagination token that makes it possible to display the next page of results. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by
MaxRecords.If
Markeris returned by a previous response, there are more results available. The value ofMarkeris a unique pagination token for each page. To retrieve the next page, make the call again using the returned token and keeping all other arguments unchanged.
Raises:
-
AccessDeniedFault–DMS was denied access to the endpoint. Check that the role is correctly configured.
-
FailedDependencyFault–A dependency threw an exception.
-
ResourceNotFoundFault–The resource could not be found.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Describe instance profiles with a filter The following example retrieves the details of an instance profile identified by its ARN.
>>> await client.describe_instance_profiles(filters=[{'Name': 'instance-profile-identifier', 'Values': ['arn:aws:dms:us-east-1:111122223333:instance-profile:EXAMPLEABCDEFGHIJKLMNOPQRS']}])
Source code in docs_src/capo_database_migration_service/_services/async_database_migration_service.py
4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 | |