Struct aws_sdk_sagemaker::types::IamPolicyConstraints
source · #[non_exhaustive]pub struct IamPolicyConstraints {
pub source_ip: Option<EnabledOrDisabled>,
pub vpc_source_ip: Option<EnabledOrDisabled>,
}
Expand description
Use this parameter to specify a supported global condition key that is added to the IAM policy.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.source_ip: 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.
vpc_source_ip: 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.
Implementations§
source§impl IamPolicyConstraints
impl IamPolicyConstraints
sourcepub fn source_ip(&self) -> Option<&EnabledOrDisabled>
pub fn 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) -> Option<&EnabledOrDisabled>
pub fn 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.
source§impl IamPolicyConstraints
impl IamPolicyConstraints
sourcepub fn builder() -> IamPolicyConstraintsBuilder
pub fn builder() -> IamPolicyConstraintsBuilder
Creates a new builder-style object to manufacture IamPolicyConstraints
.
Trait Implementations§
source§impl Clone for IamPolicyConstraints
impl Clone for IamPolicyConstraints
source§fn clone(&self) -> IamPolicyConstraints
fn clone(&self) -> IamPolicyConstraints
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for IamPolicyConstraints
impl Debug for IamPolicyConstraints
source§impl PartialEq for IamPolicyConstraints
impl PartialEq for IamPolicyConstraints
impl StructuralPartialEq for IamPolicyConstraints
Auto Trait Implementations§
impl Freeze for IamPolicyConstraints
impl RefUnwindSafe for IamPolicyConstraints
impl Send for IamPolicyConstraints
impl Sync for IamPolicyConstraints
impl Unpin for IamPolicyConstraints
impl UnwindSafe for IamPolicyConstraints
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