1. Registry
  2. Packages
  3. AWS
  4. API Docs
  5. verifiedpermissions
  6. getPolicyStore
Viewing docs for AWS v7.51.1
published on Friday, Oct 16, 2026 by Pulumi
aws logo aws logo
Viewing docs for AWS v7.51.1
published on Friday, Oct 16, 2026 by Pulumi

    Data source for managing an AWS Verified Permissions Policy Store.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.verifiedpermissions.getPolicyStore({
        id: "example",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.verifiedpermissions.get_policy_store(id="example")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/verifiedpermissions"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := verifiedpermissions.LookupPolicyStore(ctx, &verifiedpermissions.LookupPolicyStoreArgs{
    			Id: "example",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Aws.VerifiedPermissions.GetPolicyStore.Invoke(new()
        {
            Id = "example",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.verifiedpermissions.VerifiedpermissionsFunctions;
    import com.pulumi.aws.verifiedpermissions.inputs.GetPolicyStoreArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var example = VerifiedpermissionsFunctions.getPolicyStore(GetPolicyStoreArgs.builder()
                .id("example")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: aws:verifiedpermissions:getPolicyStore
          arguments:
            id: example
    
    pulumi {
      required_providers {
        aws = {
          source = "pulumi/aws"
        }
      }
    }
    
    data "aws_verifiedpermissions_getpolicystore" "example" {
      id = "example"
    }
    

    Using getPolicyStore

    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 getPolicyStore(args: GetPolicyStoreArgs, opts?: InvokeOptions): Promise<GetPolicyStoreResult>
    function getPolicyStoreOutput(args: GetPolicyStoreOutputArgs, opts?: InvokeOutputOptions): Output<GetPolicyStoreResult>
    def get_policy_store(id: Optional[str] = None,
                         region: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetPolicyStoreResult
    def get_policy_store_output(id: pulumi.Input[Optional[str]] = None,
                         region: pulumi.Input[Optional[str]] = None,
                         opts: Optional[InvokeOutputOptions] = None) -> Output[GetPolicyStoreResult]
    func LookupPolicyStore(ctx *Context, args *LookupPolicyStoreArgs, opts ...InvokeOption) (*LookupPolicyStoreResult, error)
    func LookupPolicyStoreOutput(ctx *Context, args *LookupPolicyStoreOutputArgs, opts ...InvokeOption) LookupPolicyStoreResultOutput

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

    public static class GetPolicyStore 
    {
        public static Task<GetPolicyStoreResult> InvokeAsync(GetPolicyStoreArgs args, InvokeOptions? opts = null)
        public static Output<GetPolicyStoreResult> Invoke(GetPolicyStoreInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetPolicyStoreResult> Invoke(GetPolicyStoreInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetPolicyStoreResult> getPolicyStore(GetPolicyStoreArgs args, InvokeOptions options)
    public static Output<GetPolicyStoreResult> getPolicyStore(GetPolicyStoreArgs args, InvokeOptions options)
    public static Output<GetPolicyStoreResult> getPolicyStore(GetPolicyStoreArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: aws:verifiedpermissions/getPolicyStore:getPolicyStore
      arguments:
        # arguments dictionary
    data "aws_verifiedpermissions_get_policy_store" "name" {
        # arguments
    }

    The following arguments are supported:

    Id string
    ID of the Policy Store.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Id string
    ID of the Policy Store.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    id string
    ID of the Policy Store.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    id String
    ID of the Policy Store.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    id string
    ID of the Policy Store.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    id str
    ID of the Policy Store.
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    id String
    ID of the Policy Store.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.

    getPolicyStore Result

    The following output properties are available:

    Arn string
    ARN of the Policy Store.
    CreatedDate string
    Date the Policy Store was created.
    DeletionProtection string
    Whether the policy store can be deleted.
    Description string
    Description of the Policy Store.
    Id string
    LastUpdatedDate string
    Date the Policy Store was last updated.
    Region string
    Tags Dictionary<string, string>
    Map of key-value pairs associated with the policy store.
    ValidationSettings List<GetPolicyStoreValidationSetting>
    Validation settings for the policy store. See Validation Settings below.
    Arn string
    ARN of the Policy Store.
    CreatedDate string
    Date the Policy Store was created.
    DeletionProtection string
    Whether the policy store can be deleted.
    Description string
    Description of the Policy Store.
    Id string
    LastUpdatedDate string
    Date the Policy Store was last updated.
    Region string
    Tags map[string]string
    Map of key-value pairs associated with the policy store.
    ValidationSettings []GetPolicyStoreValidationSetting
    Validation settings for the policy store. See Validation Settings below.
    arn string
    ARN of the Policy Store.
    created_date string
    Date the Policy Store was created.
    deletion_protection string
    Whether the policy store can be deleted.
    description string
    Description of the Policy Store.
    id string
    last_updated_date string
    Date the Policy Store was last updated.
    region string
    tags map(string)
    Map of key-value pairs associated with the policy store.
    validation_settings list(object)
    Validation settings for the policy store. See Validation Settings below.
    arn String
    ARN of the Policy Store.
    createdDate String
    Date the Policy Store was created.
    deletionProtection String
    Whether the policy store can be deleted.
    description String
    Description of the Policy Store.
    id String
    lastUpdatedDate String
    Date the Policy Store was last updated.
    region String
    tags Map<String,String>
    Map of key-value pairs associated with the policy store.
    validationSettings List<GetPolicyStoreValidationSetting>
    Validation settings for the policy store. See Validation Settings below.
    arn string
    ARN of the Policy Store.
    createdDate string
    Date the Policy Store was created.
    deletionProtection string
    Whether the policy store can be deleted.
    description string
    Description of the Policy Store.
    id string
    lastUpdatedDate string
    Date the Policy Store was last updated.
    region string
    tags {[key: string]: string}
    Map of key-value pairs associated with the policy store.
    validationSettings GetPolicyStoreValidationSetting[]
    Validation settings for the policy store. See Validation Settings below.
    arn str
    ARN of the Policy Store.
    created_date str
    Date the Policy Store was created.
    deletion_protection str
    Whether the policy store can be deleted.
    description str
    Description of the Policy Store.
    id str
    last_updated_date str
    Date the Policy Store was last updated.
    region str
    tags Mapping[str, str]
    Map of key-value pairs associated with the policy store.
    validation_settings Sequence[GetPolicyStoreValidationSetting]
    Validation settings for the policy store. See Validation Settings below.
    arn String
    ARN of the Policy Store.
    createdDate String
    Date the Policy Store was created.
    deletionProtection String
    Whether the policy store can be deleted.
    description String
    Description of the Policy Store.
    id String
    lastUpdatedDate String
    Date the Policy Store was last updated.
    region String
    tags Map<String>
    Map of key-value pairs associated with the policy store.
    validationSettings List<Property Map>
    Validation settings for the policy store. See Validation Settings below.

    Supporting Types

    GetPolicyStoreValidationSetting

    Mode string
    Mode for the validation settings.
    Mode string
    Mode for the validation settings.
    mode string
    Mode for the validation settings.
    mode String
    Mode for the validation settings.
    mode string
    Mode for the validation settings.
    mode str
    Mode for the validation settings.
    mode String
    Mode for the validation settings.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo aws logo
    Viewing docs for AWS v7.51.1
    published on Friday, Oct 16, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial