Class: AWSCDK::CloudFront::AllowedMethods
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::CloudFront::AllowedMethods
- Defined in:
- cloud_front/allowed_methods.rb
Overview
The HTTP methods that the Behavior will accept requests on.
Class Method Summary collapse
-
.ALLOW_ALL ⇒ AWSCDK::CloudFront::AllowedMethods
All supported HTTP methods.
-
.ALLOW_GET_HEAD ⇒ AWSCDK::CloudFront::AllowedMethods
HEAD and GET.
-
.ALLOW_GET_HEAD_OPTIONS ⇒ AWSCDK::CloudFront::AllowedMethods
HEAD, GET, and OPTIONS.
- .jsii_overridable_methods ⇒ Object
Instance Method Summary collapse
-
#initialize(*args) ⇒ AllowedMethods
constructor
A new instance of AllowedMethods.
-
#methods ⇒ Array<String>
HTTP methods supported.
Constructor Details
#initialize(*args) ⇒ AllowedMethods
Returns a new instance of AllowedMethods.
8 9 10 |
# File 'cloud_front/allowed_methods.rb', line 8 def initialize(*args) raise NoMethodError, "aws-cdk-lib.aws_cloudfront.AllowedMethods does not have a visible constructor; use the provided factory methods" end |
Class Method Details
.ALLOW_ALL ⇒ AWSCDK::CloudFront::AllowedMethods
All supported HTTP methods.
21 22 23 |
# File 'cloud_front/allowed_methods.rb', line 21 def self.ALLOW_ALL() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_cloudfront.AllowedMethods", "ALLOW_ALL") end |
.ALLOW_GET_HEAD ⇒ AWSCDK::CloudFront::AllowedMethods
HEAD and GET.
28 29 30 |
# File 'cloud_front/allowed_methods.rb', line 28 def self.ALLOW_GET_HEAD() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_cloudfront.AllowedMethods", "ALLOW_GET_HEAD") end |
.ALLOW_GET_HEAD_OPTIONS ⇒ AWSCDK::CloudFront::AllowedMethods
HEAD, GET, and OPTIONS.
35 36 37 |
# File 'cloud_front/allowed_methods.rb', line 35 def self.ALLOW_GET_HEAD_OPTIONS() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_cloudfront.AllowedMethods", "ALLOW_GET_HEAD_OPTIONS") end |
.jsii_overridable_methods ⇒ Object
12 13 14 15 16 |
# File 'cloud_front/allowed_methods.rb', line 12 def self.jsii_overridable_methods { :methods => { kind: :property, name: "methods", is_optional: false }, } end |
Instance Method Details
#methods ⇒ Array<String>
HTTP methods supported.
42 43 44 |
# File 'cloud_front/allowed_methods.rb', line 42 def methods() jsii_get_property("methods") end |