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

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

AWS Native v0.126.0 published on Monday, Sep 30, 2024 by Pulumi

aws-native.secretsmanager.getResourcePolicy

Explore with Pulumi AI

aws-native logo

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

AWS Native v0.126.0 published on Monday, Sep 30, 2024 by Pulumi

    Resource Type definition for AWS::SecretsManager::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(id: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetResourcePolicyResult
    def get_resource_policy_output(id: 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:secretsmanager:getResourcePolicy
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The Arn of the secret.
    Id string
    The Arn of the secret.
    id String
    The Arn of the secret.
    id string
    The Arn of the secret.
    id str
    The Arn of the secret.
    id String
    The Arn of the secret.

    getResourcePolicy Result

    The following output properties are available:

    Id string
    The Arn of the secret.
    ResourcePolicyValue object

    A JSON-formatted string for an AWS resource-based policy.

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

    Id string
    The Arn of the secret.
    ResourcePolicy interface{}

    A JSON-formatted string for an AWS resource-based policy.

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

    id String
    The Arn of the secret.
    resourcePolicy Object

    A JSON-formatted string for an AWS resource-based policy.

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

    id string
    The Arn of the secret.
    resourcePolicy any

    A JSON-formatted string for an AWS resource-based policy.

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

    id str
    The Arn of the secret.
    resource_policy Any

    A JSON-formatted string for an AWS resource-based policy.

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

    id String
    The Arn of the secret.
    resourcePolicy Any

    A JSON-formatted string for an AWS resource-based policy.

    Search the CloudFormation User Guide for AWS::SecretsManager::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 Native v0.126.0 published on Monday, Sep 30, 2024 by Pulumi