describeMountTargets
abstract suspend fun describeMountTargets(input: DescribeMountTargetsRequest = DescribeMountTargetsRequest { }): DescribeMountTargetsResponse
Returns the descriptions of all the current mount targets, or a specific mount target, for a file system. When requesting all of the current mount targets, the order of mount targets returned in the response is unspecified.
This operation requires permissions for the elasticfilesystem:DescribeMountTargets
action, on either the file system ID that you specify in FileSystemId
, or on the file system of the mount target that you specify in MountTargetId
.
Samples
fun main() {
//sampleStart
// This operation describes all of a file system s mount targets.
val resp = efsClient.describeMountTargets {
fileSystemId = "fs-01234567"
}
//sampleEnd
}