#[non_exhaustive]pub struct PermissionBuilder { /* private fields */ }
Expand description
A builder for Permission
.
Implementations§
source§impl PermissionBuilder
impl PermissionBuilder
sourcepub fn grantee_type(self, input: impl Into<String>) -> Self
pub fn grantee_type(self, input: impl Into<String>) -> Self
The type of value that appears in the Grantee object:
-
Canonical
: Either the canonical user ID for an AWS account or an origin access identity for an Amazon CloudFront distribution.A canonical user ID is not the same as an AWS account number.
-
Email
: The registered email address of an AWS account. -
Group
: One of the following predefined Amazon S3 groups:AllUsers
,AuthenticatedUsers
, orLogDelivery
.
sourcepub fn set_grantee_type(self, input: Option<String>) -> Self
pub fn set_grantee_type(self, input: Option<String>) -> Self
The type of value that appears in the Grantee object:
-
Canonical
: Either the canonical user ID for an AWS account or an origin access identity for an Amazon CloudFront distribution.A canonical user ID is not the same as an AWS account number.
-
Email
: The registered email address of an AWS account. -
Group
: One of the following predefined Amazon S3 groups:AllUsers
,AuthenticatedUsers
, orLogDelivery
.
sourcepub fn get_grantee_type(&self) -> &Option<String>
pub fn get_grantee_type(&self) -> &Option<String>
The type of value that appears in the Grantee object:
-
Canonical
: Either the canonical user ID for an AWS account or an origin access identity for an Amazon CloudFront distribution.A canonical user ID is not the same as an AWS account number.
-
Email
: The registered email address of an AWS account. -
Group
: One of the following predefined Amazon S3 groups:AllUsers
,AuthenticatedUsers
, orLogDelivery
.
sourcepub fn grantee(self, input: impl Into<String>) -> Self
pub fn grantee(self, input: impl Into<String>) -> Self
The AWS user or group that you want to have access to transcoded files and playlists. To identify the user or group, you can specify the canonical user ID for an AWS account, an origin access identity for a CloudFront distribution, the registered email address of an AWS account, or a predefined Amazon S3 group.
sourcepub fn set_grantee(self, input: Option<String>) -> Self
pub fn set_grantee(self, input: Option<String>) -> Self
The AWS user or group that you want to have access to transcoded files and playlists. To identify the user or group, you can specify the canonical user ID for an AWS account, an origin access identity for a CloudFront distribution, the registered email address of an AWS account, or a predefined Amazon S3 group.
sourcepub fn get_grantee(&self) -> &Option<String>
pub fn get_grantee(&self) -> &Option<String>
The AWS user or group that you want to have access to transcoded files and playlists. To identify the user or group, you can specify the canonical user ID for an AWS account, an origin access identity for a CloudFront distribution, the registered email address of an AWS account, or a predefined Amazon S3 group.
sourcepub fn access(self, input: impl Into<String>) -> Self
pub fn access(self, input: impl Into<String>) -> Self
Appends an item to access
.
To override the contents of this collection use set_access
.
The permission that you want to give to the AWS user that is listed in Grantee. Valid values include:
-
READ
: The grantee can read the thumbnails and metadata for thumbnails that Elastic Transcoder adds to the Amazon S3 bucket. -
READ_ACP
: The grantee can read the object ACL for thumbnails that Elastic Transcoder adds to the Amazon S3 bucket. -
WRITE_ACP
: The grantee can write the ACL for the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket. -
FULL_CONTROL
: The grantee has READ, READ_ACP, and WRITE_ACP permissions for the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.
sourcepub fn set_access(self, input: Option<Vec<String>>) -> Self
pub fn set_access(self, input: Option<Vec<String>>) -> Self
The permission that you want to give to the AWS user that is listed in Grantee. Valid values include:
-
READ
: The grantee can read the thumbnails and metadata for thumbnails that Elastic Transcoder adds to the Amazon S3 bucket. -
READ_ACP
: The grantee can read the object ACL for thumbnails that Elastic Transcoder adds to the Amazon S3 bucket. -
WRITE_ACP
: The grantee can write the ACL for the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket. -
FULL_CONTROL
: The grantee has READ, READ_ACP, and WRITE_ACP permissions for the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.
sourcepub fn get_access(&self) -> &Option<Vec<String>>
pub fn get_access(&self) -> &Option<Vec<String>>
The permission that you want to give to the AWS user that is listed in Grantee. Valid values include:
-
READ
: The grantee can read the thumbnails and metadata for thumbnails that Elastic Transcoder adds to the Amazon S3 bucket. -
READ_ACP
: The grantee can read the object ACL for thumbnails that Elastic Transcoder adds to the Amazon S3 bucket. -
WRITE_ACP
: The grantee can write the ACL for the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket. -
FULL_CONTROL
: The grantee has READ, READ_ACP, and WRITE_ACP permissions for the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.
sourcepub fn build(self) -> Permission
pub fn build(self) -> Permission
Consumes the builder and constructs a Permission
.
Trait Implementations§
source§impl Clone for PermissionBuilder
impl Clone for PermissionBuilder
source§fn clone(&self) -> PermissionBuilder
fn clone(&self) -> PermissionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PermissionBuilder
impl Debug for PermissionBuilder
source§impl Default for PermissionBuilder
impl Default for PermissionBuilder
source§fn default() -> PermissionBuilder
fn default() -> PermissionBuilder
source§impl PartialEq<PermissionBuilder> for PermissionBuilder
impl PartialEq<PermissionBuilder> for PermissionBuilder
source§fn eq(&self, other: &PermissionBuilder) -> bool
fn eq(&self, other: &PermissionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.