We recommend new projects start with resources from the AWS provider.
aws-native.verifiedpermissions.PolicyTemplate
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
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:
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
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 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.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.