Struct aws_sdk_s3control::model::AccessPoint
source · #[non_exhaustive]pub struct AccessPoint { /* private fields */ }
Expand description
An access point used to access a bucket.
Implementations§
source§impl AccessPoint
impl AccessPoint
sourcepub fn network_origin(&self) -> Option<&NetworkOrigin>
pub fn network_origin(&self) -> Option<&NetworkOrigin>
Indicates whether this access point allows access from the public internet. If VpcConfiguration
is specified for this access point, then NetworkOrigin
is VPC
, and the access point doesn't allow access from the public internet. Otherwise, NetworkOrigin
is Internet
, and the access point allows access from the public internet, subject to the access point and bucket access policies.
sourcepub fn vpc_configuration(&self) -> Option<&VpcConfiguration>
pub fn vpc_configuration(&self) -> Option<&VpcConfiguration>
The virtual private cloud (VPC) configuration for this access point, if one exists.
This element is empty if this access point is an Amazon S3 on Outposts access point that is used by other Amazon Web Services.
sourcepub fn access_point_arn(&self) -> Option<&str>
pub fn access_point_arn(&self) -> Option<&str>
The ARN for the access point.
source§impl AccessPoint
impl AccessPoint
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture AccessPoint
.
Examples found in repository?
src/xml_deser.rs (line 3873)
3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956
pub fn deser_structure_crate_model_access_point(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AccessPoint, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AccessPoint::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Name") /* Name com.amazonaws.s3control#AccessPoint$Name */ => {
let var_167 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_name(var_167);
}
,
s if s.matches("NetworkOrigin") /* NetworkOrigin com.amazonaws.s3control#AccessPoint$NetworkOrigin */ => {
let var_168 =
Some(
Result::<crate::model::NetworkOrigin, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::NetworkOrigin::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_network_origin(var_168);
}
,
s if s.matches("VpcConfiguration") /* VpcConfiguration com.amazonaws.s3control#AccessPoint$VpcConfiguration */ => {
let var_169 =
Some(
crate::xml_deser::deser_structure_crate_model_vpc_configuration(&mut tag)
?
)
;
builder = builder.set_vpc_configuration(var_169);
}
,
s if s.matches("Bucket") /* Bucket com.amazonaws.s3control#AccessPoint$Bucket */ => {
let var_170 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_bucket(var_170);
}
,
s if s.matches("AccessPointArn") /* AccessPointArn com.amazonaws.s3control#AccessPoint$AccessPointArn */ => {
let var_171 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_access_point_arn(var_171);
}
,
s if s.matches("Alias") /* Alias com.amazonaws.s3control#AccessPoint$Alias */ => {
let var_172 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_alias(var_172);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for AccessPoint
impl Clone for AccessPoint
source§fn clone(&self) -> AccessPoint
fn clone(&self) -> AccessPoint
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more