Class: AWSCDK::DevOpsAgent::CfnService::BearerTokenDetailsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DevOpsAgent::CfnService::BearerTokenDetailsProperty
- Defined in:
- dev_ops_agent/cfn_service.rb
Overview
Bearer token authentication details.
Instance Attribute Summary collapse
-
#authorization_header ⇒ String?
readonly
HTTP header name to send the bearer token.
-
#token_name ⇒ String
readonly
User friendly bearer token name.
-
#token_value ⇒ String
readonly
Bearer token value.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(token_name:, token_value:, authorization_header: nil) ⇒ BearerTokenDetailsProperty
constructor
A new instance of BearerTokenDetailsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(token_name:, token_value:, authorization_header: nil) ⇒ BearerTokenDetailsProperty
Returns a new instance of BearerTokenDetailsProperty.
846 847 848 849 850 851 852 853 |
# File 'dev_ops_agent/cfn_service.rb', line 846 def initialize(token_name:, token_value:, authorization_header: nil) @token_name = token_name Jsii::Type.check_type(@token_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "tokenName") @token_value = token_value Jsii::Type.check_type(@token_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "tokenValue") @authorization_header = Jsii::Type.check_type(@authorization_header, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "authorizationHeader") unless @authorization_header.nil? end |
Instance Attribute Details
#authorization_header ⇒ String? (readonly)
Note:
Default: - "Authorization"
HTTP header name to send the bearer token.
870 871 872 |
# File 'dev_ops_agent/cfn_service.rb', line 870 def @authorization_header end |
#token_name ⇒ String (readonly)
User friendly bearer token name.
859 860 861 |
# File 'dev_ops_agent/cfn_service.rb', line 859 def token_name @token_name end |
#token_value ⇒ String (readonly)
Bearer token value.
864 865 866 |
# File 'dev_ops_agent/cfn_service.rb', line 864 def token_value @token_value end |
Class Method Details
.jsii_properties ⇒ Object
872 873 874 875 876 877 878 |
# File 'dev_ops_agent/cfn_service.rb', line 872 def self.jsii_properties { :token_name => "tokenName", :token_value => "tokenValue", :authorization_header => "authorizationHeader", } end |
Instance Method Details
#to_jsii ⇒ Object
880 881 882 883 884 885 886 887 888 |
# File 'dev_ops_agent/cfn_service.rb', line 880 def to_jsii result = {} result.merge!({ "tokenName" => @token_name, "tokenValue" => @token_value, "authorizationHeader" => @authorization_header, }) result.compact end |