Class: AWSCDK::S3Outposts::CfnAccessPointProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
s3_outposts/cfn_access_point_props.rb

Overview

Properties for defining a CfnAccessPoint.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bucket:, name:, vpc_configuration:, policy: nil) ⇒ CfnAccessPointProps

Returns a new instance of CfnAccessPointProps.

Parameters:

  • bucket (String)

    The Amazon Resource Name (ARN) of the S3 on Outposts bucket that is associated with this access point.

  • name (String)

    The name of this access point.

  • vpc_configuration (AWSCDK::IResolvable, AWSCDK::S3Outposts::CfnAccessPoint::VPCConfigurationProperty)

    The virtual private cloud (VPC) configuration for this access point, if one exists.

  • policy (Object, nil) (defaults to: nil)

    The access point policy associated with this access point.



13
14
15
16
17
18
19
20
21
22
# File 's3_outposts/cfn_access_point_props.rb', line 13

def initialize(bucket:, name:, vpc_configuration:, policy: nil)
  @bucket = bucket
  Jsii::Type.check_type(@bucket, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bucket")
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @vpc_configuration = vpc_configuration.is_a?(Hash) ? ::AWSCDK::S3Outposts::CfnAccessPoint::VPCConfigurationProperty.new(**vpc_configuration.transform_keys(&:to_sym)) : vpc_configuration
  Jsii::Type.check_type(@vpc_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zM291dHBvc3RzLkNmbkFjY2Vzc1BvaW50LlZwY0NvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "vpcConfiguration")
  @policy = policy
  Jsii::Type.check_type(@policy, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "policy") unless @policy.nil?
end

Instance Attribute Details

#bucketString (readonly)

The Amazon Resource Name (ARN) of the S3 on Outposts bucket that is associated with this access point.



28
29
30
# File 's3_outposts/cfn_access_point_props.rb', line 28

def bucket
  @bucket
end

#nameString (readonly)

The name of this access point.



33
34
35
# File 's3_outposts/cfn_access_point_props.rb', line 33

def name
  @name
end

#policyObject? (readonly)

The access point policy associated with this access point.



43
44
45
# File 's3_outposts/cfn_access_point_props.rb', line 43

def policy
  @policy
end

#vpc_configurationAWSCDK::IResolvable, AWSCDK::S3Outposts::CfnAccessPoint::VPCConfigurationProperty (readonly)

The virtual private cloud (VPC) configuration for this access point, if one exists.



38
39
40
# File 's3_outposts/cfn_access_point_props.rb', line 38

def vpc_configuration
  @vpc_configuration
end

Class Method Details

.jsii_propertiesObject



45
46
47
48
49
50
51
52
# File 's3_outposts/cfn_access_point_props.rb', line 45

def self.jsii_properties
  {
    :bucket => "bucket",
    :name => "name",
    :vpc_configuration => "vpcConfiguration",
    :policy => "policy",
  }
end

Instance Method Details

#to_jsiiObject



54
55
56
57
58
59
60
61
62
63
# File 's3_outposts/cfn_access_point_props.rb', line 54

def to_jsii
  result = {}
  result.merge!({
    "bucket" => @bucket,
    "name" => @name,
    "vpcConfiguration" => @vpc_configuration,
    "policy" => @policy,
  })
  result.compact
end