#[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 login 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 login 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.
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<CreateWorkforceInput> for CreateWorkforceInput
impl PartialEq<CreateWorkforceInput> for CreateWorkforceInput
source§fn eq(&self, other: &CreateWorkforceInput) -> bool
fn eq(&self, other: &CreateWorkforceInput) -> bool
self
and other
values to be equal, and is used
by ==
.