
commonMain.aws.sdk.kotlin.services.verifiedpermissions.model.SchemaDefinition.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.verifiedpermissions.model
/**
* Contains a list of principal types, resource types, and actions that can be specified in policies stored in the same policy store. If the validation mode for the policy store is set to `STRICT`, then policies that can't be validated by this schema are rejected by Verified Permissions and can't be stored in the policy store.
*/
public sealed class SchemaDefinition {
/**
* A JSON string representation of the schema supported by applications that use this policy store. For more information, see [Policy store schema](https://docs.aws.amazon.com/verifiedpermissions/latest/userguide/schema.html) in the *Amazon Verified Permissions User Guide*.
*/
public data class CedarJson(val value: kotlin.String) : aws.sdk.kotlin.services.verifiedpermissions.model.SchemaDefinition() {
}
public object SdkUnknown : aws.sdk.kotlin.services.verifiedpermissions.model.SchemaDefinition() {
}
/**
* Casts this [SchemaDefinition] as a [CedarJson] and retrieves its [kotlin.String] value. Throws an exception if the [SchemaDefinition] is not a
* [CedarJson].
*/
public fun asCedarJson(): kotlin.String = (this as SchemaDefinition.CedarJson).value
/**
* Casts this [SchemaDefinition] as a [CedarJson] and retrieves its [kotlin.String] value. Returns null if the [SchemaDefinition] is not a [CedarJson].
*/
public fun asCedarJsonOrNull(): kotlin.String? = (this as? SchemaDefinition.CedarJson)?.value
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy