Struct aws_sdk_transcribe::types::ContentRedaction
source · #[non_exhaustive]pub struct ContentRedaction {
pub redaction_type: RedactionType,
pub redaction_output: RedactionOutput,
pub pii_entity_types: Option<Vec<PiiEntityType>>,
}
Expand description
Makes it possible to redact or flag specified personally identifiable information (PII) in your transcript. If you use ContentRedaction
, you must also include the sub-parameters: RedactionOutput
and RedactionType
. You can optionally include PiiEntityTypes
to choose which types of PII you want to redact.
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.redaction_type: RedactionType
Specify the category of information you want to redact; PII
(personally identifiable information) is the only valid value. You can use PiiEntityTypes
to choose which types of PII you want to redact. If you do not include PiiEntityTypes
in your request, all PII is redacted.
redaction_output: RedactionOutput
Specify if you want only a redacted transcript, or if you want a redacted and an unredacted transcript.
When you choose redacted
Amazon Transcribe creates only a redacted transcript.
When you choose redacted_and_unredacted
Amazon Transcribe creates a redacted and an unredacted transcript (as two separate files).
pii_entity_types: Option<Vec<PiiEntityType>>
Specify which types of personally identifiable information (PII) you want to redact in your transcript. You can include as many types as you'd like, or you can select ALL
. If you do not include PiiEntityTypes
in your request, all PII is redacted.
Implementations§
source§impl ContentRedaction
impl ContentRedaction
sourcepub fn redaction_type(&self) -> &RedactionType
pub fn redaction_type(&self) -> &RedactionType
Specify the category of information you want to redact; PII
(personally identifiable information) is the only valid value. You can use PiiEntityTypes
to choose which types of PII you want to redact. If you do not include PiiEntityTypes
in your request, all PII is redacted.
sourcepub fn redaction_output(&self) -> &RedactionOutput
pub fn redaction_output(&self) -> &RedactionOutput
Specify if you want only a redacted transcript, or if you want a redacted and an unredacted transcript.
When you choose redacted
Amazon Transcribe creates only a redacted transcript.
When you choose redacted_and_unredacted
Amazon Transcribe creates a redacted and an unredacted transcript (as two separate files).
sourcepub fn pii_entity_types(&self) -> &[PiiEntityType]
pub fn pii_entity_types(&self) -> &[PiiEntityType]
Specify which types of personally identifiable information (PII) you want to redact in your transcript. You can include as many types as you'd like, or you can select ALL
. If you do not include PiiEntityTypes
in your request, all PII is redacted.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .pii_entity_types.is_none()
.
source§impl ContentRedaction
impl ContentRedaction
sourcepub fn builder() -> ContentRedactionBuilder
pub fn builder() -> ContentRedactionBuilder
Creates a new builder-style object to manufacture ContentRedaction
.
Trait Implementations§
source§impl Clone for ContentRedaction
impl Clone for ContentRedaction
source§fn clone(&self) -> ContentRedaction
fn clone(&self) -> ContentRedaction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ContentRedaction
impl Debug for ContentRedaction
source§impl PartialEq for ContentRedaction
impl PartialEq for ContentRedaction
source§fn eq(&self, other: &ContentRedaction) -> bool
fn eq(&self, other: &ContentRedaction) -> bool
self
and other
values to be equal, and is used
by ==
.