pub struct BucketPolicyArgsBuilder<S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build_struct()
.
Implementations§
source§impl<S: State> BucketPolicyArgsBuilder<S>
impl<S: State> BucketPolicyArgsBuilder<S>
sourcepub fn build_struct(self) -> BucketPolicyArgswhere
S: IsComplete,
pub fn build_struct(self) -> BucketPolicyArgswhere
S: IsComplete,
Finish building and return the requested object
sourcepub fn bucket(
self,
value: impl Into<Output<String>>,
) -> BucketPolicyArgsBuilder<SetBucket<S>>where
S::Bucket: IsUnset,
pub fn bucket(
self,
value: impl Into<Output<String>>,
) -> BucketPolicyArgsBuilder<SetBucket<S>>where
S::Bucket: IsUnset,
Required.
Name of the bucket to which to apply the policy.
sourcepub fn policy(
self,
value: impl Into<Output<String>>,
) -> BucketPolicyArgsBuilder<SetPolicy<S>>where
S::Policy: IsUnset,
pub fn policy(
self,
value: impl Into<Output<String>>,
) -> BucketPolicyArgsBuilder<SetPolicy<S>>where
S::Policy: IsUnset,
Required.
Text of the policy. Although this is a bucket policy rather than an IAM policy, the aws.iam.getPolicyDocument
data source may be used, so long as it specifies a principal. For more information about building AWS IAM policy documents, see the AWS IAM Policy Document Guide. Note: Bucket policies are limited to 20 KB in size.
Auto Trait Implementations§
impl<S> Freeze for BucketPolicyArgsBuilder<S>
impl<S> RefUnwindSafe for BucketPolicyArgsBuilder<S>
impl<S> Send for BucketPolicyArgsBuilder<S>
impl<S> Sync for BucketPolicyArgsBuilder<S>
impl<S> Unpin for BucketPolicyArgsBuilder<S>
impl<S> UnwindSafe for BucketPolicyArgsBuilder<S>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more