Class: AWSCDK::Interfaces::AWSAppsync::APICacheReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSAppsync::APICacheReference
- Defined in:
- interfaces/aws_appsync/api_cache_reference.rb
Overview
A reference to a ApiCache resource.
Instance Attribute Summary collapse
-
#api_cache_id ⇒ String
readonly
The Id of the ApiCache resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(api_cache_id:) ⇒ APICacheReference
constructor
A new instance of APICacheReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(api_cache_id:) ⇒ APICacheReference
Returns a new instance of APICacheReference.
8 9 10 11 |
# File 'interfaces/aws_appsync/api_cache_reference.rb', line 8 def initialize(api_cache_id:) @api_cache_id = api_cache_id Jsii::Type.check_type(@api_cache_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "apiCacheId") end |
Instance Attribute Details
#api_cache_id ⇒ String (readonly)
The Id of the ApiCache resource.
16 17 18 |
# File 'interfaces/aws_appsync/api_cache_reference.rb', line 16 def api_cache_id @api_cache_id end |
Class Method Details
.jsii_properties ⇒ Object
18 19 20 21 22 |
# File 'interfaces/aws_appsync/api_cache_reference.rb', line 18 def self.jsii_properties { :api_cache_id => "apiCacheId", } end |
Instance Method Details
#to_jsii ⇒ Object
24 25 26 27 28 29 30 |
# File 'interfaces/aws_appsync/api_cache_reference.rb', line 24 def to_jsii result = {} result.merge!({ "apiCacheId" => @api_cache_id, }) result.compact end |