We recommend new projects start with resources from the AWS provider.
published on Monday, Mar 9, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
published on Monday, Mar 9, 2026 by Pulumi
Resource Type definition for AWS::BedrockAgentCore::Policy
Create Policy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Policy(name: string, args: PolicyArgs, opts?: CustomResourceOptions);@overload
def Policy(resource_name: str,
args: PolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Policy(resource_name: str,
opts: Optional[ResourceOptions] = None,
definition: Optional[PolicyDefinitionArgs] = None,
policy_engine_id: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
validation_mode: Optional[PolicyValidationMode] = None)func NewPolicy(ctx *Context, name string, args PolicyArgs, opts ...ResourceOption) (*Policy, error)public Policy(string name, PolicyArgs args, CustomResourceOptions? opts = null)
public Policy(String name, PolicyArgs args)
public Policy(String name, PolicyArgs args, CustomResourceOptions options)
type: aws-native:bedrockagentcore:Policy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args PolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args PolicyArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args PolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PolicyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Policy Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Policy resource accepts the following input properties:
- Definition
Pulumi.
Aws Native. Bedrock Agent Core. Inputs. Policy Definition - Policy
Engine stringId - The identifier of the policy engine which contains this policy.
- Description string
- A human-readable description of the policy's purpose and functionality.
- Name string
- The customer-assigned immutable name for the policy. Must be unique within the policy engine.
- Validation
Mode Pulumi.Aws Native. Bedrock Agent Core. Policy Validation Mode
- Definition
Policy
Definition Args - Policy
Engine stringId - The identifier of the policy engine which contains this policy.
- Description string
- A human-readable description of the policy's purpose and functionality.
- Name string
- The customer-assigned immutable name for the policy. Must be unique within the policy engine.
- Validation
Mode PolicyValidation Mode
- definition
Policy
Definition - policy
Engine StringId - The identifier of the policy engine which contains this policy.
- description String
- A human-readable description of the policy's purpose and functionality.
- name String
- The customer-assigned immutable name for the policy. Must be unique within the policy engine.
- validation
Mode PolicyValidation Mode
- definition
Policy
Definition - policy
Engine stringId - The identifier of the policy engine which contains this policy.
- description string
- A human-readable description of the policy's purpose and functionality.
- name string
- The customer-assigned immutable name for the policy. Must be unique within the policy engine.
- validation
Mode PolicyValidation Mode
- definition
Policy
Definition Args - policy_
engine_ strid - The identifier of the policy engine which contains this policy.
- description str
- A human-readable description of the policy's purpose and functionality.
- name str
- The customer-assigned immutable name for the policy. Must be unique within the policy engine.
- validation_
mode PolicyValidation Mode
- definition Property Map
- policy
Engine StringId - The identifier of the policy engine which contains this policy.
- description String
- A human-readable description of the policy's purpose and functionality.
- name String
- The customer-assigned immutable name for the policy. Must be unique within the policy engine.
- validation
Mode "FAIL_ON_ANY_FINDINGS" | "IGNORE_ALL_FINDINGS"
Outputs
All input properties are implicitly available as output properties. Additionally, the Policy resource produces the following output properties:
- Created
At string - The timestamp when the policy was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Policy
Arn string - The Amazon Resource Name (ARN) of the policy.
- Policy
Id string - The unique identifier for the policy.
- Status
Pulumi.
Aws Native. Bedrock Agent Core. Policy Status - The current status of the policy.
- Status
Reasons List<string> - Additional information about the policy status.
- Updated
At string - The timestamp when the policy was last updated.
- Created
At string - The timestamp when the policy was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Policy
Arn string - The Amazon Resource Name (ARN) of the policy.
- Policy
Id string - The unique identifier for the policy.
- Status
Policy
Status - The current status of the policy.
- Status
Reasons []string - Additional information about the policy status.
- Updated
At string - The timestamp when the policy was last updated.
- created
At String - The timestamp when the policy was created.
- id String
- The provider-assigned unique ID for this managed resource.
- policy
Arn String - The Amazon Resource Name (ARN) of the policy.
- policy
Id String - The unique identifier for the policy.
- status
Policy
Status - The current status of the policy.
- status
Reasons List<String> - Additional information about the policy status.
- updated
At String - The timestamp when the policy was last updated.
- created
At string - The timestamp when the policy was created.
- id string
- The provider-assigned unique ID for this managed resource.
- policy
Arn string - The Amazon Resource Name (ARN) of the policy.
- policy
Id string - The unique identifier for the policy.
- status
Policy
Status - The current status of the policy.
- status
Reasons string[] - Additional information about the policy status.
- updated
At string - The timestamp when the policy was last updated.
- created_
at str - The timestamp when the policy was created.
- id str
- The provider-assigned unique ID for this managed resource.
- policy_
arn str - The Amazon Resource Name (ARN) of the policy.
- policy_
id str - The unique identifier for the policy.
- status
Policy
Status - The current status of the policy.
- status_
reasons Sequence[str] - Additional information about the policy status.
- updated_
at str - The timestamp when the policy was last updated.
- created
At String - The timestamp when the policy was created.
- id String
- The provider-assigned unique ID for this managed resource.
- policy
Arn String - The Amazon Resource Name (ARN) of the policy.
- policy
Id String - The unique identifier for the policy.
- status "CREATING" | "ACTIVE" | "UPDATING" | "DELETING" | "CREATE_FAILED" | "UPDATE_FAILED" | "DELETE_FAILED"
- The current status of the policy.
- status
Reasons List<String> - Additional information about the policy status.
- updated
At String - The timestamp when the policy was last updated.
Supporting Types
PolicyCedarPolicy, PolicyCedarPolicyArgs
A Cedar policy statement within the AgentCore Policy system.- Statement string
- The Cedar policy statement that defines the authorization logic.
- Statement string
- The Cedar policy statement that defines the authorization logic.
- statement String
- The Cedar policy statement that defines the authorization logic.
- statement string
- The Cedar policy statement that defines the authorization logic.
- statement str
- The Cedar policy statement that defines the authorization logic.
- statement String
- The Cedar policy statement that defines the authorization logic.
PolicyDefinition, PolicyDefinitionArgs
The definition structure for policies. Encapsulates different policy formats.PolicyStatus, PolicyStatusArgs
- Creating
CREATING- Active
ACTIVE- Updating
UPDATING- Deleting
DELETING- Create
Failed CREATE_FAILED- Update
Failed UPDATE_FAILED- Delete
Failed DELETE_FAILED
- Policy
Status Creating CREATING- Policy
Status Active ACTIVE- Policy
Status Updating UPDATING- Policy
Status Deleting DELETING- Policy
Status Create Failed CREATE_FAILED- Policy
Status Update Failed UPDATE_FAILED- Policy
Status Delete Failed DELETE_FAILED
- Creating
CREATING- Active
ACTIVE- Updating
UPDATING- Deleting
DELETING- Create
Failed CREATE_FAILED- Update
Failed UPDATE_FAILED- Delete
Failed DELETE_FAILED
- Creating
CREATING- Active
ACTIVE- Updating
UPDATING- Deleting
DELETING- Create
Failed CREATE_FAILED- Update
Failed UPDATE_FAILED- Delete
Failed DELETE_FAILED
- CREATING
CREATING- ACTIVE
ACTIVE- UPDATING
UPDATING- DELETING
DELETING- CREATE_FAILED
CREATE_FAILED- UPDATE_FAILED
UPDATE_FAILED- DELETE_FAILED
DELETE_FAILED
- "CREATING"
CREATING- "ACTIVE"
ACTIVE- "UPDATING"
UPDATING- "DELETING"
DELETING- "CREATE_FAILED"
CREATE_FAILED- "UPDATE_FAILED"
UPDATE_FAILED- "DELETE_FAILED"
DELETE_FAILED
PolicyValidationMode, PolicyValidationModeArgs
- Fail
On Any Findings FAIL_ON_ANY_FINDINGS- Ignore
All Findings IGNORE_ALL_FINDINGS
- Policy
Validation Mode Fail On Any Findings FAIL_ON_ANY_FINDINGS- Policy
Validation Mode Ignore All Findings IGNORE_ALL_FINDINGS
- Fail
On Any Findings FAIL_ON_ANY_FINDINGS- Ignore
All Findings IGNORE_ALL_FINDINGS
- Fail
On Any Findings FAIL_ON_ANY_FINDINGS- Ignore
All Findings IGNORE_ALL_FINDINGS
- FAIL_ON_ANY_FINDINGS
FAIL_ON_ANY_FINDINGS- IGNORE_ALL_FINDINGS
IGNORE_ALL_FINDINGS
- "FAIL_ON_ANY_FINDINGS"
FAIL_ON_ANY_FINDINGS- "IGNORE_ALL_FINDINGS"
IGNORE_ALL_FINDINGS
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Monday, Mar 9, 2026 by Pulumi
