1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetAccessPointOutput {
/// <p>The name of the specified access point.</p>
pub name: ::std::option::Option<::std::string::String>,
/// <p>The name of the bucket associated with the specified access point.</p>
pub bucket: ::std::option::Option<::std::string::String>,
/// <p>Indicates whether this access point allows access from the public internet. If <code>VpcConfiguration</code> is specified for this access point, then <code>NetworkOrigin</code> is <code>VPC</code>, and the access point doesn't allow access from the public internet. Otherwise, <code>NetworkOrigin</code> is <code>Internet</code>, and the access point allows access from the public internet, subject to the access point and bucket access policies.</p>
/// <p>This will always be true for an Amazon S3 on Outposts access point</p>
pub network_origin: ::std::option::Option<crate::types::NetworkOrigin>,
/// <p>Contains the virtual private cloud (VPC) configuration for the specified access point.</p><note>
/// <p>This element is empty if this access point is an Amazon S3 on Outposts access point that is used by other Amazon Web Services services.</p>
/// </note>
pub vpc_configuration: ::std::option::Option<crate::types::VpcConfiguration>,
/// <p>The <code>PublicAccessBlock</code> configuration that you want to apply to this Amazon S3 account. You can enable the configuration options in any combination. For more information about when Amazon S3 considers a bucket or object public, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html#access-control-block-public-access-policy-status">The Meaning of "Public"</a> in the <i>Amazon S3 User Guide</i>.</p>
/// <p>This data type is not supported for Amazon S3 on Outposts.</p>
pub public_access_block_configuration: ::std::option::Option<crate::types::PublicAccessBlockConfiguration>,
/// <p>The date and time when the specified access point was created.</p>
pub creation_date: ::std::option::Option<::aws_smithy_types::DateTime>,
/// <p>The name or alias of the access point.</p>
pub alias: ::std::option::Option<::std::string::String>,
/// <p>The ARN of the access point.</p>
pub access_point_arn: ::std::option::Option<::std::string::String>,
/// <p>The VPC endpoint for the access point.</p>
pub endpoints: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
/// <p>The Amazon Web Services account ID associated with the S3 bucket associated with this access point.</p>
pub bucket_account_id: ::std::option::Option<::std::string::String>,
/// <p>The unique identifier for the data source of the access point.</p>
pub data_source_id: ::std::option::Option<::std::string::String>,
/// <p>The type of the data source that the access point is attached to.</p>
pub data_source_type: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl GetAccessPointOutput {
/// <p>The name of the specified access point.</p>
pub fn name(&self) -> ::std::option::Option<&str> {
self.name.as_deref()
}
/// <p>The name of the bucket associated with the specified access point.</p>
pub fn bucket(&self) -> ::std::option::Option<&str> {
self.bucket.as_deref()
}
/// <p>Indicates whether this access point allows access from the public internet. If <code>VpcConfiguration</code> is specified for this access point, then <code>NetworkOrigin</code> is <code>VPC</code>, and the access point doesn't allow access from the public internet. Otherwise, <code>NetworkOrigin</code> is <code>Internet</code>, and the access point allows access from the public internet, subject to the access point and bucket access policies.</p>
/// <p>This will always be true for an Amazon S3 on Outposts access point</p>
pub fn network_origin(&self) -> ::std::option::Option<&crate::types::NetworkOrigin> {
self.network_origin.as_ref()
}
/// <p>Contains the virtual private cloud (VPC) configuration for the specified access point.</p><note>
/// <p>This element is empty if this access point is an Amazon S3 on Outposts access point that is used by other Amazon Web Services services.</p>
/// </note>
pub fn vpc_configuration(&self) -> ::std::option::Option<&crate::types::VpcConfiguration> {
self.vpc_configuration.as_ref()
}
/// <p>The <code>PublicAccessBlock</code> configuration that you want to apply to this Amazon S3 account. You can enable the configuration options in any combination. For more information about when Amazon S3 considers a bucket or object public, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html#access-control-block-public-access-policy-status">The Meaning of "Public"</a> in the <i>Amazon S3 User Guide</i>.</p>
/// <p>This data type is not supported for Amazon S3 on Outposts.</p>
pub fn public_access_block_configuration(&self) -> ::std::option::Option<&crate::types::PublicAccessBlockConfiguration> {
self.public_access_block_configuration.as_ref()
}
/// <p>The date and time when the specified access point was created.</p>
pub fn creation_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.creation_date.as_ref()
}
/// <p>The name or alias of the access point.</p>
pub fn alias(&self) -> ::std::option::Option<&str> {
self.alias.as_deref()
}
/// <p>The ARN of the access point.</p>
pub fn access_point_arn(&self) -> ::std::option::Option<&str> {
self.access_point_arn.as_deref()
}
/// <p>The VPC endpoint for the access point.</p>
pub fn endpoints(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
self.endpoints.as_ref()
}
/// <p>The Amazon Web Services account ID associated with the S3 bucket associated with this access point.</p>
pub fn bucket_account_id(&self) -> ::std::option::Option<&str> {
self.bucket_account_id.as_deref()
}
/// <p>The unique identifier for the data source of the access point.</p>
pub fn data_source_id(&self) -> ::std::option::Option<&str> {
self.data_source_id.as_deref()
}
/// <p>The type of the data source that the access point is attached to.</p>
pub fn data_source_type(&self) -> ::std::option::Option<&str> {
self.data_source_type.as_deref()
}
}
impl ::aws_types::request_id::RequestId for GetAccessPointOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetAccessPointOutput {
/// Creates a new builder-style object to manufacture [`GetAccessPointOutput`](crate::operation::get_access_point::GetAccessPointOutput).
pub fn builder() -> crate::operation::get_access_point::builders::GetAccessPointOutputBuilder {
crate::operation::get_access_point::builders::GetAccessPointOutputBuilder::default()
}
}
/// A builder for [`GetAccessPointOutput`](crate::operation::get_access_point::GetAccessPointOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetAccessPointOutputBuilder {
pub(crate) name: ::std::option::Option<::std::string::String>,
pub(crate) bucket: ::std::option::Option<::std::string::String>,
pub(crate) network_origin: ::std::option::Option<crate::types::NetworkOrigin>,
pub(crate) vpc_configuration: ::std::option::Option<crate::types::VpcConfiguration>,
pub(crate) public_access_block_configuration: ::std::option::Option<crate::types::PublicAccessBlockConfiguration>,
pub(crate) creation_date: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) alias: ::std::option::Option<::std::string::String>,
pub(crate) access_point_arn: ::std::option::Option<::std::string::String>,
pub(crate) endpoints: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
pub(crate) bucket_account_id: ::std::option::Option<::std::string::String>,
pub(crate) data_source_id: ::std::option::Option<::std::string::String>,
pub(crate) data_source_type: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl GetAccessPointOutputBuilder {
/// <p>The name of the specified access point.</p>
pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.name = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the specified access point.</p>
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.name = input;
self
}
/// <p>The name of the specified access point.</p>
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
&self.name
}
/// <p>The name of the bucket associated with the specified access point.</p>
pub fn bucket(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.bucket = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the bucket associated with the specified access point.</p>
pub fn set_bucket(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.bucket = input;
self
}
/// <p>The name of the bucket associated with the specified access point.</p>
pub fn get_bucket(&self) -> &::std::option::Option<::std::string::String> {
&self.bucket
}
/// <p>Indicates whether this access point allows access from the public internet. If <code>VpcConfiguration</code> is specified for this access point, then <code>NetworkOrigin</code> is <code>VPC</code>, and the access point doesn't allow access from the public internet. Otherwise, <code>NetworkOrigin</code> is <code>Internet</code>, and the access point allows access from the public internet, subject to the access point and bucket access policies.</p>
/// <p>This will always be true for an Amazon S3 on Outposts access point</p>
pub fn network_origin(mut self, input: crate::types::NetworkOrigin) -> Self {
self.network_origin = ::std::option::Option::Some(input);
self
}
/// <p>Indicates whether this access point allows access from the public internet. If <code>VpcConfiguration</code> is specified for this access point, then <code>NetworkOrigin</code> is <code>VPC</code>, and the access point doesn't allow access from the public internet. Otherwise, <code>NetworkOrigin</code> is <code>Internet</code>, and the access point allows access from the public internet, subject to the access point and bucket access policies.</p>
/// <p>This will always be true for an Amazon S3 on Outposts access point</p>
pub fn set_network_origin(mut self, input: ::std::option::Option<crate::types::NetworkOrigin>) -> Self {
self.network_origin = input;
self
}
/// <p>Indicates whether this access point allows access from the public internet. If <code>VpcConfiguration</code> is specified for this access point, then <code>NetworkOrigin</code> is <code>VPC</code>, and the access point doesn't allow access from the public internet. Otherwise, <code>NetworkOrigin</code> is <code>Internet</code>, and the access point allows access from the public internet, subject to the access point and bucket access policies.</p>
/// <p>This will always be true for an Amazon S3 on Outposts access point</p>
pub fn get_network_origin(&self) -> &::std::option::Option<crate::types::NetworkOrigin> {
&self.network_origin
}
/// <p>Contains the virtual private cloud (VPC) configuration for the specified access point.</p><note>
/// <p>This element is empty if this access point is an Amazon S3 on Outposts access point that is used by other Amazon Web Services services.</p>
/// </note>
pub fn vpc_configuration(mut self, input: crate::types::VpcConfiguration) -> Self {
self.vpc_configuration = ::std::option::Option::Some(input);
self
}
/// <p>Contains the virtual private cloud (VPC) configuration for the specified access point.</p><note>
/// <p>This element is empty if this access point is an Amazon S3 on Outposts access point that is used by other Amazon Web Services services.</p>
/// </note>
pub fn set_vpc_configuration(mut self, input: ::std::option::Option<crate::types::VpcConfiguration>) -> Self {
self.vpc_configuration = input;
self
}
/// <p>Contains the virtual private cloud (VPC) configuration for the specified access point.</p><note>
/// <p>This element is empty if this access point is an Amazon S3 on Outposts access point that is used by other Amazon Web Services services.</p>
/// </note>
pub fn get_vpc_configuration(&self) -> &::std::option::Option<crate::types::VpcConfiguration> {
&self.vpc_configuration
}
/// <p>The <code>PublicAccessBlock</code> configuration that you want to apply to this Amazon S3 account. You can enable the configuration options in any combination. For more information about when Amazon S3 considers a bucket or object public, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html#access-control-block-public-access-policy-status">The Meaning of "Public"</a> in the <i>Amazon S3 User Guide</i>.</p>
/// <p>This data type is not supported for Amazon S3 on Outposts.</p>
pub fn public_access_block_configuration(mut self, input: crate::types::PublicAccessBlockConfiguration) -> Self {
self.public_access_block_configuration = ::std::option::Option::Some(input);
self
}
/// <p>The <code>PublicAccessBlock</code> configuration that you want to apply to this Amazon S3 account. You can enable the configuration options in any combination. For more information about when Amazon S3 considers a bucket or object public, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html#access-control-block-public-access-policy-status">The Meaning of "Public"</a> in the <i>Amazon S3 User Guide</i>.</p>
/// <p>This data type is not supported for Amazon S3 on Outposts.</p>
pub fn set_public_access_block_configuration(mut self, input: ::std::option::Option<crate::types::PublicAccessBlockConfiguration>) -> Self {
self.public_access_block_configuration = input;
self
}
/// <p>The <code>PublicAccessBlock</code> configuration that you want to apply to this Amazon S3 account. You can enable the configuration options in any combination. For more information about when Amazon S3 considers a bucket or object public, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html#access-control-block-public-access-policy-status">The Meaning of "Public"</a> in the <i>Amazon S3 User Guide</i>.</p>
/// <p>This data type is not supported for Amazon S3 on Outposts.</p>
pub fn get_public_access_block_configuration(&self) -> &::std::option::Option<crate::types::PublicAccessBlockConfiguration> {
&self.public_access_block_configuration
}
/// <p>The date and time when the specified access point was created.</p>
pub fn creation_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.creation_date = ::std::option::Option::Some(input);
self
}
/// <p>The date and time when the specified access point was created.</p>
pub fn set_creation_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.creation_date = input;
self
}
/// <p>The date and time when the specified access point was created.</p>
pub fn get_creation_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.creation_date
}
/// <p>The name or alias of the access point.</p>
pub fn alias(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.alias = ::std::option::Option::Some(input.into());
self
}
/// <p>The name or alias of the access point.</p>
pub fn set_alias(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.alias = input;
self
}
/// <p>The name or alias of the access point.</p>
pub fn get_alias(&self) -> &::std::option::Option<::std::string::String> {
&self.alias
}
/// <p>The ARN of the access point.</p>
pub fn access_point_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.access_point_arn = ::std::option::Option::Some(input.into());
self
}
/// <p>The ARN of the access point.</p>
pub fn set_access_point_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.access_point_arn = input;
self
}
/// <p>The ARN of the access point.</p>
pub fn get_access_point_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.access_point_arn
}
/// Adds a key-value pair to `endpoints`.
///
/// To override the contents of this collection use [`set_endpoints`](Self::set_endpoints).
///
/// <p>The VPC endpoint for the access point.</p>
pub fn endpoints(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut hash_map = self.endpoints.unwrap_or_default();
hash_map.insert(k.into(), v.into());
self.endpoints = ::std::option::Option::Some(hash_map);
self
}
/// <p>The VPC endpoint for the access point.</p>
pub fn set_endpoints(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
self.endpoints = input;
self
}
/// <p>The VPC endpoint for the access point.</p>
pub fn get_endpoints(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
&self.endpoints
}
/// <p>The Amazon Web Services account ID associated with the S3 bucket associated with this access point.</p>
pub fn bucket_account_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.bucket_account_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The Amazon Web Services account ID associated with the S3 bucket associated with this access point.</p>
pub fn set_bucket_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.bucket_account_id = input;
self
}
/// <p>The Amazon Web Services account ID associated with the S3 bucket associated with this access point.</p>
pub fn get_bucket_account_id(&self) -> &::std::option::Option<::std::string::String> {
&self.bucket_account_id
}
/// <p>The unique identifier for the data source of the access point.</p>
pub fn data_source_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.data_source_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The unique identifier for the data source of the access point.</p>
pub fn set_data_source_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.data_source_id = input;
self
}
/// <p>The unique identifier for the data source of the access point.</p>
pub fn get_data_source_id(&self) -> &::std::option::Option<::std::string::String> {
&self.data_source_id
}
/// <p>The type of the data source that the access point is attached to.</p>
pub fn data_source_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.data_source_type = ::std::option::Option::Some(input.into());
self
}
/// <p>The type of the data source that the access point is attached to.</p>
pub fn set_data_source_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.data_source_type = input;
self
}
/// <p>The type of the data source that the access point is attached to.</p>
pub fn get_data_source_type(&self) -> &::std::option::Option<::std::string::String> {
&self.data_source_type
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
/// Consumes the builder and constructs a [`GetAccessPointOutput`](crate::operation::get_access_point::GetAccessPointOutput).
pub fn build(self) -> crate::operation::get_access_point::GetAccessPointOutput {
crate::operation::get_access_point::GetAccessPointOutput {
name: self.name,
bucket: self.bucket,
network_origin: self.network_origin,
vpc_configuration: self.vpc_configuration,
public_access_block_configuration: self.public_access_block_configuration,
creation_date: self.creation_date,
alias: self.alias,
access_point_arn: self.access_point_arn,
endpoints: self.endpoints,
bucket_account_id: self.bucket_account_id,
data_source_id: self.data_source_id,
data_source_type: self.data_source_type,
_request_id: self._request_id,
}
}
}