Struct aws_sdk_macie2::Client

source ·
pub struct Client { /* private fields */ }
Expand description

Client for Amazon Macie 2

Client for invoking operations on Amazon Macie 2. Each operation on Amazon Macie 2 is a method on this this struct. .send() MUST be invoked on the generated operations to dispatch the request to the service.

§Constructing a Client

A Config is required to construct a client. For most use cases, the aws-config crate should be used to automatically resolve this config using aws_config::load_from_env(), since this will resolve an SdkConfig which can be shared across multiple different AWS SDK clients. This config resolution process can be customized by calling aws_config::from_env() instead, which returns a ConfigLoader that uses the builder pattern to customize the default config.

In the simplest case, creating a client looks as follows:

let config = aws_config::load_from_env().await;
let client = aws_sdk_macie2::Client::new(&config);

Occasionally, SDKs may have additional service-specific values that can be set on the Config that is absent from SdkConfig, or slightly different settings for a specific client may be desired. The Config struct implements From<&SdkConfig>, so setting these specific settings can be done as follows:

let sdk_config = ::aws_config::load_from_env().await;
let config = aws_sdk_macie2::config::Builder::from(&sdk_config)
    .some_service_specific_setting("value")
    .build();

See the aws-config docs and Config for more information on customizing configuration.

Note: Client construction is expensive due to connection thread pool initialization, and should be done once at application start-up.

§Using the Client

A client has a function for every operation that can be performed by the service. For example, the AcceptInvitation operation has a Client::accept_invitation, function which returns a builder for that operation. The fluent builder ultimately has a send() function that returns an async future that returns a result, as illustrated below:

let result = client.accept_invitation()
    .administrator_account_id("example")
    .send()
    .await;

The underlying HTTP requests that get made by this can be modified with the customize_operation function on the fluent builder. See the customize module for more information.

§Waiters

This client provides wait_until methods behind the Waiters trait. To use them, simply import the trait, and then call one of the wait_until methods. This will return a waiter fluent builder that takes various parameters, which are documented on the builder type. Once parameters have been provided, the wait method can be called to initiate waiting.

For example, if there was a wait_until_thing method, it could look like:

let result = client.wait_until_thing()
    .thing_id("someId")
    .wait(Duration::from_secs(120))
    .await;

Implementations§

source§

impl Client

source

pub fn accept_invitation(&self) -> AcceptInvitationFluentBuilder

Constructs a fluent builder for the AcceptInvitation operation.

source§

impl Client

source

pub fn batch_get_custom_data_identifiers( &self ) -> BatchGetCustomDataIdentifiersFluentBuilder

Constructs a fluent builder for the BatchGetCustomDataIdentifiers operation.

source§

impl Client

source

pub fn create_allow_list(&self) -> CreateAllowListFluentBuilder

Constructs a fluent builder for the CreateAllowList operation.

source§

impl Client

source

pub fn create_classification_job(&self) -> CreateClassificationJobFluentBuilder

Constructs a fluent builder for the CreateClassificationJob operation.

source§

impl Client

source

pub fn create_custom_data_identifier( &self ) -> CreateCustomDataIdentifierFluentBuilder

Constructs a fluent builder for the CreateCustomDataIdentifier operation.

  • The fluent builder is configurable:
    • client_token(impl Into<String>) / set_client_token(Option<String>):
      required: false

      A unique, case-sensitive token that you provide to ensure the idempotency of the request.


    • description(impl Into<String>) / set_description(Option<String>):
      required: false

      A custom description of the custom data identifier. The description can contain as many as 512 characters.

      We strongly recommend that you avoid including any sensitive data in the description of a custom data identifier. Other users of your account might be able to see this description, depending on the actions that they’re allowed to perform in Amazon Macie.


    • ignore_words(impl Into<String>) / set_ignore_words(Option<Vec::<String>>):
      required: false

      An array that lists specific character sequences (ignore words) to exclude from the results. If the text matched by the regular expression contains any string in this array, Amazon Macie ignores it. The array can contain as many as 10 ignore words. Each ignore word can contain 4-90 UTF-8 characters. Ignore words are case sensitive.


    • keywords(impl Into<String>) / set_keywords(Option<Vec::<String>>):
      required: false

      An array that lists specific character sequences (keywords), one of which must precede and be within proximity (maximumMatchDistance) of the regular expression to match. The array can contain as many as 50 keywords. Each keyword can contain 3-90 UTF-8 characters. Keywords aren’t case sensitive.


    • maximum_match_distance(i32) / set_maximum_match_distance(Option<i32>):
      required: false

      The maximum number of characters that can exist between the end of at least one complete character sequence specified by the keywords array and the end of the text that matches the regex pattern. If a complete keyword precedes all the text that matches the pattern and the keyword is within the specified distance, Amazon Macie includes the result. The distance can be 1-300 characters. The default value is 50.


    • name(impl Into<String>) / set_name(Option<String>):
      required: true

      A custom name for the custom data identifier. The name can contain as many as 128 characters.

      We strongly recommend that you avoid including any sensitive data in the name of a custom data identifier. Other users of your account might be able to see this name, depending on the actions that they’re allowed to perform in Amazon Macie.


    • regex(impl Into<String>) / set_regex(Option<String>):
      required: true

      The regular expression (regex) that defines the pattern to match. The expression can contain as many as 512 characters.


    • severity_levels(SeverityLevel) / set_severity_levels(Option<Vec::<SeverityLevel>>):
      required: false

      The severity to assign to findings that the custom data identifier produces, based on the number of occurrences of text that match the custom data identifier’s detection criteria. You can specify as many as three SeverityLevel objects in this array, one for each severity: LOW, MEDIUM, or HIGH. If you specify more than one, the occurrences thresholds must be in ascending order by severity, moving from LOW to HIGH. For example, 1 for LOW, 50 for MEDIUM, and 100 for HIGH. If an S3 object contains fewer occurrences than the lowest specified threshold, Amazon Macie doesn’t create a finding.

      If you don’t specify any values for this array, Macie creates findings for S3 objects that contain at least one occurrence of text that matches the detection criteria, and Macie assigns the MEDIUM severity to those findings.


    • tags(impl Into<String>, impl Into<String>) / set_tags(Option<HashMap::<String, String>>):
      required: false

      A map of key-value pairs that specifies the tags to associate with the custom data identifier.

      A custom data identifier can have a maximum of 50 tags. Each tag consists of a tag key and an associated tag value. The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters.


  • On success, responds with CreateCustomDataIdentifierOutput with field(s):
  • On failure, responds with SdkError<CreateCustomDataIdentifierError>
