describe_instance_profiles
¶
describe_instance_profiles(
*,
config_overrides: Optional[DatabaseMigrationServiceClientConfig] = 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.
>>> 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/database_migration_service.py
4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 | |