1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. verifiedpermissions
  5. PolicyTemplate

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi

aws-native.verifiedpermissions.PolicyTemplate

Explore with Pulumi AI

aws-native logo

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi

    Definition of AWS::VerifiedPermissions::PolicyTemplate Resource Type

    Example Usage

    Example

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AwsNative = Pulumi.AwsNative;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var policyStoreId = config.Require("policyStoreId");
        var description = config.Require("description");
        var statement = config.Require("statement");
        var policyTemplate = new AwsNative.VerifiedPermissions.PolicyTemplate("policyTemplate", new()
        {
            PolicyStoreId = policyStoreId,
            Description = description,
            Statement = statement,
        });
    
        return new Dictionary<string, object?>
        {
            ["policyTemplateId"] = policyTemplate.PolicyTemplateId,
        };
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/verifiedpermissions"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		policyStoreId := cfg.Require("policyStoreId")
    		description := cfg.Require("description")
    		statement := cfg.Require("statement")
    		policyTemplate, err := verifiedpermissions.NewPolicyTemplate(ctx, "policyTemplate", &verifiedpermissions.PolicyTemplateArgs{
    			PolicyStoreId: pulumi.String(policyStoreId),
    			Description:   pulumi.String(description),
    			Statement:     pulumi.String(statement),
    		})
    		if err != nil {
    			return err
    		}
    		ctx.Export("policyTemplateId", policyTemplate.PolicyTemplateId)
    		return nil
    	})
    }
    

    Coming soon!

    import pulumi
    import pulumi_aws_native as aws_native
    
    config = pulumi.Config()
    policy_store_id = config.require("policyStoreId")
    description = config.require("description")
    statement = config.require("statement")
    policy_template = aws_native.verifiedpermissions.PolicyTemplate("policyTemplate",
        policy_store_id=policy_store_id,
        description=description,
        statement=statement)
    pulumi.export("policyTemplateId", policy_template.policy_template_id)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aws_native from "@pulumi/aws-native";
    
    const config = new pulumi.Config();
    const policyStoreId = config.require("policyStoreId");
    const description = config.require("description");
    const statement = config.require("statement");
    const policyTemplate = new aws_native.verifiedpermissions.PolicyTemplate("policyTemplate", {
        policyStoreId: policyStoreId,
        description: description,
        statement: statement,
    });
    export const policyTemplateId = policyTemplate.policyTemplateId;
    

    Coming soon!

    Create PolicyTemplate Resource

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

    Constructor syntax

    new PolicyTemplate(name: string, args: PolicyTemplateArgs, opts?: CustomResourceOptions);
    @overload
    def PolicyTemplate(resource_name: str,
                       args: PolicyTemplateArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def PolicyTemplate(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       policy_store_id: Optional[str] = None,
                       statement: Optional[str] = None,
                       description: Optional[str] = None)
    func NewPolicyTemplate(ctx *Context, name string, args PolicyTemplateArgs, opts ...ResourceOption) (*PolicyTemplate, error)
    public PolicyTemplate(string name, PolicyTemplateArgs args, CustomResourceOptions? opts = null)
    public PolicyTemplate(String name, PolicyTemplateArgs args)
    public PolicyTemplate(String name, PolicyTemplateArgs args, CustomResourceOptions options)
    
    type: aws-native:verifiedpermissions:PolicyTemplate
    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 PolicyTemplateArgs
    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 PolicyTemplateArgs
    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 PolicyTemplateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PolicyTemplateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PolicyTemplateArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    PolicyTemplate Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The PolicyTemplate resource accepts the following input properties:

    PolicyStoreId string
    The unique identifier of the policy store that contains the template.
    Statement string
    Specifies the content that you want to use for the new policy template, written in the Cedar policy language.
    Description string
    The description to attach to the new or updated policy template.
    PolicyStoreId string
    The unique identifier of the policy store that contains the template.
    Statement string
    Specifies the content that you want to use for the new policy template, written in the Cedar policy language.
    Description string
    The description to attach to the new or updated policy template.
    policyStoreId String
    The unique identifier of the policy store that contains the template.
    statement String
    Specifies the content that you want to use for the new policy template, written in the Cedar policy language.
    description String
    The description to attach to the new or updated policy template.
    policyStoreId string
    The unique identifier of the policy store that contains the template.
    statement string
    Specifies the content that you want to use for the new policy template, written in the Cedar policy language.
    description string
    The description to attach to the new or updated policy template.
    policy_store_id str
    The unique identifier of the policy store that contains the template.
    statement str
    Specifies the content that you want to use for the new policy template, written in the Cedar policy language.
    description str
    The description to attach to the new or updated policy template.
    policyStoreId String
    The unique identifier of the policy store that contains the template.
    statement String
    Specifies the content that you want to use for the new policy template, written in the Cedar policy language.
    description String
    The description to attach to the new or updated policy template.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    PolicyTemplateId string
    The unique identifier of the new or modified policy template.
    Id string
    The provider-assigned unique ID for this managed resource.
    PolicyTemplateId string
    The unique identifier of the new or modified policy template.
    id String
    The provider-assigned unique ID for this managed resource.
    policyTemplateId String
    The unique identifier of the new or modified policy template.
    id string
    The provider-assigned unique ID for this managed resource.
    policyTemplateId string
    The unique identifier of the new or modified policy template.
    id str
    The provider-assigned unique ID for this managed resource.
    policy_template_id str
    The unique identifier of the new or modified policy template.
    id String
    The provider-assigned unique ID for this managed resource.
    policyTemplateId String
    The unique identifier of the new or modified policy template.

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    We recommend new projects start with resources from the AWS provider.

    AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi