Class: AWSCDK::Bedrock::CfnAgent::S3IdentifierProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock/cfn_agent.rb

Overview

The identifier information for an Amazon S3 bucket.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(s3_bucket_name: nil, s3_object_key: nil) ⇒ S3IdentifierProperty

Returns a new instance of S3IdentifierProperty.

Parameters:

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

    The name of the S3 bucket.

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

    The S3 object key for the S3 resource.



1806
1807
1808
1809
1810
1811
# File 'bedrock/cfn_agent.rb', line 1806

def initialize(s3_bucket_name: nil, s3_object_key: nil)
  @s3_bucket_name = s3_bucket_name
  Jsii::Type.check_type(@s3_bucket_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "s3BucketName") unless @s3_bucket_name.nil?
  @s3_object_key = s3_object_key
  Jsii::Type.check_type(@s3_object_key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "s3ObjectKey") unless @s3_object_key.nil?
end

Instance Attribute Details

#s3_bucket_nameString? (readonly)

The name of the S3 bucket.



1817
1818
1819
# File 'bedrock/cfn_agent.rb', line 1817

def s3_bucket_name
  @s3_bucket_name
end

#s3_object_keyString? (readonly)

The S3 object key for the S3 resource.



1822
1823
1824
# File 'bedrock/cfn_agent.rb', line 1822

def s3_object_key
  @s3_object_key
end

Class Method Details

.jsii_propertiesObject



1824
1825
1826
1827
1828
1829
# File 'bedrock/cfn_agent.rb', line 1824

def self.jsii_properties
  {
    :s3_bucket_name => "s3BucketName",
    :s3_object_key => "s3ObjectKey",
  }
end

Instance Method Details

#to_jsiiObject



1831
1832
1833
1834
1835
1836
1837
1838
# File 'bedrock/cfn_agent.rb', line 1831

def to_jsii
  result = {}
  result.merge!({
    "s3BucketName" => @s3_bucket_name,
    "s3ObjectKey" => @s3_object_key,
  })
  result.compact
end