Class CfnPolicyTemplate
Creates a policy template.
Implements
Inherited Members
Namespace: Amazon.CDK.AwsVerifiedpermissions
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnPolicyTemplate : CfnResource, IInspectable
Syntax (vb)
Public Class CfnPolicyTemplate
Inherits CfnResource
Implements IInspectable
Remarks
A template can use placeholders for the principal and resource. A template must be instantiated into a policy by associating it with specific principals and resources to use for the placeholders. That instantiated policy can then be considered in authorization decisions. The instantiated policy works identically to any other policy, except that it is dynamically linked to the template. If the template changes, then any policies that are linked to that template are immediately updated as well.
CloudformationResource: AWS::VerifiedPermissions::PolicyTemplate
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Aws_verifiedpermissions;
var cfnPolicyTemplate = new CfnPolicyTemplate(this, "MyCfnPolicyTemplate", new CfnPolicyTemplateProps {
PolicyStoreId = "policyStoreId",
Statement = "statement",
// the properties below are optional
Description = "description"
});
Synopsis
Constructors
Cfn |
Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Cfn |
Used by jsii to construct an instance of this class from DeputyProps |
Cfn |
Properties
Attr |
The unique identifier of the new or modified policy template. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
Cfn |
|
Description | The description to attach to the new or updated policy template. |
Policy |
The unique identifier of the policy store that contains the template. |
Statement | Specifies the content that you want to use for the new policy template, written in the Cedar policy language. |
Methods
Inspect(Tree |
Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnPolicyTemplate(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnPolicyTemplate(ByRefValue reference)
Parameters
- reference Amazon.
JSII. Runtime. Deputy. By Ref Value The Javascript-owned object reference
CfnPolicyTemplate(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnPolicyTemplate(DeputyBase.DeputyProps props)
Parameters
- props Amazon.
JSII. Runtime. Deputy. Deputy Base. Deputy Props The deputy props
CfnPolicyTemplate(Construct, String, ICfnPolicyTemplateProps)
public CfnPolicyTemplate(Construct scope, string id, ICfnPolicyTemplateProps props)
Parameters
- scope Constructs.
Construct Scope in which this resource is defined.
- id System.
String Construct identifier for this resource (unique in its scope).
- props ICfn
Policy Template Props Resource properties.
Properties
AttrPolicyTemplateId
The unique identifier of the new or modified policy template.
public virtual string AttrPolicyTemplateId { get; }
Property Value
System.
Remarks
CloudformationAttribute: PolicyTemplateId
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.
Overrides
Description
The description to attach to the new or updated policy template.
public virtual string Description { get; set; }
Property Value
System.
PolicyStoreId
The unique identifier of the policy store that contains the template.
public virtual string PolicyStoreId { get; set; }
Property Value
System.
Statement
Specifies the content that you want to use for the new policy template, written in the Cedar policy language.
public virtual string Statement { get; set; }
Property Value
System.
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector Tree
Inspector tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.
Collections. <System.Generic. IDictionary String , System.Object >
Returns
System.