Class: AWSCDK::CloudFront::CachedMethods

Inherits:
Jsii::Object
  • Object
show all
Defined in:
cloud_front/cached_methods.rb

Overview

The HTTP methods that the Behavior will cache requests on.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ CachedMethods

Returns a new instance of CachedMethods.

Raises:

  • (NoMethodError)


8
9
10
# File 'cloud_front/cached_methods.rb', line 8

def initialize(*args)
  raise NoMethodError, "aws-cdk-lib.aws_cloudfront.CachedMethods does not have a visible constructor; use the provided factory methods"
end

Class Method Details

.CACHE_GET_HEADAWSCDK::CloudFront::CachedMethods

HEAD and GET.

Returns:

  • (AWSCDK::CloudFront::CachedMethods)


21
22
23
# File 'cloud_front/cached_methods.rb', line 21

def self.CACHE_GET_HEAD()
  Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_cloudfront.CachedMethods", "CACHE_GET_HEAD")
end

.CACHE_GET_HEAD_OPTIONSAWSCDK::CloudFront::CachedMethods

HEAD, GET, and OPTIONS.

Returns:

  • (AWSCDK::CloudFront::CachedMethods)


28
29
30
# File 'cloud_front/cached_methods.rb', line 28

def self.CACHE_GET_HEAD_OPTIONS()
  Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_cloudfront.CachedMethods", "CACHE_GET_HEAD_OPTIONS")
end

.jsii_overridable_methodsObject



12
13
14
15
16
# File 'cloud_front/cached_methods.rb', line 12

def self.jsii_overridable_methods
  {
    :methods => { kind: :property, name: "methods", is_optional: false },
  }
end

Instance Method Details

#methodsArray<String>

HTTP methods supported.

Returns:

  • (Array<String>)


35
36
37
# File 'cloud_front/cached_methods.rb', line 35

def methods()
  jsii_get_property("methods")
end