Class: AWSCDK::Amplify::CfnBranch::BackendProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
amplify/cfn_branch.rb

Overview

Describes the backend associated with an Amplify Branch .

This property is available to Amplify Gen 2 apps only. When you deploy an application with Amplify Gen 2, you provision the app's backend infrastructure using Typescript code.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(stack_arn: nil) ⇒ BackendProperty

Returns a new instance of BackendProperty.

Parameters:

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

    The Amazon Resource Name (ARN) for the CloudFormation stack.



726
727
728
729
# File 'amplify/cfn_branch.rb', line 726

def initialize(stack_arn: nil)
  @stack_arn = stack_arn
  Jsii::Type.check_type(@stack_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "stackArn") unless @stack_arn.nil?
end

Instance Attribute Details

#stack_arnString? (readonly)

The Amazon Resource Name (ARN) for the CloudFormation stack.



735
736
737
# File 'amplify/cfn_branch.rb', line 735

def stack_arn
  @stack_arn
end

Class Method Details

.jsii_propertiesObject



737
738
739
740
741
# File 'amplify/cfn_branch.rb', line 737

def self.jsii_properties
  {
    :stack_arn => "stackArn",
  }
end

Instance Method Details

#to_jsiiObject



743
744
745
746
747
748
749
# File 'amplify/cfn_branch.rb', line 743

def to_jsii
  result = {}
  result.merge!({
    "stackArn" => @stack_arn,
  })
  result.compact
end