Class CfnPolicy.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.CfnPolicy.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPolicy>
- Enclosing class:
CfnPolicy
@Stability(Stable)
public static final class CfnPolicy.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPolicy>
A fluent builder for
CfnPolicy.-
Method Summary
Modifier and TypeMethodDescriptionbuild()static CfnPolicy.Builderdefinition(IResolvable definition) The definition structure for policies.definition(CfnPolicy.PolicyDefinitionProperty definition) The definition structure for policies.description(String description) A human-readable description of the policy's purpose and functionality.The customer-assigned immutable name for the policy.policyEngineId(String policyEngineId) The identifier of the policy engine which contains this policy.validationMode(String validationMode) The validation mode for the policy.
-
Method Details
-
create
@Stability(Stable) public static CfnPolicy.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnPolicy.Builder.
-
definition
The definition structure for policies.Encapsulates different policy formats.
- Parameters:
definition- The definition structure for policies. This parameter is required.- Returns:
this- See Also:
-
definition
@Stability(Stable) public CfnPolicy.Builder definition(CfnPolicy.PolicyDefinitionProperty definition) The definition structure for policies.Encapsulates different policy formats.
- Parameters:
definition- The definition structure for policies. This parameter is required.- Returns:
this- See Also:
-
name
The customer-assigned immutable name for the policy.Must be unique within the policy engine.
- Parameters:
name- The customer-assigned immutable name for the policy. This parameter is required.- Returns:
this- See Also:
-
policyEngineId
The identifier of the policy engine which contains this policy.- Parameters:
policyEngineId- The identifier of the policy engine which contains this policy. This parameter is required.- Returns:
this- See Also:
-
description
A human-readable description of the policy's purpose and functionality.- Parameters:
description- A human-readable description of the policy's purpose and functionality. This parameter is required.- Returns:
this- See Also:
-
validationMode
The validation mode for the policy.Determines how Cedar analyzer validation results are handled.
- Parameters:
validationMode- The validation mode for the policy. This parameter is required.- Returns:
this- See Also:
-
build
-