Class: AWSCDK::ScopedAWS

Inherits:
Jsii::Object
  • Object
show all
Defined in:
scoped_aws.rb

Overview

Accessor for scoped pseudo parameters.

These pseudo parameters are anchored to a stack somewhere in the construct tree, and their values will be exported automatically.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(scope) ⇒ ScopedAWS

Returns a new instance of ScopedAWS.

Parameters:

  • scope (Constructs::Construct)


12
13
14
15
# File 'scoped_aws.rb', line 12

def initialize(scope)
  Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope")
  Jsii::Object.instance_method(:initialize).bind(self).call(scope)
end

Class Method Details

.jsii_overridable_methodsObject



17
18
19
20
21
22
23
24
25
26
27
# File 'scoped_aws.rb', line 17

def self.jsii_overridable_methods
  {
    :account_id => { kind: :property, name: "accountId", is_optional: false },
    :notification_arns => { kind: :property, name: "notificationArns", is_optional: false },
    :partition => { kind: :property, name: "partition", is_optional: false },
    :region => { kind: :property, name: "region", is_optional: false },
    :stack_id => { kind: :property, name: "stackId", is_optional: false },
    :stack_name => { kind: :property, name: "stackName", is_optional: false },
    :url_suffix => { kind: :property, name: "urlSuffix", is_optional: false },
  }
end

Instance Method Details

#account_idString

Returns:

  • (String)


30
31
32
# File 'scoped_aws.rb', line 30

def ()
  jsii_get_property("accountId")
end

#notification_arnsArray<String>

Returns:

  • (Array<String>)


35
36
37
# File 'scoped_aws.rb', line 35

def notification_arns()
  jsii_get_property("notificationArns")
end

#partitionString

Returns:

  • (String)


40
41
42
# File 'scoped_aws.rb', line 40

def partition()
  jsii_get_property("partition")
end

#regionString

Returns:

  • (String)


45
46
47
# File 'scoped_aws.rb', line 45

def region()
  jsii_get_property("region")
end

#stack_idString

Returns:

  • (String)


50
51
52
# File 'scoped_aws.rb', line 50

def stack_id()
  jsii_get_property("stackId")
end

#stack_nameString

Returns:

  • (String)


55
56
57
# File 'scoped_aws.rb', line 55

def stack_name()
  jsii_get_property("stackName")
end

#url_suffixString

Returns:

  • (String)


60
61
62
# File 'scoped_aws.rb', line 60

def url_suffix()
  jsii_get_property("urlSuffix")
end