Class: AWSCDK::Verifiedpermissions::CfnPolicyTemplateProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Verifiedpermissions::CfnPolicyTemplateProps
- Defined in:
- verifiedpermissions/cfn_policy_template_props.rb
Overview
Properties for defining a CfnPolicyTemplate.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
The description to attach to the new or updated policy template.
- #name ⇒ String? readonly
-
#policy_store_id ⇒ String
readonly
The unique identifier of the policy store that contains the template.
-
#statement ⇒ String
readonly
Specifies the content that you want to use for the new policy template, written in the Cedar policy language.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(policy_store_id:, statement:, description: nil, name: nil) ⇒ CfnPolicyTemplateProps
constructor
A new instance of CfnPolicyTemplateProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(policy_store_id:, statement:, description: nil, name: nil) ⇒ CfnPolicyTemplateProps
Returns a new instance of CfnPolicyTemplateProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'verifiedpermissions/cfn_policy_template_props.rb', line 13 def initialize(policy_store_id:, statement:, description: nil, name: nil) @policy_store_id = policy_store_id Jsii::Type.check_type(@policy_store_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "policyStoreId") @statement = statement Jsii::Type.check_type(@statement, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "statement") @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? end |
Instance Attribute Details
#description ⇒ String? (readonly)
The description to attach to the new or updated policy template.
38 39 40 |
# File 'verifiedpermissions/cfn_policy_template_props.rb', line 38 def description @description end |
#name ⇒ String? (readonly)
41 42 43 |
# File 'verifiedpermissions/cfn_policy_template_props.rb', line 41 def name @name end |
#policy_store_id ⇒ String (readonly)
The unique identifier of the policy store that contains the template.
28 29 30 |
# File 'verifiedpermissions/cfn_policy_template_props.rb', line 28 def policy_store_id @policy_store_id end |
#statement ⇒ String (readonly)
Specifies the content that you want to use for the new policy template, written in the Cedar policy language.
33 34 35 |
# File 'verifiedpermissions/cfn_policy_template_props.rb', line 33 def statement @statement end |
Class Method Details
.jsii_properties ⇒ Object
43 44 45 46 47 48 49 50 |
# File 'verifiedpermissions/cfn_policy_template_props.rb', line 43 def self.jsii_properties { :policy_store_id => "policyStoreId", :statement => "statement", :description => "description", :name => "name", } end |
Instance Method Details
#to_jsii ⇒ Object
52 53 54 55 56 57 58 59 60 61 |
# File 'verifiedpermissions/cfn_policy_template_props.rb', line 52 def to_jsii result = {} result.merge!({ "policyStoreId" => @policy_store_id, "statement" => @statement, "description" => @description, "name" => @name, }) result.compact end |