#[non_exhaustive]pub struct IamPolicyConstraintsBuilder { /* private fields */ }
Expand description
A builder for IamPolicyConstraints
.
Implementations§
source§impl IamPolicyConstraintsBuilder
impl IamPolicyConstraintsBuilder
sourcepub fn source_ip(self, input: EnabledOrDisabled) -> Self
pub fn source_ip(self, input: EnabledOrDisabled) -> Self
When SourceIp
is Enabled
the worker's IP address when a task is rendered in the worker portal is added to the IAM policy as a Condition
used to generate the Amazon S3 presigned URL. This IP address is checked by Amazon S3 and must match in order for the Amazon S3 resource to be rendered in the worker portal.
sourcepub fn set_source_ip(self, input: Option<EnabledOrDisabled>) -> Self
pub fn set_source_ip(self, input: Option<EnabledOrDisabled>) -> Self
When SourceIp
is Enabled
the worker's IP address when a task is rendered in the worker portal is added to the IAM policy as a Condition
used to generate the Amazon S3 presigned URL. This IP address is checked by Amazon S3 and must match in order for the Amazon S3 resource to be rendered in the worker portal.
sourcepub fn get_source_ip(&self) -> &Option<EnabledOrDisabled>
pub fn get_source_ip(&self) -> &Option<EnabledOrDisabled>
When SourceIp
is Enabled
the worker's IP address when a task is rendered in the worker portal is added to the IAM policy as a Condition
used to generate the Amazon S3 presigned URL. This IP address is checked by Amazon S3 and must match in order for the Amazon S3 resource to be rendered in the worker portal.
sourcepub fn vpc_source_ip(self, input: EnabledOrDisabled) -> Self
pub fn vpc_source_ip(self, input: EnabledOrDisabled) -> Self
When VpcSourceIp
is Enabled
the worker's IP address when a task is rendered in private worker portal inside the VPC is added to the IAM policy as a Condition
used to generate the Amazon S3 presigned URL. To render the task successfully Amazon S3 checks that the presigned URL is being accessed over an Amazon S3 VPC Endpoint, and that the worker's IP address matches the IP address in the IAM policy. To learn more about configuring private worker portal, see Use Amazon VPC mode from a private worker portal.
sourcepub fn set_vpc_source_ip(self, input: Option<EnabledOrDisabled>) -> Self
pub fn set_vpc_source_ip(self, input: Option<EnabledOrDisabled>) -> Self
When VpcSourceIp
is Enabled
the worker's IP address when a task is rendered in private worker portal inside the VPC is added to the IAM policy as a Condition
used to generate the Amazon S3 presigned URL. To render the task successfully Amazon S3 checks that the presigned URL is being accessed over an Amazon S3 VPC Endpoint, and that the worker's IP address matches the IP address in the IAM policy. To learn more about configuring private worker portal, see Use Amazon VPC mode from a private worker portal.
sourcepub fn get_vpc_source_ip(&self) -> &Option<EnabledOrDisabled>
pub fn get_vpc_source_ip(&self) -> &Option<EnabledOrDisabled>
When VpcSourceIp
is Enabled
the worker's IP address when a task is rendered in private worker portal inside the VPC is added to the IAM policy as a Condition
used to generate the Amazon S3 presigned URL. To render the task successfully Amazon S3 checks that the presigned URL is being accessed over an Amazon S3 VPC Endpoint, and that the worker's IP address matches the IP address in the IAM policy. To learn more about configuring private worker portal, see Use Amazon VPC mode from a private worker portal.
sourcepub fn build(self) -> IamPolicyConstraints
pub fn build(self) -> IamPolicyConstraints
Consumes the builder and constructs a IamPolicyConstraints
.
Trait Implementations§
source§impl Clone for IamPolicyConstraintsBuilder
impl Clone for IamPolicyConstraintsBuilder
source§fn clone(&self) -> IamPolicyConstraintsBuilder
fn clone(&self) -> IamPolicyConstraintsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for IamPolicyConstraintsBuilder
impl Debug for IamPolicyConstraintsBuilder
source§impl Default for IamPolicyConstraintsBuilder
impl Default for IamPolicyConstraintsBuilder
source§fn default() -> IamPolicyConstraintsBuilder
fn default() -> IamPolicyConstraintsBuilder
source§impl PartialEq for IamPolicyConstraintsBuilder
impl PartialEq for IamPolicyConstraintsBuilder
source§fn eq(&self, other: &IamPolicyConstraintsBuilder) -> bool
fn eq(&self, other: &IamPolicyConstraintsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for IamPolicyConstraintsBuilder
Auto Trait Implementations§
impl Freeze for IamPolicyConstraintsBuilder
impl RefUnwindSafe for IamPolicyConstraintsBuilder
impl Send for IamPolicyConstraintsBuilder
impl Sync for IamPolicyConstraintsBuilder
impl Unpin for IamPolicyConstraintsBuilder
impl UnwindSafe for IamPolicyConstraintsBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more