Class: AWSCDK::Verifiedpermissions::CfnPolicyTemplateProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
verifiedpermissions/cfn_policy_template_props.rb

Overview

Properties for defining a CfnPolicyTemplate.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(policy_store_id:, statement:, description: nil, name: nil) ⇒ CfnPolicyTemplateProps

Returns a new instance of CfnPolicyTemplateProps.

Parameters:

  • policy_store_id (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, nil) (defaults to: nil)

    The description to attach to the new or updated policy template.

  • name (String, nil) (defaults to: nil)


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

#descriptionString? (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

#nameString? (readonly)



41
42
43
# File 'verifiedpermissions/cfn_policy_template_props.rb', line 41

def name
  @name
end

#policy_store_idString (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

#statementString (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_propertiesObject



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_jsiiObject



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