#[non_exhaustive]pub struct DocumentClassifierOutputDataConfigBuilder { /* private fields */ }
Expand description
A builder for DocumentClassifierOutputDataConfig
.
Implementations§
source§impl DocumentClassifierOutputDataConfigBuilder
impl DocumentClassifierOutputDataConfigBuilder
sourcepub fn s3_uri(self, input: impl Into<String>) -> Self
pub fn s3_uri(self, input: impl Into<String>) -> Self
When you use the OutputDataConfig
object while creating a custom classifier, you specify the Amazon S3 location where you want to write the confusion matrix and other output files. The URI must be in the same Region as the API endpoint that you are calling. The location is used as the prefix for the actual location of this output file.
When the custom classifier job is finished, the service creates the output file in a directory specific to the job. The S3Uri
field contains the location of the output file, called output.tar.gz
. It is a compressed archive that contains the confusion matrix.
sourcepub fn set_s3_uri(self, input: Option<String>) -> Self
pub fn set_s3_uri(self, input: Option<String>) -> Self
When you use the OutputDataConfig
object while creating a custom classifier, you specify the Amazon S3 location where you want to write the confusion matrix and other output files. The URI must be in the same Region as the API endpoint that you are calling. The location is used as the prefix for the actual location of this output file.
When the custom classifier job is finished, the service creates the output file in a directory specific to the job. The S3Uri
field contains the location of the output file, called output.tar.gz
. It is a compressed archive that contains the confusion matrix.
sourcepub fn get_s3_uri(&self) -> &Option<String>
pub fn get_s3_uri(&self) -> &Option<String>
When you use the OutputDataConfig
object while creating a custom classifier, you specify the Amazon S3 location where you want to write the confusion matrix and other output files. The URI must be in the same Region as the API endpoint that you are calling. The location is used as the prefix for the actual location of this output file.
When the custom classifier job is finished, the service creates the output file in a directory specific to the job. The S3Uri
field contains the location of the output file, called output.tar.gz
. It is a compressed archive that contains the confusion matrix.
sourcepub fn kms_key_id(self, input: impl Into<String>) -> Self
pub fn kms_key_id(self, input: impl Into<String>) -> Self
ID for the Amazon Web Services Key Management Service (KMS) key that Amazon Comprehend uses to encrypt the output results from an analysis job. The KmsKeyId can be one of the following formats:
-
KMS Key ID:
"1234abcd-12ab-34cd-56ef-1234567890ab"
-
Amazon Resource Name (ARN) of a KMS Key:
"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
-
KMS Key Alias:
"alias/ExampleAlias"
-
ARN of a KMS Key Alias:
"arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias"
sourcepub fn set_kms_key_id(self, input: Option<String>) -> Self
pub fn set_kms_key_id(self, input: Option<String>) -> Self
ID for the Amazon Web Services Key Management Service (KMS) key that Amazon Comprehend uses to encrypt the output results from an analysis job. The KmsKeyId can be one of the following formats:
-
KMS Key ID:
"1234abcd-12ab-34cd-56ef-1234567890ab"
-
Amazon Resource Name (ARN) of a KMS Key:
"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
-
KMS Key Alias:
"alias/ExampleAlias"
-
ARN of a KMS Key Alias:
"arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias"
sourcepub fn get_kms_key_id(&self) -> &Option<String>
pub fn get_kms_key_id(&self) -> &Option<String>
ID for the Amazon Web Services Key Management Service (KMS) key that Amazon Comprehend uses to encrypt the output results from an analysis job. The KmsKeyId can be one of the following formats:
-
KMS Key ID:
"1234abcd-12ab-34cd-56ef-1234567890ab"
-
Amazon Resource Name (ARN) of a KMS Key:
"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
-
KMS Key Alias:
"alias/ExampleAlias"
-
ARN of a KMS Key Alias:
"arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias"
sourcepub fn flywheel_stats_s3_prefix(self, input: impl Into<String>) -> Self
pub fn flywheel_stats_s3_prefix(self, input: impl Into<String>) -> Self
The Amazon S3 prefix for the data lake location of the flywheel statistics.
sourcepub fn set_flywheel_stats_s3_prefix(self, input: Option<String>) -> Self
pub fn set_flywheel_stats_s3_prefix(self, input: Option<String>) -> Self
The Amazon S3 prefix for the data lake location of the flywheel statistics.
sourcepub fn get_flywheel_stats_s3_prefix(&self) -> &Option<String>
pub fn get_flywheel_stats_s3_prefix(&self) -> &Option<String>
The Amazon S3 prefix for the data lake location of the flywheel statistics.
sourcepub fn build(self) -> DocumentClassifierOutputDataConfig
pub fn build(self) -> DocumentClassifierOutputDataConfig
Consumes the builder and constructs a DocumentClassifierOutputDataConfig
.
Trait Implementations§
source§impl Clone for DocumentClassifierOutputDataConfigBuilder
impl Clone for DocumentClassifierOutputDataConfigBuilder
source§fn clone(&self) -> DocumentClassifierOutputDataConfigBuilder
fn clone(&self) -> DocumentClassifierOutputDataConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for DocumentClassifierOutputDataConfigBuilder
impl Default for DocumentClassifierOutputDataConfigBuilder
source§fn default() -> DocumentClassifierOutputDataConfigBuilder
fn default() -> DocumentClassifierOutputDataConfigBuilder
source§impl PartialEq for DocumentClassifierOutputDataConfigBuilder
impl PartialEq for DocumentClassifierOutputDataConfigBuilder
source§fn eq(&self, other: &DocumentClassifierOutputDataConfigBuilder) -> bool
fn eq(&self, other: &DocumentClassifierOutputDataConfigBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DocumentClassifierOutputDataConfigBuilder
Auto Trait Implementations§
impl Freeze for DocumentClassifierOutputDataConfigBuilder
impl RefUnwindSafe for DocumentClassifierOutputDataConfigBuilder
impl Send for DocumentClassifierOutputDataConfigBuilder
impl Sync for DocumentClassifierOutputDataConfigBuilder
impl Unpin for DocumentClassifierOutputDataConfigBuilder
impl UnwindSafe for DocumentClassifierOutputDataConfigBuilder
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> 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