1. Packages
  2. AWS
  3. API Docs
  4. verifiedpermissions
  5. getPolicyStore
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

aws.verifiedpermissions.getPolicyStore

Explore with Pulumi AI

aws logo
AWS v6.60.0 published on Tuesday, Nov 19, 2024 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/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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws:verifiedpermissions/getPolicyStore:getPolicyStore
      arguments:
        # arguments dictionary

    The 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
    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 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 aws Terraform Provider.
    aws logo
    AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi