Struct aws_sdk_s3control::operation::put_access_point_policy::builders::PutAccessPointPolicyInputBuilder
source · #[non_exhaustive]pub struct PutAccessPointPolicyInputBuilder { /* private fields */ }Expand description
A builder for PutAccessPointPolicyInput.
Implementations§
source§impl PutAccessPointPolicyInputBuilder
impl PutAccessPointPolicyInputBuilder
sourcepub fn account_id(self, input: impl Into<String>) -> Self
pub fn account_id(self, input: impl Into<String>) -> Self
The Amazon Web Services account ID for owner of the bucket associated with 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 Amazon Web Services account ID for owner of the bucket associated with the specified access point.
sourcepub fn get_account_id(&self) -> &Option<String>
pub fn get_account_id(&self) -> &Option<String>
The Amazon Web Services account ID for owner of the bucket associated with 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 that you want to associate with the specified policy.
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 that you want to associate with the specified policy.
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 that you want to associate with the specified policy.
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 policy(self, input: impl Into<String>) -> Self
pub fn policy(self, input: impl Into<String>) -> Self
The policy that you want to apply to the specified access point. For more information about access point policies, see Managing data access with Amazon S3 access points in the Amazon S3 User Guide.
This field is required.sourcepub fn set_policy(self, input: Option<String>) -> Self
pub fn set_policy(self, input: Option<String>) -> Self
The policy that you want to apply to the specified access point. For more information about access point policies, see Managing data access with Amazon S3 access points in the Amazon S3 User Guide.
sourcepub fn get_policy(&self) -> &Option<String>
pub fn get_policy(&self) -> &Option<String>
The policy that you want to apply to the specified access point. For more information about access point policies, see Managing data access with Amazon S3 access points in the Amazon S3 User Guide.
sourcepub fn build(self) -> Result<PutAccessPointPolicyInput, BuildError>
pub fn build(self) -> Result<PutAccessPointPolicyInput, BuildError>
Consumes the builder and constructs a PutAccessPointPolicyInput.
source§impl PutAccessPointPolicyInputBuilder
impl PutAccessPointPolicyInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<PutAccessPointPolicyOutput, SdkError<PutAccessPointPolicyError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<PutAccessPointPolicyOutput, SdkError<PutAccessPointPolicyError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for PutAccessPointPolicyInputBuilder
impl Clone for PutAccessPointPolicyInputBuilder
source§fn clone(&self) -> PutAccessPointPolicyInputBuilder
fn clone(&self) -> PutAccessPointPolicyInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for PutAccessPointPolicyInputBuilder
impl Default for PutAccessPointPolicyInputBuilder
source§fn default() -> PutAccessPointPolicyInputBuilder
fn default() -> PutAccessPointPolicyInputBuilder
source§impl PartialEq for PutAccessPointPolicyInputBuilder
impl PartialEq for PutAccessPointPolicyInputBuilder
source§fn eq(&self, other: &PutAccessPointPolicyInputBuilder) -> bool
fn eq(&self, other: &PutAccessPointPolicyInputBuilder) -> bool
self and other values to be equal, and is used
by ==.