applySchema
inline suspend fun CloudDirectoryClient.applySchema(crossinline block: ApplySchemaRequest.Builder.() -> Unit): ApplySchemaResponse
Copies the input published schema, at the specified version, into the Directory with the same name and version as that of the published schema.
Samples
fun main() {
//sampleStart
val resp = cloudDirectoryClient.applySchema {
publishedSchemaArn = "arn:aws:clouddirectory:us-west-2:45132example:schema/published/org/1"
directoryArn = "arn:aws:clouddirectory:us-west-2:45132example:directory/AfMr4qym1kZTvwqOafAYfqI"
}
//sampleEnd
}