Class: AWSCDK::APIGatewayv2::GrantInvokeOptions
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::APIGatewayv2::GrantInvokeOptions
- Defined in:
- api_gatewayv2/grant_invoke_options.rb
Overview
Options for granting invoke access.
Instance Attribute Summary collapse
-
#http_methods ⇒ Array<AWSCDK::APIGatewayv2::HttpMethod>?
readonly
The HTTP methods to allow.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(http_methods: nil) ⇒ GrantInvokeOptions
constructor
A new instance of GrantInvokeOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(http_methods: nil) ⇒ GrantInvokeOptions
Returns a new instance of GrantInvokeOptions.
8 9 10 11 |
# File 'api_gatewayv2/grant_invoke_options.rb', line 8 def initialize(http_methods: nil) @http_methods = http_methods Jsii::Type.check_type(@http_methods, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcGlnYXRld2F5djIuSHR0cE1ldGhvZCJ9LCJraW5kIjoiYXJyYXkifX0=")), "httpMethods") unless @http_methods.nil? end |
Instance Attribute Details
#http_methods ⇒ Array<AWSCDK::APIGatewayv2::HttpMethod>? (readonly)
Note:
Default: - the HttpMethod of the route
The HTTP methods to allow.
17 18 19 |
# File 'api_gatewayv2/grant_invoke_options.rb', line 17 def http_methods @http_methods end |
Class Method Details
.jsii_properties ⇒ Object
19 20 21 22 23 |
# File 'api_gatewayv2/grant_invoke_options.rb', line 19 def self.jsii_properties { :http_methods => "httpMethods", } end |
Instance Method Details
#to_jsii ⇒ Object
25 26 27 28 29 30 31 |
# File 'api_gatewayv2/grant_invoke_options.rb', line 25 def to_jsii result = {} result.merge!({ "httpMethods" => @http_methods, }) result.compact end |