Struct aws_sdk_s3control::operation::get_access_point_policy::builders::GetAccessPointPolicyInputBuilder
source · #[non_exhaustive]pub struct GetAccessPointPolicyInputBuilder { /* private fields */ }
Expand description
A builder for GetAccessPointPolicyInput
.
Implementations§
source§impl GetAccessPointPolicyInputBuilder
impl GetAccessPointPolicyInputBuilder
sourcepub fn account_id(self, input: impl Into<String>) -> Self
pub fn account_id(self, input: impl Into<String>) -> Self
The account ID for the account that owns the specified access point.
This field is required.sourcepub fn set_account_id(self, input: Option<String>) -> Self
pub fn set_account_id(self, input: Option<String>) -> Self
The account ID for the account that owns the specified access point.
sourcepub fn get_account_id(&self) -> &Option<String>
pub fn get_account_id(&self) -> &Option<String>
The account ID for the account that owns the specified access point.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the access point whose policy you want to retrieve.
For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.
For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the access point accessed in the format arn:aws:s3-outposts:
. For example, to access the access point reports-ap
through Outpost my-outpost
owned by account 123456789012
in Region us-west-2
, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/accesspoint/reports-ap
. The value must be URL encoded.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the access point whose policy you want to retrieve.
For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.
For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the access point accessed in the format arn:aws:s3-outposts:
. For example, to access the access point reports-ap
through Outpost my-outpost
owned by account 123456789012
in Region us-west-2
, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/accesspoint/reports-ap
. The value must be URL encoded.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The name of the access point whose policy you want to retrieve.
For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.
For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the access point accessed in the format arn:aws:s3-outposts:
. For example, to access the access point reports-ap
through Outpost my-outpost
owned by account 123456789012
in Region us-west-2
, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/accesspoint/reports-ap
. The value must be URL encoded.
sourcepub fn build(self) -> Result<GetAccessPointPolicyInput, BuildError>
pub fn build(self) -> Result<GetAccessPointPolicyInput, BuildError>
Consumes the builder and constructs a GetAccessPointPolicyInput
.
source§impl GetAccessPointPolicyInputBuilder
impl GetAccessPointPolicyInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<GetAccessPointPolicyOutput, SdkError<GetAccessPointPolicyError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<GetAccessPointPolicyOutput, SdkError<GetAccessPointPolicyError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for GetAccessPointPolicyInputBuilder
impl Clone for GetAccessPointPolicyInputBuilder
source§fn clone(&self) -> GetAccessPointPolicyInputBuilder
fn clone(&self) -> GetAccessPointPolicyInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for GetAccessPointPolicyInputBuilder
impl Default for GetAccessPointPolicyInputBuilder
source§fn default() -> GetAccessPointPolicyInputBuilder
fn default() -> GetAccessPointPolicyInputBuilder
source§impl PartialEq for GetAccessPointPolicyInputBuilder
impl PartialEq for GetAccessPointPolicyInputBuilder
source§fn eq(&self, other: &GetAccessPointPolicyInputBuilder) -> bool
fn eq(&self, other: &GetAccessPointPolicyInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.