Class: AWSCDK::Codepipeline::CfnPipeline::ArtifactStoreMapProperty

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

Overview

A mapping of artifactStore objects and their corresponding AWS Regions.

There must be an artifact store for the pipeline Region and for each cross-region action in the pipeline.

You must include either artifact_store or artifact_stores in your pipeline, but you cannot use both. If you create a cross-region action in your pipeline, you must use artifact_stores .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(artifact_store:, region:) ⇒ ArtifactStoreMapProperty

Returns a new instance of ArtifactStoreMapProperty.

Parameters:



939
940
941
942
943
944
# File 'codepipeline/cfn_pipeline.rb', line 939

def initialize(artifact_store:, region:)
  @artifact_store = artifact_store.is_a?(Hash) ? ::AWSCDK::Codepipeline::CfnPipeline::ArtifactStoreProperty.new(**artifact_store.transform_keys(&:to_sym)) : artifact_store
  Jsii::Type.check_type(@artifact_store, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb2RlcGlwZWxpbmUuQ2ZuUGlwZWxpbmUuQXJ0aWZhY3RTdG9yZVByb3BlcnR5In1dfX0=")), "artifactStore")
  @region = region
  Jsii::Type.check_type(@region, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "region")
end

Instance Attribute Details

#artifact_storeAWSCDK::IResolvable, AWSCDK::Codepipeline::CfnPipeline::ArtifactStoreProperty (readonly)

Represents information about the S3 bucket where artifacts are stored for the pipeline.

You must include either artifact_store or artifact_stores in your pipeline, but you cannot use both. If you create a cross-region action in your pipeline, you must use artifact_stores .



952
953
954
# File 'codepipeline/cfn_pipeline.rb', line 952

def artifact_store
  @artifact_store
end

#regionString (readonly)

The action declaration's AWS Region, such as us-east-1.



957
958
959
# File 'codepipeline/cfn_pipeline.rb', line 957

def region
  @region
end

Class Method Details

.jsii_propertiesObject



959
960
961
962
963
964
# File 'codepipeline/cfn_pipeline.rb', line 959

def self.jsii_properties
  {
    :artifact_store => "artifactStore",
    :region => "region",
  }
end

Instance Method Details

#to_jsiiObject



966
967
968
969
970
971
972
973
# File 'codepipeline/cfn_pipeline.rb', line 966

def to_jsii
  result = {}
  result.merge!({
    "artifactStore" => @artifact_store,
    "region" => @region,
  })
  result.compact
end