Interface CfnPolicyProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnPolicyProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-19T12:55:00.037Z")
@Stability(Stable)
public interface CfnPolicyProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnPolicy.
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.bedrockagentcore.*;
CfnPolicyProps cfnPolicyProps = CfnPolicyProps.builder()
.definition(PolicyDefinitionProperty.builder()
.cedar(CedarPolicyProperty.builder()
.statement("statement")
.build())
.build())
.name("name")
.policyEngineId("policyEngineId")
// the properties below are optional
.description("description")
.validationMode("validationMode")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnPolicyPropsstatic final classAn implementation forCfnPolicyProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnPolicyProps.Builderbuilder()The definition structure for policies.default StringA human-readable description of the policy's purpose and functionality.getName()The customer-assigned immutable name for the policy.The identifier of the policy engine which contains this policy.default StringThe validation mode for the policy.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDefinition
The definition structure for policies.Encapsulates different policy formats.
Returns union: either
IResolvableorCfnPolicy.PolicyDefinitionProperty- See Also:
-
getName
The customer-assigned immutable name for the policy.Must be unique within the policy engine.
- See Also:
-
getPolicyEngineId
The identifier of the policy engine which contains this policy.- See Also:
-
getDescription
A human-readable description of the policy's purpose and functionality.- See Also:
-
getValidationMode
The validation mode for the policy.Determines how Cedar analyzer validation results are handled.
- See Also:
-
builder
- Returns:
- a
CfnPolicyProps.BuilderofCfnPolicyProps
-