Class: AWSCDK::BackupGateway::CfnHypervisorProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BackupGateway::CfnHypervisorProps
- Defined in:
- backup_gateway/cfn_hypervisor_props.rb
Overview
Properties for defining a CfnHypervisor.
Instance Attribute Summary collapse
-
#host ⇒ String?
readonly
The server host of the hypervisor.
-
#kms_key_arn ⇒ String?
readonly
The Amazon Resource Name (ARN) of the AWS Key Management Service used to encrypt the hypervisor.
-
#log_group_arn ⇒ String?
readonly
The Amazon Resource Name (ARN) of the group of gateways within the requested log.
-
#name ⇒ String?
readonly
The name of the hypervisor.
-
#password ⇒ String?
readonly
The password for the hypervisor.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
The tags of the hypervisor configuration to import.
-
#username ⇒ String?
readonly
The username for the hypervisor.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(host: nil, kms_key_arn: nil, log_group_arn: nil, name: nil, password: nil, tags: nil, username: nil) ⇒ CfnHypervisorProps
constructor
A new instance of CfnHypervisorProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(host: nil, kms_key_arn: nil, log_group_arn: nil, name: nil, password: nil, tags: nil, username: nil) ⇒ CfnHypervisorProps
Returns a new instance of CfnHypervisorProps.
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'backup_gateway/cfn_hypervisor_props.rb', line 16 def initialize(host: nil, kms_key_arn: nil, log_group_arn: nil, name: nil, password: nil, tags: nil, username: nil) @host = host Jsii::Type.check_type(@host, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "host") unless @host.nil? @kms_key_arn = kms_key_arn Jsii::Type.check_type(@kms_key_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "kmsKeyArn") unless @kms_key_arn.nil? @log_group_arn = log_group_arn Jsii::Type.check_type(@log_group_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "logGroupArn") unless @log_group_arn.nil? @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? @password = password Jsii::Type.check_type(@password, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "password") unless @password.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? @username = username Jsii::Type.check_type(@username, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "username") unless @username.nil? end |
Instance Attribute Details
#host ⇒ String? (readonly)
The server host of the hypervisor.
This can be either an IP address or a fully-qualified domain name (FQDN).
39 40 41 |
# File 'backup_gateway/cfn_hypervisor_props.rb', line 39 def host @host end |
#kms_key_arn ⇒ String? (readonly)
The Amazon Resource Name (ARN) of the AWS Key Management Service used to encrypt the hypervisor.
44 45 46 |
# File 'backup_gateway/cfn_hypervisor_props.rb', line 44 def kms_key_arn @kms_key_arn end |
#log_group_arn ⇒ String? (readonly)
The Amazon Resource Name (ARN) of the group of gateways within the requested log.
49 50 51 |
# File 'backup_gateway/cfn_hypervisor_props.rb', line 49 def log_group_arn @log_group_arn end |
#name ⇒ String? (readonly)
The name of the hypervisor.
54 55 56 |
# File 'backup_gateway/cfn_hypervisor_props.rb', line 54 def name @name end |
#password ⇒ String? (readonly)
The password for the hypervisor.
59 60 61 |
# File 'backup_gateway/cfn_hypervisor_props.rb', line 59 def password @password end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
The tags of the hypervisor configuration to import.
64 65 66 |
# File 'backup_gateway/cfn_hypervisor_props.rb', line 64 def @tags end |
#username ⇒ String? (readonly)
The username for the hypervisor.
69 70 71 |
# File 'backup_gateway/cfn_hypervisor_props.rb', line 69 def username @username end |
Class Method Details
.jsii_properties ⇒ Object
71 72 73 74 75 76 77 78 79 80 81 |
# File 'backup_gateway/cfn_hypervisor_props.rb', line 71 def self.jsii_properties { :host => "host", :kms_key_arn => "kmsKeyArn", :log_group_arn => "logGroupArn", :name => "name", :password => "password", :tags => "tags", :username => "username", } end |
Instance Method Details
#to_jsii ⇒ Object
83 84 85 86 87 88 89 90 91 92 93 94 95 |
# File 'backup_gateway/cfn_hypervisor_props.rb', line 83 def to_jsii result = {} result.merge!({ "host" => @host, "kmsKeyArn" => @kms_key_arn, "logGroupArn" => @log_group_arn, "name" => @name, "password" => @password, "tags" => @tags, "username" => @username, }) result.compact end |