Class: AWSCDK::CodeArtifact::CfnPackageGroup::OriginConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
code_artifact/cfn_package_group.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(restrictions:) ⇒ OriginConfigurationProperty

Returns a new instance of OriginConfigurationProperty.



596
597
598
599
# File 'code_artifact/cfn_package_group.rb', line 596

def initialize(restrictions:)
  @restrictions = restrictions.is_a?(Hash) ? ::AWSCDK::CodeArtifact::CfnPackageGroup::RestrictionsProperty.new(**restrictions.transform_keys(&:to_sym)) : restrictions
  Jsii::Type.check_type(@restrictions, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb2RlYXJ0aWZhY3QuQ2ZuUGFja2FnZUdyb3VwLlJlc3RyaWN0aW9uc1Byb3BlcnR5In1dfX0=")), "restrictions")
end

Class Method Details

.jsii_propertiesObject



605
606
607
608
609
# File 'code_artifact/cfn_package_group.rb', line 605

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

Instance Method Details

#to_jsiiObject



611
612
613
614
615
616
617
# File 'code_artifact/cfn_package_group.rb', line 611

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