source§

impl Client

source

pub fn create_findings_filter(&self) -> CreateFindingsFilterFluentBuilder

Constructs a fluent builder for the CreateFindingsFilter operation.

source§

impl Client

source

pub fn create_invitations(&self) -> CreateInvitationsFluentBuilder

Constructs a fluent builder for the CreateInvitations operation.

source§

impl Client

source

pub fn create_member(&self) -> CreateMemberFluentBuilder

Constructs a fluent builder for the CreateMember operation.

source§

impl Client

source

pub fn create_sample_findings(&self) -> CreateSampleFindingsFluentBuilder

Constructs a fluent builder for the CreateSampleFindings operation.

source§

impl Client

source

pub fn decline_invitations(&self) -> DeclineInvitationsFluentBuilder

Constructs a fluent builder for the DeclineInvitations operation.

source§

impl Client

source

pub fn delete_allow_list(&self) -> DeleteAllowListFluentBuilder

Constructs a fluent builder for the DeleteAllowList operation.

  • The fluent builder is configurable:
    • id(impl Into<String>) / set_id(Option<String>):
      required: true

      The unique identifier for the Amazon Macie resource that the request applies to.


    • ignore_job_checks(impl Into<String>) / set_ignore_job_checks(Option<String>):
      required: false

      Specifies whether to force deletion of the allow list, even if active classification jobs are configured to use the list.

      When you try to delete an allow list, Amazon Macie checks for classification jobs that use the list and have a status other than COMPLETE or CANCELLED. By default, Macie rejects your request if any jobs meet these criteria. To skip these checks and delete the list, set this value to true. To delete the list only if no active jobs are configured to use it, set this value to false.


  • On success, responds with DeleteAllowListOutput
  • On failure, responds with SdkError<DeleteAllowListError>
source§

impl Client

source

pub fn delete_custom_data_identifier( &self ) -> DeleteCustomDataIdentifierFluentBuilder

Constructs a fluent builder for the DeleteCustomDataIdentifier operation.

source§

impl Client

source

pub fn delete_findings_filter(&self) -> DeleteFindingsFilterFluentBuilder

Constructs a fluent builder for the DeleteFindingsFilter operation.

source§

impl Client

source

pub fn delete_invitations(&self) -> DeleteInvitationsFluentBuilder

Constructs a fluent builder for the DeleteInvitations operation.

source§

impl Client

source

pub fn delete_member(&self) -> DeleteMemberFluentBuilder

Constructs a fluent builder for the DeleteMember operation.

source§

impl Client

source

pub fn describe_buckets(&self) -> DescribeBucketsFluentBuilder

Constructs a fluent builder for the DescribeBuckets operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn describe_classification_job( &self ) -> DescribeClassificationJobFluentBuilder

