Class CfnPolicy
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.bedrockagentcore.CfnPolicy
- All Implemented Interfaces:
IInspectable,IPolicyRef,IEnvironmentAware,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-19T12:55:00.034Z")
@Stability(Stable)
public class CfnPolicy
extends CfnResource
implements IInspectable, IPolicyRef
Resource Type definition for AWS::BedrockAgentCore::Policy.
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.*;
CfnPolicy cfnPolicy = CfnPolicy.Builder.create(this, "MyCfnPolicy")
.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 TypeClassDescriptionstatic final classA fluent builder forCfnPolicy.static interfaceA Cedar policy statement within the AgentCore Policy system.static interfaceThe definition structure for policies.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.bedrockagentcore.IPolicyRef
IPolicyRef.Jsii$Default, IPolicyRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnPolicy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnPolicy(software.amazon.jsii.JsiiObjectRef objRef) CfnPolicy(software.constructs.Construct scope, String id, CfnPolicyProps props) Create a newAWS::BedrockAgentCore::Policy. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForPolicy(IPolicyRef resource) The timestamp when the policy was created.The Amazon Resource Name (ARN) of the policy.The unique identifier for the policy.Additional information about the policy status.The timestamp when the policy was last updated.The definition structure for policies.A 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.A reference to a Policy resource.The validation mode for the policy.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnPolicy.renderProperties(Map<String, Object> props) voidsetDefinition(IResolvable value) The definition structure for policies.voidThe definition structure for policies.voidsetDescription(String value) A human-readable description of the policy's purpose and functionality.voidThe customer-assigned immutable name for the policy.voidsetPolicyEngineId(String value) The identifier of the policy engine which contains this policy.voidsetValidationMode(String value) The validation mode for the policy.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnPolicy
protected CfnPolicy(software.amazon.jsii.JsiiObjectRef objRef) -
CfnPolicy
protected CfnPolicy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnPolicy
@Stability(Stable) public CfnPolicy(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnPolicyProps props) Create a newAWS::BedrockAgentCore::Policy.- 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.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForPolicy
- Parameters:
resource- This parameter is required.
-
isCfnPolicy
Checks whether the given object is a CfnPolicy.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrCreatedAt
The timestamp when the policy was created. -
getAttrPolicyArn
The Amazon Resource Name (ARN) of the policy. -
getAttrPolicyId
The unique identifier for the policy. -
getAttrStatus
-
getAttrStatusReasons
Additional information about the policy status. -
getAttrUpdatedAt
The timestamp when the policy was last updated. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getPolicyRef
A reference to a Policy resource.- Specified by:
getPolicyRefin interfaceIPolicyRef
-
getDefinition
The definition structure for policies.Returns union: either
IResolvableorCfnPolicy.PolicyDefinitionProperty -
setDefinition
The definition structure for policies. -
setDefinition
The definition structure for policies. -
getName
The customer-assigned immutable name for the policy. -
setName
The customer-assigned immutable name for the policy. -
getPolicyEngineId
The identifier of the policy engine which contains this policy. -
setPolicyEngineId
The identifier of the policy engine which contains this policy. -
getDescription
A human-readable description of the policy's purpose and functionality. -
setDescription
A human-readable description of the policy's purpose and functionality. -
getValidationMode
The validation mode for the policy. -
setValidationMode
The validation mode for the policy.
-