Struct aws_sdk_opensearch::model::cognito_options::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for CognitoOptions
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn enabled(self, input: bool) -> Self
pub fn enabled(self, input: bool) -> Self
Whether to enable or disable Amazon Cognito authentication for OpenSearch Dashboards.
sourcepub fn set_enabled(self, input: Option<bool>) -> Self
pub fn set_enabled(self, input: Option<bool>) -> Self
Whether to enable or disable Amazon Cognito authentication for OpenSearch Dashboards.
sourcepub fn user_pool_id(self, input: impl Into<String>) -> Self
pub fn user_pool_id(self, input: impl Into<String>) -> Self
The Amazon Cognito user pool ID that you want OpenSearch Service to use for OpenSearch Dashboards authentication.
sourcepub fn set_user_pool_id(self, input: Option<String>) -> Self
pub fn set_user_pool_id(self, input: Option<String>) -> Self
The Amazon Cognito user pool ID that you want OpenSearch Service to use for OpenSearch Dashboards authentication.
sourcepub fn identity_pool_id(self, input: impl Into<String>) -> Self
pub fn identity_pool_id(self, input: impl Into<String>) -> Self
The Amazon Cognito identity pool ID that you want OpenSearch Service to use for OpenSearch Dashboards authentication.
sourcepub fn set_identity_pool_id(self, input: Option<String>) -> Self
pub fn set_identity_pool_id(self, input: Option<String>) -> Self
The Amazon Cognito identity pool ID that you want OpenSearch Service to use for OpenSearch Dashboards authentication.
sourcepub fn role_arn(self, input: impl Into<String>) -> Self
pub fn role_arn(self, input: impl Into<String>) -> Self
The AmazonOpenSearchServiceCognitoAccess
role that allows OpenSearch Service to configure your user pool and identity pool.
sourcepub fn set_role_arn(self, input: Option<String>) -> Self
pub fn set_role_arn(self, input: Option<String>) -> Self
The AmazonOpenSearchServiceCognitoAccess
role that allows OpenSearch Service to configure your user pool and identity pool.
sourcepub fn build(self) -> CognitoOptions
pub fn build(self) -> CognitoOptions
Consumes the builder and constructs a CognitoOptions
.