We recommend new projects start with resources from the AWS provider.
published on Monday, Nov 2, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
published on Monday, Nov 2, 2026 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
})
}
Example coming soon!
Example coming soon!
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;
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)
Example 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,
name: 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.
resource "aws-native_verifiedpermissions_policy_template" "name" {
# resource properties
}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:
- Policy
Store stringId - 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.
- Name string
- Policy
Store stringId - 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.
- Name string
- policy_
store_ stringid - 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.
- name string
- policy
Store StringId - 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.
- name String
- policy
Store stringId - 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.
- name string
- policy_
store_ strid - 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.
- name str
- policy
Store StringId - 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.
- name String
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.
- Policy
Template stringId - The unique identifier of the new or modified policy template.
- Id string
- The provider-assigned unique ID for this managed resource.
- Policy
Template stringId - The unique identifier of the new or modified policy template.
- id string
- The provider-assigned unique ID for this managed resource.
- policy_
template_ stringid - The unique identifier of the new or modified policy template.
- id String
- The provider-assigned unique ID for this managed resource.
- policy
Template StringId - The unique identifier of the new or modified policy template.
- id string
- The provider-assigned unique ID for this managed resource.
- policy
Template stringId - The unique identifier of the new or modified policy template.
- id str
- The provider-assigned unique ID for this managed resource.
- policy_
template_ strid - The unique identifier of the new or modified policy template.
- id String
- The provider-assigned unique ID for this managed resource.
- policy
Template StringId - The unique identifier of the new or modified policy template.
Look up Existing PolicyTemplate Resource
Get an existing PolicyTemplate 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>, opts?: CustomResourceOptions): PolicyTemplate@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None) -> PolicyTemplatefunc GetPolicyTemplate(ctx *Context, name string, id IDInput, state *PolicyTemplateState, opts ...ResourceOption) (*PolicyTemplate, error)public static PolicyTemplate Get(string name, Input<string> id, CustomResourceOptions? opts = null)public static PolicyTemplate get(String name, Output<String> id, CustomResourceOptions options)resources: existingPolicyTemplate: type: aws-native:verifiedpermissions:PolicyTemplate get: id: ${id}import {
to = aws-native_verifiedpermissions_policy_template.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- 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 resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state PolicyTemplateState
- Pass nil. This resource has no state arguments.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Monday, Nov 2, 2026 by Pulumi