Class: AWSCDK::ECR::CfnPublicRepository::RepositoryCatalogDataProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ecr/cfn_public_repository.rb

Overview

The details about the repository that are publicly visible in the Amazon ECR Public Gallery.

For more information, see Amazon ECR Public repository catalog data in the Amazon ECR Public User Guide .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(about_text: nil, architectures: nil, operating_systems: nil, repository_description: nil, usage_text: nil) ⇒ RepositoryCatalogDataProperty

Returns a new instance of RepositoryCatalogDataProperty.

Parameters:

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

    The longform description of the contents of the repository.

  • architectures (Array<String>, nil) (defaults to: nil)

    The architecture tags that are associated with the repository.

  • operating_systems (Array<String>, nil) (defaults to: nil)

    The operating system tags that are associated with the repository.

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

    The short description of the repository.

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

    The longform usage details of the contents of the repository.



592
593
594
595
596
597
598
599
600
601
602
603
# File 'ecr/cfn_public_repository.rb', line 592

def initialize(about_text: nil, architectures: nil, operating_systems: nil, repository_description: nil, usage_text: nil)
  @about_text = about_text
  Jsii::Type.check_type(@about_text, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "aboutText") unless @about_text.nil?
  @architectures = architectures
  Jsii::Type.check_type(@architectures, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "architectures") unless @architectures.nil?
  @operating_systems = operating_systems
  Jsii::Type.check_type(@operating_systems, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "operatingSystems") unless @operating_systems.nil?
  @repository_description = repository_description
  Jsii::Type.check_type(@repository_description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "repositoryDescription") unless @repository_description.nil?
  @usage_text = usage_text
  Jsii::Type.check_type(@usage_text, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "usageText") unless @usage_text.nil?
end

Instance Attribute Details

#about_textString? (readonly)

The longform description of the contents of the repository.

This text appears in the repository details on the Amazon ECR Public Gallery.



611
612
613
# File 'ecr/cfn_public_repository.rb', line 611

def about_text
  @about_text
end

#architecturesArray<String>? (readonly)

The architecture tags that are associated with the repository.



616
617
618
# File 'ecr/cfn_public_repository.rb', line 616

def architectures
  @architectures
end

#operating_systemsArray<String>? (readonly)

The operating system tags that are associated with the repository.



621
622
623
# File 'ecr/cfn_public_repository.rb', line 621

def operating_systems
  @operating_systems
end

#repository_descriptionString? (readonly)

The short description of the repository.



626
627
628
# File 'ecr/cfn_public_repository.rb', line 626

def repository_description
  @repository_description
end

#usage_textString? (readonly)

The longform usage details of the contents of the repository.

The usage text provides context for users of the repository.



633
634
635
# File 'ecr/cfn_public_repository.rb', line 633

def usage_text
  @usage_text
end

Class Method Details

.jsii_propertiesObject



635
636
637
638
639
640
641
642
643
# File 'ecr/cfn_public_repository.rb', line 635

def self.jsii_properties
  {
    :about_text => "aboutText",
    :architectures => "architectures",
    :operating_systems => "operatingSystems",
    :repository_description => "repositoryDescription",
    :usage_text => "usageText",
  }
end

Instance Method Details

#to_jsiiObject



645
646
647
648
649
650
651
652
653
654
655
# File 'ecr/cfn_public_repository.rb', line 645

def to_jsii
  result = {}
  result.merge!({
    "aboutText" => @about_text,
    "architectures" => @architectures,
    "operatingSystems" => @operating_systems,
    "repositoryDescription" => @repository_description,
    "usageText" => @usage_text,
  })
  result.compact
end