getFacet
inline suspend fun CloudDirectoryClient.getFacet(crossinline block: GetFacetRequest.Builder.() -> Unit): GetFacetResponse
Gets details of the Facet, such as facet name, attributes, Rules, or ObjectType
. You can call this on all kinds of schema facets -- published, development, or applied.
Samples
fun main() {
//sampleStart
val resp = cloudDirectoryClient.getFacet {
schemaArn = "arn:aws:clouddirectory:us-west-2:45132example:directory/AYb8AOV81kHNgdj8mAO3dNY/schema/org/1"
name = "node2"
}
//sampleEnd
}