--- # generated by https://github.com/hashicorp/terraform-plugin-docs page_title: "awscc_bedrockagentcore_policy Resource - terraform-provider-awscc" subcategory: "" description: |- Resource Type definition for AWS::BedrockAgentCore::Policy --- # awscc_bedrockagentcore_policy (Resource) Resource Type definition for AWS::BedrockAgentCore::Policy ## Schema ### Required - `definition` (Attributes) The definition structure for policies. Encapsulates different policy formats. (see [below for nested schema](#nestedatt--definition)) - `name` (String) The customer-assigned immutable name for the policy. Must be unique within the policy engine. - `policy_engine_id` (String) The identifier of the policy engine which contains this policy. ### Optional - `description` (String) A human-readable description of the policy's purpose and functionality. - `enforcement_mode` (String) Whether the policy contributes to the enforce decision returned to Gateway. LOG_ONLY policies are still evaluated but their decisions are observed only, allowing customers to validate a policy against real traffic before promoting it. - `validation_mode` (String) The validation mode for the policy. Determines how Cedar analyzer validation results are handled. ### Read-Only - `created_at` (String) The timestamp when the policy was created. - `id` (String) Uniquely identifies the resource. - `policy_arn` (String) The Amazon Resource Name (ARN) of the policy. - `policy_id` (String) The unique identifier for the policy. - `status` (String) The current status of the policy. - `status_reasons` (List of String) Additional information about the policy status. - `updated_at` (String) The timestamp when the policy was last updated. ### Nested Schema for `definition` Optional: - `cedar` (Attributes) A Cedar policy statement within the AgentCore Policy system. (see [below for nested schema](#nestedatt--definition--cedar)) - `policy` (Attributes) A policy statement within the AgentCore Policy system. (see [below for nested schema](#nestedatt--definition--policy)) ### Nested Schema for `definition.cedar` Optional: - `statement` (String) The Cedar policy statement that defines the authorization logic. ### Nested Schema for `definition.policy` Optional: - `statement` (String) The policy statement. ## Import Import is supported using the following syntax: In Terraform v1.12.0 and later, the [`import` block](https://developer.hashicorp.com/terraform/language/import) can be used with the `identity` attribute, for example: ```terraform import { to = awscc_bedrockagentcore_policy.example identity = { policy_arn = "policy_arn" } } ``` ### Identity Schema #### Required - `policy_arn` (String) The Amazon Resource Name (ARN) of the policy #### Optional - `account_id` (String) AWS Account where this resource is managed - `region` (String) Region where this resource is managed In Terraform v1.5.0 and later, the [`import` block](https://developer.hashicorp.com/terraform/language/import) can be used with the `id` attribute, for example: ```terraform import { to = awscc_bedrockagentcore_policy.example id = "policy_arn" } ``` The [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import) can be used, for example: ```shell $ terraform import awscc_bedrockagentcore_policy.example "policy_arn" ```