1. Packages
  2. AWS
  3. API Docs
  4. verifiedpermissions
  5. getPolicyStore
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",
});
Copy
import pulumi
import pulumi_aws as aws

example = aws.verifiedpermissions.get_policy_store(id="example")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: aws:verifiedpermissions:getPolicyStore
      arguments:
        id: example
Copy

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>
Copy
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]
Copy
func LookupPolicyStore(ctx *Context, args *LookupPolicyStoreArgs, opts ...InvokeOption) (*LookupPolicyStoreResult, error)
func LookupPolicyStoreOutput(ctx *Context, args *LookupPolicyStoreOutputArgs, opts ...InvokeOption) LookupPolicyStoreResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetPolicyStoreResult> getPolicyStore(GetPolicyStoreArgs args, InvokeOptions options)
public static Output<GetPolicyStoreResult> getPolicyStore(GetPolicyStoreArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws:verifiedpermissions/getPolicyStore:getPolicyStore
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Id This property is required. string
The ID of the Policy Store.
Id This property is required. string
The ID of the Policy Store.
id This property is required. String
The ID of the Policy Store.
id This property is required. string
The ID of the Policy Store.
id This property is required. str
The ID of the Policy Store.
id This property is required. 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
LastUpdatedDate string
The date the Policy Store was last updated.
ValidationSettings List<GetPolicyStoreValidationSetting>
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
LastUpdatedDate string
The date the Policy Store was last updated.
ValidationSettings []GetPolicyStoreValidationSetting
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
lastUpdatedDate String
The date the Policy Store was last updated.
validationSettings List<GetPolicyStoreValidationSetting>
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
lastUpdatedDate string
The date the Policy Store was last updated.
validationSettings GetPolicyStoreValidationSetting[]
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_date str
The date the Policy Store was last updated.
validation_settings Sequence[GetPolicyStoreValidationSetting]
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
lastUpdatedDate String
The date the Policy Store was last updated.
validationSettings List<Property Map>
Validation settings for the policy store.

Supporting Types

GetPolicyStoreValidationSetting

Mode This property is required. string
Mode This property is required. string
mode This property is required. String
mode This property is required. string
mode This property is required. str
mode This property is required. String

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.