Class: AWSCDK::CodeDeploy::ServerDeploymentGroupAttributes
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CodeDeploy::ServerDeploymentGroupAttributes
- Defined in:
- code_deploy/server_deployment_group_attributes.rb
Overview
Properties of a reference to a CodeDeploy EC2/on-premise Deployment Group.
Instance Attribute Summary collapse
-
#application ⇒ AWSCDK::Interfaces::AWSCodedeploy::IApplicationRef
readonly
The reference to the CodeDeploy EC2/on-premise Application that this Deployment Group belongs to.
-
#deployment_config ⇒ AWSCDK::Interfaces::AWSCodedeploy::IDeploymentConfigRef?
readonly
The Deployment Configuration this Deployment Group uses.
-
#deployment_group_name ⇒ String
readonly
The physical, human-readable name of the CodeDeploy EC2/on-premise Deployment Group that we are referencing.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(application:, deployment_group_name:, deployment_config: nil) ⇒ ServerDeploymentGroupAttributes
constructor
A new instance of ServerDeploymentGroupAttributes.
- #to_jsii ⇒ Object
Constructor Details
#initialize(application:, deployment_group_name:, deployment_config: nil) ⇒ ServerDeploymentGroupAttributes
Returns a new instance of ServerDeploymentGroupAttributes.
12 13 14 15 16 17 18 19 |
# File 'code_deploy/server_deployment_group_attributes.rb', line 12 def initialize(application:, deployment_group_name:, deployment_config: nil) @application = application Jsii::Type.check_type(@application, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19jb2RlZGVwbG95LklBcHBsaWNhdGlvblJlZiJ9")), "application") @deployment_group_name = deployment_group_name Jsii::Type.check_type(@deployment_group_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "deploymentGroupName") @deployment_config = deployment_config Jsii::Type.check_type(@deployment_config, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19jb2RlZGVwbG95LklEZXBsb3ltZW50Q29uZmlnUmVmIn0=")), "deploymentConfig") unless @deployment_config.nil? end |
Instance Attribute Details
#application ⇒ AWSCDK::Interfaces::AWSCodedeploy::IApplicationRef (readonly)
The reference to the CodeDeploy EC2/on-premise Application that this Deployment Group belongs to.
24 25 26 |
# File 'code_deploy/server_deployment_group_attributes.rb', line 24 def application @application end |
#deployment_config ⇒ AWSCDK::Interfaces::AWSCodedeploy::IDeploymentConfigRef? (readonly)
Note:
Default: ServerDeploymentConfig#OneAtATime
The Deployment Configuration this Deployment Group uses.
33 34 35 |
# File 'code_deploy/server_deployment_group_attributes.rb', line 33 def deployment_config @deployment_config end |
#deployment_group_name ⇒ String (readonly)
The physical, human-readable name of the CodeDeploy EC2/on-premise Deployment Group that we are referencing.
28 29 30 |
# File 'code_deploy/server_deployment_group_attributes.rb', line 28 def deployment_group_name @deployment_group_name end |
Class Method Details
.jsii_properties ⇒ Object
35 36 37 38 39 40 41 |
# File 'code_deploy/server_deployment_group_attributes.rb', line 35 def self.jsii_properties { :application => "application", :deployment_group_name => "deploymentGroupName", :deployment_config => "deploymentConfig", } end |
Instance Method Details
#to_jsii ⇒ Object
43 44 45 46 47 48 49 50 51 |
# File 'code_deploy/server_deployment_group_attributes.rb', line 43 def to_jsii result = {} result.merge!({ "application" => @application, "deploymentGroupName" => @deployment_group_name, "deploymentConfig" => @deployment_config, }) result.compact end |