AWS v6.73.0 published on Wednesday, Mar 19, 2025 by Pulumi
aws.verifiedpermissions.getPolicyStore
Explore with Pulumi AI
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/v6/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.List;
import java.util.ArrayList;
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
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?: InvokeOptions): Output<GetPolicyStoreResult>def get_policy_store(id: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetPolicyStoreResult
def get_policy_store_output(id: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = 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 CompletableFuture<GetPolicyStoreResult> getPolicyStore(GetPolicyStoreArgs args, InvokeOptions options)
public static Output<GetPolicyStoreResult> getPolicyStore(GetPolicyStoreArgs args, InvokeOptions options)
fn::invoke:
  function: aws:verifiedpermissions/getPolicyStore:getPolicyStore
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Id string
- The ID of the Policy Store.
- Id string
- The ID of the Policy Store.
- id String
- The ID of the Policy Store.
- id string
- The ID of the Policy Store.
- id str
- The ID of the Policy Store.
- id String
- The ID of the Policy Store.
getPolicyStore Result
The following output properties are available:
- Arn string
- The ARN of the Policy Store.
- CreatedDate string
- The date the Policy Store was created.
- Description string
- Id string
- LastUpdated stringDate 
- The date the Policy Store was last updated.
- ValidationSettings List<GetPolicy Store Validation Setting> 
- Validation settings for the policy store.
- Arn string
- The ARN of the Policy Store.
- CreatedDate string
- The date the Policy Store was created.
- Description string
- Id string
- LastUpdated stringDate 
- The date the Policy Store was last updated.
- ValidationSettings []GetPolicy Store Validation Setting 
- Validation settings for the policy store.
- arn String
- The ARN of the Policy Store.
- createdDate String
- The date the Policy Store was created.
- description String
- id String
- lastUpdated StringDate 
- The date the Policy Store was last updated.
- validationSettings List<GetPolicy Store Validation Setting> 
- Validation settings for the policy store.
- arn string
- The ARN of the Policy Store.
- createdDate string
- The date the Policy Store was created.
- description string
- id string
- lastUpdated stringDate 
- The date the Policy Store was last updated.
- validationSettings GetPolicy Store Validation Setting[] 
- Validation settings for the policy store.
- arn str
- The ARN of the Policy Store.
- created_date str
- The date the Policy Store was created.
- description str
- id str
- last_updated_ strdate 
- The date the Policy Store was last updated.
- validation_settings Sequence[GetPolicy Store Validation Setting] 
- Validation settings for the policy store.
- arn String
- The ARN of the Policy Store.
- createdDate String
- The date the Policy Store was created.
- description String
- id String
- lastUpdated StringDate 
- The date the Policy Store was last updated.
- validationSettings List<Property Map>
- Validation settings for the policy store.
Supporting Types
GetPolicyStoreValidationSetting    
- Mode string
- Mode string
- mode String
- mode string
- mode str
- mode String
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the awsTerraform Provider.