Class: AWSCDK::APIGateway::IdentitySource
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::APIGateway::IdentitySource
- Defined in:
- api_gateway/identity_source.rb
Overview
Represents an identity source.
The source can be specified either as a literal value (e.g: Auth) which
cannot be blank, or as an unresolved string token.
Class Method Summary collapse
-
.context(context) ⇒ String
Provides a properly formatted request context identity source.
-
.header(header_name) ⇒ String
Provides a properly formatted header identity source.
- .jsii_overridable_methods ⇒ Object
-
.query_string(query_string) ⇒ String
Provides a properly formatted query string identity source.
-
.stage_variable(stage_variable) ⇒ String
Provides a properly formatted API Gateway stage variable identity source.
Instance Method Summary collapse
-
#initialize ⇒ IdentitySource
constructor
A new instance of IdentitySource.
Constructor Details
#initialize ⇒ IdentitySource
Returns a new instance of IdentitySource.
11 12 13 |
# File 'api_gateway/identity_source.rb', line 11 def initialize Jsii::Object.instance_method(:initialize).bind(self).call end |
Class Method Details
.context(context) ⇒ String
Provides a properly formatted request context identity source.
24 25 26 27 |
# File 'api_gateway/identity_source.rb', line 24 def self.context(context) Jsii::Type.check_type(context, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "context") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_apigateway.IdentitySource", "context", [context]) end |
.header(header_name) ⇒ String
Provides a properly formatted header identity source.
33 34 35 36 |
# File 'api_gateway/identity_source.rb', line 33 def self.header(header_name) Jsii::Type.check_type(header_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "headerName") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_apigateway.IdentitySource", "header", [header_name]) end |
.jsii_overridable_methods ⇒ Object
15 16 17 18 |
# File 'api_gateway/identity_source.rb', line 15 def self.jsii_overridable_methods { } end |
.query_string(query_string) ⇒ String
Provides a properly formatted query string identity source.
42 43 44 45 |
# File 'api_gateway/identity_source.rb', line 42 def self.query_string(query_string) Jsii::Type.check_type(query_string, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "queryString") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_apigateway.IdentitySource", "queryString", [query_string]) end |
.stage_variable(stage_variable) ⇒ String
Provides a properly formatted API Gateway stage variable identity source.
51 52 53 54 |
# File 'api_gateway/identity_source.rb', line 51 def self.stage_variable(stage_variable) Jsii::Type.check_type(stage_variable, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "stageVariable") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_apigateway.IdentitySource", "stageVariable", [stage_variable]) end |