Module: AWSCDK::IPolicyValidationContext

Defined in:
i_policy_validation_context.rb

Overview

Context available to the validation plugin.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.jsii_overridable_methodsObject



40
41
42
43
44
45
46
47
# File 'i_policy_validation_context.rb', line 40

def self.jsii_overridable_methods
  {
    :app_construct => { kind: :property, name: "appConstruct", is_optional: false },
    :template_paths => { kind: :property, name: "templatePaths", is_optional: false },
    :account_id => { kind: :property, name: "accountId", is_optional: true },
    :region => { kind: :property, name: "region", is_optional: true },
  }
end

Instance Method Details

#account_idString?

The account ID for these templates, if known.

Returns:

  • (String, nil)


29
30
31
# File 'i_policy_validation_context.rb', line 29

def ()
  jsii_get_property("accountId")
end

#app_constructConstructs::IConstruct

The root construct of the app being validated.

Plugins may walk this tree for typed L1 property access and token resolution via Stack.of(node).resolve(). The tree is finalized and should be treated as read-only; mutations have no effect on synthesized output.

Returns:

  • (Constructs::IConstruct)


15
16
17
# File 'i_policy_validation_context.rb', line 15

def app_construct()
  jsii_get_property("appConstruct")
end

#regionString?

The region for these templates, if known.

Returns:

  • (String, nil)


36
37
38
# File 'i_policy_validation_context.rb', line 36

def region()
  jsii_get_property("region")
end

#template_pathsArray<String>

The absolute path of all templates to be processed.

Returns:

  • (Array<String>)


22
23
24
# File 'i_policy_validation_context.rb', line 22

def template_paths()
  jsii_get_property("templatePaths")
end