Constructs a fluent builder for the DescribeClassificationJob operation.

  • The fluent builder is configurable:
  • On success, responds with DescribeClassificationJobOutput with field(s):
    • allow_list_ids(Option<Vec::<String>>):

      An array of unique identifiers, one for each allow list that the job uses when it analyzes data.

    • client_token(Option<String>):

      The token that was provided to ensure the idempotency of the request to create the job.

    • created_at(Option<DateTime>):

      The date and time, in UTC and extended ISO 8601 format, when the job was created.

    • custom_data_identifier_ids(Option<Vec::<String>>):

      An array of unique identifiers, one for each custom data identifier that the job uses when it analyzes data. This value is null if the job uses only managed data identifiers to analyze data.

    • description(Option<String>):

      The custom description of the job.

    • initial_run(Option<bool>):

      For a recurring job, specifies whether you configured the job to analyze all existing, eligible objects immediately after the job was created (true). If you configured the job to analyze only those objects that were created or changed after the job was created and before the job’s first scheduled run, this value is false. This value is also false for a one-time job.

    • job_arn(Option<String>):

      The Amazon Resource Name (ARN) of the job.

    • job_id(Option<String>):

      The unique identifier for the job.

    • job_status(Option<JobStatus>):

      The current status of the job. Possible values are:

      • CANCELLED - You cancelled the job or, if it’s a one-time job, you paused the job and didn’t resume it within 30 days.

      • COMPLETE - For a one-time job, Amazon Macie finished processing the data specified for the job. This value doesn’t apply to recurring jobs.

      • IDLE - For a recurring job, the previous scheduled run is complete and the next scheduled run is pending. This value doesn’t apply to one-time jobs.

      • PAUSED - Macie started running the job but additional processing would exceed the monthly sensitive data discovery quota for your account or one or more member accounts that the job analyzes data for.

      • RUNNING - For a one-time job, the job is in progress. For a recurring job, a scheduled run is in progress.

      • USER_PAUSED - You paused the job. If you paused the job while it had a status of RUNNING and you don’t resume it within 30 days of pausing it, the job or job run will expire and be cancelled, depending on the job’s type. To check the expiration date, refer to the UserPausedDetails.jobExpiresAt property.

    • job_type(Option<JobType>):

      The schedule for running the job. Possible values are:

      • ONE_TIME - The job runs only once.

      • SCHEDULED - The job runs on a daily, weekly, or monthly basis. The scheduleFrequency property indicates the recurrence pattern for the job.

    • last_run_error_status(Option<LastRunErrorStatus>):

      Specifies whether any account- or bucket-level access errors occurred when the job ran. For a recurring job, this value indicates the error status of the job’s most recent run.

    • last_run_time(Option<DateTime>):

      The date and time, in UTC and extended ISO 8601 format, when the job started. If the job is a recurring job, this value indicates when the most recent run started or, if the job hasn’t run yet, when the job was created.

    • managed_data_identifier_ids(Option<Vec::<String>>):

      An array of unique identifiers, one for each managed data identifier that the job is explicitly configured to include (use) or exclude (not use) when it analyzes data. Inclusion or exclusion depends on the managed data identifier selection type specified for the job (managedDataIdentifierSelector).

      This value is null if the job’s managed data identifier selection type is ALL, NONE, or RECOMMENDED.

    • managed_data_identifier_selector(Option<ManagedDataIdentifierSelector>):

      The selection type that determines which managed data identifiers the job uses when it analyzes data. Possible values are:

      • ALL - Use all managed data identifiers.

      • EXCLUDE - Use all managed data identifiers except the ones specified by the managedDataIdentifierIds property.

      • INCLUDE - Use only the managed data identifiers specified by the managedDataIdentifierIds property.

      • NONE - Don’t use any managed data identifiers. Use only custom data identifiers (customDataIdentifierIds).

      • RECOMMENDED (default) - Use the recommended set of managed data identifiers.

      If this value is null, the job uses the recommended set of managed data identifiers.

      If the job is a recurring job and this value is ALL or EXCLUDE, each job run automatically uses new managed data identifiers that are released. If this value is null or RECOMMENDED for a recurring job, each job run uses all the managed data identifiers that are in the recommended set when the run starts.

      For information about individual managed data identifiers or to determine which ones are in the recommended set, see Using managed data identifiers and Recommended managed data identifiers in the Amazon Macie User Guide.

    • name(Option<String>):

      The custom name of the job.

    • s3_job_definition(Option<S3JobDefinition>):

      The S3 buckets that contain the objects to analyze, and the scope of that analysis.

    • sampling_percentage(Option<i32>):

      The sampling depth, as a percentage, that determines the percentage of eligible objects that the job analyzes.

    • schedule_frequency(Option<JobScheduleFrequency>):

      The recurrence pattern for running the job. This value is null if the job is configured to run only once.

    • statistics(Option<Statistics>):

      The number of times that the job has run and processing statistics for the job’s current run.

    • tags(Option<HashMap::<String, String>>):

      A map of key-value pairs that specifies which tags (keys and values) are associated with the classification job.

    • user_paused_details(Option<UserPausedDetails>):

      If the current status of the job is USER_PAUSED, specifies when the job was paused and when the job or job run will expire and be cancelled if it isn’t resumed. This value is present only if the value for jobStatus is USER_PAUSED.

  • On failure, responds with SdkError<DescribeClassificationJobError>
source§

impl Client

source

pub fn describe_organization_configuration( &self ) -> DescribeOrganizationConfigurationFluentBuilder

Constructs a fluent builder for the DescribeOrganizationConfiguration operation.

source§

impl Client

source

pub fn disable_macie(&self) -> DisableMacieFluentBuilder

