1. Packages
  2. AWS Classic
  3. API Docs
  4. verifiedpermissions
  5. PolicyStore

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.36.0 published on Wednesday, May 15, 2024 by Pulumi

aws.verifiedpermissions.PolicyStore

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.36.0 published on Wednesday, May 15, 2024 by Pulumi

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.verifiedpermissions.PolicyStore("example", {validationSettings: {
        mode: "STRICT",
    }});
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.verifiedpermissions.PolicyStore("example", validation_settings=aws.verifiedpermissions.PolicyStoreValidationSettingsArgs(
        mode="STRICT",
    ))
    
    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.NewPolicyStore(ctx, "example", &verifiedpermissions.PolicyStoreArgs{
    			ValidationSettings: &verifiedpermissions.PolicyStoreValidationSettingsArgs{
    				Mode: pulumi.String("STRICT"),
    			},
    		})
    		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 = new Aws.VerifiedPermissions.PolicyStore("example", new()
        {
            ValidationSettings = new Aws.VerifiedPermissions.Inputs.PolicyStoreValidationSettingsArgs
            {
                Mode = "STRICT",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.verifiedpermissions.PolicyStore;
    import com.pulumi.aws.verifiedpermissions.PolicyStoreArgs;
    import com.pulumi.aws.verifiedpermissions.inputs.PolicyStoreValidationSettingsArgs;
    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) {
            var example = new PolicyStore("example", PolicyStoreArgs.builder()        
                .validationSettings(PolicyStoreValidationSettingsArgs.builder()
                    .mode("STRICT")
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:verifiedpermissions:PolicyStore
        properties:
          validationSettings:
            mode: STRICT
    

    Create PolicyStore Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new PolicyStore(name: string, args?: PolicyStoreArgs, opts?: CustomResourceOptions);
    @overload
    def PolicyStore(resource_name: str,
                    args: Optional[PolicyStoreArgs] = None,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def PolicyStore(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    description: Optional[str] = None,
                    validation_settings: Optional[PolicyStoreValidationSettingsArgs] = None)
    func NewPolicyStore(ctx *Context, name string, args *PolicyStoreArgs, opts ...ResourceOption) (*PolicyStore, error)
    public PolicyStore(string name, PolicyStoreArgs? args = null, CustomResourceOptions? opts = null)
    public PolicyStore(String name, PolicyStoreArgs args)
    public PolicyStore(String name, PolicyStoreArgs args, CustomResourceOptions options)
    
    type: aws:verifiedpermissions:PolicyStore
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args PolicyStoreArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args PolicyStoreArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args PolicyStoreArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PolicyStoreArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PolicyStoreArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var policyStoreResource = new Aws.VerifiedPermissions.PolicyStore("policyStoreResource", new()
    {
        Description = "string",
        ValidationSettings = new Aws.VerifiedPermissions.Inputs.PolicyStoreValidationSettingsArgs
        {
            Mode = "string",
        },
    });
    
    example, err := verifiedpermissions.NewPolicyStore(ctx, "policyStoreResource", &verifiedpermissions.PolicyStoreArgs{
    	Description: pulumi.String("string"),
    	ValidationSettings: &verifiedpermissions.PolicyStoreValidationSettingsArgs{
    		Mode: pulumi.String("string"),
    	},
    })
    
    var policyStoreResource = new PolicyStore("policyStoreResource", PolicyStoreArgs.builder()        
        .description("string")
        .validationSettings(PolicyStoreValidationSettingsArgs.builder()
            .mode("string")
            .build())
        .build());
    
    policy_store_resource = aws.verifiedpermissions.PolicyStore("policyStoreResource",
        description="string",
        validation_settings=aws.verifiedpermissions.PolicyStoreValidationSettingsArgs(
            mode="string",
        ))
    
    const policyStoreResource = new aws.verifiedpermissions.PolicyStore("policyStoreResource", {
        description: "string",
        validationSettings: {
            mode: "string",
        },
    });
    
    type: aws:verifiedpermissions:PolicyStore
    properties:
        description: string
        validationSettings:
            mode: string
    

    PolicyStore Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The PolicyStore resource accepts the following input properties:

    Description string
    A description of the Policy Store.
    ValidationSettings PolicyStoreValidationSettings
    Validation settings for the policy store.
    Description string
    A description of the Policy Store.
    ValidationSettings PolicyStoreValidationSettingsArgs
    Validation settings for the policy store.
    description String
    A description of the Policy Store.
    validationSettings PolicyStoreValidationSettings
    Validation settings for the policy store.
    description string
    A description of the Policy Store.
    validationSettings PolicyStoreValidationSettings
    Validation settings for the policy store.
    description str
    A description of the Policy Store.
    validation_settings PolicyStoreValidationSettingsArgs
    Validation settings for the policy store.
    description String
    A description of the Policy Store.
    validationSettings Property Map
    Validation settings for the policy store.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the PolicyStore resource produces the following output properties:

    Arn string
    The ARN of the Policy Store.
    Id string
    The provider-assigned unique ID for this managed resource.
    PolicyStoreId string
    The ID of the Policy Store.
    Arn string
    The ARN of the Policy Store.
    Id string
    The provider-assigned unique ID for this managed resource.
    PolicyStoreId string
    The ID of the Policy Store.
    arn String
    The ARN of the Policy Store.
    id String
    The provider-assigned unique ID for this managed resource.
    policyStoreId String
    The ID of the Policy Store.
    arn string
    The ARN of the Policy Store.
    id string
    The provider-assigned unique ID for this managed resource.
    policyStoreId string
    The ID of the Policy Store.
    arn str
    The ARN of the Policy Store.
    id str
    The provider-assigned unique ID for this managed resource.
    policy_store_id str
    The ID of the Policy Store.
    arn String
    The ARN of the Policy Store.
    id String
    The provider-assigned unique ID for this managed resource.
    policyStoreId String
    The ID of the Policy Store.

    Look up Existing PolicyStore Resource

    Get an existing PolicyStore resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: PolicyStoreState, opts?: CustomResourceOptions): PolicyStore
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            arn: Optional[str] = None,
            description: Optional[str] = None,
            policy_store_id: Optional[str] = None,
            validation_settings: Optional[PolicyStoreValidationSettingsArgs] = None) -> PolicyStore
    func GetPolicyStore(ctx *Context, name string, id IDInput, state *PolicyStoreState, opts ...ResourceOption) (*PolicyStore, error)
    public static PolicyStore Get(string name, Input<string> id, PolicyStoreState? state, CustomResourceOptions? opts = null)
    public static PolicyStore get(String name, Output<String> id, PolicyStoreState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Arn string
    The ARN of the Policy Store.
    Description string
    A description of the Policy Store.
    PolicyStoreId string
    The ID of the Policy Store.
    ValidationSettings PolicyStoreValidationSettings
    Validation settings for the policy store.
    Arn string
    The ARN of the Policy Store.
    Description string
    A description of the Policy Store.
    PolicyStoreId string
    The ID of the Policy Store.
    ValidationSettings PolicyStoreValidationSettingsArgs
    Validation settings for the policy store.
    arn String
    The ARN of the Policy Store.
    description String
    A description of the Policy Store.
    policyStoreId String
    The ID of the Policy Store.
    validationSettings PolicyStoreValidationSettings
    Validation settings for the policy store.
    arn string
    The ARN of the Policy Store.
    description string
    A description of the Policy Store.
    policyStoreId string
    The ID of the Policy Store.
    validationSettings PolicyStoreValidationSettings
    Validation settings for the policy store.
    arn str
    The ARN of the Policy Store.
    description str
    A description of the Policy Store.
    policy_store_id str
    The ID of the Policy Store.
    validation_settings PolicyStoreValidationSettingsArgs
    Validation settings for the policy store.
    arn String
    The ARN of the Policy Store.
    description String
    A description of the Policy Store.
    policyStoreId String
    The ID of the Policy Store.
    validationSettings Property Map
    Validation settings for the policy store.

    Supporting Types

    PolicyStoreValidationSettings, PolicyStoreValidationSettingsArgs

    Mode string

    The mode for the validation settings. Valid values: OFF, STRICT.

    The following arguments are optional:

    Mode string

    The mode for the validation settings. Valid values: OFF, STRICT.

    The following arguments are optional:

    mode String

    The mode for the validation settings. Valid values: OFF, STRICT.

    The following arguments are optional:

    mode string

    The mode for the validation settings. Valid values: OFF, STRICT.

    The following arguments are optional:

    mode str

    The mode for the validation settings. Valid values: OFF, STRICT.

    The following arguments are optional:

    mode String

    The mode for the validation settings. Valid values: OFF, STRICT.

    The following arguments are optional:

    Import

    Using pulumi import, import Verified Permissions Policy Store using the policy_store_id. For example:

    console

    % pulumi import aws_verifiedpermissions_policy_store.example DxQg2j8xvXJQ1tQCYNWj9T

    To learn more about importing existing cloud resources, see Importing resources.

    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

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.36.0 published on Wednesday, May 15, 2024 by Pulumi