1. Packages
  2. AWS Native
  3. API Docs
  4. xray
  5. getResourcePolicy

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.102.0 published on Tuesday, Apr 16, 2024 by Pulumi

aws-native.xray.getResourcePolicy

Explore with Pulumi AI

aws-native logo

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.102.0 published on Tuesday, Apr 16, 2024 by Pulumi

    This schema provides construct and validation rules for AWS-XRay Resource Policy resource parameters.

    Using getResourcePolicy

    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 getResourcePolicy(args: GetResourcePolicyArgs, opts?: InvokeOptions): Promise<GetResourcePolicyResult>
    function getResourcePolicyOutput(args: GetResourcePolicyOutputArgs, opts?: InvokeOptions): Output<GetResourcePolicyResult>
    def get_resource_policy(policy_name: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetResourcePolicyResult
    def get_resource_policy_output(policy_name: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetResourcePolicyResult]
    func LookupResourcePolicy(ctx *Context, args *LookupResourcePolicyArgs, opts ...InvokeOption) (*LookupResourcePolicyResult, error)
    func LookupResourcePolicyOutput(ctx *Context, args *LookupResourcePolicyOutputArgs, opts ...InvokeOption) LookupResourcePolicyResultOutput

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

    public static class GetResourcePolicy 
    {
        public static Task<GetResourcePolicyResult> InvokeAsync(GetResourcePolicyArgs args, InvokeOptions? opts = null)
        public static Output<GetResourcePolicyResult> Invoke(GetResourcePolicyInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetResourcePolicyResult> getResourcePolicy(GetResourcePolicyArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws-native:xray:getResourcePolicy
      arguments:
        # arguments dictionary

    The following arguments are supported:

    PolicyName string
    The name of the resource policy. Must be unique within a specific AWS account.
    PolicyName string
    The name of the resource policy. Must be unique within a specific AWS account.
    policyName String
    The name of the resource policy. Must be unique within a specific AWS account.
    policyName string
    The name of the resource policy. Must be unique within a specific AWS account.
    policy_name str
    The name of the resource policy. Must be unique within a specific AWS account.
    policyName String
    The name of the resource policy. Must be unique within a specific AWS account.

    getResourcePolicy Result

    The following output properties are available:

    PolicyDocument string
    The resource policy document, which can be up to 5kb in size.
    PolicyDocument string
    The resource policy document, which can be up to 5kb in size.
    policyDocument String
    The resource policy document, which can be up to 5kb in size.
    policyDocument string
    The resource policy document, which can be up to 5kb in size.
    policy_document str
    The resource policy document, which can be up to 5kb in size.
    policyDocument String
    The resource policy document, which can be up to 5kb in size.

    Package Details

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

    AWS Native is in preview. AWS Classic is fully supported.

    AWS Native v0.102.0 published on Tuesday, Apr 16, 2024 by Pulumi