getObjectInformation
inline suspend fun CloudDirectoryClient.getObjectInformation(crossinline block: GetObjectInformationRequest.Builder.() -> Unit): GetObjectInformationResponse
Retrieves metadata about an object.
Samples
import aws.sdk.kotlin.services.clouddirectory.model.ConsistencyLevel
import aws.sdk.kotlin.services.clouddirectory.model.ObjectReference
fun main() {
//sampleStart
val resp = cloudDirectoryClient.getObjectInformation {
directoryArn = "arn:aws:clouddirectory:us-west-2:45132example:directory/AYb8AOV81kHNgdj8mAO3dNY"
objectReference = ObjectReference {
selector = "$AQGG_ADlfNZBzYHY_JgDt3TWmspn1fxfQmSQaaVKSbvEiQ"
}
consistencyLevel = ConsistencyLevel.fromValue("SERIALIZABLE")
}
//sampleEnd
}