Class: AWSCDK::CodeDeploy::CfnDeploymentGroup::RevisionLocationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CodeDeploy::CfnDeploymentGroup::RevisionLocationProperty
- Defined in:
- code_deploy/cfn_deployment_group.rb
Overview
RevisionLocation is a property that defines the location of the CodeDeploy application revision to deploy.
Instance Attribute Summary collapse
-
#git_hub_location ⇒ AWSCDK::IResolvable, ...
readonly
Information about the location of application artifacts stored in GitHub.
-
#revision_type ⇒ String?
readonly
The type of application revision:.
-
#s3_location ⇒ AWSCDK::IResolvable, ...
readonly
Information about the location of a revision stored in Amazon S3.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(git_hub_location: nil, revision_type: nil, s3_location: nil) ⇒ RevisionLocationProperty
constructor
A new instance of RevisionLocationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(git_hub_location: nil, revision_type: nil, s3_location: nil) ⇒ RevisionLocationProperty
Returns a new instance of RevisionLocationProperty.
1627 1628 1629 1630 1631 1632 1633 1634 |
# File 'code_deploy/cfn_deployment_group.rb', line 1627 def initialize(git_hub_location: nil, revision_type: nil, s3_location: nil) @git_hub_location = git_hub_location.is_a?(Hash) ? ::AWSCDK::CodeDeploy::CfnDeploymentGroup::GitHubLocationProperty.new(**git_hub_location.transform_keys(&:to_sym)) : git_hub_location Jsii::Type.check_type(@git_hub_location, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb2RlZGVwbG95LkNmbkRlcGxveW1lbnRHcm91cC5HaXRIdWJMb2NhdGlvblByb3BlcnR5In1dfX0=")), "gitHubLocation") unless @git_hub_location.nil? @revision_type = revision_type Jsii::Type.check_type(@revision_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "revisionType") unless @revision_type.nil? @s3_location = s3_location.is_a?(Hash) ? ::AWSCDK::CodeDeploy::CfnDeploymentGroup::S3LocationProperty.new(**s3_location.transform_keys(&:to_sym)) : s3_location Jsii::Type.check_type(@s3_location, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb2RlZGVwbG95LkNmbkRlcGxveW1lbnRHcm91cC5TM0xvY2F0aW9uUHJvcGVydHkifV19fQ==")), "s3Location") unless @s3_location.nil? end |
Instance Attribute Details
#git_hub_location ⇒ AWSCDK::IResolvable, ... (readonly)
Information about the location of application artifacts stored in GitHub.
1640 1641 1642 |
# File 'code_deploy/cfn_deployment_group.rb', line 1640 def git_hub_location @git_hub_location end |
#revision_type ⇒ String? (readonly)
The type of application revision:.
- S3: An application revision stored in Amazon S3.
- GitHub: An application revision stored in GitHub (EC2/On-premises deployments only).
- String: A YAML-formatted or JSON-formatted string ( AWS Lambda deployments only).
- AppSpecContent: An
AppSpecContentobject that contains the contents of an AppSpec file for an AWS Lambda or Amazon ECS deployment. The content is formatted as JSON or YAML stored as a RawString.
1650 1651 1652 |
# File 'code_deploy/cfn_deployment_group.rb', line 1650 def revision_type @revision_type end |
#s3_location ⇒ AWSCDK::IResolvable, ... (readonly)
Information about the location of a revision stored in Amazon S3.
1655 1656 1657 |
# File 'code_deploy/cfn_deployment_group.rb', line 1655 def s3_location @s3_location end |
Class Method Details
.jsii_properties ⇒ Object
1657 1658 1659 1660 1661 1662 1663 |
# File 'code_deploy/cfn_deployment_group.rb', line 1657 def self.jsii_properties { :git_hub_location => "gitHubLocation", :revision_type => "revisionType", :s3_location => "s3Location", } end |
Instance Method Details
#to_jsii ⇒ Object
1665 1666 1667 1668 1669 1670 1671 1672 1673 |
# File 'code_deploy/cfn_deployment_group.rb', line 1665 def to_jsii result = {} result.merge!({ "gitHubLocation" => @git_hub_location, "revisionType" => @revision_type, "s3Location" => @s3_location, }) result.compact end |