Constructs a fluent builder for the DisableMacie operation.

source§

impl Client

source

pub fn disable_organization_admin_account( &self ) -> DisableOrganizationAdminAccountFluentBuilder

Constructs a fluent builder for the DisableOrganizationAdminAccount operation.

source§

impl Client

source

pub fn disassociate_from_administrator_account( &self ) -> DisassociateFromAdministratorAccountFluentBuilder

Constructs a fluent builder for the DisassociateFromAdministratorAccount operation.

source§

impl Client

source

pub fn disassociate_from_master_account( &self ) -> DisassociateFromMasterAccountFluentBuilder

Constructs a fluent builder for the DisassociateFromMasterAccount operation.

source§

impl Client

source

pub fn disassociate_member(&self) -> DisassociateMemberFluentBuilder

Constructs a fluent builder for the DisassociateMember operation.

source§

impl Client

source

pub fn enable_macie(&self) -> EnableMacieFluentBuilder

Constructs a fluent builder for the EnableMacie operation.

source§

impl Client

source

pub fn enable_organization_admin_account( &self ) -> EnableOrganizationAdminAccountFluentBuilder

Constructs a fluent builder for the EnableOrganizationAdminAccount operation.

source§

impl Client

source

pub fn get_administrator_account(&self) -> GetAdministratorAccountFluentBuilder

Constructs a fluent builder for the GetAdministratorAccount operation.

source§

impl Client

source

pub fn get_allow_list(&self) -> GetAllowListFluentBuilder

Constructs a fluent builder for the GetAllowList operation.

source§

impl Client

source

pub fn get_automated_discovery_configuration( &self ) -> GetAutomatedDiscoveryConfigurationFluentBuilder

Constructs a fluent builder for the GetAutomatedDiscoveryConfiguration operation.

  • The fluent builder takes no input, just send it.
  • On success, responds with GetAutomatedDiscoveryConfigurationOutput with field(s):
    • classification_scope_id(Option<String>):

      The unique identifier for the classification scope that’s used when performing automated sensitive data discovery for the account. The classification scope specifies S3 buckets to exclude from automated sensitive data discovery.

    • disabled_at(Option<DateTime>):

      The date and time, in UTC and extended ISO 8601 format, when automated sensitive data discovery was most recently disabled for the account. This value is null if automated sensitive data discovery wasn’t enabled and subsequently disabled for the account.

    • first_enabled_at(Option<DateTime>):

      The date and time, in UTC and extended ISO 8601 format, when automated sensitive data discovery was initially enabled for the account. This value is null if automated sensitive data discovery has never been enabled for the account.

    • last_updated_at(Option<DateTime>):

      The date and time, in UTC and extended ISO 8601 format, when automated sensitive data discovery was most recently enabled or disabled for the account.

    • sensitivity_inspection_template_id(Option<String>):

      The unique identifier for the sensitivity inspection template that’s used when performing automated sensitive data discovery for the account. The template specifies which allow lists, custom data identifiers, and managed data identifiers to use when analyzing data.

    • status(Option<AutomatedDiscoveryStatus>):

      The current status of the automated sensitive data discovery configuration for the account. Possible values are: ENABLED, use the specified settings to perform automated sensitive data discovery activities for the account; and, DISABLED, don’t perform automated sensitive data discovery activities for the account.

  • On failure, responds with SdkError<GetAutomatedDiscoveryConfigurationError>
source§

impl Client

source

pub fn get_bucket_statistics(&self) -> GetBucketStatisticsFluentBuilder

Constructs a fluent builder for the GetBucketStatistics operation.

source§

impl Client

source

pub fn get_classification_export_configuration( &self ) -> GetClassificationExportConfigurationFluentBuilder

Constructs a fluent builder for the GetClassificationExportConfiguration operation.

source§

impl Client

source

pub fn get_classification_scope(&self) -> GetClassificationScopeFluentBuilder

Constructs a fluent builder for the GetClassificationScope operation.

source§

impl Client

source

pub fn get_custom_data_identifier(&self) -> GetCustomDataIdentifierFluentBuilder

