Class: AWSCDK::S3::CfnAccessPoint::VPCConfigurationProperty

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

Overview

The Virtual Private Cloud (VPC) configuration for this 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, the access point will only allow connections from the specified VPC ID.



736
737
738
739
# File 's3/cfn_access_point.rb', line 736

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, the access point will only allow connections from the specified VPC ID.



745
746
747
# File 's3/cfn_access_point.rb', line 745

def vpc_id
  @vpc_id
end

Class Method Details

.jsii_propertiesObject



747
748
749
750
751
# File 's3/cfn_access_point.rb', line 747

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

Instance Method Details

#to_jsiiObject



753
754
755
756
757
758
759
# File 's3/cfn_access_point.rb', line 753

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