Class: AWSCDK::Codepipeline::CrossRegionSupport

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
codepipeline/cross_region_support.rb

Overview

An interface representing resources generated in order to support the cross-region capabilities of CodePipeline.

You get instances of this interface from the Pipeline#crossRegionSupport property.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(replication_bucket:, stack:) ⇒ CrossRegionSupport

Returns a new instance of CrossRegionSupport.

Parameters:

  • replication_bucket (AWSCDK::S3::IBucket)

    The replication Bucket used by CodePipeline to operate in this region.

  • stack (AWSCDK::Stack)

    The Stack that has been created to house the replication Bucket required for this region.



11
12
13
14
15
16
# File 'codepipeline/cross_region_support.rb', line 11

def initialize(replication_bucket:, stack:)
  @replication_bucket = replication_bucket
  Jsii::Type.check_type(@replication_bucket, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfczMuSUJ1Y2tldCJ9")), "replicationBucket")
  @stack = stack
  Jsii::Type.check_type(@stack, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5TdGFjayJ9")), "stack")
end

Instance Attribute Details

#replication_bucketAWSCDK::S3::IBucket (readonly)

The replication Bucket used by CodePipeline to operate in this region.

Belongs to stack.

Returns:



23
24
25
# File 'codepipeline/cross_region_support.rb', line 23

def replication_bucket
  @replication_bucket
end

#stackAWSCDK::Stack (readonly)

The Stack that has been created to house the replication Bucket required for this region.

Returns:



27
28
29
# File 'codepipeline/cross_region_support.rb', line 27

def stack
  @stack
end

Class Method Details

.jsii_propertiesObject



29
30
31
32
33
34
# File 'codepipeline/cross_region_support.rb', line 29

def self.jsii_properties
  {
    :replication_bucket => "replicationBucket",
    :stack => "stack",
  }
end

Instance Method Details

#to_jsiiObject



36
37
38
39
40
41
42
43
# File 'codepipeline/cross_region_support.rb', line 36

def to_jsii
  result = {}
  result.merge!({
    "replicationBucket" => @replication_bucket,
    "stack" => @stack,
  })
  result.compact
end