#[non_exhaustive]pub struct CreateWorkforceInput {
pub cognito_config: Option<CognitoConfig>,
pub oidc_config: Option<OidcConfig>,
pub source_ip_config: Option<SourceIpConfig>,
pub workforce_name: Option<String>,
pub tags: Option<Vec<Tag>>,
pub workforce_vpc_config: Option<WorkforceVpcConfigRequest>,
}
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.cognito_config: Option<CognitoConfig>
Use this parameter to configure an Amazon Cognito private workforce. A single Cognito workforce is created using and corresponds to a single Amazon Cognito user pool.
Do not use OidcConfig
if you specify values for CognitoConfig
.
oidc_config: Option<OidcConfig>
Use this parameter to configure a private workforce using your own OIDC Identity Provider.
Do not use CognitoConfig
if you specify values for OidcConfig
.
source_ip_config: Option<SourceIpConfig>
A list of IP address ranges (CIDRs). Used to create an allow list of IP addresses for a private workforce. Workers will only be able to log in to their worker portal from an IP address within this range. By default, a workforce isn't restricted to specific IP addresses.
workforce_name: Option<String>
The name of the private workforce.
An array of key-value pairs that contain metadata to help you categorize and organize our workforce. Each tag consists of a key and a value, both of which you define.
workforce_vpc_config: Option<WorkforceVpcConfigRequest>
Use this parameter to configure a workforce using VPC.
Implementations§
source§impl CreateWorkforceInput
impl CreateWorkforceInput
sourcepub fn cognito_config(&self) -> Option<&CognitoConfig>
pub fn cognito_config(&self) -> Option<&CognitoConfig>
Use this parameter to configure an Amazon Cognito private workforce. A single Cognito workforce is created using and corresponds to a single Amazon Cognito user pool.
Do not use OidcConfig
if you specify values for CognitoConfig
.
sourcepub fn oidc_config(&self) -> Option<&OidcConfig>
pub fn oidc_config(&self) -> Option<&OidcConfig>
Use this parameter to configure a private workforce using your own OIDC Identity Provider.
Do not use CognitoConfig
if you specify values for OidcConfig
.
sourcepub fn source_ip_config(&self) -> Option<&SourceIpConfig>
pub fn source_ip_config(&self) -> Option<&SourceIpConfig>
A list of IP address ranges (CIDRs). Used to create an allow list of IP addresses for a private workforce. Workers will only be able to log in to their worker portal from an IP address within this range. By default, a workforce isn't restricted to specific IP addresses.
sourcepub fn workforce_name(&self) -> Option<&str>
pub fn workforce_name(&self) -> Option<&str>
The name of the private workforce.
An array of key-value pairs that contain metadata to help you categorize and organize our workforce. Each tag consists of a key and a value, both of which you define.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tags.is_none()
.
sourcepub fn workforce_vpc_config(&self) -> Option<&WorkforceVpcConfigRequest>
pub fn workforce_vpc_config(&self) -> Option<&WorkforceVpcConfigRequest>
Use this parameter to configure a workforce using VPC.
source§impl CreateWorkforceInput
impl CreateWorkforceInput
sourcepub fn builder() -> CreateWorkforceInputBuilder
pub fn builder() -> CreateWorkforceInputBuilder
Creates a new builder-style object to manufacture CreateWorkforceInput
.
Trait Implementations§
source§impl Clone for CreateWorkforceInput
impl Clone for CreateWorkforceInput
source§fn clone(&self) -> CreateWorkforceInput
fn clone(&self) -> CreateWorkforceInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateWorkforceInput
impl Debug for CreateWorkforceInput
source§impl PartialEq for CreateWorkforceInput
impl PartialEq for CreateWorkforceInput
impl StructuralPartialEq for CreateWorkforceInput
Auto Trait Implementations§
impl Freeze for CreateWorkforceInput
impl RefUnwindSafe for CreateWorkforceInput
impl Send for CreateWorkforceInput
impl Sync for CreateWorkforceInput
impl Unpin for CreateWorkforceInput
impl UnwindSafe for CreateWorkforceInput
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