1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. smsvoice
  5. getResourcePolicy

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

AWS Cloud Control v1.34.0 published on Friday, Sep 12, 2025 by Pulumi

aws-native.smsvoice.getResourcePolicy

Explore with Pulumi AI

aws-native logo

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

AWS Cloud Control v1.34.0 published on Friday, Sep 12, 2025 by Pulumi

    Resource Type definition for AWS::SMSVOICE::ResourcePolicy

    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(resource_arn: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetResourcePolicyResult
    def get_resource_policy_output(resource_arn: 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)
    public static Output<GetResourcePolicyResult> getResourcePolicy(GetResourcePolicyArgs args, InvokeOptions options)
    
    fn::invoke:
      function: aws-native:smsvoice:getResourcePolicy
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ResourceArn string
    The Amazon Resource Name (ARN) of the AWS End User Messaging SMS and Voice resource to attach the resource-based policy to.
    ResourceArn string
    The Amazon Resource Name (ARN) of the AWS End User Messaging SMS and Voice resource to attach the resource-based policy to.
    resourceArn String
    The Amazon Resource Name (ARN) of the AWS End User Messaging SMS and Voice resource to attach the resource-based policy to.
    resourceArn string
    The Amazon Resource Name (ARN) of the AWS End User Messaging SMS and Voice resource to attach the resource-based policy to.
    resource_arn str
    The Amazon Resource Name (ARN) of the AWS End User Messaging SMS and Voice resource to attach the resource-based policy to.
    resourceArn String
    The Amazon Resource Name (ARN) of the AWS End User Messaging SMS and Voice resource to attach the resource-based policy to.

    getResourcePolicy Result

    The following output properties are available:

    PolicyDocument object

    The JSON formatted resource-based policy to attach.

    Search the CloudFormation User Guide for AWS::SMSVOICE::ResourcePolicy for more information about the expected schema for this property.

    PolicyDocument interface{}

    The JSON formatted resource-based policy to attach.

    Search the CloudFormation User Guide for AWS::SMSVOICE::ResourcePolicy for more information about the expected schema for this property.

    policyDocument Object

    The JSON formatted resource-based policy to attach.

    Search the CloudFormation User Guide for AWS::SMSVOICE::ResourcePolicy for more information about the expected schema for this property.

    policyDocument any

    The JSON formatted resource-based policy to attach.

    Search the CloudFormation User Guide for AWS::SMSVOICE::ResourcePolicy for more information about the expected schema for this property.

    policy_document Any

    The JSON formatted resource-based policy to attach.

    Search the CloudFormation User Guide for AWS::SMSVOICE::ResourcePolicy for more information about the expected schema for this property.

    policyDocument Any

    The JSON formatted resource-based policy to attach.

    Search the CloudFormation User Guide for AWS::SMSVOICE::ResourcePolicy for more information about the expected schema for this property.

    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.

    AWS Cloud Control v1.34.0 published on Friday, Sep 12, 2025 by Pulumi