Class: AWSCDK::CloudFront::AllowedMethods

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

Overview

The HTTP methods that the Behavior will accept requests on.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ AllowedMethods

Returns a new instance of AllowedMethods.

Raises:

  • (NoMethodError)


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_ALLAWSCDK::CloudFront::AllowedMethods

All supported HTTP methods.

Returns:

  • (AWSCDK::CloudFront::AllowedMethods)


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_HEADAWSCDK::CloudFront::AllowedMethods

HEAD and GET.

Returns:

  • (AWSCDK::CloudFront::AllowedMethods)


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_OPTIONSAWSCDK::CloudFront::AllowedMethods

HEAD, GET, and OPTIONS.

Returns:

  • (AWSCDK::CloudFront::AllowedMethods)


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_methodsObject



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

#methodsArray<String>

HTTP methods supported.

Returns:

  • (Array<String>)


42
43
44
# File 'cloud_front/allowed_methods.rb', line 42

def methods()
  jsii_get_property("methods")
end