Class: AWSCDK::CodeBuild::BitBucketSourceCredentialsProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CodeBuild::BitBucketSourceCredentialsProps
- Defined in:
- code_build/bit_bucket_source_credentials_props.rb
Overview
Construction properties of BitBucketSourceCredentials.
Instance Attribute Summary collapse
-
#password ⇒ AWSCDK::SecretValue
readonly
Your BitBucket application password.
-
#username ⇒ AWSCDK::SecretValue
readonly
Your BitBucket username.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(password:, username:) ⇒ BitBucketSourceCredentialsProps
constructor
A new instance of BitBucketSourceCredentialsProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(password:, username:) ⇒ BitBucketSourceCredentialsProps
Returns a new instance of BitBucketSourceCredentialsProps.
9 10 11 12 13 14 |
# File 'code_build/bit_bucket_source_credentials_props.rb', line 9 def initialize(password:, username:) @password = password Jsii::Type.check_type(@password, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5TZWNyZXRWYWx1ZSJ9")), "password") @username = username Jsii::Type.check_type(@username, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5TZWNyZXRWYWx1ZSJ9")), "username") end |
Instance Attribute Details
#password ⇒ AWSCDK::SecretValue (readonly)
Your BitBucket application password.
19 20 21 |
# File 'code_build/bit_bucket_source_credentials_props.rb', line 19 def password @password end |
#username ⇒ AWSCDK::SecretValue (readonly)
Your BitBucket username.
23 24 25 |
# File 'code_build/bit_bucket_source_credentials_props.rb', line 23 def username @username end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'code_build/bit_bucket_source_credentials_props.rb', line 25 def self.jsii_properties { :password => "password", :username => "username", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'code_build/bit_bucket_source_credentials_props.rb', line 32 def to_jsii result = {} result.merge!({ "password" => @password, "username" => @username, }) result.compact end |