Class: AWSCDK::Verifiedpermissions::CfnPolicyProps

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

Overview

Properties for defining a CfnPolicy.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(definition:, policy_store_id:, name: nil) ⇒ CfnPolicyProps

Returns a new instance of CfnPolicyProps.

Parameters:



12
13
14
15
16
17
18
19
# File 'verifiedpermissions/cfn_policy_props.rb', line 12

def initialize(definition:, policy_store_id:, name: nil)
  @definition = definition.is_a?(Hash) ? ::AWSCDK::Verifiedpermissions::CfnPolicy::PolicyDefinitionProperty.new(**definition.transform_keys(&:to_sym)) : definition
  Jsii::Type.check_type(@definition, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c192ZXJpZmllZHBlcm1pc3Npb25zLkNmblBvbGljeS5Qb2xpY3lEZWZpbml0aW9uUHJvcGVydHkifV19fQ==")), "definition")
  @policy_store_id = policy_store_id
  Jsii::Type.check_type(@policy_store_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "policyStoreId")
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil?
end

Instance Attribute Details

#definitionAWSCDK::IResolvable, AWSCDK::Verifiedpermissions::CfnPolicy::PolicyDefinitionProperty (readonly)

Specifies the policy type and content to use for the new or updated policy.

The definition structure must include either a Static or a TemplateLinked element.



27
28
29
# File 'verifiedpermissions/cfn_policy_props.rb', line 27

def definition
  @definition
end

#nameString? (readonly)



35
36
37
# File 'verifiedpermissions/cfn_policy_props.rb', line 35

def name
  @name
end

#policy_store_idString (readonly)

Specifies the PolicyStoreId of the policy store you want to store the policy in.



32
33
34
# File 'verifiedpermissions/cfn_policy_props.rb', line 32

def policy_store_id
  @policy_store_id
end

Class Method Details

.jsii_propertiesObject



37
38
39
40
41
42
43
# File 'verifiedpermissions/cfn_policy_props.rb', line 37

def self.jsii_properties
  {
    :definition => "definition",
    :policy_store_id => "policyStoreId",
    :name => "name",
  }
end

Instance Method Details

#to_jsiiObject



45
46
47
48
49
50
51
52
53
# File 'verifiedpermissions/cfn_policy_props.rb', line 45

def to_jsii
  result = {}
  result.merge!({
    "definition" => @definition,
    "policyStoreId" => @policy_store_id,
    "name" => @name,
  })
  result.compact
end