Constructs a fluent builder for the GetCustomDataIdentifier operation.

  • The fluent builder is configurable:
  • On success, responds with GetCustomDataIdentifierOutput with field(s):
    • arn(Option<String>):

      The Amazon Resource Name (ARN) of the custom data identifier.

    • created_at(Option<DateTime>):

      The date and time, in UTC and extended ISO 8601 format, when the custom data identifier was created.

    • deleted(Option<bool>):

      Specifies whether the custom data identifier was deleted. If you delete a custom data identifier, Amazon Macie doesn’t delete it permanently. Instead, it soft deletes the identifier.

    • description(Option<String>):

      The custom description of the custom data identifier.

    • id(Option<String>):

      The unique identifier for the custom data identifier.

    • ignore_words(Option<Vec::<String>>):

      An array that lists specific character sequences (ignore words) to exclude from the results. If the text matched by the regular expression contains any string in this array, Amazon Macie ignores it. Ignore words are case sensitive.

    • keywords(Option<Vec::<String>>):

      An array that lists specific character sequences (keywords), one of which must precede and be within proximity (maximumMatchDistance) of the regular expression to match. Keywords aren’t case sensitive.

    • maximum_match_distance(Option<i32>):

      The maximum number of characters that can exist between the end of at least one complete character sequence specified by the keywords array and the end of the text that matches the regex pattern. If a complete keyword precedes all the text that matches the pattern and the keyword is within the specified distance, Amazon Macie includes the result. Otherwise, Macie excludes the result.

    • name(Option<String>):

      The custom name of the custom data identifier.

    • regex(Option<String>):

      The regular expression (regex) that defines the pattern to match.

    • severity_levels(Option<Vec::<SeverityLevel>>):

      Specifies the severity that’s assigned to findings that the custom data identifier produces, based on the number of occurrences of text that match the custom data identifier’s detection criteria. By default, Amazon Macie creates findings for S3 objects that contain at least one occurrence of text that matches the detection criteria, and Macie assigns the MEDIUM severity to those findings.

    • tags(Option<HashMap::<String, String>>):

      A map of key-value pairs that identifies the tags (keys and values) that are associated with the custom data identifier.

  • On failure, responds with SdkError<GetCustomDataIdentifierError>
source§

impl Client

source

pub fn get_finding_statistics(&self) -> GetFindingStatisticsFluentBuilder

Constructs a fluent builder for the GetFindingStatistics operation.

source§

impl Client

source

pub fn get_findings(&self) -> GetFindingsFluentBuilder

Constructs a fluent builder for the GetFindings operation.

source§

impl Client

source

pub fn get_findings_filter(&self) -> GetFindingsFilterFluentBuilder

Constructs a fluent builder for the GetFindingsFilter operation.

source§

impl Client

source

pub fn get_findings_publication_configuration( &self ) -> GetFindingsPublicationConfigurationFluentBuilder

Constructs a fluent builder for the GetFindingsPublicationConfiguration operation.

source§

impl Client

source

pub fn get_invitations_count(&self) -> GetInvitationsCountFluentBuilder

Constructs a fluent builder for the GetInvitationsCount operation.

source§

impl Client

source

pub fn get_macie_session(&self) -> GetMacieSessionFluentBuilder

Constructs a fluent builder for the GetMacieSession operation.

  • The fluent builder takes no input, just send it.
  • On success, responds with GetMacieSessionOutput with field(s):
    • created_at(Option<DateTime>):

      The date and time, in UTC and extended ISO 8601 format, when the Amazon Macie account was created.

    • finding_publishing_frequency(Option<FindingPublishingFrequency>):

      The frequency with which Amazon Macie publishes updates to policy findings for the account. This includes publishing updates to Security Hub and Amazon EventBridge (formerly Amazon CloudWatch Events).

    • service_role(Option<String>):

      The Amazon Resource Name (ARN) of the service-linked role that allows Amazon Macie to monitor and analyze data in Amazon Web Services resources for the account.

    • status(Option<MacieStatus>):

      The current status of the Amazon Macie account. Possible values are: PAUSED, the account is enabled but all Macie activities are suspended (paused) for the account; and, ENABLED, the account is enabled and all Macie activities are enabled for the account.

    • updated_at(Option<DateTime>):

      The date and time, in UTC and extended ISO 8601 format, of the most recent change to the status or configuration settings for the Amazon Macie account.

  • On failure, responds with SdkError<GetMacieSessionError>
source§

impl Client

source

pub fn get_master_account(&self) -> GetMasterAccountFluentBuilder

Constructs a fluent builder for the GetMasterAccount operation.

  • The fluent builder takes no input, just send it.
  • On success, responds with GetMasterAccountOutput with field(s):
    • master(Option<Invitation>):

      (Deprecated) The Amazon Web Services account ID for the administrator account. If the accounts are associated by a Macie membership invitation, this object also provides details about the invitation that was sent to establish the relationship between the accounts.

  • On failure, responds with SdkError<GetMasterAccountError>
source§

impl Client

source

pub fn get_member(&self) -> GetMemberFluentBuilder

Constructs a fluent builder for the GetMember operation.

source§

impl Client

source

pub fn get_resource_profile(&self) -> GetResourceProfileFluentBuilder

Constructs a fluent builder for the GetResourceProfile operation.

  • The fluent builder is configurable:
  • On success, responds with GetResourceProfileOutput with field(s):
    • profile_updated_at(Option<DateTime>):

      The date and time, in UTC and extended ISO 8601 format, when Amazon Macie most recently recalculated sensitive data discovery statistics and details for the bucket. If the bucket’s sensitivity score is calculated automatically, this includes the score.

    • sensitivity_score(Option<i32>):

      The current sensitivity score for the bucket, ranging from -1 (classification error) to 100 (sensitive). By default, this score is calculated automatically based on the amount of data that Amazon Macie has analyzed in the bucket and the amount of sensitive data that Macie has found in the bucket.

    • sensitivity_score_overridden(Option<bool>):

      Specifies whether the bucket’s current sensitivity score was set manually. If this value is true, the score was manually changed to 100. If this value is false, the score was calculated automatically by Amazon Macie.

    • statistics(Option<ResourceStatistics>):

      The sensitive data discovery statistics for the bucket. The statistics capture the results of automated sensitive data discovery activities that Amazon Macie has performed for the bucket.

  • On failure, responds with SdkError<GetResourceProfileError>
