Class: AWSCDK::Verifiedpermissions::CfnPolicyProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Verifiedpermissions::CfnPolicyProps
- Defined in:
- verifiedpermissions/cfn_policy_props.rb
Overview
Properties for defining a CfnPolicy.
Instance Attribute Summary collapse
-
#definition ⇒ AWSCDK::IResolvable, AWSCDK::Verifiedpermissions::CfnPolicy::PolicyDefinitionProperty
readonly
Specifies the policy type and content to use for the new or updated policy.
- #name ⇒ String? readonly
-
#policy_store_id ⇒ String
readonly
Specifies the
PolicyStoreIdof the policy store you want to store the policy in.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(definition:, policy_store_id:, name: nil) ⇒ CfnPolicyProps
constructor
A new instance of CfnPolicyProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(definition:, policy_store_id:, name: nil) ⇒ CfnPolicyProps
Returns a new instance of CfnPolicyProps.
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
#definition ⇒ AWSCDK::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 |
#name ⇒ String? (readonly)
35 36 37 |
# File 'verifiedpermissions/cfn_policy_props.rb', line 35 def name @name end |
#policy_store_id ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |