Class: AWSCDK::Amplify::CfnApp::CacheConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Amplify::CfnApp::CacheConfigProperty
- Defined in:
- amplify/cfn_app.rb
Overview
Describes the cache configuration for an Amplify app.
For more information about how Amplify applies an optimal cache configuration for your app based on the type of content that is being served, see Managing cache configuration in the Amplify User guide .
Instance Attribute Summary collapse
-
#type ⇒ String?
readonly
The type of cache configuration to use for an Amplify app.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type: nil) ⇒ CacheConfigProperty
constructor
A new instance of CacheConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(type: nil) ⇒ CacheConfigProperty
Returns a new instance of CacheConfigProperty.
972 973 974 975 |
# File 'amplify/cfn_app.rb', line 972 def initialize(type: nil) @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") unless @type.nil? end |
Instance Attribute Details
#type ⇒ String? (readonly)
The type of cache configuration to use for an Amplify app.
The AMPLIFY_MANAGED cache configuration automatically applies an optimized cache configuration for your app based on its platform, routing rules, and rewrite rules.
The AMPLIFY_MANAGED_NO_COOKIES cache configuration type is the same as AMPLIFY_MANAGED , except that it excludes all cookies from the cache key. This is the default setting.
985 986 987 |
# File 'amplify/cfn_app.rb', line 985 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
987 988 989 990 991 |
# File 'amplify/cfn_app.rb', line 987 def self.jsii_properties { :type => "type", } end |
Instance Method Details
#to_jsii ⇒ Object
993 994 995 996 997 998 999 |
# File 'amplify/cfn_app.rb', line 993 def to_jsii result = {} result.merge!({ "type" => @type, }) result.compact end |