1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. bedrockagentcore
  5. getPolicy

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.57.0
published on Monday, Mar 9, 2026 by Pulumi
aws-native logo

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.57.0
published on Monday, Mar 9, 2026 by Pulumi

    Resource Type definition for AWS::BedrockAgentCore::Policy

    Using getPolicy

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getPolicy(args: GetPolicyArgs, opts?: InvokeOptions): Promise<GetPolicyResult>
    function getPolicyOutput(args: GetPolicyOutputArgs, opts?: InvokeOptions): Output<GetPolicyResult>
    def get_policy(policy_arn: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetPolicyResult
    def get_policy_output(policy_arn: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetPolicyResult]
    func LookupPolicy(ctx *Context, args *LookupPolicyArgs, opts ...InvokeOption) (*LookupPolicyResult, error)
    func LookupPolicyOutput(ctx *Context, args *LookupPolicyOutputArgs, opts ...InvokeOption) LookupPolicyResultOutput

    > Note: This function is named LookupPolicy in the Go SDK.

    public static class GetPolicy 
    {
        public static Task<GetPolicyResult> InvokeAsync(GetPolicyArgs args, InvokeOptions? opts = null)
        public static Output<GetPolicyResult> Invoke(GetPolicyInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPolicyResult> getPolicy(GetPolicyArgs args, InvokeOptions options)
    public static Output<GetPolicyResult> getPolicy(GetPolicyArgs args, InvokeOptions options)
    
    fn::invoke:
      function: aws-native:bedrockagentcore:getPolicy
      arguments:
        # arguments dictionary

    The following arguments are supported:

    PolicyArn string
    The Amazon Resource Name (ARN) of the policy.
    PolicyArn string
    The Amazon Resource Name (ARN) of the policy.
    policyArn String
    The Amazon Resource Name (ARN) of the policy.
    policyArn string
    The Amazon Resource Name (ARN) of the policy.
    policy_arn str
    The Amazon Resource Name (ARN) of the policy.
    policyArn String
    The Amazon Resource Name (ARN) of the policy.

    getPolicy Result

    The following output properties are available:

    CreatedAt string
    The timestamp when the policy was created.
    Definition Pulumi.AwsNative.BedrockAgentCore.Outputs.PolicyDefinition
    Description string
    A human-readable description of the policy's purpose and functionality.
    PolicyArn string
    The Amazon Resource Name (ARN) of the policy.
    PolicyId string
    The unique identifier for the policy.
    Status Pulumi.AwsNative.BedrockAgentCore.PolicyStatus
    The current status of the policy.
    StatusReasons List<string>
    Additional information about the policy status.
    UpdatedAt string
    The timestamp when the policy was last updated.
    CreatedAt string
    The timestamp when the policy was created.
    Definition PolicyDefinition
    Description string
    A human-readable description of the policy's purpose and functionality.
    PolicyArn string
    The Amazon Resource Name (ARN) of the policy.
    PolicyId string
    The unique identifier for the policy.
    Status PolicyStatus
    The current status of the policy.
    StatusReasons []string
    Additional information about the policy status.
    UpdatedAt string
    The timestamp when the policy was last updated.
    createdAt String
    The timestamp when the policy was created.
    definition PolicyDefinition
    description String
    A human-readable description of the policy's purpose and functionality.
    policyArn String
    The Amazon Resource Name (ARN) of the policy.
    policyId String
    The unique identifier for the policy.
    status PolicyStatus
    The current status of the policy.
    statusReasons List<String>
    Additional information about the policy status.
    updatedAt String
    The timestamp when the policy was last updated.
    createdAt string
    The timestamp when the policy was created.
    definition PolicyDefinition
    description string
    A human-readable description of the policy's purpose and functionality.
    policyArn string
    The Amazon Resource Name (ARN) of the policy.
    policyId string
    The unique identifier for the policy.
    status PolicyStatus
    The current status of the policy.
    statusReasons string[]
    Additional information about the policy status.
    updatedAt string
    The timestamp when the policy was last updated.
    created_at str
    The timestamp when the policy was created.
    definition PolicyDefinition
    description str
    A human-readable description of the policy's purpose and functionality.
    policy_arn str
    The Amazon Resource Name (ARN) of the policy.
    policy_id str
    The unique identifier for the policy.
    status PolicyStatus
    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.
    createdAt String
    The timestamp when the policy was created.
    definition Property Map
    description String
    A human-readable description of the policy's purpose and functionality.
    policyArn String
    The Amazon Resource Name (ARN) of the policy.
    policyId String
    The unique identifier for the policy.
    status "CREATING" | "ACTIVE" | "UPDATING" | "DELETING" | "CREATE_FAILED" | "UPDATE_FAILED" | "DELETE_FAILED"
    The current status of the policy.
    statusReasons List<String>
    Additional information about the policy status.
    updatedAt String
    The timestamp when the policy was last updated.

    Supporting Types

    PolicyCedarPolicy

    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

    PolicyStatus

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.57.0
    published on Monday, Mar 9, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.