Interface CfnAutomatedReasoningPolicy.PolicyDefinitionProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnAutomatedReasoningPolicy.PolicyDefinitionProperty.Jsii$Proxy
- Enclosing class:
CfnAutomatedReasoningPolicy
@Stability(Stable)
public static interface CfnAutomatedReasoningPolicy.PolicyDefinitionProperty
extends software.amazon.jsii.JsiiSerializable
The complete policy definition containing rules, variables, and types.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.bedrock.*;
PolicyDefinitionProperty policyDefinitionProperty = PolicyDefinitionProperty.builder()
.rules(List.of(PolicyDefinitionRuleProperty.builder()
.expression("expression")
.id("id")
// the properties below are optional
.alternateExpression("alternateExpression")
.build()))
.types(List.of(PolicyDefinitionTypeProperty.builder()
.name("name")
.values(List.of(PolicyDefinitionTypeValueProperty.builder()
.value("value")
// the properties below are optional
.description("description")
.build()))
// the properties below are optional
.description("description")
.build()))
.variables(List.of(PolicyDefinitionVariableProperty.builder()
.description("description")
.name("name")
.type("type")
.build()))
.version("version")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnAutomatedReasoningPolicy.PolicyDefinitionPropertystatic final classAn implementation forCfnAutomatedReasoningPolicy.PolicyDefinitionProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectgetRules()The collection of rules that define the policy logic.default ObjectgetTypes()The custom types defined within the policy definition.default ObjectThe variables used within the policy definition.default StringThe version of the policy definition.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getRules
The collection of rules that define the policy logic.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnAutomatedReasoningPolicy.PolicyDefinitionRuleProperty>- See Also:
-
getTypes
The custom types defined within the policy definition.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnAutomatedReasoningPolicy.PolicyDefinitionTypeProperty>- See Also:
-
getVariables
The variables used within the policy definition.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnAutomatedReasoningPolicy.PolicyDefinitionVariableProperty>- See Also:
-
getVersion
The version of the policy definition.- See Also:
-
builder
-