1. Packages
  2. AWS Native
  3. API Docs
  4. iotsitewise
  5. getAccessPolicy

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

AWS Native v0.100.0 published on Wednesday, Mar 27, 2024 by Pulumi

aws-native.iotsitewise.getAccessPolicy

Explore with Pulumi AI

aws-native logo

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

AWS Native v0.100.0 published on Wednesday, Mar 27, 2024 by Pulumi

    Resource schema for AWS::IoTSiteWise::AccessPolicy

    Using getAccessPolicy

    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 getAccessPolicy(args: GetAccessPolicyArgs, opts?: InvokeOptions): Promise<GetAccessPolicyResult>
    function getAccessPolicyOutput(args: GetAccessPolicyOutputArgs, opts?: InvokeOptions): Output<GetAccessPolicyResult>
    def get_access_policy(access_policy_id: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetAccessPolicyResult
    def get_access_policy_output(access_policy_id: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetAccessPolicyResult]
    func LookupAccessPolicy(ctx *Context, args *LookupAccessPolicyArgs, opts ...InvokeOption) (*LookupAccessPolicyResult, error)
    func LookupAccessPolicyOutput(ctx *Context, args *LookupAccessPolicyOutputArgs, opts ...InvokeOption) LookupAccessPolicyResultOutput

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

    public static class GetAccessPolicy 
    {
        public static Task<GetAccessPolicyResult> InvokeAsync(GetAccessPolicyArgs args, InvokeOptions? opts = null)
        public static Output<GetAccessPolicyResult> Invoke(GetAccessPolicyInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAccessPolicyResult> getAccessPolicy(GetAccessPolicyArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws-native:iotsitewise:getAccessPolicy
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccessPolicyId string
    The ID of the access policy.
    AccessPolicyId string
    The ID of the access policy.
    accessPolicyId String
    The ID of the access policy.
    accessPolicyId string
    The ID of the access policy.
    access_policy_id str
    The ID of the access policy.
    accessPolicyId String
    The ID of the access policy.

    getAccessPolicy Result

    The following output properties are available:

    AccessPolicyArn string
    The ARN of the access policy.
    AccessPolicyId string
    The ID of the access policy.
    AccessPolicyIdentity Pulumi.AwsNative.IoTSiteWise.Outputs.AccessPolicyIdentity
    The identity for this access policy. Choose either a user or a group but not both.
    AccessPolicyPermission string
    The permission level for this access policy. Valid values are ADMINISTRATOR or VIEWER.
    AccessPolicyResource Pulumi.AwsNative.IoTSiteWise.Outputs.AccessPolicyResource
    The AWS IoT SiteWise Monitor resource for this access policy. Choose either portal or project but not both.
    AccessPolicyArn string
    The ARN of the access policy.
    AccessPolicyId string
    The ID of the access policy.
    AccessPolicyIdentity AccessPolicyIdentity
    The identity for this access policy. Choose either a user or a group but not both.
    AccessPolicyPermission string
    The permission level for this access policy. Valid values are ADMINISTRATOR or VIEWER.
    AccessPolicyResource AccessPolicyResource
    The AWS IoT SiteWise Monitor resource for this access policy. Choose either portal or project but not both.
    accessPolicyArn String
    The ARN of the access policy.
    accessPolicyId String
    The ID of the access policy.
    accessPolicyIdentity AccessPolicyIdentity
    The identity for this access policy. Choose either a user or a group but not both.
    accessPolicyPermission String
    The permission level for this access policy. Valid values are ADMINISTRATOR or VIEWER.
    accessPolicyResource AccessPolicyResource
    The AWS IoT SiteWise Monitor resource for this access policy. Choose either portal or project but not both.
    accessPolicyArn string
    The ARN of the access policy.
    accessPolicyId string
    The ID of the access policy.
    accessPolicyIdentity AccessPolicyIdentity
    The identity for this access policy. Choose either a user or a group but not both.
    accessPolicyPermission string
    The permission level for this access policy. Valid values are ADMINISTRATOR or VIEWER.
    accessPolicyResource AccessPolicyResource
    The AWS IoT SiteWise Monitor resource for this access policy. Choose either portal or project but not both.
    access_policy_arn str
    The ARN of the access policy.
    access_policy_id str
    The ID of the access policy.
    access_policy_identity AccessPolicyIdentity
    The identity for this access policy. Choose either a user or a group but not both.
    access_policy_permission str
    The permission level for this access policy. Valid values are ADMINISTRATOR or VIEWER.
    access_policy_resource AccessPolicyResource
    The AWS IoT SiteWise Monitor resource for this access policy. Choose either portal or project but not both.
    accessPolicyArn String
    The ARN of the access policy.
    accessPolicyId String
    The ID of the access policy.
    accessPolicyIdentity Property Map
    The identity for this access policy. Choose either a user or a group but not both.
    accessPolicyPermission String
    The permission level for this access policy. Valid values are ADMINISTRATOR or VIEWER.
    accessPolicyResource Property Map
    The AWS IoT SiteWise Monitor resource for this access policy. Choose either portal or project but not both.

    Supporting Types

    AccessPolicyIamRole

    Arn string
    The ARN of the IAM role.
    Arn string
    The ARN of the IAM role.
    arn String
    The ARN of the IAM role.
    arn string
    The ARN of the IAM role.
    arn str
    The ARN of the IAM role.
    arn String
    The ARN of the IAM role.

    AccessPolicyIamUser

    Arn string
    The ARN of the IAM user.
    Arn string
    The ARN of the IAM user.
    arn String
    The ARN of the IAM user.
    arn string
    The ARN of the IAM user.
    arn str
    The ARN of the IAM user.
    arn String
    The ARN of the IAM user.

    AccessPolicyIdentity

    AccessPolicyPortal

    Id string
    The ID of the portal.
    Id string
    The ID of the portal.
    id String
    The ID of the portal.
    id string
    The ID of the portal.
    id str
    The ID of the portal.
    id String
    The ID of the portal.

    AccessPolicyProject

    Id string
    The ID of the project.
    Id string
    The ID of the project.
    id String
    The ID of the project.
    id string
    The ID of the project.
    id str
    The ID of the project.
    id String
    The ID of the project.

    AccessPolicyResource

    AccessPolicyUser

    Id string
    The AWS SSO ID of the user.
    Id string
    The AWS SSO ID of the user.
    id String
    The AWS SSO ID of the user.
    id string
    The AWS SSO ID of the user.
    id str
    The AWS SSO ID of the user.
    id String
    The AWS SSO ID of the user.

    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.100.0 published on Wednesday, Mar 27, 2024 by Pulumi