1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetRevocationStatus`](crate::operation::get_revocation_status::builders::GetRevocationStatusFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`signature_timestamp(DateTime)`](crate::operation::get_revocation_status::builders::GetRevocationStatusFluentBuilder::signature_timestamp) / [`set_signature_timestamp(Option<DateTime>)`](crate::operation::get_revocation_status::builders::GetRevocationStatusFluentBuilder::set_signature_timestamp):<br>required: **true**<br><p>The timestamp of the signature that validates the profile or job.</p><br>
    ///   - [`platform_id(impl Into<String>)`](crate::operation::get_revocation_status::builders::GetRevocationStatusFluentBuilder::platform_id) / [`set_platform_id(Option<String>)`](crate::operation::get_revocation_status::builders::GetRevocationStatusFluentBuilder::set_platform_id):<br>required: **true**<br><p>The ID of a signing platform.</p><br>
    ///   - [`profile_version_arn(impl Into<String>)`](crate::operation::get_revocation_status::builders::GetRevocationStatusFluentBuilder::profile_version_arn) / [`set_profile_version_arn(Option<String>)`](crate::operation::get_revocation_status::builders::GetRevocationStatusFluentBuilder::set_profile_version_arn):<br>required: **true**<br><p>The version of a signing profile.</p><br>
    ///   - [`job_arn(impl Into<String>)`](crate::operation::get_revocation_status::builders::GetRevocationStatusFluentBuilder::job_arn) / [`set_job_arn(Option<String>)`](crate::operation::get_revocation_status::builders::GetRevocationStatusFluentBuilder::set_job_arn):<br>required: **true**<br><p>The ARN of a signing job.</p><br>
    ///   - [`certificate_hashes(impl Into<String>)`](crate::operation::get_revocation_status::builders::GetRevocationStatusFluentBuilder::certificate_hashes) / [`set_certificate_hashes(Option<Vec::<String>>)`](crate::operation::get_revocation_status::builders::GetRevocationStatusFluentBuilder::set_certificate_hashes):<br>required: **true**<br><p>A list of composite signed hashes that identify certificates.</p> <p>A certificate identifier consists of a subject certificate TBS hash (signed by the parent CA) combined with a parent CA TBS hash (signed by the parent CA’s CA). Root certificates are defined as their own CA.</p> <p>The following example shows how to calculate a hash for this parameter using OpenSSL commands:</p> <p><code>openssl asn1parse -in childCert.pem -strparse 4 -out childCert.tbs</code></p> <p><code>openssl sha384 &lt; childCert.tbs -binary &gt; childCertTbsHash</code></p> <p><code>openssl asn1parse -in parentCert.pem -strparse 4 -out parentCert.tbs</code></p> <p><code>openssl sha384 &lt; parentCert.tbs -binary &gt; parentCertTbsHash xxd -p childCertTbsHash &gt; certificateHash.hex xxd -p parentCertTbsHash &gt;&gt; certificateHash.hex</code></p> <p><code>cat certificateHash.hex | tr -d '\n'</code></p><br>
    /// - On success, responds with [`GetRevocationStatusOutput`](crate::operation::get_revocation_status::GetRevocationStatusOutput) with field(s):
    ///   - [`revoked_entities(Option<Vec::<String>>)`](crate::operation::get_revocation_status::GetRevocationStatusOutput::revoked_entities): <p>A list of revoked entities (including zero or more of the signing profile ARN, signing job ARN, and certificate hashes) supplied as input to the API.</p>
    /// - On failure, responds with [`SdkError<GetRevocationStatusError>`](crate::operation::get_revocation_status::GetRevocationStatusError)
    pub fn get_revocation_status(&self) -> crate::operation::get_revocation_status::builders::GetRevocationStatusFluentBuilder {
        crate::operation::get_revocation_status::builders::GetRevocationStatusFluentBuilder::new(self.handle.clone())
    }
}