Class: AWSCDK::DevOpsAgent::CfnService::BearerTokenDetailsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
dev_ops_agent/cfn_service.rb

Overview

Bearer token authentication details.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(token_name:, token_value:, authorization_header: nil) ⇒ BearerTokenDetailsProperty

Returns a new instance of BearerTokenDetailsProperty.

Parameters:

  • token_name (String)

    User friendly bearer token name.

  • token_value (String)

    Bearer token value.

  • authorization_header (String, nil) (defaults to: nil)

    HTTP header name to send the bearer token.



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 = authorization_header
  Jsii::Type.check_type(@authorization_header, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "authorizationHeader") unless @authorization_header.nil?
end

Instance Attribute Details

#authorization_headerString? (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
  @authorization_header
end

#token_nameString (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_valueString (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_propertiesObject



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_jsiiObject



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