1. Packages
  2. AWS Native
  3. API Docs
  4. iot
  5. getPolicy

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.iot.getPolicy

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::IoT::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(id: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetPolicyResult
    def get_policy_output(id: 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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws-native:iot:getPolicy
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Id string
    id String
    id string
    id str
    id String

    getPolicy Result

    The following output properties are available:

    Arn string
    Id string
    PolicyDocument object
    Search the CloudFormation User Guide for AWS::IoT::Policy for more information about the expected schema for this property.
    Tags List<Pulumi.AwsNative.Outputs.Tag>
    Arn string
    Id string
    PolicyDocument interface{}
    Search the CloudFormation User Guide for AWS::IoT::Policy for more information about the expected schema for this property.
    Tags Tag
    arn String
    id String
    policyDocument Object
    Search the CloudFormation User Guide for AWS::IoT::Policy for more information about the expected schema for this property.
    tags List<Tag>
    arn string
    id string
    policyDocument any
    Search the CloudFormation User Guide for AWS::IoT::Policy for more information about the expected schema for this property.
    tags Tag[]
    arn str
    id str
    policy_document Any
    Search the CloudFormation User Guide for AWS::IoT::Policy for more information about the expected schema for this property.
    tags Sequence[root_Tag]
    arn String
    id String
    policyDocument Any
    Search the CloudFormation User Guide for AWS::IoT::Policy for more information about the expected schema for this property.
    tags List<Property Map>

    Supporting Types

    Tag

    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    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