// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`PutEvidence`](crate::operation::put_evidence::builders::PutEvidenceFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`environment_arn(impl Into<String>)`](crate::operation::put_evidence::builders::PutEvidenceFluentBuilder::environment_arn) / [`set_environment_arn(Option<String>)`](crate::operation::put_evidence::builders::PutEvidenceFluentBuilder::set_environment_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of this governance environment.</p><br>
/// - [`content(Blob)`](crate::operation::put_evidence::builders::PutEvidenceFluentBuilder::content) / [`set_content(Option<Blob>)`](crate::operation::put_evidence::builders::PutEvidenceFluentBuilder::set_content):<br>required: **false**<br><p>The file content. Required for a direct upload. You can't specify both <code>content</code> and <code>reference</code>.</p><br>
/// - [`title(impl Into<String>)`](crate::operation::put_evidence::builders::PutEvidenceFluentBuilder::title) / [`set_title(Option<String>)`](crate::operation::put_evidence::builders::PutEvidenceFluentBuilder::set_title):<br>required: **false**<br><p>The title of the evidence. When you create new evidence, AWS Assurance derives the evidence ID from the title, in the form <code>assurance://{sanitized-title}</code>.</p> <p>Required when you specify <code>content</code>. Optional when you specify <code>reference</code>. If you omit it, AWS Assurance uses the name of the referenced document.</p><br>
/// - [`description(impl Into<String>)`](crate::operation::put_evidence::builders::PutEvidenceFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::put_evidence::builders::PutEvidenceFluentBuilder::set_description):<br>required: **false**<br><p>The optional description of the evidence.</p><br>
/// - [`evidence_id(impl Into<String>)`](crate::operation::put_evidence::builders::PutEvidenceFluentBuilder::evidence_id) / [`set_evidence_id(Option<String>)`](crate::operation::put_evidence::builders::PutEvidenceFluentBuilder::set_evidence_id):<br>required: **false**<br><p>The ID of existing evidence. Specify it to add a new version of that evidence. Omit it to create new evidence.</p><br>
/// - [`content_mime_type(impl Into<String>)`](crate::operation::put_evidence::builders::PutEvidenceFluentBuilder::content_mime_type) / [`set_content_mime_type(Option<String>)`](crate::operation::put_evidence::builders::PutEvidenceFluentBuilder::set_content_mime_type):<br>required: **false**<br><p>The declared Multipurpose Internet Mail Extensions (MIME) type of the file, for example <code>application/pdf</code>. AWS Assurance checks the declared type against the actual file content. For the list of registered types, see <a href="https://www.iana.org/assignments/media-types/media-types.xhtml">Media Types</a> on the IANA website.</p><br>
/// - [`project(impl Into<String>)`](crate::operation::put_evidence::builders::PutEvidenceFluentBuilder::project) / [`set_project(Option<String>)`](crate::operation::put_evidence::builders::PutEvidenceFluentBuilder::set_project):<br>required: **true**<br><p>Project scope for the evidence.</p><br>
/// - [`reference(impl Into<String>)`](crate::operation::put_evidence::builders::PutEvidenceFluentBuilder::reference) / [`set_reference(Option<String>)`](crate::operation::put_evidence::builders::PutEvidenceFluentBuilder::set_reference):<br>required: **false**<br><p>A link to the document. You can't specify both <code>reference</code> and <code>content</code>. Supported formats:</p> <ul> <li> <p>For a file in GitHub, a link in the form https://github.com/{owner}/{repo}/blob/{ref}/{path}.</p></li> <li> <p>For a document in SharePoint, any link to the document in the form https://{tenant}.sharepoint.com/{path}, including a sharing link.</p></li> <li> <p>For an object in Amazon S3, a URI in the form s3://{bucket}/{key}. The bucket must be the evidence bucket configured for the environment.</p></li> </ul><br>
/// - [`connection_id(impl Into<String>)`](crate::operation::put_evidence::builders::PutEvidenceFluentBuilder::connection_id) / [`set_connection_id(Option<String>)`](crate::operation::put_evidence::builders::PutEvidenceFluentBuilder::set_connection_id):<br>required: **false**<br><p>The ID of the connection to read <code>reference</code> through, as returned by <code>ListEnvironmentConnections</code>. Each new version of the document uses this connection too.</p> <p>Use this parameter only with <code>reference</code>.</p> <p>If you omit this parameter, the operation uses the single connection that can read the document. If the environment has more than one connection to the same provider, specify this parameter.</p><br>
/// - [`control_references(ControlReference)`](crate::operation::put_evidence::builders::PutEvidenceFluentBuilder::control_references) / [`set_control_references(Option<Vec::<ControlReference>>)`](crate::operation::put_evidence::builders::PutEvidenceFluentBuilder::set_control_references):<br>required: **false**<br><p>The controls to link the evidence to when you add it. You can specify control links only when <code>purpose</code> is <code>CONTROL_EVIDENCE</code>.</p><br>
/// - [`link_mode(LinkMode)`](crate::operation::put_evidence::builders::PutEvidenceFluentBuilder::link_mode) / [`set_link_mode(Option<LinkMode>)`](crate::operation::put_evidence::builders::PutEvidenceFluentBuilder::set_link_mode):<br>required: **false**<br><p>Specifies whether AWS Assurance analyzes the evidence and links it to relevant controls. A link shows that the evidence is relevant to a control, not that you meet the control. An assessment determines whether you meet the control. Specify one of the following values:</p> <ul> <li> <p><code>AUTO</code> – AWS Assurance analyzes the evidence and adds control links.</p></li> <li> <p><code>MANUAL</code> – AWS Assurance doesn't analyze the evidence. You add control links yourself.</p></li> </ul> <p>Automatic linking is available only to some accounts during the preview. If you omit this parameter, the default is <code>AUTO</code> for those accounts and <code>MANUAL</code> for all other accounts. Evidence whose <code>purpose</code> isn't <code>CONTROL_EVIDENCE</code> always has the mode <code>DISABLED</code>, which means that it can't be linked to controls. You can't specify <code>AUTO</code> for that evidence.</p><br>
/// - [`purpose(EvidencePurpose)`](crate::operation::put_evidence::builders::PutEvidenceFluentBuilder::purpose) / [`set_purpose(Option<EvidencePurpose>)`](crate::operation::put_evidence::builders::PutEvidenceFluentBuilder::set_purpose):<br>required: **false**<br><p>What the evidence is for. Specify one of the following values:</p> <ul> <li> <p><code>CONTROL_EVIDENCE</code> – Evidence that supports controls.</p></li> <li> <p><code>FRAMEWORK_SOURCE</code> – The document that you create a custom framework from. AWS Assurance never links this evidence to controls.</p></li> </ul> <p>You can't specify <code>SCAN_EVIDENCE</code>. If you omit this parameter, a new version keeps the purpose of the existing evidence, and new evidence uses <code>CONTROL_EVIDENCE</code>. You can't change the purpose in a new version.</p><br>
/// - On success, responds with [`PutEvidenceOutput`](crate::operation::put_evidence::PutEvidenceOutput) with field(s):
/// - [`evidence_id(String)`](crate::operation::put_evidence::PutEvidenceOutput::evidence_id): <p>The unique identifier of the evidence item.</p>
/// - [`version(i32)`](crate::operation::put_evidence::PutEvidenceOutput::version): <p>The version number of the evidence.</p>
/// - On failure, responds with [`SdkError<PutEvidenceError>`](crate::operation::put_evidence::PutEvidenceError)
pub fn put_evidence(&self) -> crate::operation::put_evidence::builders::PutEvidenceFluentBuilder {
crate::operation::put_evidence::builders::PutEvidenceFluentBuilder::new(self.handle.clone())
}
}