PolicyDefinition
A structure that contains the details for a Cedar policy definition. It includes the policy type, a description, and a policy body. This is a top level data type used to create a policy.
This data type is used as a request parameter for the CreatePolicy operation. This structure must always have either an static
or a templateLinked
element.
Inheritors
Types
A structure that describes a static policy. An static policy doesn't use a template or allow placeholders for entities.
A structure that describes a policy that was instantiated from a template. The template can specify placeholders for principal
and resource
. When you use CreatePolicy to create a policy from a template, you specify the exact principal and resource to use for the instantiated policy.
Functions
Casts this PolicyDefinition as a Static and retrieves its aws.sdk.kotlin.services.verifiedpermissions.model.StaticPolicyDefinition value. Throws an exception if the PolicyDefinition is not a Static.
Casts this PolicyDefinition as a Static and retrieves its aws.sdk.kotlin.services.verifiedpermissions.model.StaticPolicyDefinition value. Returns null if the PolicyDefinition is not a Static.
Casts this PolicyDefinition as a TemplateLinked and retrieves its aws.sdk.kotlin.services.verifiedpermissions.model.TemplateLinkedPolicyDefinition value. Throws an exception if the PolicyDefinition is not a TemplateLinked.
Casts this PolicyDefinition as a TemplateLinked and retrieves its aws.sdk.kotlin.services.verifiedpermissions.model.TemplateLinkedPolicyDefinition value. Returns null if the PolicyDefinition is not a TemplateLinked.