Class: AWSCDK::SAM::CfnHttpAPI::HttpAPIAuthProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SAM::CfnHttpAPI::HttpAPIAuthProperty
- Defined in:
- sam/cfn_http_api.rb
Overview
Instance Attribute Summary collapse
- #authorizers ⇒ Object? readonly
- #default_authorizer ⇒ String? readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(authorizers: nil, default_authorizer: nil) ⇒ HttpAPIAuthProperty
constructor
A new instance of HttpAPIAuthProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(authorizers: nil, default_authorizer: nil) ⇒ HttpAPIAuthProperty
Returns a new instance of HttpAPIAuthProperty.
761 762 763 764 765 766 |
# File 'sam/cfn_http_api.rb', line 761 def initialize(authorizers: nil, default_authorizer: nil) @authorizers = Jsii::Type.check_type(@authorizers, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "authorizers") unless @authorizers.nil? @default_authorizer = Jsii::Type.check_type(@default_authorizer, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "defaultAuthorizer") unless @default_authorizer.nil? end |
Instance Attribute Details
#authorizers ⇒ Object? (readonly)
770 771 772 |
# File 'sam/cfn_http_api.rb', line 770 def @authorizers end |
#default_authorizer ⇒ String? (readonly)
773 774 775 |
# File 'sam/cfn_http_api.rb', line 773 def @default_authorizer end |
Class Method Details
.jsii_properties ⇒ Object
775 776 777 778 779 780 |
# File 'sam/cfn_http_api.rb', line 775 def self.jsii_properties { :authorizers => "authorizers", :default_authorizer => "defaultAuthorizer", } end |
Instance Method Details
#to_jsii ⇒ Object
782 783 784 785 786 787 788 789 |
# File 'sam/cfn_http_api.rb', line 782 def to_jsii result = {} result.merge!({ "authorizers" => @authorizers, "defaultAuthorizer" => @default_authorizer, }) result.compact end |