source§

impl Client

source

pub fn get_reveal_configuration(&self) -> GetRevealConfigurationFluentBuilder

Constructs a fluent builder for the GetRevealConfiguration operation.

source§

impl Client

source

pub fn get_sensitive_data_occurrences( &self ) -> GetSensitiveDataOccurrencesFluentBuilder

Constructs a fluent builder for the GetSensitiveDataOccurrences operation.

source§

impl Client

source

pub fn get_sensitive_data_occurrences_availability( &self ) -> GetSensitiveDataOccurrencesAvailabilityFluentBuilder

Constructs a fluent builder for the GetSensitiveDataOccurrencesAvailability operation.

  • The fluent builder is configurable:
  • On success, responds with GetSensitiveDataOccurrencesAvailabilityOutput with field(s):
    • code(Option<AvailabilityCode>):

      Specifies whether occurrences of sensitive data can be retrieved for the finding. Possible values are: AVAILABLE, the sensitive data can be retrieved; and, UNAVAILABLE, the sensitive data can’t be retrieved. If this value is UNAVAILABLE, the reasons array indicates why the data can’t be retrieved.

    • reasons(Option<Vec::<UnavailabilityReasonCode>>):

      Specifies why occurrences of sensitive data can’t be retrieved for the finding. Possible values are:

      • ACCOUNT_NOT_IN_ORGANIZATION - The affected account isn’t currently part of your organization. Or the account is part of your organization but Macie isn’t currently enabled for the account. You’re not allowed to access the affected S3 object by using Macie.

      • INVALID_CLASSIFICATION_RESULT - There isn’t a corresponding sensitive data discovery result for the finding. Or the corresponding sensitive data discovery result isn’t available in the current Amazon Web Services Region, is malformed or corrupted, or uses an unsupported storage format. Macie can’t verify the location of the sensitive data to retrieve.

      • INVALID_RESULT_SIGNATURE - The corresponding sensitive data discovery result is stored in an S3 object that wasn’t signed by Macie. Macie can’t verify the integrity and authenticity of the sensitive data discovery result. Therefore, Macie can’t verify the location of the sensitive data to retrieve.

      • MEMBER_ROLE_TOO_PERMISSIVE - The trust or permissions policy for the IAM role in the affected member account doesn’t meet Macie requirements for restricting access to the role. Or the role’s trust policy doesn’t specify the correct external ID for your organization. Macie can’t assume the role to retrieve the sensitive data.

      • MISSING_GET_MEMBER_PERMISSION - You’re not allowed to retrieve information about the association between your account and the affected account. Macie can’t determine whether you’re allowed to access the affected S3 object as the delegated Macie administrator for the affected account.

      • OBJECT_EXCEEDS_SIZE_QUOTA - The storage size of the affected S3 object exceeds the size quota for retrieving occurrences of sensitive data from this type of file.

      • OBJECT_UNAVAILABLE - The affected S3 object isn’t available. The object was renamed, moved, deleted, or changed after Macie created the finding. Or the object is encrypted with an KMS key that’s currently disabled.

      • RESULT_NOT_SIGNED - The corresponding sensitive data discovery result is stored in an S3 object that hasn’t been signed. Macie can’t verify the integrity and authenticity of the sensitive data discovery result. Therefore, Macie can’t verify the location of the sensitive data to retrieve.

      • ROLE_TOO_PERMISSIVE - Your account is configured to retrieve occurrences of sensitive data by using an IAM role whose trust or permissions policy doesn’t meet Macie requirements for restricting access to the role. Macie can’t assume the role to retrieve the sensitive data.

      • UNSUPPORTED_FINDING_TYPE - The specified finding isn’t a sensitive data finding.

      • UNSUPPORTED_OBJECT_TYPE - The affected S3 object uses a file or storage format that Macie doesn’t support for retrieving occurrences of sensitive data.

      This value is null if sensitive data can be retrieved for the finding.

  • On failure, responds with SdkError<GetSensitiveDataOccurrencesAvailabilityError>
source§

impl Client

source

pub fn get_sensitivity_inspection_template( &self ) -> GetSensitivityInspectionTemplateFluentBuilder

Constructs a fluent builder for the GetSensitivityInspectionTemplate operation.

source§

impl Client

source

pub fn get_usage_statistics(&self) -> GetUsageStatisticsFluentBuilder

Constructs a fluent builder for the GetUsageStatistics operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn get_usage_totals(&self) -> GetUsageTotalsFluentBuilder

