Class: AWSCDK::S3Express::CfnAccessPoint::VPCConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
s3_express/cfn_access_point.rb

Overview

The Virtual Private Cloud (VPC) configuration for a bucket access point.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(vpc_id: nil) ⇒ VPCConfigurationProperty

Returns a new instance of VPCConfigurationProperty.

Parameters:

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

    If this field is specified, this access point will only allow connections from the specified VPC ID.



775
776
777
778
# File 's3_express/cfn_access_point.rb', line 775

def initialize(vpc_id: nil)
  @vpc_id = vpc_id
  Jsii::Type.check_type(@vpc_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "vpcId") unless @vpc_id.nil?
end

Instance Attribute Details

#vpc_idString? (readonly)

If this field is specified, this access point will only allow connections from the specified VPC ID.



784
785
786
# File 's3_express/cfn_access_point.rb', line 784

def vpc_id
  @vpc_id
end

Class Method Details

.jsii_propertiesObject



786
787
788
789
790
# File 's3_express/cfn_access_point.rb', line 786

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

Instance Method Details

#to_jsiiObject



792
793
794
795
796
797
798
# File 's3_express/cfn_access_point.rb', line 792

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