Struct aws_sdk_macie2::types::S3JobDefinition
source · #[non_exhaustive]pub struct S3JobDefinition {
pub bucket_criteria: Option<S3BucketCriteriaForJob>,
pub bucket_definitions: Option<Vec<S3BucketDefinitionForJob>>,
pub scoping: Option<Scoping>,
}
Expand description
Specifies which S3 buckets contain the objects that a classification job analyzes, and the scope of that analysis. The bucket specification can be static (bucketDefinitions) or dynamic (bucketCriteria). If it's static, the job analyzes objects in the same predefined set of buckets each time the job runs. If it's dynamic, the job analyzes objects in any buckets that match the specified criteria each time the job starts to run.
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.bucket_criteria: Option<S3BucketCriteriaForJob>
The property- and tag-based conditions that determine which S3 buckets to include or exclude from the analysis. Each time the job runs, the job uses these criteria to determine which buckets contain objects to analyze. A job's definition can contain a bucketCriteria object or a bucketDefinitions array, not both.
bucket_definitions: Option<Vec<S3BucketDefinitionForJob>>
An array of objects, one for each Amazon Web Services account that owns specific S3 buckets to analyze. Each object specifies the account ID for an account and one or more buckets to analyze for that account. A job's definition can contain a bucketDefinitions array or a bucketCriteria object, not both.
scoping: Option<Scoping>
The property- and tag-based conditions that determine which S3 objects to include or exclude from the analysis. Each time the job runs, the job uses these criteria to determine which objects to analyze.
Implementations§
source§impl S3JobDefinition
impl S3JobDefinition
sourcepub fn bucket_criteria(&self) -> Option<&S3BucketCriteriaForJob>
pub fn bucket_criteria(&self) -> Option<&S3BucketCriteriaForJob>
The property- and tag-based conditions that determine which S3 buckets to include or exclude from the analysis. Each time the job runs, the job uses these criteria to determine which buckets contain objects to analyze. A job's definition can contain a bucketCriteria object or a bucketDefinitions array, not both.
sourcepub fn bucket_definitions(&self) -> &[S3BucketDefinitionForJob]
pub fn bucket_definitions(&self) -> &[S3BucketDefinitionForJob]
An array of objects, one for each Amazon Web Services account that owns specific S3 buckets to analyze. Each object specifies the account ID for an account and one or more buckets to analyze for that account. A job's definition can contain a bucketDefinitions array or a bucketCriteria object, not both.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .bucket_definitions.is_none()
.
source§impl S3JobDefinition
impl S3JobDefinition
sourcepub fn builder() -> S3JobDefinitionBuilder
pub fn builder() -> S3JobDefinitionBuilder
Creates a new builder-style object to manufacture S3JobDefinition
.
Trait Implementations§
source§impl Clone for S3JobDefinition
impl Clone for S3JobDefinition
source§fn clone(&self) -> S3JobDefinition
fn clone(&self) -> S3JobDefinition
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for S3JobDefinition
impl Debug for S3JobDefinition
source§impl PartialEq for S3JobDefinition
impl PartialEq for S3JobDefinition
source§fn eq(&self, other: &S3JobDefinition) -> bool
fn eq(&self, other: &S3JobDefinition) -> bool
self
and other
values to be equal, and is used
by ==
.