Constructs a fluent builder for the GetUsageTotals operation.

  • The fluent builder is configurable:
    • time_range(impl Into<String>) / set_time_range(Option<String>):
      required: false

      The inclusive time period to retrieve the data for. Valid values are: MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, for the preceding 30 days. If you don’t specify a value for this parameter, Amazon Macie provides aggregated usage data for the preceding 30 days.


  • On success, responds with GetUsageTotalsOutput with field(s):
    • time_range(Option<TimeRange>):

      The inclusive time period that the usage data applies to. Possible values are: MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, for the preceding 30 days.

    • usage_totals(Option<Vec::<UsageTotal>>):

      An array of objects that contains the results of the query. Each object contains the data for a specific usage metric.

  • On failure, responds with SdkError<GetUsageTotalsError>
source§

impl Client

source

pub fn list_allow_lists(&self) -> ListAllowListsFluentBuilder

Constructs a fluent builder for the ListAllowLists operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_classification_jobs(&self) -> ListClassificationJobsFluentBuilder

Constructs a fluent builder for the ListClassificationJobs operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_classification_scopes( &self ) -> ListClassificationScopesFluentBuilder

Constructs a fluent builder for the ListClassificationScopes operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_custom_data_identifiers( &self ) -> ListCustomDataIdentifiersFluentBuilder

Constructs a fluent builder for the ListCustomDataIdentifiers operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_findings(&self) -> ListFindingsFluentBuilder

Constructs a fluent builder for the ListFindings operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_findings_filters(&self) -> ListFindingsFiltersFluentBuilder

Constructs a fluent builder for the ListFindingsFilters operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_invitations(&self) -> ListInvitationsFluentBuilder

Constructs a fluent builder for the ListInvitations operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_managed_data_identifiers( &self ) -> ListManagedDataIdentifiersFluentBuilder

Constructs a fluent builder for the ListManagedDataIdentifiers operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_members(&self) -> ListMembersFluentBuilder

Constructs a fluent builder for the ListMembers operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_organization_admin_accounts( &self ) -> ListOrganizationAdminAccountsFluentBuilder

Constructs a fluent builder for the ListOrganizationAdminAccounts operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_resource_profile_artifacts( &self ) -> ListResourceProfileArtifactsFluentBuilder

Constructs a fluent builder for the ListResourceProfileArtifacts operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_resource_profile_detections( &self ) -> ListResourceProfileDetectionsFluentBuilder

Constructs a fluent builder for the ListResourceProfileDetections operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_sensitivity_inspection_templates( &self ) -> ListSensitivityInspectionTemplatesFluentBuilder

Constructs a fluent builder for the ListSensitivityInspectionTemplates operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_tags_for_resource(&self) -> ListTagsForResourceFluentBuilder

Constructs a fluent builder for the ListTagsForResource operation.

source§

impl Client

source

pub fn put_classification_export_configuration( &self ) -> PutClassificationExportConfigurationFluentBuilder

Constructs a fluent builder for the PutClassificationExportConfiguration operation.

source§

impl Client

source

pub fn put_findings_publication_configuration( &self ) -> PutFindingsPublicationConfigurationFluentBuilder

Constructs a fluent builder for the PutFindingsPublicationConfiguration operation.

source§

impl Client

source

pub fn search_resources(&self) -> SearchResourcesFluentBuilder

Constructs a fluent builder for the SearchResources operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn tag_resource(&self) -> TagResourceFluentBuilder

Constructs a fluent builder for the TagResource operation.

source§

impl Client

source

pub fn test_custom_data_identifier( &self ) -> TestCustomDataIdentifierFluentBuilder

Constructs a fluent builder for the TestCustomDataIdentifier operation.

source§

impl Client

source

pub fn untag_resource(&self) -> UntagResourceFluentBuilder

Constructs a fluent builder for the UntagResource operation.

source§

impl Client

source

pub fn update_allow_list(&self) -> UpdateAllowListFluentBuilder

Constructs a fluent builder for the UpdateAllowList operation.

source§

impl Client

source

pub fn update_automated_discovery_configuration( &self ) -> UpdateAutomatedDiscoveryConfigurationFluentBuilder

Constructs a fluent builder for the UpdateAutomatedDiscoveryConfiguration operation.

  • The fluent builder is configurable:
    • status(AutomatedDiscoveryStatus) / set_status(Option<AutomatedDiscoveryStatus>):
      required: true

      The new status of automated sensitive data discovery for the account. Valid values are: ENABLED, start or resume automated sensitive data discovery activities for the account; and, DISABLED, stop performing automated sensitive data discovery activities for the account.

      When you enable automated sensitive data discovery for the first time, Amazon Macie uses default configuration settings to determine which data sources to analyze and which managed data identifiers to use. To change these settings, use the UpdateClassificationScope and UpdateSensitivityInspectionTemplate operations, respectively. If you change the settings and subsequently disable the configuration, Amazon Macie retains your changes.


  • On success, responds with UpdateAutomatedDiscoveryConfigurationOutput
  • On failure, responds with SdkError<UpdateAutomatedDiscoveryConfigurationError>
