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

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

AWS Native v0.103.0 published on Monday, Apr 22, 2024 by Pulumi

aws-native.ssm.getResourcePolicy

Explore with Pulumi AI

aws-native logo

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

AWS Native v0.103.0 published on Monday, Apr 22, 2024 by Pulumi

    Resource Type definition for AWS::SSM::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(policy_id: Optional[str] = None,
                            resource_arn: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetResourcePolicyResult
    def get_resource_policy_output(policy_id: Optional[pulumi.Input[str]] = None,
                            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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws-native:ssm:getResourcePolicy
      arguments:
        # arguments dictionary

    The following arguments are supported:

    PolicyId string
    An unique identifier within the policies of a resource.
    ResourceArn string
    Arn of OpsItemGroup etc.
    PolicyId string
    An unique identifier within the policies of a resource.
    ResourceArn string
    Arn of OpsItemGroup etc.
    policyId String
    An unique identifier within the policies of a resource.
    resourceArn String
    Arn of OpsItemGroup etc.
    policyId string
    An unique identifier within the policies of a resource.
    resourceArn string
    Arn of OpsItemGroup etc.
    policy_id str
    An unique identifier within the policies of a resource.
    resource_arn str
    Arn of OpsItemGroup etc.
    policyId String
    An unique identifier within the policies of a resource.
    resourceArn String
    Arn of OpsItemGroup etc.

    getResourcePolicy Result

    The following output properties are available:

    Policy object

    Actual policy statement.

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

    PolicyHash string
    A snapshot identifier for the policy over time.
    PolicyId string
    An unique identifier within the policies of a resource.
    Policy interface{}

    Actual policy statement.

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

    PolicyHash string
    A snapshot identifier for the policy over time.
    PolicyId string
    An unique identifier within the policies of a resource.
    policy Object

    Actual policy statement.

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

    policyHash String
    A snapshot identifier for the policy over time.
    policyId String
    An unique identifier within the policies of a resource.
    policy any

    Actual policy statement.

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

    policyHash string
    A snapshot identifier for the policy over time.
    policyId string
    An unique identifier within the policies of a resource.
    policy Any

    Actual policy statement.

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

    policy_hash str
    A snapshot identifier for the policy over time.
    policy_id str
    An unique identifier within the policies of a resource.
    policy Any

    Actual policy statement.

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

    policyHash String
    A snapshot identifier for the policy over time.
    policyId String
    An unique identifier within the policies of a resource.

    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.103.0 published on Monday, Apr 22, 2024 by Pulumi