Struct aws_sdk_securityhub::Client
source · pub struct Client { /* private fields */ }Expand description
Client for AWS SecurityHub
Client for invoking operations on AWS SecurityHub. Each operation on AWS SecurityHub 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_securityhub::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_securityhub::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 AcceptAdministratorInvitation operation has
a Client::accept_administrator_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_administrator_invitation()
.administrator_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.
Implementations§
source§impl Client
impl Client
sourcepub fn accept_administrator_invitation(
&self
) -> AcceptAdministratorInvitationFluentBuilder
pub fn accept_administrator_invitation( &self ) -> AcceptAdministratorInvitationFluentBuilder
Constructs a fluent builder for the AcceptAdministratorInvitation operation.
- The fluent builder is configurable:
administrator_id(impl Into<String>)/set_administrator_id(Option<String>):
required: trueThe account ID of the Security Hub administrator account that sent the invitation.
invitation_id(impl Into<String>)/set_invitation_id(Option<String>):
required: trueThe identifier of the invitation sent from the Security Hub administrator account.
- On success, responds with
AcceptAdministratorInvitationOutput - On failure, responds with
SdkError<AcceptAdministratorInvitationError>
source§impl Client
impl Client
sourcepub fn accept_invitation(&self) -> AcceptInvitationFluentBuilder
👎Deprecated: This API has been deprecated, use AcceptAdministratorInvitation API instead.
pub fn accept_invitation(&self) -> AcceptInvitationFluentBuilder
Constructs a fluent builder for the AcceptInvitation operation.
- The fluent builder is configurable:
master_id(impl Into<String>)/set_master_id(Option<String>):
required: trueThe account ID of the Security Hub administrator account that sent the invitation.
invitation_id(impl Into<String>)/set_invitation_id(Option<String>):
required: trueThe identifier of the invitation sent from the Security Hub administrator account.
- On success, responds with
AcceptInvitationOutput - On failure, responds with
SdkError<AcceptInvitationError>
source§impl Client
impl Client
sourcepub fn batch_delete_automation_rules(
&self
) -> BatchDeleteAutomationRulesFluentBuilder
pub fn batch_delete_automation_rules( &self ) -> BatchDeleteAutomationRulesFluentBuilder
Constructs a fluent builder for the BatchDeleteAutomationRules operation.
- The fluent builder is configurable:
automation_rules_arns(impl Into<String>)/set_automation_rules_arns(Option<Vec::<String>>):
required: trueA list of Amazon Resource Names (ARNs) for the rules that are to be deleted.
- On success, responds with
BatchDeleteAutomationRulesOutputwith field(s):processed_automation_rules(Option<Vec::<String>>):A list of properly processed rule ARNs.
unprocessed_automation_rules(Option<Vec::<UnprocessedAutomationRule>>):A list of objects containing
RuleArn,ErrorCode, andErrorMessage. This parameter tells you which automation rules the request didn’t delete and why.
- On failure, responds with
SdkError<BatchDeleteAutomationRulesError>
source§impl Client
impl Client
sourcepub fn batch_disable_standards(&self) -> BatchDisableStandardsFluentBuilder
pub fn batch_disable_standards(&self) -> BatchDisableStandardsFluentBuilder
Constructs a fluent builder for the BatchDisableStandards operation.
- The fluent builder is configurable:
standards_subscription_arns(impl Into<String>)/set_standards_subscription_arns(Option<Vec::<String>>):
required: trueThe ARNs of the standards subscriptions to disable.
- On success, responds with
BatchDisableStandardsOutputwith field(s):standards_subscriptions(Option<Vec::<StandardsSubscription>>):The details of the standards subscriptions that were disabled.
- On failure, responds with
SdkError<BatchDisableStandardsError>
source§impl Client
impl Client
sourcepub fn batch_enable_standards(&self) -> BatchEnableStandardsFluentBuilder
pub fn batch_enable_standards(&self) -> BatchEnableStandardsFluentBuilder
Constructs a fluent builder for the BatchEnableStandards operation.
- The fluent builder is configurable:
standards_subscription_requests(StandardsSubscriptionRequest)/set_standards_subscription_requests(Option<Vec::<StandardsSubscriptionRequest>>):
required: trueThe list of standards checks to enable.
- On success, responds with
BatchEnableStandardsOutputwith field(s):standards_subscriptions(Option<Vec::<StandardsSubscription>>):The details of the standards subscriptions that were enabled.
- On failure, responds with
SdkError<BatchEnableStandardsError>
source§impl Client
impl Client
sourcepub fn batch_get_automation_rules(&self) -> BatchGetAutomationRulesFluentBuilder
pub fn batch_get_automation_rules(&self) -> BatchGetAutomationRulesFluentBuilder
Constructs a fluent builder for the BatchGetAutomationRules operation.
- The fluent builder is configurable:
automation_rules_arns(impl Into<String>)/set_automation_rules_arns(Option<Vec::<String>>):
required: trueA list of rule ARNs to get details for.
- On success, responds with
BatchGetAutomationRulesOutputwith field(s):rules(Option<Vec::<AutomationRulesConfig>>):A list of rule details for the provided rule ARNs.
unprocessed_automation_rules(Option<Vec::<UnprocessedAutomationRule>>):A list of objects containing
RuleArn,ErrorCode, andErrorMessage. This parameter tells you which automation rules the request didn’t retrieve and why.
- On failure, responds with
SdkError<BatchGetAutomationRulesError>
source§impl Client
impl Client
sourcepub fn batch_get_configuration_policy_associations(
&self
) -> BatchGetConfigurationPolicyAssociationsFluentBuilder
pub fn batch_get_configuration_policy_associations( &self ) -> BatchGetConfigurationPolicyAssociationsFluentBuilder
Constructs a fluent builder for the BatchGetConfigurationPolicyAssociations operation.
- The fluent builder is configurable:
configuration_policy_association_identifiers(ConfigurationPolicyAssociation)/set_configuration_policy_association_identifiers(Option<Vec::<ConfigurationPolicyAssociation>>):
required: trueSpecifies one or more target account IDs, organizational unit (OU) IDs, or the root ID to retrieve associations for.
- On success, responds with
BatchGetConfigurationPolicyAssociationsOutputwith field(s):configuration_policy_associations(Option<Vec::<ConfigurationPolicyAssociationSummary>>):Describes associations for the target accounts, OUs, or the root.
unprocessed_configuration_policy_associations(Option<Vec::<UnprocessedConfigurationPolicyAssociation>>):An array of configuration policy associations, one for each configuration policy association identifier, that was specified in the request but couldn’t be processed due to an error.
- On failure, responds with
SdkError<BatchGetConfigurationPolicyAssociationsError>
source§impl Client
impl Client
sourcepub fn batch_get_security_controls(
&self
) -> BatchGetSecurityControlsFluentBuilder
pub fn batch_get_security_controls( &self ) -> BatchGetSecurityControlsFluentBuilder
Constructs a fluent builder for the BatchGetSecurityControls operation.
- The fluent builder is configurable:
security_control_ids(impl Into<String>)/set_security_control_ids(Option<Vec::<String>>):
required: trueA list of security controls (identified with
SecurityControlId,SecurityControlArn, or a mix of both parameters). The security control ID or Amazon Resource Name (ARN) is the same across standards.
- On success, responds with
BatchGetSecurityControlsOutputwith field(s):security_controls(Option<Vec::<SecurityControl>>):An array that returns the identifier, Amazon Resource Name (ARN), and other details about a security control. The same information is returned whether the request includes
SecurityControlIdorSecurityControlArn.unprocessed_ids(Option<Vec::<UnprocessedSecurityControl>>):A security control (identified with
SecurityControlId,SecurityControlArn, or a mix of both parameters) for which details cannot be returned.
- On failure, responds with
SdkError<BatchGetSecurityControlsError>
source§impl Client
impl Client
sourcepub fn batch_get_standards_control_associations(
&self
) -> BatchGetStandardsControlAssociationsFluentBuilder
pub fn batch_get_standards_control_associations( &self ) -> BatchGetStandardsControlAssociationsFluentBuilder
Constructs a fluent builder for the BatchGetStandardsControlAssociations operation.
- The fluent builder is configurable:
standards_control_association_ids(StandardsControlAssociationId)/set_standards_control_association_ids(Option<Vec::<StandardsControlAssociationId>>):
required: trueAn array with one or more objects that includes a security control (identified with
SecurityControlId,SecurityControlArn, or a mix of both parameters) and the Amazon Resource Name (ARN) of a standard. This field is used to query the enablement status of a control in a specified standard. The security control ID or ARN is the same across standards.
- On success, responds with
BatchGetStandardsControlAssociationsOutputwith field(s):standards_control_association_details(Option<Vec::<StandardsControlAssociationDetail>>):Provides the enablement status of a security control in a specified standard and other details for the control in relation to the specified standard.
unprocessed_associations(Option<Vec::<UnprocessedStandardsControlAssociation>>):A security control (identified with
SecurityControlId,SecurityControlArn, or a mix of both parameters) whose enablement status in a specified standard cannot be returned.
- On failure, responds with
SdkError<BatchGetStandardsControlAssociationsError>
source§impl Client
impl Client
sourcepub fn batch_import_findings(&self) -> BatchImportFindingsFluentBuilder
pub fn batch_import_findings(&self) -> BatchImportFindingsFluentBuilder
Constructs a fluent builder for the BatchImportFindings operation.
- The fluent builder is configurable:
findings(AwsSecurityFinding)/set_findings(Option<Vec::<AwsSecurityFinding>>):
required: trueA list of findings to import. To successfully import a finding, it must follow the Amazon Web Services Security Finding Format. Maximum of 100 findings per request.
- On success, responds with
BatchImportFindingsOutputwith field(s):failed_count(Option<i32>):The number of findings that failed to import.
success_count(Option<i32>):The number of findings that were successfully imported.
failed_findings(Option<Vec::<ImportFindingsError>>):The list of findings that failed to import.
- On failure, responds with
SdkError<BatchImportFindingsError>
source§impl Client
impl Client
sourcepub fn batch_update_automation_rules(
&self
) -> BatchUpdateAutomationRulesFluentBuilder
pub fn batch_update_automation_rules( &self ) -> BatchUpdateAutomationRulesFluentBuilder
Constructs a fluent builder for the BatchUpdateAutomationRules operation.
- The fluent builder is configurable:
update_automation_rules_request_items(UpdateAutomationRulesRequestItem)/set_update_automation_rules_request_items(Option<Vec::<UpdateAutomationRulesRequestItem>>):
required: trueAn array of ARNs for the rules that are to be updated. Optionally, you can also include
RuleStatusandRuleOrder.
- On success, responds with
BatchUpdateAutomationRulesOutputwith field(s):processed_automation_rules(Option<Vec::<String>>):A list of properly processed rule ARNs.
unprocessed_automation_rules(Option<Vec::<UnprocessedAutomationRule>>):A list of objects containing
RuleArn,ErrorCode, andErrorMessage. This parameter tells you which automation rules the request didn’t update and why.
- On failure, responds with
SdkError<BatchUpdateAutomationRulesError>
source§impl Client
impl Client
sourcepub fn batch_update_findings(&self) -> BatchUpdateFindingsFluentBuilder
pub fn batch_update_findings(&self) -> BatchUpdateFindingsFluentBuilder
Constructs a fluent builder for the BatchUpdateFindings operation.
- The fluent builder is configurable:
finding_identifiers(AwsSecurityFindingIdentifier)/set_finding_identifiers(Option<Vec::<AwsSecurityFindingIdentifier>>):
required: trueThe list of findings to update.
BatchUpdateFindingscan be used to update up to 100 findings at a time.For each finding, the list provides the finding identifier and the ARN of the finding provider.
note(NoteUpdate)/set_note(Option<NoteUpdate>):
required: falseThe updated note.
severity(SeverityUpdate)/set_severity(Option<SeverityUpdate>):
required: falseUsed to update the finding severity.
verification_state(VerificationState)/set_verification_state(Option<VerificationState>):
required: falseIndicates the veracity of a finding.
The available values for
VerificationStateare as follows.-
UNKNOWN– The default disposition of a security finding -
TRUE_POSITIVE– The security finding is confirmed -
FALSE_POSITIVE– The security finding was determined to be a false alarm -
BENIGN_POSITIVE– A special case ofTRUE_POSITIVEwhere the finding doesn’t pose any threat, is expected, or both
-
confidence(i32)/set_confidence(Option<i32>):
required: falseThe updated value for the finding confidence. Confidence is defined as the likelihood that a finding accurately identifies the behavior or issue that it was intended to identify.
Confidence is scored on a 0-100 basis using a ratio scale, where 0 means zero percent confidence and 100 means 100 percent confidence.
criticality(i32)/set_criticality(Option<i32>):
required: falseThe updated value for the level of importance assigned to the resources associated with the findings.
A score of 0 means that the underlying resources have no criticality, and a score of 100 is reserved for the most critical resources.
types(impl Into<String>)/set_types(Option<Vec::<String>>):
required: falseOne or more finding types in the format of namespace/category/classifier that classify a finding.
Valid namespace values are as follows.
-
Software and Configuration Checks
-
TTPs
-
Effects
-
Unusual Behaviors
-
Sensitive Data Identifications
-
user_defined_fields(impl Into<String>, impl Into<String>)/set_user_defined_fields(Option<HashMap::<String, String>>):
required: falseA list of name/value string pairs associated with the finding. These are custom, user-defined fields added to a finding.
workflow(WorkflowUpdate)/set_workflow(Option<WorkflowUpdate>):
required: falseUsed to update the workflow status of a finding.
The workflow status indicates the progress of the investigation into the finding.
related_findings(RelatedFinding)/set_related_findings(Option<Vec::<RelatedFinding>>):
required: falseA list of findings that are related to the updated findings.
- On success, responds with
BatchUpdateFindingsOutputwith field(s):processed_findings(Option<Vec::<AwsSecurityFindingIdentifier>>):The list of findings that were updated successfully.
unprocessed_findings(Option<Vec::<BatchUpdateFindingsUnprocessedFinding>>):The list of findings that were not updated.
- On failure, responds with
SdkError<BatchUpdateFindingsError>
source§impl Client
impl Client
sourcepub fn batch_update_standards_control_associations(
&self
) -> BatchUpdateStandardsControlAssociationsFluentBuilder
pub fn batch_update_standards_control_associations( &self ) -> BatchUpdateStandardsControlAssociationsFluentBuilder
Constructs a fluent builder for the BatchUpdateStandardsControlAssociations operation.
- The fluent builder is configurable:
standards_control_association_updates(StandardsControlAssociationUpdate)/set_standards_control_association_updates(Option<Vec::<StandardsControlAssociationUpdate>>):
required: trueUpdates the enablement status of a security control in a specified standard.
- On success, responds with
BatchUpdateStandardsControlAssociationsOutputwith field(s):unprocessed_association_updates(Option<Vec::<UnprocessedStandardsControlAssociationUpdate>>):A security control (identified with
SecurityControlId,SecurityControlArn, or a mix of both parameters) whose enablement status in a specified standard couldn’t be updated.
- On failure, responds with
SdkError<BatchUpdateStandardsControlAssociationsError>
source§impl Client
impl Client
sourcepub fn create_action_target(&self) -> CreateActionTargetFluentBuilder
pub fn create_action_target(&self) -> CreateActionTargetFluentBuilder
Constructs a fluent builder for the CreateActionTarget operation.
- The fluent builder is configurable:
name(impl Into<String>)/set_name(Option<String>):
required: trueThe name of the custom action target. Can contain up to 20 characters.
description(impl Into<String>)/set_description(Option<String>):
required: trueThe description for the custom action target.
id(impl Into<String>)/set_id(Option<String>):
required: trueThe ID for the custom action target. Can contain up to 20 alphanumeric characters.
- On success, responds with
CreateActionTargetOutputwith field(s):action_target_arn(Option<String>):The Amazon Resource Name (ARN) for the custom action target.
- On failure, responds with
SdkError<CreateActionTargetError>
source§impl Client
impl Client
sourcepub fn create_automation_rule(&self) -> CreateAutomationRuleFluentBuilder
pub fn create_automation_rule(&self) -> CreateAutomationRuleFluentBuilder
Constructs a fluent builder for the CreateAutomationRule operation.
- The fluent builder is configurable:
tags(impl Into<String>, impl Into<String>)/set_tags(Option<HashMap::<String, String>>):
required: falseUser-defined tags associated with an automation rule.
rule_status(RuleStatus)/set_rule_status(Option<RuleStatus>):
required: falseWhether the rule is active after it is created. If this parameter is equal to
ENABLED, Security Hub starts applying the rule to findings and finding updates after the rule is created. To change the value of this parameter after creating a rule, useBatchUpdateAutomationRules.rule_order(i32)/set_rule_order(Option<i32>):
required: trueAn integer ranging from 1 to 1000 that represents the order in which the rule action is applied to findings. Security Hub applies rules with lower values for this parameter first.
rule_name(impl Into<String>)/set_rule_name(Option<String>):
required: trueThe name of the rule.
description(impl Into<String>)/set_description(Option<String>):
required: trueA description of the rule.
is_terminal(bool)/set_is_terminal(Option<bool>):
required: falseSpecifies whether a rule is the last to be applied with respect to a finding that matches the rule criteria. This is useful when a finding matches the criteria for multiple rules, and each rule has different actions. If a rule is terminal, Security Hub applies the rule action to a finding that matches the rule criteria and doesn’t evaluate other rules for the finding. By default, a rule isn’t terminal.
criteria(AutomationRulesFindingFilters)/set_criteria(Option<AutomationRulesFindingFilters>):
required: trueA set of ASFF finding field attributes and corresponding expected values that Security Hub uses to filter findings. If a rule is enabled and a finding matches the conditions specified in this parameter, Security Hub applies the rule action to the finding.
actions(AutomationRulesAction)/set_actions(Option<Vec::<AutomationRulesAction>>):
required: trueOne or more actions to update finding fields if a finding matches the conditions specified in
Criteria.
- On success, responds with
CreateAutomationRuleOutputwith field(s):rule_arn(Option<String>):The Amazon Resource Name (ARN) of the automation rule that you created.
- On failure, responds with
SdkError<CreateAutomationRuleError>
source§impl Client
impl Client
sourcepub fn create_configuration_policy(
&self
) -> CreateConfigurationPolicyFluentBuilder
pub fn create_configuration_policy( &self ) -> CreateConfigurationPolicyFluentBuilder
Constructs a fluent builder for the CreateConfigurationPolicy operation.
- The fluent builder is configurable:
name(impl Into<String>)/set_name(Option<String>):
required: trueThe name of the configuration policy. Alphanumeric characters and the following ASCII characters are permitted:
-, ., !, *, /.description(impl Into<String>)/set_description(Option<String>):
required: falseThe description of the configuration policy.
configuration_policy(Policy)/set_configuration_policy(Option<Policy>):
required: trueAn object that defines how Security Hub is configured. It includes whether Security Hub is enabled or disabled, a list of enabled security standards, a list of enabled or disabled security controls, and a list of custom parameter values for specified controls. If you provide a list of security controls that are enabled in the configuration policy, Security Hub disables all other controls (including newly released controls). If you provide a list of security controls that are disabled in the configuration policy, Security Hub enables all other controls (including newly released controls).
tags(impl Into<String>, impl Into<String>)/set_tags(Option<HashMap::<String, String>>):
required: falseUser-defined tags associated with a configuration policy. For more information, see Tagging Security Hub resources in the Security Hub user guide.
- On success, responds with
CreateConfigurationPolicyOutputwith field(s):arn(Option<String>):The Amazon Resource Name (ARN) of the configuration policy.
id(Option<String>):The universally unique identifier (UUID) of the configuration policy.
name(Option<String>):The name of the configuration policy.
description(Option<String>):The description of the configuration policy.
updated_at(Option<DateTime>):The date and time, in UTC and ISO 8601 format, that the configuration policy was last updated.
created_at(Option<DateTime>):The date and time, in UTC and ISO 8601 format, that the configuration policy was created.
configuration_policy(Option<Policy>):An object that defines how Security Hub is configured. It includes whether Security Hub is enabled or disabled, a list of enabled security standards, a list of enabled or disabled security controls, and a list of custom parameter values for specified controls. If the request included a list of security controls that are enabled in the configuration policy, Security Hub disables all other controls (including newly released controls). If the request included a list of security controls that are disabled in the configuration policy, Security Hub enables all other controls (including newly released controls).
- On failure, responds with
SdkError<CreateConfigurationPolicyError>
source§impl Client
impl Client
sourcepub fn create_finding_aggregator(&self) -> CreateFindingAggregatorFluentBuilder
pub fn create_finding_aggregator(&self) -> CreateFindingAggregatorFluentBuilder
Constructs a fluent builder for the CreateFindingAggregator operation.
- The fluent builder is configurable:
region_linking_mode(impl Into<String>)/set_region_linking_mode(Option<String>):
required: trueIndicates whether to aggregate findings from all of the available Regions in the current partition. Also determines whether to automatically aggregate findings from new Regions as Security Hub supports them and you opt into them.
The selected option also determines how to use the Regions provided in the Regions list.
The options are as follows:
-
ALL_REGIONS- Indicates to aggregate findings from all of the Regions where Security Hub is enabled. When you choose this option, Security Hub also automatically aggregates findings from new Regions as Security Hub supports them and you opt into them. -
ALL_REGIONS_EXCEPT_SPECIFIED- Indicates to aggregate findings from all of the Regions where Security Hub is enabled, except for the Regions listed in theRegionsparameter. When you choose this option, Security Hub also automatically aggregates findings from new Regions as Security Hub supports them and you opt into them. -
SPECIFIED_REGIONS- Indicates to aggregate findings only from the Regions listed in theRegionsparameter. Security Hub does not automatically aggregate findings from new Regions.
-
regions(impl Into<String>)/set_regions(Option<Vec::<String>>):
required: falseIf
RegionLinkingModeisALL_REGIONS_EXCEPT_SPECIFIED, then this is a space-separated list of Regions that do not aggregate findings to the aggregation Region.If
RegionLinkingModeisSPECIFIED_REGIONS, then this is a space-separated list of Regions that do aggregate findings to the aggregation Region.
- On success, responds with
CreateFindingAggregatorOutputwith field(s):finding_aggregator_arn(Option<String>):The ARN of the finding aggregator. You use the finding aggregator ARN to retrieve details for, update, and stop finding aggregation.
finding_aggregation_region(Option<String>):The aggregation Region.
region_linking_mode(Option<String>):Indicates whether to link all Regions, all Regions except for a list of excluded Regions, or a list of included Regions.
regions(Option<Vec::<String>>):The list of excluded Regions or included Regions.
- On failure, responds with
SdkError<CreateFindingAggregatorError>
source§impl Client
impl Client
sourcepub fn create_insight(&self) -> CreateInsightFluentBuilder
pub fn create_insight(&self) -> CreateInsightFluentBuilder
Constructs a fluent builder for the CreateInsight operation.
- The fluent builder is configurable:
name(impl Into<String>)/set_name(Option<String>):
required: trueThe name of the custom insight to create.
filters(AwsSecurityFindingFilters)/set_filters(Option<AwsSecurityFindingFilters>):
required: trueOne or more attributes used to filter the findings included in the insight. The insight only includes findings that match the criteria defined in the filters.
group_by_attribute(impl Into<String>)/set_group_by_attribute(Option<String>):
required: trueThe attribute used to group the findings for the insight. The grouping attribute identifies the type of item that the insight applies to. For example, if an insight is grouped by resource identifier, then the insight produces a list of resource identifiers.
- On success, responds with
CreateInsightOutputwith field(s):insight_arn(Option<String>):The ARN of the insight created.
- On failure, responds with
SdkError<CreateInsightError>
source§impl Client
impl Client
sourcepub fn create_members(&self) -> CreateMembersFluentBuilder
pub fn create_members(&self) -> CreateMembersFluentBuilder
Constructs a fluent builder for the CreateMembers operation.
- The fluent builder is configurable:
account_details(AccountDetails)/set_account_details(Option<Vec::<AccountDetails>>):
required: trueThe list of accounts to associate with the Security Hub administrator account. For each account, the list includes the account ID and optionally the email address.
- On success, responds with
CreateMembersOutputwith field(s):unprocessed_accounts(Option<Vec::<Result>>):The list of Amazon Web Services accounts that were not processed. For each account, the list includes the account ID and the email address.
- On failure, responds with
SdkError<CreateMembersError>
source§impl Client
impl Client
sourcepub fn decline_invitations(&self) -> DeclineInvitationsFluentBuilder
pub fn decline_invitations(&self) -> DeclineInvitationsFluentBuilder
Constructs a fluent builder for the DeclineInvitations operation.
- The fluent builder is configurable:
account_ids(impl Into<String>)/set_account_ids(Option<Vec::<String>>):
required: trueThe list of prospective member account IDs for which to decline an invitation.
- On success, responds with
DeclineInvitationsOutputwith field(s):unprocessed_accounts(Option<Vec::<Result>>):The list of Amazon Web Services accounts that were not processed. For each account, the list includes the account ID and the email address.
- On failure, responds with
SdkError<DeclineInvitationsError>
source§impl Client
impl Client
sourcepub fn delete_action_target(&self) -> DeleteActionTargetFluentBuilder
pub fn delete_action_target(&self) -> DeleteActionTargetFluentBuilder
Constructs a fluent builder for the DeleteActionTarget operation.
- The fluent builder is configurable:
action_target_arn(impl Into<String>)/set_action_target_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the custom action target to delete.
- On success, responds with
DeleteActionTargetOutputwith field(s):action_target_arn(Option<String>):The ARN of the custom action target that was deleted.
- On failure, responds with
SdkError<DeleteActionTargetError>
source§impl Client
impl Client
sourcepub fn delete_configuration_policy(
&self
) -> DeleteConfigurationPolicyFluentBuilder
pub fn delete_configuration_policy( &self ) -> DeleteConfigurationPolicyFluentBuilder
Constructs a fluent builder for the DeleteConfigurationPolicy operation.
- The fluent builder is configurable:
identifier(impl Into<String>)/set_identifier(Option<String>):
required: trueThe Amazon Resource Name (ARN) or universally unique identifier (UUID) of the configuration policy.
- On success, responds with
DeleteConfigurationPolicyOutput - On failure, responds with
SdkError<DeleteConfigurationPolicyError>
source§impl Client
impl Client
sourcepub fn delete_finding_aggregator(&self) -> DeleteFindingAggregatorFluentBuilder
pub fn delete_finding_aggregator(&self) -> DeleteFindingAggregatorFluentBuilder
Constructs a fluent builder for the DeleteFindingAggregator operation.
- The fluent builder is configurable:
finding_aggregator_arn(impl Into<String>)/set_finding_aggregator_arn(Option<String>):
required: trueThe ARN of the finding aggregator to delete. To obtain the ARN, use
ListFindingAggregators.
- On success, responds with
DeleteFindingAggregatorOutput - On failure, responds with
SdkError<DeleteFindingAggregatorError>
source§impl Client
impl Client
sourcepub fn delete_insight(&self) -> DeleteInsightFluentBuilder
pub fn delete_insight(&self) -> DeleteInsightFluentBuilder
Constructs a fluent builder for the DeleteInsight operation.
- The fluent builder is configurable:
insight_arn(impl Into<String>)/set_insight_arn(Option<String>):
required: trueThe ARN of the insight to delete.
- On success, responds with
DeleteInsightOutputwith field(s):insight_arn(Option<String>):The ARN of the insight that was deleted.
- On failure, responds with
SdkError<DeleteInsightError>
source§impl Client
impl Client
sourcepub fn delete_invitations(&self) -> DeleteInvitationsFluentBuilder
pub fn delete_invitations(&self) -> DeleteInvitationsFluentBuilder
Constructs a fluent builder for the DeleteInvitations operation.
- The fluent builder is configurable:
account_ids(impl Into<String>)/set_account_ids(Option<Vec::<String>>):
required: trueThe list of member account IDs that received the invitations you want to delete.
- On success, responds with
DeleteInvitationsOutputwith field(s):unprocessed_accounts(Option<Vec::<Result>>):The list of Amazon Web Services accounts for which the invitations were not deleted. For each account, the list includes the account ID and the email address.
- On failure, responds with
SdkError<DeleteInvitationsError>
source§impl Client
impl Client
sourcepub fn delete_members(&self) -> DeleteMembersFluentBuilder
pub fn delete_members(&self) -> DeleteMembersFluentBuilder
Constructs a fluent builder for the DeleteMembers operation.
- The fluent builder is configurable:
account_ids(impl Into<String>)/set_account_ids(Option<Vec::<String>>):
required: trueThe list of account IDs for the member accounts to delete.
- On success, responds with
DeleteMembersOutputwith field(s):unprocessed_accounts(Option<Vec::<Result>>):The list of Amazon Web Services accounts that were not deleted. For each account, the list includes the account ID and the email address.
- On failure, responds with
SdkError<DeleteMembersError>
source§impl Client
impl Client
sourcepub fn describe_action_targets(&self) -> DescribeActionTargetsFluentBuilder
pub fn describe_action_targets(&self) -> DescribeActionTargetsFluentBuilder
Constructs a fluent builder for the DescribeActionTargets operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
action_target_arns(impl Into<String>)/set_action_target_arns(Option<Vec::<String>>):
required: falseA list of custom action target ARNs for the custom action targets to retrieve.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseThe token that is required for pagination. On your first call to the
DescribeActionTargetsoperation, set the value of this parameter toNULL.For subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response.
max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of results to return.
- On success, responds with
DescribeActionTargetsOutputwith field(s):action_targets(Option<Vec::<ActionTarget>>):A list of
ActionTargetobjects. Each object includes theActionTargetArn,Description, andNameof a custom action target available in Security Hub.next_token(Option<String>):The pagination token to use to request the next page of results.
- On failure, responds with
SdkError<DescribeActionTargetsError>
source§impl Client
impl Client
sourcepub fn describe_hub(&self) -> DescribeHubFluentBuilder
pub fn describe_hub(&self) -> DescribeHubFluentBuilder
Constructs a fluent builder for the DescribeHub operation.
- The fluent builder is configurable:
hub_arn(impl Into<String>)/set_hub_arn(Option<String>):
required: falseThe ARN of the Hub resource to retrieve.
- On success, responds with
DescribeHubOutputwith field(s):hub_arn(Option<String>):The ARN of the Hub resource that was retrieved.
subscribed_at(Option<String>):The date and time when Security Hub was enabled in the account.
auto_enable_controls(Option<bool>):Whether to automatically enable new controls when they are added to standards that are enabled.
If set to
true, then new controls for enabled standards are enabled automatically. If set tofalse, then new controls are not enabled.control_finding_generator(Option<ControlFindingGenerator>):Specifies whether the calling account has consolidated control findings turned on. If the value for this field is set to
SECURITY_CONTROL, Security Hub generates a single finding for a control check even when the check applies to multiple enabled standards.If the value for this field is set to
STANDARD_CONTROL, Security Hub generates separate findings for a control check when the check applies to multiple enabled standards.The value for this field in a member account matches the value in the administrator account. For accounts that aren’t part of an organization, the default value of this field is
SECURITY_CONTROLif you enabled Security Hub on or after February 23, 2023.
- On failure, responds with
SdkError<DescribeHubError>
source§impl Client
impl Client
sourcepub fn describe_organization_configuration(
&self
) -> DescribeOrganizationConfigurationFluentBuilder
pub fn describe_organization_configuration( &self ) -> DescribeOrganizationConfigurationFluentBuilder
Constructs a fluent builder for the DescribeOrganizationConfiguration operation.
- The fluent builder takes no input, just
sendit. - On success, responds with
DescribeOrganizationConfigurationOutputwith field(s):auto_enable(Option<bool>):Whether to automatically enable Security Hub in new member accounts when they join the organization.
If set to
true, then Security Hub is automatically enabled in new accounts. If set tofalse, then Security Hub isn’t enabled in new accounts automatically. The default value isfalse.If the
ConfigurationTypeof your organization is set toCENTRAL, then this field is set tofalseand can’t be changed in the home Region and linked Regions. However, in that case, the delegated administrator can create a configuration policy in which Security Hub is enabled and associate the policy with new organization accounts.member_account_limit_reached(Option<bool>):Whether the maximum number of allowed member accounts are already associated with the Security Hub administrator account.
auto_enable_standards(Option<AutoEnableStandards>):Whether to automatically enable Security Hub default standards in new member accounts when they join the organization.
If equal to
DEFAULT, then Security Hub default standards are automatically enabled for new member accounts. If equal toNONE, then default standards are not automatically enabled for new member accounts. The default value of this parameter is equal toDEFAULT.If the
ConfigurationTypeof your organization is set toCENTRAL, then this field is set toNONEand can’t be changed in the home Region and linked Regions. However, in that case, the delegated administrator can create a configuration policy in which specific security standards are enabled and associate the policy with new organization accounts.organization_configuration(Option<OrganizationConfiguration>):Provides information about the way an organization is configured in Security Hub.
- On failure, responds with
SdkError<DescribeOrganizationConfigurationError>
source§impl Client
impl Client
sourcepub fn describe_products(&self) -> DescribeProductsFluentBuilder
pub fn describe_products(&self) -> DescribeProductsFluentBuilder
Constructs a fluent builder for the DescribeProducts operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseThe token that is required for pagination. On your first call to the
DescribeProductsoperation, set the value of this parameter toNULL.For subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response.
max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of results to return.
product_arn(impl Into<String>)/set_product_arn(Option<String>):
required: falseThe ARN of the integration to return.
- On success, responds with
DescribeProductsOutputwith field(s):products(Option<Vec::<Product>>):A list of products, including details for each product.
next_token(Option<String>):The pagination token to use to request the next page of results.
- On failure, responds with
SdkError<DescribeProductsError>
source§impl Client
impl Client
sourcepub fn describe_standards(&self) -> DescribeStandardsFluentBuilder
pub fn describe_standards(&self) -> DescribeStandardsFluentBuilder
Constructs a fluent builder for the DescribeStandards operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseThe token that is required for pagination. On your first call to the
DescribeStandardsoperation, set the value of this parameter toNULL.For subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response.
max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of standards to return.
- On success, responds with
DescribeStandardsOutputwith field(s):standards(Option<Vec::<Standard>>):A list of available standards.
next_token(Option<String>):The pagination token to use to request the next page of results.
- On failure, responds with
SdkError<DescribeStandardsError>
source§impl Client
impl Client
sourcepub fn describe_standards_controls(
&self
) -> DescribeStandardsControlsFluentBuilder
pub fn describe_standards_controls( &self ) -> DescribeStandardsControlsFluentBuilder
Constructs a fluent builder for the DescribeStandardsControls operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
standards_subscription_arn(impl Into<String>)/set_standards_subscription_arn(Option<String>):
required: trueThe ARN of a resource that represents your subscription to a supported standard. To get the subscription ARNs of the standards you have enabled, use the
GetEnabledStandardsoperation.next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseThe token that is required for pagination. On your first call to the
DescribeStandardsControlsoperation, set the value of this parameter toNULL.For subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response.
max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of security standard controls to return.
- On success, responds with
DescribeStandardsControlsOutputwith field(s):controls(Option<Vec::<StandardsControl>>):A list of security standards controls.
next_token(Option<String>):The pagination token to use to request the next page of results.
- On failure, responds with
SdkError<DescribeStandardsControlsError>
source§impl Client
impl Client
sourcepub fn disable_import_findings_for_product(
&self
) -> DisableImportFindingsForProductFluentBuilder
pub fn disable_import_findings_for_product( &self ) -> DisableImportFindingsForProductFluentBuilder
Constructs a fluent builder for the DisableImportFindingsForProduct operation.
- The fluent builder is configurable:
product_subscription_arn(impl Into<String>)/set_product_subscription_arn(Option<String>):
required: trueThe ARN of the integrated product to disable the integration for.
- On success, responds with
DisableImportFindingsForProductOutput - On failure, responds with
SdkError<DisableImportFindingsForProductError>
source§impl Client
impl Client
sourcepub fn disable_organization_admin_account(
&self
) -> DisableOrganizationAdminAccountFluentBuilder
pub fn disable_organization_admin_account( &self ) -> DisableOrganizationAdminAccountFluentBuilder
Constructs a fluent builder for the DisableOrganizationAdminAccount operation.
- The fluent builder is configurable:
admin_account_id(impl Into<String>)/set_admin_account_id(Option<String>):
required: trueThe Amazon Web Services account identifier of the Security Hub administrator account.
- On success, responds with
DisableOrganizationAdminAccountOutput - On failure, responds with
SdkError<DisableOrganizationAdminAccountError>
source§impl Client
impl Client
sourcepub fn disable_security_hub(&self) -> DisableSecurityHubFluentBuilder
pub fn disable_security_hub(&self) -> DisableSecurityHubFluentBuilder
Constructs a fluent builder for the DisableSecurityHub operation.
- The fluent builder takes no input, just
sendit. - On success, responds with
DisableSecurityHubOutput - On failure, responds with
SdkError<DisableSecurityHubError>
source§impl Client
impl Client
sourcepub fn disassociate_from_administrator_account(
&self
) -> DisassociateFromAdministratorAccountFluentBuilder
pub fn disassociate_from_administrator_account( &self ) -> DisassociateFromAdministratorAccountFluentBuilder
Constructs a fluent builder for the DisassociateFromAdministratorAccount operation.
- The fluent builder takes no input, just
sendit. - On success, responds with
DisassociateFromAdministratorAccountOutput - On failure, responds with
SdkError<DisassociateFromAdministratorAccountError>
source§impl Client
impl Client
sourcepub fn disassociate_from_master_account(
&self
) -> DisassociateFromMasterAccountFluentBuilder
👎Deprecated: This API has been deprecated, use DisassociateFromAdministratorAccount API instead.
pub fn disassociate_from_master_account( &self ) -> DisassociateFromMasterAccountFluentBuilder
Constructs a fluent builder for the DisassociateFromMasterAccount operation.
- The fluent builder takes no input, just
sendit. - On success, responds with
DisassociateFromMasterAccountOutput - On failure, responds with
SdkError<DisassociateFromMasterAccountError>
source§impl Client
impl Client
sourcepub fn disassociate_members(&self) -> DisassociateMembersFluentBuilder
pub fn disassociate_members(&self) -> DisassociateMembersFluentBuilder
Constructs a fluent builder for the DisassociateMembers operation.
- The fluent builder is configurable:
account_ids(impl Into<String>)/set_account_ids(Option<Vec::<String>>):
required: trueThe account IDs of the member accounts to disassociate from the administrator account.
- On success, responds with
DisassociateMembersOutput - On failure, responds with
SdkError<DisassociateMembersError>
source§impl Client
impl Client
sourcepub fn enable_import_findings_for_product(
&self
) -> EnableImportFindingsForProductFluentBuilder
pub fn enable_import_findings_for_product( &self ) -> EnableImportFindingsForProductFluentBuilder
Constructs a fluent builder for the EnableImportFindingsForProduct operation.
- The fluent builder is configurable:
product_arn(impl Into<String>)/set_product_arn(Option<String>):
required: trueThe ARN of the product to enable the integration for.
- On success, responds with
EnableImportFindingsForProductOutputwith field(s):product_subscription_arn(Option<String>):The ARN of your subscription to the product to enable integrations for.
- On failure, responds with
SdkError<EnableImportFindingsForProductError>
source§impl Client
impl Client
sourcepub fn enable_organization_admin_account(
&self
) -> EnableOrganizationAdminAccountFluentBuilder
pub fn enable_organization_admin_account( &self ) -> EnableOrganizationAdminAccountFluentBuilder
Constructs a fluent builder for the EnableOrganizationAdminAccount operation.
- The fluent builder is configurable:
admin_account_id(impl Into<String>)/set_admin_account_id(Option<String>):
required: trueThe Amazon Web Services account identifier of the account to designate as the Security Hub administrator account.
- On success, responds with
EnableOrganizationAdminAccountOutput - On failure, responds with
SdkError<EnableOrganizationAdminAccountError>
source§impl Client
impl Client
sourcepub fn enable_security_hub(&self) -> EnableSecurityHubFluentBuilder
pub fn enable_security_hub(&self) -> EnableSecurityHubFluentBuilder
Constructs a fluent builder for the EnableSecurityHub operation.
- The fluent builder is configurable:
tags(impl Into<String>, impl Into<String>)/set_tags(Option<HashMap::<String, String>>):
required: falseThe tags to add to the hub resource when you enable Security Hub.
enable_default_standards(bool)/set_enable_default_standards(Option<bool>):
required: falseWhether to enable the security standards that Security Hub has designated as automatically enabled. If you do not provide a value for
EnableDefaultStandards, it is set totrue. To not enable the automatically enabled standards, setEnableDefaultStandardstofalse.control_finding_generator(ControlFindingGenerator)/set_control_finding_generator(Option<ControlFindingGenerator>):
required: falseThis field, used when enabling Security Hub, specifies whether the calling account has consolidated control findings turned on. If the value for this field is set to
SECURITY_CONTROL, Security Hub generates a single finding for a control check even when the check applies to multiple enabled standards.If the value for this field is set to
STANDARD_CONTROL, Security Hub generates separate findings for a control check when the check applies to multiple enabled standards.The value for this field in a member account matches the value in the administrator account. For accounts that aren’t part of an organization, the default value of this field is
SECURITY_CONTROLif you enabled Security Hub on or after February 23, 2023.
- On success, responds with
EnableSecurityHubOutput - On failure, responds with
SdkError<EnableSecurityHubError>
source§impl Client
impl Client
sourcepub fn get_administrator_account(&self) -> GetAdministratorAccountFluentBuilder
pub fn get_administrator_account(&self) -> GetAdministratorAccountFluentBuilder
Constructs a fluent builder for the GetAdministratorAccount operation.
- The fluent builder takes no input, just
sendit. - On success, responds with
GetAdministratorAccountOutputwith field(s):administrator(Option<Invitation>):Details about an invitation.
- On failure, responds with
SdkError<GetAdministratorAccountError>
source§impl Client
impl Client
sourcepub fn get_configuration_policy(&self) -> GetConfigurationPolicyFluentBuilder
pub fn get_configuration_policy(&self) -> GetConfigurationPolicyFluentBuilder
Constructs a fluent builder for the GetConfigurationPolicy operation.
- The fluent builder is configurable:
identifier(impl Into<String>)/set_identifier(Option<String>):
required: trueThe Amazon Resource Name (ARN) or universally unique identifier (UUID) of the configuration policy.
- On success, responds with
GetConfigurationPolicyOutputwith field(s):arn(Option<String>):The ARN of the configuration policy.
id(Option<String>):The UUID of the configuration policy.
name(Option<String>):The name of the configuration policy.
description(Option<String>):The description of the configuration policy.
updated_at(Option<DateTime>):The date and time, in UTC and ISO 8601 format, that the configuration policy was last updated.
created_at(Option<DateTime>):The date and time, in UTC and ISO 8601 format, that the configuration policy was created.
configuration_policy(Option<Policy>):An object that defines how Security Hub is configured. It includes whether Security Hub is enabled or disabled, a list of enabled security standards, a list of enabled or disabled security controls, and a list of custom parameter values for specified controls. If the policy includes a list of security controls that are enabled, Security Hub disables all other controls (including newly released controls). If the policy includes a list of security controls that are disabled, Security Hub enables all other controls (including newly released controls).
- On failure, responds with
SdkError<GetConfigurationPolicyError>
source§impl Client
impl Client
sourcepub fn get_configuration_policy_association(
&self
) -> GetConfigurationPolicyAssociationFluentBuilder
pub fn get_configuration_policy_association( &self ) -> GetConfigurationPolicyAssociationFluentBuilder
Constructs a fluent builder for the GetConfigurationPolicyAssociation operation.
- The fluent builder is configurable:
target(Target)/set_target(Option<Target>):
required: trueThe target account ID, organizational unit ID, or the root ID to retrieve the association for.
- On success, responds with
GetConfigurationPolicyAssociationOutputwith field(s):configuration_policy_id(Option<String>):The universally unique identifier (UUID) of a configuration policy. For self-managed behavior, the value is
SELF_MANAGED_SECURITY_HUB.target_id(Option<String>):The target account ID, organizational unit ID, or the root ID for which the association is retrieved.
target_type(Option<TargetType>):Specifies whether the target is an Amazon Web Services account, organizational unit, or the organization root.
association_type(Option<AssociationType>):Indicates whether the association between the specified target and the configuration was directly applied by the Security Hub delegated administrator or inherited from a parent.
updated_at(Option<DateTime>):The date and time, in UTC and ISO 8601 format, that the configuration policy association was last updated.
association_status(Option<ConfigurationPolicyAssociationStatus>):The current status of the association between the specified target and the configuration.
association_status_message(Option<String>):The explanation for a
FAILEDvalue forAssociationStatus.
- On failure, responds with
SdkError<GetConfigurationPolicyAssociationError>
source§impl Client
impl Client
sourcepub fn get_enabled_standards(&self) -> GetEnabledStandardsFluentBuilder
pub fn get_enabled_standards(&self) -> GetEnabledStandardsFluentBuilder
Constructs a fluent builder for the GetEnabledStandards operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
standards_subscription_arns(impl Into<String>)/set_standards_subscription_arns(Option<Vec::<String>>):
required: falseThe list of the standards subscription ARNs for the standards to retrieve.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseThe token that is required for pagination. On your first call to the
GetEnabledStandardsoperation, set the value of this parameter toNULL.For subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response.
max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of results to return in the response.
- On success, responds with
GetEnabledStandardsOutputwith field(s):standards_subscriptions(Option<Vec::<StandardsSubscription>>):The list of
StandardsSubscriptionsobjects that include information about the enabled standards.next_token(Option<String>):The pagination token to use to request the next page of results.
- On failure, responds with
SdkError<GetEnabledStandardsError>
source§impl Client
impl Client
sourcepub fn get_finding_aggregator(&self) -> GetFindingAggregatorFluentBuilder
pub fn get_finding_aggregator(&self) -> GetFindingAggregatorFluentBuilder
Constructs a fluent builder for the GetFindingAggregator operation.
- The fluent builder is configurable:
finding_aggregator_arn(impl Into<String>)/set_finding_aggregator_arn(Option<String>):
required: trueThe ARN of the finding aggregator to return details for. To obtain the ARN, use
ListFindingAggregators.
- On success, responds with
GetFindingAggregatorOutputwith field(s):finding_aggregator_arn(Option<String>):The ARN of the finding aggregator.
finding_aggregation_region(Option<String>):The aggregation Region.
region_linking_mode(Option<String>):Indicates whether to link all Regions, all Regions except for a list of excluded Regions, or a list of included Regions.
regions(Option<Vec::<String>>):The list of excluded Regions or included Regions.
- On failure, responds with
SdkError<GetFindingAggregatorError>
source§impl Client
impl Client
sourcepub fn get_finding_history(&self) -> GetFindingHistoryFluentBuilder
pub fn get_finding_history(&self) -> GetFindingHistoryFluentBuilder
Constructs a fluent builder for the GetFindingHistory operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
finding_identifier(AwsSecurityFindingIdentifier)/set_finding_identifier(Option<AwsSecurityFindingIdentifier>):
required: trueIdentifies which finding to get the finding history for.
start_time(DateTime)/set_start_time(Option<DateTime>):
required: falseA timestamp that indicates the start time of the requested finding history.
If you provide values for both
StartTimeandEndTime, Security Hub returns finding history for the specified time period. If you provide a value forStartTimebut not forEndTime, Security Hub returns finding history from theStartTimeto the time at which the API is called. If you provide a value forEndTimebut not forStartTime, Security Hub returns finding history from the CreatedAt timestamp of the finding to theEndTime. If you provide neitherStartTimenorEndTime, Security Hub returns finding history from the CreatedAt timestamp of the finding to the time at which the API is called. In all of these scenarios, the response is limited to 100 results, and the maximum time period is limited to 90 days.This field accepts only the specified formats. Timestamps can end with
Zor(“+” / “-”) time-hour [“:” time-minute]. The time-secfrac after seconds is limited to a maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:-
YYYY-MM-DDTHH:MM:SSZ(for example,2019-01-31T23:00:00Z) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ(for example,2019-01-31T23:00:00.123456789Z) -
YYYY-MM-DDTHH:MM:SS+HH:MM(for example,2024-01-04T15:25:10+17:59) -
YYYY-MM-DDTHH:MM:SS-HHMM(for example,2024-01-04T15:25:10-1759) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM(for example,2024-01-04T15:25:10.123456789+17:59)
-
end_time(DateTime)/set_end_time(Option<DateTime>):
required: falseAn ISO 8601-formatted timestamp that indicates the end time of the requested finding history.
If you provide values for both
StartTimeandEndTime, Security Hub returns finding history for the specified time period. If you provide a value forStartTimebut not forEndTime, Security Hub returns finding history from theStartTimeto the time at which the API is called. If you provide a value forEndTimebut not forStartTime, Security Hub returns finding history from the CreatedAt timestamp of the finding to theEndTime. If you provide neitherStartTimenorEndTime, Security Hub returns finding history from the CreatedAt timestamp of the finding to the time at which the API is called. In all of these scenarios, the response is limited to 100 results, and the maximum time period is limited to 90 days.This field accepts only the specified formats. Timestamps can end with
Zor(“+” / “-”) time-hour [“:” time-minute]. The time-secfrac after seconds is limited to a maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:-
YYYY-MM-DDTHH:MM:SSZ(for example,2019-01-31T23:00:00Z) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ(for example,2019-01-31T23:00:00.123456789Z) -
YYYY-MM-DDTHH:MM:SS+HH:MM(for example,2024-01-04T15:25:10+17:59) -
YYYY-MM-DDTHH:MM:SS-HHMM(for example,2024-01-04T15:25:10-1759) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM(for example,2024-01-04T15:25:10.123456789+17:59)
-
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseA token for pagination purposes. Provide
NULLas the initial value. In subsequent requests, provide the token included in the response to get up to an additional 100 results of finding history. If you don’t provideNextToken, Security Hub returns up to 100 results of finding history for each request.max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of results to be returned. If you don’t provide it, Security Hub returns up to 100 results of finding history.
- On success, responds with
GetFindingHistoryOutputwith field(s):records(Option<Vec::<FindingHistoryRecord>>):A list of events that altered the specified finding during the specified time period.
next_token(Option<String>):A token for pagination purposes. Provide this token in the subsequent request to
GetFindingsHistoryto get up to an additional 100 results of history for the same finding that you specified in your initial request.
- On failure, responds with
SdkError<GetFindingHistoryError>
source§impl Client
impl Client
sourcepub fn get_findings(&self) -> GetFindingsFluentBuilder
pub fn get_findings(&self) -> GetFindingsFluentBuilder
Constructs a fluent builder for the GetFindings operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
filters(AwsSecurityFindingFilters)/set_filters(Option<AwsSecurityFindingFilters>):
required: falseThe finding attributes used to define a condition to filter the returned findings.
You can filter by up to 10 finding attributes. For each attribute, you can provide up to 20 filter values.
Note that in the available filter fields,
WorkflowStateis deprecated. To search for a finding based on its workflow status, useWorkflowStatus.sort_criteria(SortCriterion)/set_sort_criteria(Option<Vec::<SortCriterion>>):
required: falseThe finding attributes used to sort the list of returned findings.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseThe token that is required for pagination. On your first call to the
GetFindingsoperation, set the value of this parameter toNULL.For subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response.
max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of findings to return.
- On success, responds with
GetFindingsOutputwith field(s):findings(Option<Vec::<AwsSecurityFinding>>):The findings that matched the filters specified in the request.
next_token(Option<String>):The pagination token to use to request the next page of results.
- On failure, responds with
SdkError<GetFindingsError>
source§impl Client
impl Client
sourcepub fn get_insight_results(&self) -> GetInsightResultsFluentBuilder
pub fn get_insight_results(&self) -> GetInsightResultsFluentBuilder
Constructs a fluent builder for the GetInsightResults operation.
- The fluent builder is configurable:
insight_arn(impl Into<String>)/set_insight_arn(Option<String>):
required: trueThe ARN of the insight for which to return results.
- On success, responds with
GetInsightResultsOutputwith field(s):insight_results(Option<InsightResults>):The insight results returned by the operation.
- On failure, responds with
SdkError<GetInsightResultsError>
source§impl Client
impl Client
sourcepub fn get_insights(&self) -> GetInsightsFluentBuilder
pub fn get_insights(&self) -> GetInsightsFluentBuilder
Constructs a fluent builder for the GetInsights operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
insight_arns(impl Into<String>)/set_insight_arns(Option<Vec::<String>>):
required: falseThe ARNs of the insights to describe. If you do not provide any insight ARNs, then
GetInsightsreturns all of your custom insights. It does not return any managed insights.next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseThe token that is required for pagination. On your first call to the
GetInsightsoperation, set the value of this parameter toNULL.For subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response.
max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of items to return in the response.
- On success, responds with
GetInsightsOutputwith field(s):insights(Option<Vec::<Insight>>):The insights returned by the operation.
next_token(Option<String>):The pagination token to use to request the next page of results.
- On failure, responds with
SdkError<GetInsightsError>
source§impl Client
impl Client
sourcepub fn get_invitations_count(&self) -> GetInvitationsCountFluentBuilder
pub fn get_invitations_count(&self) -> GetInvitationsCountFluentBuilder
Constructs a fluent builder for the GetInvitationsCount operation.
- The fluent builder takes no input, just
sendit. - On success, responds with
GetInvitationsCountOutputwith field(s):invitations_count(Option<i32>):The number of all membership invitations sent to this Security Hub member account, not including the currently accepted invitation.
- On failure, responds with
SdkError<GetInvitationsCountError>
source§impl Client
impl Client
sourcepub fn get_master_account(&self) -> GetMasterAccountFluentBuilder
👎Deprecated: This API has been deprecated, use GetAdministratorAccount API instead.
pub fn get_master_account(&self) -> GetMasterAccountFluentBuilder
Constructs a fluent builder for the GetMasterAccount operation.
- The fluent builder takes no input, just
sendit. - On success, responds with
GetMasterAccountOutputwith field(s):master(Option<Invitation>):A list of details about the Security Hub administrator account for the current member account.
- On failure, responds with
SdkError<GetMasterAccountError>
source§impl Client
impl Client
sourcepub fn get_members(&self) -> GetMembersFluentBuilder
pub fn get_members(&self) -> GetMembersFluentBuilder
Constructs a fluent builder for the GetMembers operation.
- The fluent builder is configurable:
account_ids(impl Into<String>)/set_account_ids(Option<Vec::<String>>):
required: trueThe list of account IDs for the Security Hub member accounts to return the details for.
- On success, responds with
GetMembersOutputwith field(s):members(Option<Vec::<Member>>):The list of details about the Security Hub member accounts.
unprocessed_accounts(Option<Vec::<Result>>):The list of Amazon Web Services accounts that could not be processed. For each account, the list includes the account ID and the email address.
- On failure, responds with
SdkError<GetMembersError>
source§impl Client
impl Client
sourcepub fn get_security_control_definition(
&self
) -> GetSecurityControlDefinitionFluentBuilder
pub fn get_security_control_definition( &self ) -> GetSecurityControlDefinitionFluentBuilder
Constructs a fluent builder for the GetSecurityControlDefinition operation.
- The fluent builder is configurable:
security_control_id(impl Into<String>)/set_security_control_id(Option<String>):
required: trueThe ID of the security control to retrieve the definition for. This field doesn’t accept an Amazon Resource Name (ARN).
- On success, responds with
GetSecurityControlDefinitionOutputwith field(s):security_control_definition(Option<SecurityControlDefinition>):Provides metadata for a security control, including its unique standard-agnostic identifier, title, description, severity, availability in Amazon Web Services Regions, and a link to remediation steps.
- On failure, responds with
SdkError<GetSecurityControlDefinitionError>
source§impl Client
impl Client
sourcepub fn invite_members(&self) -> InviteMembersFluentBuilder
pub fn invite_members(&self) -> InviteMembersFluentBuilder
Constructs a fluent builder for the InviteMembers operation.
- The fluent builder is configurable:
account_ids(impl Into<String>)/set_account_ids(Option<Vec::<String>>):
required: trueThe list of account IDs of the Amazon Web Services accounts to invite to Security Hub as members.
- On success, responds with
InviteMembersOutputwith field(s):unprocessed_accounts(Option<Vec::<Result>>):The list of Amazon Web Services accounts that could not be processed. For each account, the list includes the account ID and the email address.
- On failure, responds with
SdkError<InviteMembersError>
source§impl Client
impl Client
sourcepub fn list_automation_rules(&self) -> ListAutomationRulesFluentBuilder
pub fn list_automation_rules(&self) -> ListAutomationRulesFluentBuilder
Constructs a fluent builder for the ListAutomationRules operation.
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseA token to specify where to start paginating the response. This is the
NextTokenfrom a previously truncated response. On your first call to theListAutomationRulesAPI, set the value of this parameter toNULL.max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of rules to return in the response. This currently ranges from 1 to 100.
- On success, responds with
ListAutomationRulesOutputwith field(s):automation_rules_metadata(Option<Vec::<AutomationRulesMetadata>>):Metadata for rules in the calling account. The response includes rules with a
RuleStatusofENABLEDandDISABLED.next_token(Option<String>):A pagination token for the response.
- On failure, responds with
SdkError<ListAutomationRulesError>
source§impl Client
impl Client
sourcepub fn list_configuration_policies(
&self
) -> ListConfigurationPoliciesFluentBuilder
pub fn list_configuration_policies( &self ) -> ListConfigurationPoliciesFluentBuilder
Constructs a fluent builder for the ListConfigurationPolicies operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseThe NextToken value that’s returned from a previous paginated
ListConfigurationPoliciesrequest whereMaxResultswas used but the results exceeded the value of that parameter. Pagination continues from theMaxResultswas used but the results exceeded the value of that parameter. Pagination continues from the end of the previous response that returned theNextTokenvalue. This value isnullwhen there are no more results to return.max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of results that’s returned by
ListConfigurationPoliciesin each page of the response. When this parameter is used,ListConfigurationPoliciesreturns the specified number of results in a single page and aNextTokenresponse element. You can see the remaining results of the initial request by sending anotherListConfigurationPoliciesrequest with the returnedNextTokenvalue. A valid range forMaxResultsis between 1 and 100.
- On success, responds with
ListConfigurationPoliciesOutputwith field(s):configuration_policy_summaries(Option<Vec::<ConfigurationPolicySummary>>):Provides metadata for each of your configuration policies.
next_token(Option<String>):The
NextTokenvalue to include in the nextListConfigurationPoliciesrequest. When the results of aListConfigurationPoliciesrequest exceedMaxResults, this value can be used to retrieve the next page of results. This value isnullwhen there are no more results to return.
- On failure, responds with
SdkError<ListConfigurationPoliciesError>
source§impl Client
impl Client
sourcepub fn list_configuration_policy_associations(
&self
) -> ListConfigurationPolicyAssociationsFluentBuilder
pub fn list_configuration_policy_associations( &self ) -> ListConfigurationPolicyAssociationsFluentBuilder
Constructs a fluent builder for the ListConfigurationPolicyAssociations operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseThe
NextTokenvalue that’s returned from a previous paginatedListConfigurationPolicyAssociationsrequest whereMaxResultswas used but the results exceeded the value of that parameter. Pagination continues from the end of the previous response that returned theNextTokenvalue. This value isnullwhen there are no more results to return.max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of results that’s returned by
ListConfigurationPoliciesin each page of the response. When this parameter is used,ListConfigurationPolicyAssociationsreturns the specified number of results in a single page and aNextTokenresponse element. You can see the remaining results of the initial request by sending anotherListConfigurationPolicyAssociationsrequest with the returnedNextTokenvalue. A valid range forMaxResultsis between 1 and 100.filters(AssociationFilters)/set_filters(Option<AssociationFilters>):
required: falseOptions for filtering the
ListConfigurationPolicyAssociationsresponse. You can filter by the Amazon Resource Name (ARN) or universally unique identifier (UUID) of a configuration,AssociationType, orAssociationStatus.
- On success, responds with
ListConfigurationPolicyAssociationsOutputwith field(s):configuration_policy_association_summaries(Option<Vec::<ConfigurationPolicyAssociationSummary>>):An object that contains the details of each configuration policy association that’s returned in a
ListConfigurationPolicyAssociationsrequest.next_token(Option<String>):The
NextTokenvalue to include in the nextListConfigurationPolicyAssociationsrequest. When the results of aListConfigurationPolicyAssociationsrequest exceedMaxResults, this value can be used to retrieve the next page of results. This value isnullwhen there are no more results to return.
- On failure, responds with
SdkError<ListConfigurationPolicyAssociationsError>
source§impl Client
impl Client
sourcepub fn list_enabled_products_for_import(
&self
) -> ListEnabledProductsForImportFluentBuilder
pub fn list_enabled_products_for_import( &self ) -> ListEnabledProductsForImportFluentBuilder
Constructs a fluent builder for the ListEnabledProductsForImport operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseThe token that is required for pagination. On your first call to the
ListEnabledProductsForImportoperation, set the value of this parameter toNULL.For subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response.
max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of items to return in the response.
- On success, responds with
ListEnabledProductsForImportOutputwith field(s):product_subscriptions(Option<Vec::<String>>):The list of ARNs for the resources that represent your subscriptions to products.
next_token(Option<String>):The pagination token to use to request the next page of results.
- On failure, responds with
SdkError<ListEnabledProductsForImportError>
source§impl Client
impl Client
sourcepub fn list_finding_aggregators(&self) -> ListFindingAggregatorsFluentBuilder
pub fn list_finding_aggregators(&self) -> ListFindingAggregatorsFluentBuilder
Constructs a fluent builder for the ListFindingAggregators operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseThe token returned with the previous set of results. Identifies the next set of results to return.
max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of results to return. This operation currently only returns a single result.
- On success, responds with
ListFindingAggregatorsOutputwith field(s):finding_aggregators(Option<Vec::<FindingAggregator>>):The list of finding aggregators. This operation currently only returns a single result.
next_token(Option<String>):If there are more results, this is the token to provide in the next call to
ListFindingAggregators.This operation currently only returns a single result.
- On failure, responds with
SdkError<ListFindingAggregatorsError>
source§impl Client
impl Client
sourcepub fn list_invitations(&self) -> ListInvitationsFluentBuilder
pub fn list_invitations(&self) -> ListInvitationsFluentBuilder
Constructs a fluent builder for the ListInvitations operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of items to return in the response.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseThe token that is required for pagination. On your first call to the
ListInvitationsoperation, set the value of this parameter toNULL.For subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response.
- On success, responds with
ListInvitationsOutputwith field(s):invitations(Option<Vec::<Invitation>>):The details of the invitations returned by the operation.
next_token(Option<String>):The pagination token to use to request the next page of results.
- On failure, responds with
SdkError<ListInvitationsError>
source§impl Client
impl Client
sourcepub fn list_members(&self) -> ListMembersFluentBuilder
pub fn list_members(&self) -> ListMembersFluentBuilder
Constructs a fluent builder for the ListMembers operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
only_associated(bool)/set_only_associated(Option<bool>):
required: falseSpecifies which member accounts to include in the response based on their relationship status with the administrator account. The default value is
TRUE.If
OnlyAssociatedis set toTRUE, the response includes member accounts whose relationship status with the administrator account is set toENABLED.If
OnlyAssociatedis set toFALSE, the response includes all existing member accounts.max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of items to return in the response.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseThe token that is required for pagination. On your first call to the
ListMembersoperation, set the value of this parameter toNULL.For subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response.
- On success, responds with
ListMembersOutputwith field(s):members(Option<Vec::<Member>>):Member details returned by the operation.
next_token(Option<String>):The pagination token to use to request the next page of results.
- On failure, responds with
SdkError<ListMembersError>
source§impl Client
impl Client
sourcepub fn list_organization_admin_accounts(
&self
) -> ListOrganizationAdminAccountsFluentBuilder
pub fn list_organization_admin_accounts( &self ) -> ListOrganizationAdminAccountsFluentBuilder
Constructs a fluent builder for the ListOrganizationAdminAccounts operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
max_results(i32)/set_max_results(Option<i32>):
required: falseThe maximum number of items to return in the response.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseThe token that is required for pagination. On your first call to the
ListOrganizationAdminAccountsoperation, set the value of this parameter toNULL. For subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response.
- On success, responds with
ListOrganizationAdminAccountsOutputwith field(s):admin_accounts(Option<Vec::<AdminAccount>>):The list of Security Hub administrator accounts.
next_token(Option<String>):The pagination token to use to request the next page of results.
- On failure, responds with
SdkError<ListOrganizationAdminAccountsError>
source§impl Client
impl Client
sourcepub fn list_security_control_definitions(
&self
) -> ListSecurityControlDefinitionsFluentBuilder
pub fn list_security_control_definitions( &self ) -> ListSecurityControlDefinitionsFluentBuilder
Constructs a fluent builder for the ListSecurityControlDefinitions operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
standards_arn(impl Into<String>)/set_standards_arn(Option<String>):
required: falseThe Amazon Resource Name (ARN) of the standard that you want to view controls for.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseOptional pagination parameter.
max_results(i32)/set_max_results(Option<i32>):
required: falseAn optional parameter that limits the total results of the API response to the specified number. If this parameter isn’t provided in the request, the results include the first 25 security controls that apply to the specified standard. The results also include a
NextTokenparameter that you can use in a subsequent API call to get the next 25 controls. This repeats until all controls for the standard are returned.
- On success, responds with
ListSecurityControlDefinitionsOutputwith field(s):security_control_definitions(Option<Vec::<SecurityControlDefinition>>):An array of controls that apply to the specified standard.
next_token(Option<String>):A pagination parameter that’s included in the response only if it was included in the request.
- On failure, responds with
SdkError<ListSecurityControlDefinitionsError>
source§impl Client
impl Client
sourcepub fn list_standards_control_associations(
&self
) -> ListStandardsControlAssociationsFluentBuilder
pub fn list_standards_control_associations( &self ) -> ListStandardsControlAssociationsFluentBuilder
Constructs a fluent builder for the ListStandardsControlAssociations operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
security_control_id(impl Into<String>)/set_security_control_id(Option<String>):
required: trueThe identifier of the control (identified with
SecurityControlId,SecurityControlArn, or a mix of both parameters) that you want to determine the enablement status of in each enabled standard.next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseOptional pagination parameter.
max_results(i32)/set_max_results(Option<i32>):
required: falseAn optional parameter that limits the total results of the API response to the specified number. If this parameter isn’t provided in the request, the results include the first 25 standard and control associations. The results also include a
NextTokenparameter that you can use in a subsequent API call to get the next 25 associations. This repeats until all associations for the specified control are returned. The number of results is limited by the number of supported Security Hub standards that you’ve enabled in the calling account.
- On success, responds with
ListStandardsControlAssociationsOutputwith field(s):standards_control_association_summaries(Option<Vec::<StandardsControlAssociationSummary>>):An array that provides the enablement status and other details for each security control that applies to each enabled standard.
next_token(Option<String>):A pagination parameter that’s included in the response only if it was included in the request.
- On failure, responds with
SdkError<ListStandardsControlAssociationsError>
source§impl Client
impl Client
Constructs a fluent builder for the ListTagsForResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):
required: trueThe ARN of the resource to retrieve tags for.
- On success, responds with
ListTagsForResourceOutputwith field(s):tags(Option<HashMap::<String, String>>):The tags associated with a resource.
- On failure, responds with
SdkError<ListTagsForResourceError>
source§impl Client
impl Client
sourcepub fn start_configuration_policy_association(
&self
) -> StartConfigurationPolicyAssociationFluentBuilder
pub fn start_configuration_policy_association( &self ) -> StartConfigurationPolicyAssociationFluentBuilder
Constructs a fluent builder for the StartConfigurationPolicyAssociation operation.
- The fluent builder is configurable:
configuration_policy_identifier(impl Into<String>)/set_configuration_policy_identifier(Option<String>):
required: trueThe Amazon Resource Name (ARN) of a configuration policy, the universally unique identifier (UUID) of a configuration policy, or a value of
SELF_MANAGED_SECURITY_HUBfor a self-managed configuration.target(Target)/set_target(Option<Target>):
required: trueThe identifier of the target account, organizational unit, or the root to associate with the specified configuration.
- On success, responds with
StartConfigurationPolicyAssociationOutputwith field(s):configuration_policy_id(Option<String>):The UUID of the configuration policy.
target_id(Option<String>):The identifier of the target account, organizational unit, or the organization root with which the configuration is associated.
target_type(Option<TargetType>):Indicates whether the target is an Amazon Web Services account, organizational unit, or the organization root.
association_type(Option<AssociationType>):Indicates whether the association between the specified target and the configuration was directly applied by the Security Hub delegated administrator or inherited from a parent.
updated_at(Option<DateTime>):The date and time, in UTC and ISO 8601 format, that the configuration policy association was last updated.
association_status(Option<ConfigurationPolicyAssociationStatus>):The current status of the association between the specified target and the configuration.
association_status_message(Option<String>):An explanation for a
FAILEDvalue forAssociationStatus.
- On failure, responds with
SdkError<StartConfigurationPolicyAssociationError>
source§impl Client
impl Client
sourcepub fn start_configuration_policy_disassociation(
&self
) -> StartConfigurationPolicyDisassociationFluentBuilder
pub fn start_configuration_policy_disassociation( &self ) -> StartConfigurationPolicyDisassociationFluentBuilder
Constructs a fluent builder for the StartConfigurationPolicyDisassociation operation.
- The fluent builder is configurable:
target(Target)/set_target(Option<Target>):
required: falseThe identifier of the target account, organizational unit, or the root to disassociate from the specified configuration.
configuration_policy_identifier(impl Into<String>)/set_configuration_policy_identifier(Option<String>):
required: trueThe Amazon Resource Name (ARN) of a configuration policy, the universally unique identifier (UUID) of a configuration policy, or a value of
SELF_MANAGED_SECURITY_HUBfor a self-managed configuration.
- On success, responds with
StartConfigurationPolicyDisassociationOutput - On failure, responds with
SdkError<StartConfigurationPolicyDisassociationError>
source§impl Client
impl Client
sourcepub fn tag_resource(&self) -> TagResourceFluentBuilder
pub fn tag_resource(&self) -> TagResourceFluentBuilder
Constructs a fluent builder for the TagResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):
required: trueThe ARN of the resource to apply the tags to.
tags(impl Into<String>, impl Into<String>)/set_tags(Option<HashMap::<String, String>>):
required: trueThe tags to add to the resource. You can add up to 50 tags at a time. The tag keys can be no longer than 128 characters. The tag values can be no longer than 256 characters.
- On success, responds with
TagResourceOutput - On failure, responds with
SdkError<TagResourceError>
source§impl Client
impl Client
sourcepub fn untag_resource(&self) -> UntagResourceFluentBuilder
pub fn untag_resource(&self) -> UntagResourceFluentBuilder
Constructs a fluent builder for the UntagResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):
required: trueThe ARN of the resource to remove the tags from.
tag_keys(impl Into<String>)/set_tag_keys(Option<Vec::<String>>):
required: trueThe tag keys associated with the tags to remove from the resource. You can remove up to 50 tags at a time.
- On success, responds with
UntagResourceOutput - On failure, responds with
SdkError<UntagResourceError>
source§impl Client
impl Client
sourcepub fn update_action_target(&self) -> UpdateActionTargetFluentBuilder
pub fn update_action_target(&self) -> UpdateActionTargetFluentBuilder
Constructs a fluent builder for the UpdateActionTarget operation.
- The fluent builder is configurable:
action_target_arn(impl Into<String>)/set_action_target_arn(Option<String>):
required: trueThe ARN of the custom action target to update.
name(impl Into<String>)/set_name(Option<String>):
required: falseThe updated name of the custom action target.
description(impl Into<String>)/set_description(Option<String>):
required: falseThe updated description for the custom action target.
- On success, responds with
UpdateActionTargetOutput - On failure, responds with
SdkError<UpdateActionTargetError>
source§impl Client
impl Client
sourcepub fn update_configuration_policy(
&self
) -> UpdateConfigurationPolicyFluentBuilder
pub fn update_configuration_policy( &self ) -> UpdateConfigurationPolicyFluentBuilder
Constructs a fluent builder for the UpdateConfigurationPolicy operation.
- The fluent builder is configurable:
identifier(impl Into<String>)/set_identifier(Option<String>):
required: trueThe Amazon Resource Name (ARN) or universally unique identifier (UUID) of the configuration policy.
name(impl Into<String>)/set_name(Option<String>):
required: falseThe name of the configuration policy. Alphanumeric characters and the following ASCII characters are permitted:
-, ., !, *, /.description(impl Into<String>)/set_description(Option<String>):
required: falseThe description of the configuration policy.
updated_reason(impl Into<String>)/set_updated_reason(Option<String>):
required: falseThe reason for updating the configuration policy.
configuration_policy(Policy)/set_configuration_policy(Option<Policy>):
required: falseAn object that defines how Security Hub is configured. It includes whether Security Hub is enabled or disabled, a list of enabled security standards, a list of enabled or disabled security controls, and a list of custom parameter values for specified controls. If you provide a list of security controls that are enabled in the configuration policy, Security Hub disables all other controls (including newly released controls). If you provide a list of security controls that are disabled in the configuration policy, Security Hub enables all other controls (including newly released controls).
When updating a configuration policy, provide a complete list of standards that you want to enable and a complete list of controls that you want to enable or disable. The updated configuration replaces the current configuration.
- On success, responds with
UpdateConfigurationPolicyOutputwith field(s):arn(Option<String>):The ARN of the configuration policy.
id(Option<String>):The UUID of the configuration policy.
name(Option<String>):The name of the configuration policy.
description(Option<String>):The description of the configuration policy.
updated_at(Option<DateTime>):The date and time, in UTC and ISO 8601 format, that the configuration policy was last updated.
created_at(Option<DateTime>):The date and time, in UTC and ISO 8601 format, that the configuration policy was created.
configuration_policy(Option<Policy>):An object that defines how Security Hub is configured. It includes whether Security Hub is enabled or disabled, a list of enabled security standards, a list of enabled or disabled security controls, and a list of custom parameter values for specified controls. If the request included a list of security controls that are enabled in the configuration policy, Security Hub disables all other controls (including newly released controls). If the request included a list of security controls that are disabled in the configuration policy, Security Hub enables all other controls (including newly released controls).
- On failure, responds with
SdkError<UpdateConfigurationPolicyError>
source§impl Client
impl Client
sourcepub fn update_finding_aggregator(&self) -> UpdateFindingAggregatorFluentBuilder
pub fn update_finding_aggregator(&self) -> UpdateFindingAggregatorFluentBuilder
Constructs a fluent builder for the UpdateFindingAggregator operation.
- The fluent builder is configurable:
finding_aggregator_arn(impl Into<String>)/set_finding_aggregator_arn(Option<String>):
required: trueThe ARN of the finding aggregator. To obtain the ARN, use
ListFindingAggregators.region_linking_mode(impl Into<String>)/set_region_linking_mode(Option<String>):
required: trueIndicates whether to aggregate findings from all of the available Regions in the current partition. Also determines whether to automatically aggregate findings from new Regions as Security Hub supports them and you opt into them.
The selected option also determines how to use the Regions provided in the Regions list.
The options are as follows:
-
ALL_REGIONS- Indicates to aggregate findings from all of the Regions where Security Hub is enabled. When you choose this option, Security Hub also automatically aggregates findings from new Regions as Security Hub supports them and you opt into them. -
ALL_REGIONS_EXCEPT_SPECIFIED- Indicates to aggregate findings from all of the Regions where Security Hub is enabled, except for the Regions listed in theRegionsparameter. When you choose this option, Security Hub also automatically aggregates findings from new Regions as Security Hub supports them and you opt into them. -
SPECIFIED_REGIONS- Indicates to aggregate findings only from the Regions listed in theRegionsparameter. Security Hub does not automatically aggregate findings from new Regions.
-
regions(impl Into<String>)/set_regions(Option<Vec::<String>>):
required: falseIf
RegionLinkingModeisALL_REGIONS_EXCEPT_SPECIFIED, then this is a space-separated list of Regions that do not aggregate findings to the aggregation Region.If
RegionLinkingModeisSPECIFIED_REGIONS, then this is a space-separated list of Regions that do aggregate findings to the aggregation Region.
- On success, responds with
UpdateFindingAggregatorOutputwith field(s):finding_aggregator_arn(Option<String>):The ARN of the finding aggregator.
finding_aggregation_region(Option<String>):The aggregation Region.
region_linking_mode(Option<String>):Indicates whether to link all Regions, all Regions except for a list of excluded Regions, or a list of included Regions.
regions(Option<Vec::<String>>):The list of excluded Regions or included Regions.
- On failure, responds with
SdkError<UpdateFindingAggregatorError>
source§impl Client
impl Client
sourcepub fn update_findings(&self) -> UpdateFindingsFluentBuilder
pub fn update_findings(&self) -> UpdateFindingsFluentBuilder
Constructs a fluent builder for the UpdateFindings operation.
- The fluent builder is configurable:
filters(AwsSecurityFindingFilters)/set_filters(Option<AwsSecurityFindingFilters>):
required: trueA collection of attributes that specify which findings you want to update.
note(NoteUpdate)/set_note(Option<NoteUpdate>):
required: falseThe updated note for the finding.
record_state(RecordState)/set_record_state(Option<RecordState>):
required: falseThe updated record state for the finding.
- On success, responds with
UpdateFindingsOutput - On failure, responds with
SdkError<UpdateFindingsError>
source§impl Client
impl Client
sourcepub fn update_insight(&self) -> UpdateInsightFluentBuilder
pub fn update_insight(&self) -> UpdateInsightFluentBuilder
Constructs a fluent builder for the UpdateInsight operation.
- The fluent builder is configurable:
insight_arn(impl Into<String>)/set_insight_arn(Option<String>):
required: trueThe ARN of the insight that you want to update.
name(impl Into<String>)/set_name(Option<String>):
required: falseThe updated name for the insight.
filters(AwsSecurityFindingFilters)/set_filters(Option<AwsSecurityFindingFilters>):
required: falseThe updated filters that define this insight.
group_by_attribute(impl Into<String>)/set_group_by_attribute(Option<String>):
required: falseThe updated
GroupByattribute that defines this insight.
- On success, responds with
UpdateInsightOutput - On failure, responds with
SdkError<UpdateInsightError>
source§impl Client
impl Client
sourcepub fn update_organization_configuration(
&self
) -> UpdateOrganizationConfigurationFluentBuilder
pub fn update_organization_configuration( &self ) -> UpdateOrganizationConfigurationFluentBuilder
Constructs a fluent builder for the UpdateOrganizationConfiguration operation.
- The fluent builder is configurable:
auto_enable(bool)/set_auto_enable(Option<bool>):
required: trueWhether to automatically enable Security Hub in new member accounts when they join the organization.
If set to
true, then Security Hub is automatically enabled in new accounts. If set tofalse, then Security Hub isn’t enabled in new accounts automatically. The default value isfalse.If the
ConfigurationTypeof your organization is set toCENTRAL, then this field is set tofalseand can’t be changed in the home Region and linked Regions. However, in that case, the delegated administrator can create a configuration policy in which Security Hub is enabled and associate the policy with new organization accounts.auto_enable_standards(AutoEnableStandards)/set_auto_enable_standards(Option<AutoEnableStandards>):
required: falseWhether to automatically enable Security Hub default standards in new member accounts when they join the organization.
The default value of this parameter is equal to
DEFAULT.If equal to
DEFAULT, then Security Hub default standards are automatically enabled for new member accounts. If equal toNONE, then default standards are not automatically enabled for new member accounts.If the
ConfigurationTypeof your organization is set toCENTRAL, then this field is set toNONEand can’t be changed in the home Region and linked Regions. However, in that case, the delegated administrator can create a configuration policy in which specific security standards are enabled and associate the policy with new organization accounts.organization_configuration(OrganizationConfiguration)/set_organization_configuration(Option<OrganizationConfiguration>):
required: falseProvides information about the way an organization is configured in Security Hub.
- On success, responds with
UpdateOrganizationConfigurationOutput - On failure, responds with
SdkError<UpdateOrganizationConfigurationError>
source§impl Client
impl Client
sourcepub fn update_security_control(&self) -> UpdateSecurityControlFluentBuilder
pub fn update_security_control(&self) -> UpdateSecurityControlFluentBuilder
Constructs a fluent builder for the UpdateSecurityControl operation.
- The fluent builder is configurable:
security_control_id(impl Into<String>)/set_security_control_id(Option<String>):
required: trueThe Amazon Resource Name (ARN) or ID of the control to update.
parameters(impl Into<String>, ParameterConfiguration)/set_parameters(Option<HashMap::<String, ParameterConfiguration>>):
required: trueAn object that specifies which security control parameters to update.
last_update_reason(impl Into<String>)/set_last_update_reason(Option<String>):
required: falseThe most recent reason for updating the properties of the security control. This field accepts alphanumeric characters in addition to white spaces, dashes, and underscores.
- On success, responds with
UpdateSecurityControlOutput - On failure, responds with
SdkError<UpdateSecurityControlError>
source§impl Client
impl Client
sourcepub fn update_security_hub_configuration(
&self
) -> UpdateSecurityHubConfigurationFluentBuilder
pub fn update_security_hub_configuration( &self ) -> UpdateSecurityHubConfigurationFluentBuilder
Constructs a fluent builder for the UpdateSecurityHubConfiguration operation.
- The fluent builder is configurable:
auto_enable_controls(bool)/set_auto_enable_controls(Option<bool>):
required: falseWhether to automatically enable new controls when they are added to standards that are enabled.
By default, this is set to
true, and new controls are enabled automatically. To not automatically enable new controls, set this tofalse.control_finding_generator(ControlFindingGenerator)/set_control_finding_generator(Option<ControlFindingGenerator>):
required: falseUpdates whether the calling account has consolidated control findings turned on. If the value for this field is set to
SECURITY_CONTROL, Security Hub generates a single finding for a control check even when the check applies to multiple enabled standards.If the value for this field is set to
STANDARD_CONTROL, Security Hub generates separate findings for a control check when the check applies to multiple enabled standards.For accounts that are part of an organization, this value can only be updated in the administrator account.
- On success, responds with
UpdateSecurityHubConfigurationOutput - On failure, responds with
SdkError<UpdateSecurityHubConfigurationError>
source§impl Client
impl Client
sourcepub fn update_standards_control(&self) -> UpdateStandardsControlFluentBuilder
pub fn update_standards_control(&self) -> UpdateStandardsControlFluentBuilder
Constructs a fluent builder for the UpdateStandardsControl operation.
- The fluent builder is configurable:
standards_control_arn(impl Into<String>)/set_standards_control_arn(Option<String>):
required: trueThe ARN of the security standard control to enable or disable.
control_status(ControlStatus)/set_control_status(Option<ControlStatus>):
required: falseThe updated status of the security standard control.
disabled_reason(impl Into<String>)/set_disabled_reason(Option<String>):
required: falseA description of the reason why you are disabling a security standard control. If you are disabling a control, then this is required.
- On success, responds with
UpdateStandardsControlOutput - On failure, responds with
SdkError<UpdateStandardsControlError>
source§impl Client
impl Client
sourcepub fn from_conf(conf: Config) -> Self
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_implconfigured. - Identity caching is enabled without a
sleep_implandtime_sourceconfigured. - No
behavior_versionis provided.
The panic message for each of these will have instructions on how to resolve them.
source§impl Client
impl Client
sourcepub fn new(sdk_config: &SdkConfig) -> Self
pub fn new(sdk_config: &SdkConfig) -> Self
Creates a new client from an SDK Config.
§Panics
- This method will panic if the
sdk_configis missing an async sleep implementation. If you experience this panic, set thesleep_implon the Config passed into this function to fix it. - This method will panic if the
sdk_configis missing an HTTP connector. If you experience this panic, set thehttp_connectoron the Config passed into this function to fix it. - This method will panic if no
BehaviorVersionis provided. If you experience this panic, setbehavior_versionon the Config or enable thebehavior-version-latestCargo feature.
Trait Implementations§
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> 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