Class: AWSCDK::Verifiedpermissions::CfnPolicy::StaticPolicyDefinitionProperty

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

Overview

A structure that defines a static policy.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(statement:, description: nil) ⇒ StaticPolicyDefinitionProperty

Returns a new instance of StaticPolicyDefinitionProperty.

Parameters:

  • statement (String)

    The policy content of the static policy, written in the Cedar policy language.

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

    The description of the static policy.



655
656
657
658
659
660
# File 'verifiedpermissions/cfn_policy.rb', line 655

def initialize(statement:, description: nil)
  @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?
end

Instance Attribute Details

#descriptionString? (readonly)

The description of the static policy.



671
672
673
# File 'verifiedpermissions/cfn_policy.rb', line 671

def description
  @description
end

#statementString (readonly)

The policy content of the static policy, written in the Cedar policy language.



666
667
668
# File 'verifiedpermissions/cfn_policy.rb', line 666

def statement
  @statement
end

Class Method Details

.jsii_propertiesObject



673
674
675
676
677
678
# File 'verifiedpermissions/cfn_policy.rb', line 673

def self.jsii_properties
  {
    :statement => "statement",
    :description => "description",
  }
end

Instance Method Details

#to_jsiiObject



680
681
682
683
684
685
686
687
# File 'verifiedpermissions/cfn_policy.rb', line 680

def to_jsii
  result = {}
  result.merge!({
    "statement" => @statement,
    "description" => @description,
  })
  result.compact
end