aws_sdk_acm/operation/request_certificate/
_request_certificate_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct RequestCertificateInput {
6    /// <p>Fully qualified domain name (FQDN), such as www.example.com, that you want to secure with an ACM certificate. Use an asterisk (*) to create a wildcard certificate that protects several sites in the same domain. For example, *.example.com protects www.example.com, site.example.com, and images.example.com.</p>
7    /// <p>In compliance with <a href="https://datatracker.ietf.org/doc/html/rfc5280">RFC 5280</a>, the length of the domain name (technically, the Common Name) that you provide cannot exceed 64 octets (characters), including periods. To add a longer domain name, specify it in the Subject Alternative Name field, which supports names up to 253 octets in length.</p>
8    pub domain_name: ::std::option::Option<::std::string::String>,
9    /// <p>The method you want to use if you are requesting a public certificate to validate that you own or control domain. You can <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-dns.html">validate with DNS</a> or <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-email.html">validate with email</a>. We recommend that you use DNS validation.</p>
10    pub validation_method: ::std::option::Option<crate::types::ValidationMethod>,
11    /// <p>Additional FQDNs to be included in the Subject Alternative Name extension of the ACM certificate. For example, add the name www.example.net to a certificate for which the <code>DomainName</code> field is www.example.com if users can reach your site by using either name. The maximum number of domain names that you can add to an ACM certificate is 100. However, the initial quota is 10 domain names. If you need more than 10 names, you must request a quota increase. For more information, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-limits.html">Quotas</a>.</p>
12    /// <p>The maximum length of a SAN DNS name is 253 octets. The name is made up of multiple labels separated by periods. No label can be longer than 63 octets. Consider the following examples:</p>
13    /// <ul>
14    /// <li>
15    /// <p><code>(63 octets).(63 octets).(63 octets).(61 octets)</code> is legal because the total length is 253 octets (63+1+63+1+63+1+61) and no label exceeds 63 octets.</p></li>
16    /// <li>
17    /// <p><code>(64 octets).(63 octets).(63 octets).(61 octets)</code> is not legal because the total length exceeds 253 octets (64+1+63+1+63+1+61) and the first label exceeds 63 octets.</p></li>
18    /// <li>
19    /// <p><code>(63 octets).(63 octets).(63 octets).(62 octets)</code> is not legal because the total length of the DNS name (63+1+63+1+63+1+62) exceeds 253 octets.</p></li>
20    /// </ul>
21    pub subject_alternative_names: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
22    /// <p>Customer chosen string that can be used to distinguish between calls to <code>RequestCertificate</code>. Idempotency tokens time out after one hour. Therefore, if you call <code>RequestCertificate</code> multiple times with the same idempotency token within one hour, ACM recognizes that you are requesting only one certificate and will issue only one. If you change the idempotency token for each call, ACM recognizes that you are requesting multiple certificates.</p>
23    pub idempotency_token: ::std::option::Option<::std::string::String>,
24    /// <p>The domain name that you want ACM to use to send you emails so that you can validate domain ownership.</p>
25    pub domain_validation_options: ::std::option::Option<::std::vec::Vec<crate::types::DomainValidationOption>>,
26    /// <p>Currently, you can use this parameter to specify whether to add the certificate to a certificate transparency log. Certificate transparency makes it possible to detect SSL/TLS certificates that have been mistakenly or maliciously issued. Certificates that have not been logged typically produce an error message in a browser. For more information, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-bestpractices.html#best-practices-transparency">Opting Out of Certificate Transparency Logging</a>.</p>
27    pub options: ::std::option::Option<crate::types::CertificateOptions>,
28    /// <p>The Amazon Resource Name (ARN) of the private certificate authority (CA) that will be used to issue the certificate. If you do not provide an ARN and you are trying to request a private certificate, ACM will attempt to issue a public certificate. For more information about private CAs, see the <a href="https://docs.aws.amazon.com/privateca/latest/userguide/PcaWelcome.html">Amazon Web Services Private Certificate Authority</a> user guide. The ARN must have the following form:</p>
29    /// <p><code>arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012</code></p>
30    pub certificate_authority_arn: ::std::option::Option<::std::string::String>,
31    /// <p>One or more resource tags to associate with the certificate.</p>
32    pub tags: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>,
33    /// <p>Specifies the algorithm of the public and private key pair that your certificate uses to encrypt data. RSA is the default key algorithm for ACM certificates. Elliptic Curve Digital Signature Algorithm (ECDSA) keys are smaller, offering security comparable to RSA keys but with greater computing efficiency. However, ECDSA is not supported by all network clients. Some Amazon Web Services services may require RSA keys, or only support ECDSA keys of a particular size, while others allow the use of either RSA and ECDSA keys to ensure that compatibility is not broken. Check the requirements for the Amazon Web Services service where you plan to deploy your certificate. For more information about selecting an algorithm, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-certificate.html#algorithms">Key algorithms</a>.</p><note>
34    /// <p>Algorithms supported for an ACM certificate request include:</p>
35    /// <ul>
36    /// <li>
37    /// <p><code>RSA_2048</code></p></li>
38    /// <li>
39    /// <p><code>EC_prime256v1</code></p></li>
40    /// <li>
41    /// <p><code>EC_secp384r1</code></p></li>
42    /// </ul>
43    /// <p>Other listed algorithms are for imported certificates only.</p>
44    /// </note> <note>
45    /// <p>When you request a private PKI certificate signed by a CA from Amazon Web Services Private CA, the specified signing algorithm family (RSA or ECDSA) must match the algorithm family of the CA's secret key.</p>
46    /// </note>
47    /// <p>Default: RSA_2048</p>
48    pub key_algorithm: ::std::option::Option<crate::types::KeyAlgorithm>,
49    /// <p>Identifies the Amazon Web Services service that manages the certificate issued by ACM.</p>
50    pub managed_by: ::std::option::Option<crate::types::CertificateManagedBy>,
51}
52impl RequestCertificateInput {
53    /// <p>Fully qualified domain name (FQDN), such as www.example.com, that you want to secure with an ACM certificate. Use an asterisk (*) to create a wildcard certificate that protects several sites in the same domain. For example, *.example.com protects www.example.com, site.example.com, and images.example.com.</p>
54    /// <p>In compliance with <a href="https://datatracker.ietf.org/doc/html/rfc5280">RFC 5280</a>, the length of the domain name (technically, the Common Name) that you provide cannot exceed 64 octets (characters), including periods. To add a longer domain name, specify it in the Subject Alternative Name field, which supports names up to 253 octets in length.</p>
55    pub fn domain_name(&self) -> ::std::option::Option<&str> {
56        self.domain_name.as_deref()
57    }
58    /// <p>The method you want to use if you are requesting a public certificate to validate that you own or control domain. You can <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-dns.html">validate with DNS</a> or <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-email.html">validate with email</a>. We recommend that you use DNS validation.</p>
59    pub fn validation_method(&self) -> ::std::option::Option<&crate::types::ValidationMethod> {
60        self.validation_method.as_ref()
61    }
62    /// <p>Additional FQDNs to be included in the Subject Alternative Name extension of the ACM certificate. For example, add the name www.example.net to a certificate for which the <code>DomainName</code> field is www.example.com if users can reach your site by using either name. The maximum number of domain names that you can add to an ACM certificate is 100. However, the initial quota is 10 domain names. If you need more than 10 names, you must request a quota increase. For more information, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-limits.html">Quotas</a>.</p>
63    /// <p>The maximum length of a SAN DNS name is 253 octets. The name is made up of multiple labels separated by periods. No label can be longer than 63 octets. Consider the following examples:</p>
64    /// <ul>
65    /// <li>
66    /// <p><code>(63 octets).(63 octets).(63 octets).(61 octets)</code> is legal because the total length is 253 octets (63+1+63+1+63+1+61) and no label exceeds 63 octets.</p></li>
67    /// <li>
68    /// <p><code>(64 octets).(63 octets).(63 octets).(61 octets)</code> is not legal because the total length exceeds 253 octets (64+1+63+1+63+1+61) and the first label exceeds 63 octets.</p></li>
69    /// <li>
70    /// <p><code>(63 octets).(63 octets).(63 octets).(62 octets)</code> is not legal because the total length of the DNS name (63+1+63+1+63+1+62) exceeds 253 octets.</p></li>
71    /// </ul>
72    ///
73    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.subject_alternative_names.is_none()`.
74    pub fn subject_alternative_names(&self) -> &[::std::string::String] {
75        self.subject_alternative_names.as_deref().unwrap_or_default()
76    }
77    /// <p>Customer chosen string that can be used to distinguish between calls to <code>RequestCertificate</code>. Idempotency tokens time out after one hour. Therefore, if you call <code>RequestCertificate</code> multiple times with the same idempotency token within one hour, ACM recognizes that you are requesting only one certificate and will issue only one. If you change the idempotency token for each call, ACM recognizes that you are requesting multiple certificates.</p>
78    pub fn idempotency_token(&self) -> ::std::option::Option<&str> {
79        self.idempotency_token.as_deref()
80    }
81    /// <p>The domain name that you want ACM to use to send you emails so that you can validate domain ownership.</p>
82    ///
83    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.domain_validation_options.is_none()`.
84    pub fn domain_validation_options(&self) -> &[crate::types::DomainValidationOption] {
85        self.domain_validation_options.as_deref().unwrap_or_default()
86    }
87    /// <p>Currently, you can use this parameter to specify whether to add the certificate to a certificate transparency log. Certificate transparency makes it possible to detect SSL/TLS certificates that have been mistakenly or maliciously issued. Certificates that have not been logged typically produce an error message in a browser. For more information, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-bestpractices.html#best-practices-transparency">Opting Out of Certificate Transparency Logging</a>.</p>
88    pub fn options(&self) -> ::std::option::Option<&crate::types::CertificateOptions> {
89        self.options.as_ref()
90    }
91    /// <p>The Amazon Resource Name (ARN) of the private certificate authority (CA) that will be used to issue the certificate. If you do not provide an ARN and you are trying to request a private certificate, ACM will attempt to issue a public certificate. For more information about private CAs, see the <a href="https://docs.aws.amazon.com/privateca/latest/userguide/PcaWelcome.html">Amazon Web Services Private Certificate Authority</a> user guide. The ARN must have the following form:</p>
92    /// <p><code>arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012</code></p>
93    pub fn certificate_authority_arn(&self) -> ::std::option::Option<&str> {
94        self.certificate_authority_arn.as_deref()
95    }
96    /// <p>One or more resource tags to associate with the certificate.</p>
97    ///
98    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.tags.is_none()`.
99    pub fn tags(&self) -> &[crate::types::Tag] {
100        self.tags.as_deref().unwrap_or_default()
101    }
102    /// <p>Specifies the algorithm of the public and private key pair that your certificate uses to encrypt data. RSA is the default key algorithm for ACM certificates. Elliptic Curve Digital Signature Algorithm (ECDSA) keys are smaller, offering security comparable to RSA keys but with greater computing efficiency. However, ECDSA is not supported by all network clients. Some Amazon Web Services services may require RSA keys, or only support ECDSA keys of a particular size, while others allow the use of either RSA and ECDSA keys to ensure that compatibility is not broken. Check the requirements for the Amazon Web Services service where you plan to deploy your certificate. For more information about selecting an algorithm, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-certificate.html#algorithms">Key algorithms</a>.</p><note>
103    /// <p>Algorithms supported for an ACM certificate request include:</p>
104    /// <ul>
105    /// <li>
106    /// <p><code>RSA_2048</code></p></li>
107    /// <li>
108    /// <p><code>EC_prime256v1</code></p></li>
109    /// <li>
110    /// <p><code>EC_secp384r1</code></p></li>
111    /// </ul>
112    /// <p>Other listed algorithms are for imported certificates only.</p>
113    /// </note> <note>
114    /// <p>When you request a private PKI certificate signed by a CA from Amazon Web Services Private CA, the specified signing algorithm family (RSA or ECDSA) must match the algorithm family of the CA's secret key.</p>
115    /// </note>
116    /// <p>Default: RSA_2048</p>
117    pub fn key_algorithm(&self) -> ::std::option::Option<&crate::types::KeyAlgorithm> {
118        self.key_algorithm.as_ref()
119    }
120    /// <p>Identifies the Amazon Web Services service that manages the certificate issued by ACM.</p>
121    pub fn managed_by(&self) -> ::std::option::Option<&crate::types::CertificateManagedBy> {
122        self.managed_by.as_ref()
123    }
124}
125impl RequestCertificateInput {
126    /// Creates a new builder-style object to manufacture [`RequestCertificateInput`](crate::operation::request_certificate::RequestCertificateInput).
127    pub fn builder() -> crate::operation::request_certificate::builders::RequestCertificateInputBuilder {
128        crate::operation::request_certificate::builders::RequestCertificateInputBuilder::default()
129    }
130}
131
132/// A builder for [`RequestCertificateInput`](crate::operation::request_certificate::RequestCertificateInput).
133#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
134#[non_exhaustive]
135pub struct RequestCertificateInputBuilder {
136    pub(crate) domain_name: ::std::option::Option<::std::string::String>,
137    pub(crate) validation_method: ::std::option::Option<crate::types::ValidationMethod>,
138    pub(crate) subject_alternative_names: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
139    pub(crate) idempotency_token: ::std::option::Option<::std::string::String>,
140    pub(crate) domain_validation_options: ::std::option::Option<::std::vec::Vec<crate::types::DomainValidationOption>>,
141    pub(crate) options: ::std::option::Option<crate::types::CertificateOptions>,
142    pub(crate) certificate_authority_arn: ::std::option::Option<::std::string::String>,
143    pub(crate) tags: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>,
144    pub(crate) key_algorithm: ::std::option::Option<crate::types::KeyAlgorithm>,
145    pub(crate) managed_by: ::std::option::Option<crate::types::CertificateManagedBy>,
146}
147impl RequestCertificateInputBuilder {
148    /// <p>Fully qualified domain name (FQDN), such as www.example.com, that you want to secure with an ACM certificate. Use an asterisk (*) to create a wildcard certificate that protects several sites in the same domain. For example, *.example.com protects www.example.com, site.example.com, and images.example.com.</p>
149    /// <p>In compliance with <a href="https://datatracker.ietf.org/doc/html/rfc5280">RFC 5280</a>, the length of the domain name (technically, the Common Name) that you provide cannot exceed 64 octets (characters), including periods. To add a longer domain name, specify it in the Subject Alternative Name field, which supports names up to 253 octets in length.</p>
150    /// This field is required.
151    pub fn domain_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
152        self.domain_name = ::std::option::Option::Some(input.into());
153        self
154    }
155    /// <p>Fully qualified domain name (FQDN), such as www.example.com, that you want to secure with an ACM certificate. Use an asterisk (*) to create a wildcard certificate that protects several sites in the same domain. For example, *.example.com protects www.example.com, site.example.com, and images.example.com.</p>
156    /// <p>In compliance with <a href="https://datatracker.ietf.org/doc/html/rfc5280">RFC 5280</a>, the length of the domain name (technically, the Common Name) that you provide cannot exceed 64 octets (characters), including periods. To add a longer domain name, specify it in the Subject Alternative Name field, which supports names up to 253 octets in length.</p>
157    pub fn set_domain_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
158        self.domain_name = input;
159        self
160    }
161    /// <p>Fully qualified domain name (FQDN), such as www.example.com, that you want to secure with an ACM certificate. Use an asterisk (*) to create a wildcard certificate that protects several sites in the same domain. For example, *.example.com protects www.example.com, site.example.com, and images.example.com.</p>
162    /// <p>In compliance with <a href="https://datatracker.ietf.org/doc/html/rfc5280">RFC 5280</a>, the length of the domain name (technically, the Common Name) that you provide cannot exceed 64 octets (characters), including periods. To add a longer domain name, specify it in the Subject Alternative Name field, which supports names up to 253 octets in length.</p>
163    pub fn get_domain_name(&self) -> &::std::option::Option<::std::string::String> {
164        &self.domain_name
165    }
166    /// <p>The method you want to use if you are requesting a public certificate to validate that you own or control domain. You can <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-dns.html">validate with DNS</a> or <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-email.html">validate with email</a>. We recommend that you use DNS validation.</p>
167    pub fn validation_method(mut self, input: crate::types::ValidationMethod) -> Self {
168        self.validation_method = ::std::option::Option::Some(input);
169        self
170    }
171    /// <p>The method you want to use if you are requesting a public certificate to validate that you own or control domain. You can <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-dns.html">validate with DNS</a> or <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-email.html">validate with email</a>. We recommend that you use DNS validation.</p>
172    pub fn set_validation_method(mut self, input: ::std::option::Option<crate::types::ValidationMethod>) -> Self {
173        self.validation_method = input;
174        self
175    }
176    /// <p>The method you want to use if you are requesting a public certificate to validate that you own or control domain. You can <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-dns.html">validate with DNS</a> or <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-email.html">validate with email</a>. We recommend that you use DNS validation.</p>
177    pub fn get_validation_method(&self) -> &::std::option::Option<crate::types::ValidationMethod> {
178        &self.validation_method
179    }
180    /// Appends an item to `subject_alternative_names`.
181    ///
182    /// To override the contents of this collection use [`set_subject_alternative_names`](Self::set_subject_alternative_names).
183    ///
184    /// <p>Additional FQDNs to be included in the Subject Alternative Name extension of the ACM certificate. For example, add the name www.example.net to a certificate for which the <code>DomainName</code> field is www.example.com if users can reach your site by using either name. The maximum number of domain names that you can add to an ACM certificate is 100. However, the initial quota is 10 domain names. If you need more than 10 names, you must request a quota increase. For more information, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-limits.html">Quotas</a>.</p>
185    /// <p>The maximum length of a SAN DNS name is 253 octets. The name is made up of multiple labels separated by periods. No label can be longer than 63 octets. Consider the following examples:</p>
186    /// <ul>
187    /// <li>
188    /// <p><code>(63 octets).(63 octets).(63 octets).(61 octets)</code> is legal because the total length is 253 octets (63+1+63+1+63+1+61) and no label exceeds 63 octets.</p></li>
189    /// <li>
190    /// <p><code>(64 octets).(63 octets).(63 octets).(61 octets)</code> is not legal because the total length exceeds 253 octets (64+1+63+1+63+1+61) and the first label exceeds 63 octets.</p></li>
191    /// <li>
192    /// <p><code>(63 octets).(63 octets).(63 octets).(62 octets)</code> is not legal because the total length of the DNS name (63+1+63+1+63+1+62) exceeds 253 octets.</p></li>
193    /// </ul>
194    pub fn subject_alternative_names(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
195        let mut v = self.subject_alternative_names.unwrap_or_default();
196        v.push(input.into());
197        self.subject_alternative_names = ::std::option::Option::Some(v);
198        self
199    }
200    /// <p>Additional FQDNs to be included in the Subject Alternative Name extension of the ACM certificate. For example, add the name www.example.net to a certificate for which the <code>DomainName</code> field is www.example.com if users can reach your site by using either name. The maximum number of domain names that you can add to an ACM certificate is 100. However, the initial quota is 10 domain names. If you need more than 10 names, you must request a quota increase. For more information, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-limits.html">Quotas</a>.</p>
201    /// <p>The maximum length of a SAN DNS name is 253 octets. The name is made up of multiple labels separated by periods. No label can be longer than 63 octets. Consider the following examples:</p>
202    /// <ul>
203    /// <li>
204    /// <p><code>(63 octets).(63 octets).(63 octets).(61 octets)</code> is legal because the total length is 253 octets (63+1+63+1+63+1+61) and no label exceeds 63 octets.</p></li>
205    /// <li>
206    /// <p><code>(64 octets).(63 octets).(63 octets).(61 octets)</code> is not legal because the total length exceeds 253 octets (64+1+63+1+63+1+61) and the first label exceeds 63 octets.</p></li>
207    /// <li>
208    /// <p><code>(63 octets).(63 octets).(63 octets).(62 octets)</code> is not legal because the total length of the DNS name (63+1+63+1+63+1+62) exceeds 253 octets.</p></li>
209    /// </ul>
210    pub fn set_subject_alternative_names(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
211        self.subject_alternative_names = input;
212        self
213    }
214    /// <p>Additional FQDNs to be included in the Subject Alternative Name extension of the ACM certificate. For example, add the name www.example.net to a certificate for which the <code>DomainName</code> field is www.example.com if users can reach your site by using either name. The maximum number of domain names that you can add to an ACM certificate is 100. However, the initial quota is 10 domain names. If you need more than 10 names, you must request a quota increase. For more information, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-limits.html">Quotas</a>.</p>
215    /// <p>The maximum length of a SAN DNS name is 253 octets. The name is made up of multiple labels separated by periods. No label can be longer than 63 octets. Consider the following examples:</p>
216    /// <ul>
217    /// <li>
218    /// <p><code>(63 octets).(63 octets).(63 octets).(61 octets)</code> is legal because the total length is 253 octets (63+1+63+1+63+1+61) and no label exceeds 63 octets.</p></li>
219    /// <li>
220    /// <p><code>(64 octets).(63 octets).(63 octets).(61 octets)</code> is not legal because the total length exceeds 253 octets (64+1+63+1+63+1+61) and the first label exceeds 63 octets.</p></li>
221    /// <li>
222    /// <p><code>(63 octets).(63 octets).(63 octets).(62 octets)</code> is not legal because the total length of the DNS name (63+1+63+1+63+1+62) exceeds 253 octets.</p></li>
223    /// </ul>
224    pub fn get_subject_alternative_names(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
225        &self.subject_alternative_names
226    }
227    /// <p>Customer chosen string that can be used to distinguish between calls to <code>RequestCertificate</code>. Idempotency tokens time out after one hour. Therefore, if you call <code>RequestCertificate</code> multiple times with the same idempotency token within one hour, ACM recognizes that you are requesting only one certificate and will issue only one. If you change the idempotency token for each call, ACM recognizes that you are requesting multiple certificates.</p>
228    pub fn idempotency_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
229        self.idempotency_token = ::std::option::Option::Some(input.into());
230        self
231    }
232    /// <p>Customer chosen string that can be used to distinguish between calls to <code>RequestCertificate</code>. Idempotency tokens time out after one hour. Therefore, if you call <code>RequestCertificate</code> multiple times with the same idempotency token within one hour, ACM recognizes that you are requesting only one certificate and will issue only one. If you change the idempotency token for each call, ACM recognizes that you are requesting multiple certificates.</p>
233    pub fn set_idempotency_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
234        self.idempotency_token = input;
235        self
236    }
237    /// <p>Customer chosen string that can be used to distinguish between calls to <code>RequestCertificate</code>. Idempotency tokens time out after one hour. Therefore, if you call <code>RequestCertificate</code> multiple times with the same idempotency token within one hour, ACM recognizes that you are requesting only one certificate and will issue only one. If you change the idempotency token for each call, ACM recognizes that you are requesting multiple certificates.</p>
238    pub fn get_idempotency_token(&self) -> &::std::option::Option<::std::string::String> {
239        &self.idempotency_token
240    }
241    /// Appends an item to `domain_validation_options`.
242    ///
243    /// To override the contents of this collection use [`set_domain_validation_options`](Self::set_domain_validation_options).
244    ///
245    /// <p>The domain name that you want ACM to use to send you emails so that you can validate domain ownership.</p>
246    pub fn domain_validation_options(mut self, input: crate::types::DomainValidationOption) -> Self {
247        let mut v = self.domain_validation_options.unwrap_or_default();
248        v.push(input);
249        self.domain_validation_options = ::std::option::Option::Some(v);
250        self
251    }
252    /// <p>The domain name that you want ACM to use to send you emails so that you can validate domain ownership.</p>
253    pub fn set_domain_validation_options(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::DomainValidationOption>>) -> Self {
254        self.domain_validation_options = input;
255        self
256    }
257    /// <p>The domain name that you want ACM to use to send you emails so that you can validate domain ownership.</p>
258    pub fn get_domain_validation_options(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::DomainValidationOption>> {
259        &self.domain_validation_options
260    }
261    /// <p>Currently, you can use this parameter to specify whether to add the certificate to a certificate transparency log. Certificate transparency makes it possible to detect SSL/TLS certificates that have been mistakenly or maliciously issued. Certificates that have not been logged typically produce an error message in a browser. For more information, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-bestpractices.html#best-practices-transparency">Opting Out of Certificate Transparency Logging</a>.</p>
262    pub fn options(mut self, input: crate::types::CertificateOptions) -> Self {
263        self.options = ::std::option::Option::Some(input);
264        self
265    }
266    /// <p>Currently, you can use this parameter to specify whether to add the certificate to a certificate transparency log. Certificate transparency makes it possible to detect SSL/TLS certificates that have been mistakenly or maliciously issued. Certificates that have not been logged typically produce an error message in a browser. For more information, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-bestpractices.html#best-practices-transparency">Opting Out of Certificate Transparency Logging</a>.</p>
267    pub fn set_options(mut self, input: ::std::option::Option<crate::types::CertificateOptions>) -> Self {
268        self.options = input;
269        self
270    }
271    /// <p>Currently, you can use this parameter to specify whether to add the certificate to a certificate transparency log. Certificate transparency makes it possible to detect SSL/TLS certificates that have been mistakenly or maliciously issued. Certificates that have not been logged typically produce an error message in a browser. For more information, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-bestpractices.html#best-practices-transparency">Opting Out of Certificate Transparency Logging</a>.</p>
272    pub fn get_options(&self) -> &::std::option::Option<crate::types::CertificateOptions> {
273        &self.options
274    }
275    /// <p>The Amazon Resource Name (ARN) of the private certificate authority (CA) that will be used to issue the certificate. If you do not provide an ARN and you are trying to request a private certificate, ACM will attempt to issue a public certificate. For more information about private CAs, see the <a href="https://docs.aws.amazon.com/privateca/latest/userguide/PcaWelcome.html">Amazon Web Services Private Certificate Authority</a> user guide. The ARN must have the following form:</p>
276    /// <p><code>arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012</code></p>
277    pub fn certificate_authority_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
278        self.certificate_authority_arn = ::std::option::Option::Some(input.into());
279        self
280    }
281    /// <p>The Amazon Resource Name (ARN) of the private certificate authority (CA) that will be used to issue the certificate. If you do not provide an ARN and you are trying to request a private certificate, ACM will attempt to issue a public certificate. For more information about private CAs, see the <a href="https://docs.aws.amazon.com/privateca/latest/userguide/PcaWelcome.html">Amazon Web Services Private Certificate Authority</a> user guide. The ARN must have the following form:</p>
282    /// <p><code>arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012</code></p>
283    pub fn set_certificate_authority_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
284        self.certificate_authority_arn = input;
285        self
286    }
287    /// <p>The Amazon Resource Name (ARN) of the private certificate authority (CA) that will be used to issue the certificate. If you do not provide an ARN and you are trying to request a private certificate, ACM will attempt to issue a public certificate. For more information about private CAs, see the <a href="https://docs.aws.amazon.com/privateca/latest/userguide/PcaWelcome.html">Amazon Web Services Private Certificate Authority</a> user guide. The ARN must have the following form:</p>
288    /// <p><code>arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012</code></p>
289    pub fn get_certificate_authority_arn(&self) -> &::std::option::Option<::std::string::String> {
290        &self.certificate_authority_arn
291    }
292    /// Appends an item to `tags`.
293    ///
294    /// To override the contents of this collection use [`set_tags`](Self::set_tags).
295    ///
296    /// <p>One or more resource tags to associate with the certificate.</p>
297    pub fn tags(mut self, input: crate::types::Tag) -> Self {
298        let mut v = self.tags.unwrap_or_default();
299        v.push(input);
300        self.tags = ::std::option::Option::Some(v);
301        self
302    }
303    /// <p>One or more resource tags to associate with the certificate.</p>
304    pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>) -> Self {
305        self.tags = input;
306        self
307    }
308    /// <p>One or more resource tags to associate with the certificate.</p>
309    pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Tag>> {
310        &self.tags
311    }
312    /// <p>Specifies the algorithm of the public and private key pair that your certificate uses to encrypt data. RSA is the default key algorithm for ACM certificates. Elliptic Curve Digital Signature Algorithm (ECDSA) keys are smaller, offering security comparable to RSA keys but with greater computing efficiency. However, ECDSA is not supported by all network clients. Some Amazon Web Services services may require RSA keys, or only support ECDSA keys of a particular size, while others allow the use of either RSA and ECDSA keys to ensure that compatibility is not broken. Check the requirements for the Amazon Web Services service where you plan to deploy your certificate. For more information about selecting an algorithm, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-certificate.html#algorithms">Key algorithms</a>.</p><note>
313    /// <p>Algorithms supported for an ACM certificate request include:</p>
314    /// <ul>
315    /// <li>
316    /// <p><code>RSA_2048</code></p></li>
317    /// <li>
318    /// <p><code>EC_prime256v1</code></p></li>
319    /// <li>
320    /// <p><code>EC_secp384r1</code></p></li>
321    /// </ul>
322    /// <p>Other listed algorithms are for imported certificates only.</p>
323    /// </note> <note>
324    /// <p>When you request a private PKI certificate signed by a CA from Amazon Web Services Private CA, the specified signing algorithm family (RSA or ECDSA) must match the algorithm family of the CA's secret key.</p>
325    /// </note>
326    /// <p>Default: RSA_2048</p>
327    pub fn key_algorithm(mut self, input: crate::types::KeyAlgorithm) -> Self {
328        self.key_algorithm = ::std::option::Option::Some(input);
329        self
330    }
331    /// <p>Specifies the algorithm of the public and private key pair that your certificate uses to encrypt data. RSA is the default key algorithm for ACM certificates. Elliptic Curve Digital Signature Algorithm (ECDSA) keys are smaller, offering security comparable to RSA keys but with greater computing efficiency. However, ECDSA is not supported by all network clients. Some Amazon Web Services services may require RSA keys, or only support ECDSA keys of a particular size, while others allow the use of either RSA and ECDSA keys to ensure that compatibility is not broken. Check the requirements for the Amazon Web Services service where you plan to deploy your certificate. For more information about selecting an algorithm, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-certificate.html#algorithms">Key algorithms</a>.</p><note>
332    /// <p>Algorithms supported for an ACM certificate request include:</p>
333    /// <ul>
334    /// <li>
335    /// <p><code>RSA_2048</code></p></li>
336    /// <li>
337    /// <p><code>EC_prime256v1</code></p></li>
338    /// <li>
339    /// <p><code>EC_secp384r1</code></p></li>
340    /// </ul>
341    /// <p>Other listed algorithms are for imported certificates only.</p>
342    /// </note> <note>
343    /// <p>When you request a private PKI certificate signed by a CA from Amazon Web Services Private CA, the specified signing algorithm family (RSA or ECDSA) must match the algorithm family of the CA's secret key.</p>
344    /// </note>
345    /// <p>Default: RSA_2048</p>
346    pub fn set_key_algorithm(mut self, input: ::std::option::Option<crate::types::KeyAlgorithm>) -> Self {
347        self.key_algorithm = input;
348        self
349    }
350    /// <p>Specifies the algorithm of the public and private key pair that your certificate uses to encrypt data. RSA is the default key algorithm for ACM certificates. Elliptic Curve Digital Signature Algorithm (ECDSA) keys are smaller, offering security comparable to RSA keys but with greater computing efficiency. However, ECDSA is not supported by all network clients. Some Amazon Web Services services may require RSA keys, or only support ECDSA keys of a particular size, while others allow the use of either RSA and ECDSA keys to ensure that compatibility is not broken. Check the requirements for the Amazon Web Services service where you plan to deploy your certificate. For more information about selecting an algorithm, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-certificate.html#algorithms">Key algorithms</a>.</p><note>
351    /// <p>Algorithms supported for an ACM certificate request include:</p>
352    /// <ul>
353    /// <li>
354    /// <p><code>RSA_2048</code></p></li>
355    /// <li>
356    /// <p><code>EC_prime256v1</code></p></li>
357    /// <li>
358    /// <p><code>EC_secp384r1</code></p></li>
359    /// </ul>
360    /// <p>Other listed algorithms are for imported certificates only.</p>
361    /// </note> <note>
362    /// <p>When you request a private PKI certificate signed by a CA from Amazon Web Services Private CA, the specified signing algorithm family (RSA or ECDSA) must match the algorithm family of the CA's secret key.</p>
363    /// </note>
364    /// <p>Default: RSA_2048</p>
365    pub fn get_key_algorithm(&self) -> &::std::option::Option<crate::types::KeyAlgorithm> {
366        &self.key_algorithm
367    }
368    /// <p>Identifies the Amazon Web Services service that manages the certificate issued by ACM.</p>
369    pub fn managed_by(mut self, input: crate::types::CertificateManagedBy) -> Self {
370        self.managed_by = ::std::option::Option::Some(input);
371        self
372    }
373    /// <p>Identifies the Amazon Web Services service that manages the certificate issued by ACM.</p>
374    pub fn set_managed_by(mut self, input: ::std::option::Option<crate::types::CertificateManagedBy>) -> Self {
375        self.managed_by = input;
376        self
377    }
378    /// <p>Identifies the Amazon Web Services service that manages the certificate issued by ACM.</p>
379    pub fn get_managed_by(&self) -> &::std::option::Option<crate::types::CertificateManagedBy> {
380        &self.managed_by
381    }
382    /// Consumes the builder and constructs a [`RequestCertificateInput`](crate::operation::request_certificate::RequestCertificateInput).
383    pub fn build(
384        self,
385    ) -> ::std::result::Result<crate::operation::request_certificate::RequestCertificateInput, ::aws_smithy_types::error::operation::BuildError> {
386        ::std::result::Result::Ok(crate::operation::request_certificate::RequestCertificateInput {
387            domain_name: self.domain_name,
388            validation_method: self.validation_method,
389            subject_alternative_names: self.subject_alternative_names,
390            idempotency_token: self.idempotency_token,
391            domain_validation_options: self.domain_validation_options,
392            options: self.options,
393            certificate_authority_arn: self.certificate_authority_arn,
394            tags: self.tags,
395            key_algorithm: self.key_algorithm,
396            managed_by: self.managed_by,
397        })
398    }
399}