source§

impl Client

source

pub fn update_classification_job(&self) -> UpdateClassificationJobFluentBuilder

Constructs a fluent builder for the UpdateClassificationJob operation.

  • The fluent builder is configurable:
    • job_id(impl Into<String>) / set_job_id(Option<String>):
      required: true

      The unique identifier for the classification job.


    • job_status(JobStatus) / set_job_status(Option<JobStatus>):
      required: true

      The new status for the job. Valid values are:

      • CANCELLED - Stops the job permanently and cancels it. This value is valid only if the job’s current status is IDLE, PAUSED, RUNNING, or USER_PAUSED.

        If you specify this value and the job’s current status is RUNNING, Amazon Macie immediately begins to stop all processing tasks for the job. You can’t resume or restart a job after you cancel it.

      • RUNNING - Resumes the job. This value is valid only if the job’s current status is USER_PAUSED.

        If you paused the job while it was actively running and you specify this value less than 30 days after you paused the job, Macie immediately resumes processing from the point where you paused the job. Otherwise, Macie resumes the job according to the schedule and other settings for the job.

      • USER_PAUSED - Pauses the job temporarily. This value is valid only if the job’s current status is IDLE, PAUSED, or RUNNING. If you specify this value and the job’s current status is RUNNING, Macie immediately begins to pause all processing tasks for the job.

        If you pause a one-time job and you don’t resume it within 30 days, the job expires and Macie cancels the job. If you pause a recurring job when its status is RUNNING and you don’t resume it within 30 days, the job run expires and Macie cancels the run. To check the expiration date, refer to the UserPausedDetails.jobExpiresAt property.


  • On success, responds with UpdateClassificationJobOutput
  • On failure, responds with SdkError<UpdateClassificationJobError>
source§

impl Client

source

pub fn update_classification_scope( &self ) -> UpdateClassificationScopeFluentBuilder

Constructs a fluent builder for the UpdateClassificationScope operation.

source§

impl Client

source

pub fn update_findings_filter(&self) -> UpdateFindingsFilterFluentBuilder

Constructs a fluent builder for the UpdateFindingsFilter operation.

source§

impl Client

source

pub fn update_macie_session(&self) -> UpdateMacieSessionFluentBuilder

Constructs a fluent builder for the UpdateMacieSession operation.

source§

impl Client

source

pub fn update_member_session(&self) -> UpdateMemberSessionFluentBuilder

Constructs a fluent builder for the UpdateMemberSession operation.

source§

impl Client

source

pub fn update_organization_configuration( &self ) -> UpdateOrganizationConfigurationFluentBuilder

Constructs a fluent builder for the UpdateOrganizationConfiguration operation.

source§

impl Client

source

pub fn update_resource_profile(&self) -> UpdateResourceProfileFluentBuilder

Constructs a fluent builder for the UpdateResourceProfile operation.

source§

impl Client

source

pub fn update_resource_profile_detections( &self ) -> UpdateResourceProfileDetectionsFluentBuilder

Constructs a fluent builder for the UpdateResourceProfileDetections operation.

source§

impl Client

source

pub fn update_reveal_configuration( &self ) -> UpdateRevealConfigurationFluentBuilder

Constructs a fluent builder for the UpdateRevealConfiguration operation.

source§

impl Client

source

pub fn update_sensitivity_inspection_template( &self ) -> UpdateSensitivityInspectionTemplateFluentBuilder

Constructs a fluent builder for the UpdateSensitivityInspectionTemplate operation.

source§

impl Client

source

pub fn from_conf(conf: Config) -> Self

Creates a new client from the service Config.

§Panics

This method will panic in the following cases:

  • Retries or timeouts are enabled without a sleep_impl configured.
  • Identity caching is enabled without a sleep_impl and time_source configured.
  • No behavior_version is provided.

The panic message for each of these will have instructions on how to resolve them.

source

pub fn config(&self) -> &Config

Returns the client’s configuration.

source§

impl Client

source

pub fn new(sdk_config: &SdkConfig) -> Self

Creates a new client from an SDK Config.

§Panics
  • This method will panic if the sdk_config is missing an async sleep implementation. If you experience this panic, set the sleep_impl on the Config passed into this function to fix it.
  • This method will panic if the sdk_config is missing an HTTP connector. If you experience this panic, set the http_connector on the Config passed into this function to fix it.
  • This method will panic if no BehaviorVersion is provided. If you experience this panic, set behavior_version on the Config or enable the behavior-version-latest Cargo feature.

Trait Implementations§

source§

impl Clone for Client

source§

fn clone(&self) -> Client

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Client

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Waiters for Client

source§

fn wait_until_finding_revealed(&self) -> FindingRevealedFluentBuilder

Wait until the sensitive data occurrences are ready.

Auto Trait Implementations§

§

impl Freeze for Client

§

impl !RefUnwindSafe for Client

§

impl Send for Client

§

impl Sync for Client

§

impl Unpin for Client

§

impl !UnwindSafe for Client

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more