#[non_exhaustive]pub struct DocumentClassifierOutputDataConfig {
pub s3_uri: Option<String>,
pub kms_key_id: Option<String>,
pub flywheel_stats_s3_prefix: Option<String>,
}
Expand description
Provide the location for output data from a custom classifier job. This field is mandatory if you are training a native document model.
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.s3_uri: 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.
kms_key_id: 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"
flywheel_stats_s3_prefix: Option<String>
The Amazon S3 prefix for the data lake location of the flywheel statistics.
Implementations§
source§impl DocumentClassifierOutputDataConfig
impl DocumentClassifierOutputDataConfig
sourcepub fn s3_uri(&self) -> Option<&str>
pub fn s3_uri(&self) -> Option<&str>
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) -> Option<&str>
pub fn kms_key_id(&self) -> Option<&str>
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) -> Option<&str>
pub fn flywheel_stats_s3_prefix(&self) -> Option<&str>
The Amazon S3 prefix for the data lake location of the flywheel statistics.
source§impl DocumentClassifierOutputDataConfig
impl DocumentClassifierOutputDataConfig
sourcepub fn builder() -> DocumentClassifierOutputDataConfigBuilder
pub fn builder() -> DocumentClassifierOutputDataConfigBuilder
Creates a new builder-style object to manufacture DocumentClassifierOutputDataConfig
.
Trait Implementations§
source§impl Clone for DocumentClassifierOutputDataConfig
impl Clone for DocumentClassifierOutputDataConfig
source§fn clone(&self) -> DocumentClassifierOutputDataConfig
fn clone(&self) -> DocumentClassifierOutputDataConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for DocumentClassifierOutputDataConfig
impl PartialEq for DocumentClassifierOutputDataConfig
source§fn eq(&self, other: &DocumentClassifierOutputDataConfig) -> bool
fn eq(&self, other: &DocumentClassifierOutputDataConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DocumentClassifierOutputDataConfig
Auto Trait Implementations§
impl Freeze for DocumentClassifierOutputDataConfig
impl RefUnwindSafe for DocumentClassifierOutputDataConfig
impl Send for DocumentClassifierOutputDataConfig
impl Sync for DocumentClassifierOutputDataConfig
impl Unpin for DocumentClassifierOutputDataConfig
impl UnwindSafe for DocumentClassifierOutputDataConfig
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