aws-sdk-securityagent 1.8.0

AWS SDK for AWS Security Agent
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`UpdateThreat`](crate::operation::update_threat::builders::UpdateThreatFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`threat_id(impl Into<String>)`](crate::operation::update_threat::builders::UpdateThreatFluentBuilder::threat_id) / [`set_threat_id(Option<String>)`](crate::operation::update_threat::builders::UpdateThreatFluentBuilder::set_threat_id):<br>required: **true**<br><p>The unique identifier of the threat to update.</p><br>
    ///   - [`agent_space_id(impl Into<String>)`](crate::operation::update_threat::builders::UpdateThreatFluentBuilder::agent_space_id) / [`set_agent_space_id(Option<String>)`](crate::operation::update_threat::builders::UpdateThreatFluentBuilder::set_agent_space_id):<br>required: **true**<br><p>The unique identifier of the agent space.</p><br>
    ///   - [`title(impl Into<String>)`](crate::operation::update_threat::builders::UpdateThreatFluentBuilder::title) / [`set_title(Option<String>)`](crate::operation::update_threat::builders::UpdateThreatFluentBuilder::set_title):<br>required: **false**<br><p>A short title summarizing the threat.</p><br>
    ///   - [`status(ThreatStatus)`](crate::operation::update_threat::builders::UpdateThreatFluentBuilder::status) / [`set_status(Option<ThreatStatus>)`](crate::operation::update_threat::builders::UpdateThreatFluentBuilder::set_status):<br>required: **false**<br><p>The updated status of the threat.</p><br>
    ///   - [`comments(impl Into<String>)`](crate::operation::update_threat::builders::UpdateThreatFluentBuilder::comments) / [`set_comments(Option<String>)`](crate::operation::update_threat::builders::UpdateThreatFluentBuilder::set_comments):<br>required: **false**<br><p>Optional customer comment.</p><br>
    ///   - [`statement(impl Into<String>)`](crate::operation::update_threat::builders::UpdateThreatFluentBuilder::statement) / [`set_statement(Option<String>)`](crate::operation::update_threat::builders::UpdateThreatFluentBuilder::set_statement):<br>required: **false**<br><p>The updated natural-language threat statement.</p><br>
    ///   - [`severity(ThreatSeverity)`](crate::operation::update_threat::builders::UpdateThreatFluentBuilder::severity) / [`set_severity(Option<ThreatSeverity>)`](crate::operation::update_threat::builders::UpdateThreatFluentBuilder::set_severity):<br>required: **false**<br><p>The updated severity level of the threat.</p><br>
    ///   - [`threat_source(impl Into<String>)`](crate::operation::update_threat::builders::UpdateThreatFluentBuilder::threat_source) / [`set_threat_source(Option<String>)`](crate::operation::update_threat::builders::UpdateThreatFluentBuilder::set_threat_source):<br>required: **false**<br><p>The updated actor or origin of the threat.</p><br>
    ///   - [`prerequisites(impl Into<String>)`](crate::operation::update_threat::builders::UpdateThreatFluentBuilder::prerequisites) / [`set_prerequisites(Option<String>)`](crate::operation::update_threat::builders::UpdateThreatFluentBuilder::set_prerequisites):<br>required: **false**<br><p>The updated conditions required for the threat to be exploitable.</p><br>
    ///   - [`threat_action(impl Into<String>)`](crate::operation::update_threat::builders::UpdateThreatFluentBuilder::threat_action) / [`set_threat_action(Option<String>)`](crate::operation::update_threat::builders::UpdateThreatFluentBuilder::set_threat_action):<br>required: **false**<br><p>The updated description of what the threat source can do.</p><br>
    ///   - [`threat_impact(impl Into<String>)`](crate::operation::update_threat::builders::UpdateThreatFluentBuilder::threat_impact) / [`set_threat_impact(Option<String>)`](crate::operation::update_threat::builders::UpdateThreatFluentBuilder::set_threat_impact):<br>required: **false**<br><p>The updated direct consequence of the threat action.</p><br>
    ///   - [`impacted_goal(impl Into<String>)`](crate::operation::update_threat::builders::UpdateThreatFluentBuilder::impacted_goal) / [`set_impacted_goal(Option<Vec::<String>>)`](crate::operation::update_threat::builders::UpdateThreatFluentBuilder::set_impacted_goal):<br>required: **false**<br><p>The updated security goals affected by the threat.</p><br>
    ///   - [`impacted_assets(impl Into<String>)`](crate::operation::update_threat::builders::UpdateThreatFluentBuilder::impacted_assets) / [`set_impacted_assets(Option<Vec::<String>>)`](crate::operation::update_threat::builders::UpdateThreatFluentBuilder::set_impacted_assets):<br>required: **false**<br><p>The updated list of specific assets affected by the threat.</p><br>
    ///   - [`anchor(ThreatAnchorShape)`](crate::operation::update_threat::builders::UpdateThreatFluentBuilder::anchor) / [`set_anchor(Option<ThreatAnchorShape>)`](crate::operation::update_threat::builders::UpdateThreatFluentBuilder::set_anchor):<br>required: **false**<br><p>The updated DFD element this threat is anchored to.</p><br>
    ///   - [`evidence(ThreatEvidenceShape)`](crate::operation::update_threat::builders::UpdateThreatFluentBuilder::evidence) / [`set_evidence(Option<Vec::<ThreatEvidenceShape>>)`](crate::operation::update_threat::builders::UpdateThreatFluentBuilder::set_evidence):<br>required: **false**<br><p>The updated source code files supporting the threat.</p><br>
    ///   - [`recommendation(impl Into<String>)`](crate::operation::update_threat::builders::UpdateThreatFluentBuilder::recommendation) / [`set_recommendation(Option<String>)`](crate::operation::update_threat::builders::UpdateThreatFluentBuilder::set_recommendation):<br>required: **false**<br><p>The updated recommended mitigation guidance for this threat.</p><br>
    /// - On success, responds with [`UpdateThreatOutput`](crate::operation::update_threat::UpdateThreatOutput) with field(s):
    ///   - [`threat_id(String)`](crate::operation::update_threat::UpdateThreatOutput::threat_id): <p>The unique identifier of the threat.</p>
    ///   - [`threat_job_id(String)`](crate::operation::update_threat::UpdateThreatOutput::threat_job_id): <p>The unique identifier of the threat model job the threat belongs to.</p>
    ///   - [`title(Option<String>)`](crate::operation::update_threat::UpdateThreatOutput::title): <p>A short title summarizing the threat.</p>
    ///   - [`statement(Option<String>)`](crate::operation::update_threat::UpdateThreatOutput::statement): <p>The natural-language threat statement.</p>
    ///   - [`severity(Option<ThreatSeverity>)`](crate::operation::update_threat::UpdateThreatOutput::severity): <p>The severity level of the threat.</p>
    ///   - [`status(Option<ThreatStatus>)`](crate::operation::update_threat::UpdateThreatOutput::status): <p>The current status of the threat.</p>
    ///   - [`comments(Option<String>)`](crate::operation::update_threat::UpdateThreatOutput::comments): <p>Optional customer comment on the threat.</p>
    ///   - [`stride(Option<Vec::<StrideCategory>>)`](crate::operation::update_threat::UpdateThreatOutput::stride): <p>The STRIDE categories applicable to this threat.</p>
    ///   - [`threat_source(Option<String>)`](crate::operation::update_threat::UpdateThreatOutput::threat_source): <p>The actor or origin of the threat.</p>
    ///   - [`prerequisites(Option<String>)`](crate::operation::update_threat::UpdateThreatOutput::prerequisites): <p>The conditions required for the threat to be exploitable.</p>
    ///   - [`threat_action(Option<String>)`](crate::operation::update_threat::UpdateThreatOutput::threat_action): <p>What the threat source can do.</p>
    ///   - [`threat_impact(Option<String>)`](crate::operation::update_threat::UpdateThreatOutput::threat_impact): <p>The direct consequence of the threat action.</p>
    ///   - [`impacted_goal(Option<Vec::<String>>)`](crate::operation::update_threat::UpdateThreatOutput::impacted_goal): <p>The security goals affected by the threat.</p>
    ///   - [`impacted_assets(Option<Vec::<String>>)`](crate::operation::update_threat::UpdateThreatOutput::impacted_assets): <p>The specific assets affected by the threat.</p>
    ///   - [`anchor(Option<ThreatAnchorShape>)`](crate::operation::update_threat::UpdateThreatOutput::anchor): <p>The DFD element this threat is anchored to.</p>
    ///   - [`evidence(Option<Vec::<ThreatEvidenceShape>>)`](crate::operation::update_threat::UpdateThreatOutput::evidence): <p>The source code files supporting the threat.</p>
    ///   - [`recommendation(Option<String>)`](crate::operation::update_threat::UpdateThreatOutput::recommendation): <p>The recommended mitigation guidance for this threat.</p>
    ///   - [`created_by(Option<ThreatActor>)`](crate::operation::update_threat::UpdateThreatOutput::created_by): <p>Who created this threat.</p>
    ///   - [`updated_by(Option<ThreatActor>)`](crate::operation::update_threat::UpdateThreatOutput::updated_by): <p>Who last updated this threat.</p>
    ///   - [`created_at(Option<DateTime>)`](crate::operation::update_threat::UpdateThreatOutput::created_at): <p>The date and time the threat was created, in UTC format.</p>
    ///   - [`updated_at(Option<DateTime>)`](crate::operation::update_threat::UpdateThreatOutput::updated_at): <p>The date and time the threat was last updated, in UTC format.</p>
    /// - On failure, responds with [`SdkError<UpdateThreatError>`](crate::operation::update_threat::UpdateThreatError)
    pub fn update_threat(&self) -> crate::operation::update_threat::builders::UpdateThreatFluentBuilder {
        crate::operation::update_threat::builders::UpdateThreatFluentBuilder::new(self.handle.clone())
    }
}