Skip to main content

aws_sdk_kms/operation/put_key_policy/
builders.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::put_key_policy::_put_key_policy_input::PutKeyPolicyInputBuilder;
3
4pub use crate::operation::put_key_policy::_put_key_policy_output::PutKeyPolicyOutputBuilder;
5
6impl crate::operation::put_key_policy::builders::PutKeyPolicyInputBuilder {
7    /// Sends a request with this input using the given client.
8    pub async fn send_with(
9        self,
10        client: &crate::Client,
11    ) -> ::std::result::Result<
12        crate::operation::put_key_policy::PutKeyPolicyOutput,
13        ::aws_smithy_runtime_api::client::result::SdkError<
14            crate::operation::put_key_policy::PutKeyPolicyError,
15            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16        >,
17    > {
18        let mut fluent_builder = client.put_key_policy();
19        fluent_builder.inner = self;
20        fluent_builder.send().await
21    }
22}
23/// Fluent builder constructing a request to `PutKeyPolicy`.
24///
25/// <p>Attaches a key policy to the specified KMS key. You can use this operation to set only the <code>default</code> key policy.</p>
26/// <p>For more information about key policies, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html">Key Policies</a> in the <i>Key Management Service Developer Guide</i>. For help writing and formatting a JSON policy document, see the <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html">IAM JSON Policy Reference</a> in the <i> <i>Identity and Access Management User Guide</i> </i>. For examples of adding a key policy in multiple programming languages, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/example_kms_PutKeyPolicy_section.html">Use PutKeyPolicy with an Amazon Web Services SDK or CLI</a> in the <i>Key Management Service Developer Guide</i>.</p>
27/// <p>A KMS key can also have an <code>AWS_RAM</code> key policy, which Resource Access Manager (RAM) manages for KMS keys that you share through RAM. You can't use <code>PutKeyPolicy</code> to create, change, or delete the <code>AWS_RAM</code> key policy. If you set <code>PolicyName</code> to <code>AWS_RAM</code>, the request fails with a <code>ValidationException</code> and the message <code>The AWS_RAM policy can only be managed by the RAM service.</code> To view the <code>AWS_RAM</code> key policy, use <code>GetKeyPolicy</code>. For information about sharing KMS keys, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-sharing-ram.html">Sharing KMS keys with RAM</a> in the <i>Key Management Service Developer Guide</i>.</p>
28/// <p><b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.</p>
29/// <p><b>Required permissions</b>: <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:PutKeyPolicy</a> (key policy)</p>
30/// <p>You can use the <a href="https://docs.aws.amazon.com/kms/latest/developerguide/conditions-kms.html#conditions-kms-policy-name">kms:PolicyName</a> condition key to control access to this operation based on the value of the <code>PolicyName</code> parameter in the request. If the request doesn't include <code>PolicyName</code>, the value of <code>kms:PolicyName</code> is <code>default</code>.</p>
31/// <p><b>Related operations</b>: <code>GetKeyPolicy</code></p>
32/// <p><b>Eventual consistency</b>: The KMS API follows an eventual consistency model. For more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/accessing-kms.html#programming-eventual-consistency">KMS eventual consistency</a>.</p>
33#[derive(::std::clone::Clone, ::std::fmt::Debug)]
34pub struct PutKeyPolicyFluentBuilder {
35    handle: ::std::sync::Arc<crate::client::Handle>,
36    inner: crate::operation::put_key_policy::builders::PutKeyPolicyInputBuilder,
37    config_override: ::std::option::Option<crate::config::Builder>,
38}
39impl
40    crate::client::customize::internal::CustomizableSend<
41        crate::operation::put_key_policy::PutKeyPolicyOutput,
42        crate::operation::put_key_policy::PutKeyPolicyError,
43    > for PutKeyPolicyFluentBuilder
44{
45    fn send(
46        self,
47        config_override: crate::config::Builder,
48    ) -> crate::client::customize::internal::BoxFuture<
49        crate::client::customize::internal::SendResult<
50            crate::operation::put_key_policy::PutKeyPolicyOutput,
51            crate::operation::put_key_policy::PutKeyPolicyError,
52        >,
53    > {
54        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
55    }
56}
57impl PutKeyPolicyFluentBuilder {
58    /// Creates a new `PutKeyPolicyFluentBuilder`.
59    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
60        Self {
61            handle,
62            inner: ::std::default::Default::default(),
63            config_override: ::std::option::Option::None,
64        }
65    }
66    /// Access the PutKeyPolicy as a reference.
67    pub fn as_input(&self) -> &crate::operation::put_key_policy::builders::PutKeyPolicyInputBuilder {
68        &self.inner
69    }
70    /// Sends the request and returns the response.
71    ///
72    /// If an error occurs, an `SdkError` will be returned with additional details that
73    /// can be matched against.
74    ///
75    /// By default, any retryable failures will be retried twice. Retry behavior
76    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
77    /// set when configuring the client.
78    pub async fn send(
79        self,
80    ) -> ::std::result::Result<
81        crate::operation::put_key_policy::PutKeyPolicyOutput,
82        ::aws_smithy_runtime_api::client::result::SdkError<
83            crate::operation::put_key_policy::PutKeyPolicyError,
84            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
85        >,
86    > {
87        let input = self
88            .inner
89            .build()
90            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
91        let runtime_plugins = crate::operation::put_key_policy::PutKeyPolicy::operation_runtime_plugins(
92            self.handle.runtime_plugins.clone(),
93            &self.handle.conf,
94            self.config_override,
95        );
96        crate::operation::put_key_policy::PutKeyPolicy::orchestrate(&runtime_plugins, input).await
97    }
98
99    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
100    pub fn customize(
101        self,
102    ) -> crate::client::customize::CustomizableOperation<
103        crate::operation::put_key_policy::PutKeyPolicyOutput,
104        crate::operation::put_key_policy::PutKeyPolicyError,
105        Self,
106    > {
107        crate::client::customize::CustomizableOperation::new(self)
108    }
109    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
110        self.set_config_override(::std::option::Option::Some(config_override.into()));
111        self
112    }
113
114    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
115        self.config_override = config_override;
116        self
117    }
118    /// <p>Sets the key policy on the specified KMS key.</p>
119    /// <p>Specify the key ID or key ARN of the KMS key.</p>
120    /// <p>For example:</p>
121    /// <ul>
122    /// <li>
123    /// <p>Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code></p></li>
124    /// <li>
125    /// <p>Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code></p></li>
126    /// </ul>
127    /// <p>To get the key ID and key ARN for a KMS key, use <code>ListKeys</code> or <code>DescribeKey</code>.</p>
128    pub fn key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
129        self.inner = self.inner.key_id(input.into());
130        self
131    }
132    /// <p>Sets the key policy on the specified KMS key.</p>
133    /// <p>Specify the key ID or key ARN of the KMS key.</p>
134    /// <p>For example:</p>
135    /// <ul>
136    /// <li>
137    /// <p>Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code></p></li>
138    /// <li>
139    /// <p>Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code></p></li>
140    /// </ul>
141    /// <p>To get the key ID and key ARN for a KMS key, use <code>ListKeys</code> or <code>DescribeKey</code>.</p>
142    pub fn set_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
143        self.inner = self.inner.set_key_id(input);
144        self
145    }
146    /// <p>Sets the key policy on the specified KMS key.</p>
147    /// <p>Specify the key ID or key ARN of the KMS key.</p>
148    /// <p>For example:</p>
149    /// <ul>
150    /// <li>
151    /// <p>Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code></p></li>
152    /// <li>
153    /// <p>Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code></p></li>
154    /// </ul>
155    /// <p>To get the key ID and key ARN for a KMS key, use <code>ListKeys</code> or <code>DescribeKey</code>.</p>
156    pub fn get_key_id(&self) -> &::std::option::Option<::std::string::String> {
157        self.inner.get_key_id()
158    }
159    /// <p>The name of the key policy. If no policy name is specified, the default value is <code>default</code>. Valid values are <code>default</code> and <code>AWS_RAM</code>, but you can set only the <code>default</code> key policy. RAM manages the <code>AWS_RAM</code> key policy for KMS keys that you share through RAM. If you specify <code>AWS_RAM</code>, the request fails with a <code>ValidationException</code>, or with an <code>AccessDeniedException</code> if you don't have permission to call <code>PutKeyPolicy</code> with that policy name.</p>
160    pub fn policy_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
161        self.inner = self.inner.policy_name(input.into());
162        self
163    }
164    /// <p>The name of the key policy. If no policy name is specified, the default value is <code>default</code>. Valid values are <code>default</code> and <code>AWS_RAM</code>, but you can set only the <code>default</code> key policy. RAM manages the <code>AWS_RAM</code> key policy for KMS keys that you share through RAM. If you specify <code>AWS_RAM</code>, the request fails with a <code>ValidationException</code>, or with an <code>AccessDeniedException</code> if you don't have permission to call <code>PutKeyPolicy</code> with that policy name.</p>
165    pub fn set_policy_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
166        self.inner = self.inner.set_policy_name(input);
167        self
168    }
169    /// <p>The name of the key policy. If no policy name is specified, the default value is <code>default</code>. Valid values are <code>default</code> and <code>AWS_RAM</code>, but you can set only the <code>default</code> key policy. RAM manages the <code>AWS_RAM</code> key policy for KMS keys that you share through RAM. If you specify <code>AWS_RAM</code>, the request fails with a <code>ValidationException</code>, or with an <code>AccessDeniedException</code> if you don't have permission to call <code>PutKeyPolicy</code> with that policy name.</p>
170    pub fn get_policy_name(&self) -> &::std::option::Option<::std::string::String> {
171        self.inner.get_policy_name()
172    }
173    /// <p>The key policy to attach to the KMS key.</p>
174    /// <p>The key policy must meet the following criteria:</p>
175    /// <ul>
176    /// <li>
177    /// <p>The key policy must allow the calling principal to make a subsequent <code>PutKeyPolicy</code> request on the KMS key. This reduces the risk that the KMS key becomes unmanageable. For more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-default.html#prevent-unmanageable-key">Default key policy</a> in the <i>Key Management Service Developer Guide</i>. (To omit this condition, set <code>BypassPolicyLockoutSafetyCheck</code> to true.)</p></li>
178    /// <li>
179    /// <p>Each statement in the key policy must contain one or more principals. The principals in the key policy must exist and be visible to KMS. When you create a new Amazon Web Services principal, you might need to enforce a delay before including the new principal in a key policy because the new principal might not be immediately visible to KMS. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot_general.html#troubleshoot_general_eventual-consistency">Changes that I make are not always immediately visible</a> in the <i>Amazon Web Services Identity and Access Management User Guide</i>.</p></li>
180    /// </ul><note>
181    /// <p>If either of the required <code>Resource</code> or <code>Action</code> elements are missing from a key policy statement, the policy statement has no effect. When a key policy statement is missing one of these elements, the KMS console correctly reports an error, but the <code>PutKeyPolicy</code> API request succeeds, even though the policy statement is ineffective.</p>
182    /// <p>For more information on required key policy elements, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-overview.html#key-policy-elements">Elements in a key policy</a> in the <i>Key Management Service Developer Guide</i>.</p>
183    /// </note>
184    /// <p>A key policy document can include only the following characters:</p>
185    /// <ul>
186    /// <li>
187    /// <p>Printable ASCII characters from the space character (<code>\u0020</code>) through the end of the ASCII character range.</p></li>
188    /// <li>
189    /// <p>Printable characters in the Basic Latin and Latin-1 Supplement character set (through <code>\u00FF</code>).</p></li>
190    /// <li>
191    /// <p>The tab (<code>\u0009</code>), line feed (<code>\u000A</code>), and carriage return (<code>\u000D</code>) special characters</p></li>
192    /// </ul><note>
193    /// <p>If the key policy exceeds the length constraint, KMS returns a <code>LimitExceededException</code>.</p>
194    /// </note>
195    /// <p>For information about key policies, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html">Key policies in KMS</a> in the <i>Key Management Service Developer Guide</i>.For help writing and formatting a JSON policy document, see the <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html">IAM JSON Policy Reference</a> in the <i> <i>Identity and Access Management User Guide</i> </i>.</p>
196    pub fn policy(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
197        self.inner = self.inner.policy(input.into());
198        self
199    }
200    /// <p>The key policy to attach to the KMS key.</p>
201    /// <p>The key policy must meet the following criteria:</p>
202    /// <ul>
203    /// <li>
204    /// <p>The key policy must allow the calling principal to make a subsequent <code>PutKeyPolicy</code> request on the KMS key. This reduces the risk that the KMS key becomes unmanageable. For more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-default.html#prevent-unmanageable-key">Default key policy</a> in the <i>Key Management Service Developer Guide</i>. (To omit this condition, set <code>BypassPolicyLockoutSafetyCheck</code> to true.)</p></li>
205    /// <li>
206    /// <p>Each statement in the key policy must contain one or more principals. The principals in the key policy must exist and be visible to KMS. When you create a new Amazon Web Services principal, you might need to enforce a delay before including the new principal in a key policy because the new principal might not be immediately visible to KMS. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot_general.html#troubleshoot_general_eventual-consistency">Changes that I make are not always immediately visible</a> in the <i>Amazon Web Services Identity and Access Management User Guide</i>.</p></li>
207    /// </ul><note>
208    /// <p>If either of the required <code>Resource</code> or <code>Action</code> elements are missing from a key policy statement, the policy statement has no effect. When a key policy statement is missing one of these elements, the KMS console correctly reports an error, but the <code>PutKeyPolicy</code> API request succeeds, even though the policy statement is ineffective.</p>
209    /// <p>For more information on required key policy elements, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-overview.html#key-policy-elements">Elements in a key policy</a> in the <i>Key Management Service Developer Guide</i>.</p>
210    /// </note>
211    /// <p>A key policy document can include only the following characters:</p>
212    /// <ul>
213    /// <li>
214    /// <p>Printable ASCII characters from the space character (<code>\u0020</code>) through the end of the ASCII character range.</p></li>
215    /// <li>
216    /// <p>Printable characters in the Basic Latin and Latin-1 Supplement character set (through <code>\u00FF</code>).</p></li>
217    /// <li>
218    /// <p>The tab (<code>\u0009</code>), line feed (<code>\u000A</code>), and carriage return (<code>\u000D</code>) special characters</p></li>
219    /// </ul><note>
220    /// <p>If the key policy exceeds the length constraint, KMS returns a <code>LimitExceededException</code>.</p>
221    /// </note>
222    /// <p>For information about key policies, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html">Key policies in KMS</a> in the <i>Key Management Service Developer Guide</i>.For help writing and formatting a JSON policy document, see the <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html">IAM JSON Policy Reference</a> in the <i> <i>Identity and Access Management User Guide</i> </i>.</p>
223    pub fn set_policy(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
224        self.inner = self.inner.set_policy(input);
225        self
226    }
227    /// <p>The key policy to attach to the KMS key.</p>
228    /// <p>The key policy must meet the following criteria:</p>
229    /// <ul>
230    /// <li>
231    /// <p>The key policy must allow the calling principal to make a subsequent <code>PutKeyPolicy</code> request on the KMS key. This reduces the risk that the KMS key becomes unmanageable. For more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-default.html#prevent-unmanageable-key">Default key policy</a> in the <i>Key Management Service Developer Guide</i>. (To omit this condition, set <code>BypassPolicyLockoutSafetyCheck</code> to true.)</p></li>
232    /// <li>
233    /// <p>Each statement in the key policy must contain one or more principals. The principals in the key policy must exist and be visible to KMS. When you create a new Amazon Web Services principal, you might need to enforce a delay before including the new principal in a key policy because the new principal might not be immediately visible to KMS. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot_general.html#troubleshoot_general_eventual-consistency">Changes that I make are not always immediately visible</a> in the <i>Amazon Web Services Identity and Access Management User Guide</i>.</p></li>
234    /// </ul><note>
235    /// <p>If either of the required <code>Resource</code> or <code>Action</code> elements are missing from a key policy statement, the policy statement has no effect. When a key policy statement is missing one of these elements, the KMS console correctly reports an error, but the <code>PutKeyPolicy</code> API request succeeds, even though the policy statement is ineffective.</p>
236    /// <p>For more information on required key policy elements, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-overview.html#key-policy-elements">Elements in a key policy</a> in the <i>Key Management Service Developer Guide</i>.</p>
237    /// </note>
238    /// <p>A key policy document can include only the following characters:</p>
239    /// <ul>
240    /// <li>
241    /// <p>Printable ASCII characters from the space character (<code>\u0020</code>) through the end of the ASCII character range.</p></li>
242    /// <li>
243    /// <p>Printable characters in the Basic Latin and Latin-1 Supplement character set (through <code>\u00FF</code>).</p></li>
244    /// <li>
245    /// <p>The tab (<code>\u0009</code>), line feed (<code>\u000A</code>), and carriage return (<code>\u000D</code>) special characters</p></li>
246    /// </ul><note>
247    /// <p>If the key policy exceeds the length constraint, KMS returns a <code>LimitExceededException</code>.</p>
248    /// </note>
249    /// <p>For information about key policies, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html">Key policies in KMS</a> in the <i>Key Management Service Developer Guide</i>.For help writing and formatting a JSON policy document, see the <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html">IAM JSON Policy Reference</a> in the <i> <i>Identity and Access Management User Guide</i> </i>.</p>
250    pub fn get_policy(&self) -> &::std::option::Option<::std::string::String> {
251        self.inner.get_policy()
252    }
253    /// <p>Skips ("bypasses") the key policy lockout safety check. The default value is false.</p><important>
254    /// <p>Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this value to true indiscriminately.</p>
255    /// <p>For more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-default.html#prevent-unmanageable-key">Default key policy</a> in the <i>Key Management Service Developer Guide</i>.</p>
256    /// </important>
257    /// <p>Use this parameter only when you intend to prevent the principal that is making the request from making a subsequent <a href="https://docs.aws.amazon.com/kms/latest/APIReference/API_PutKeyPolicy.html">PutKeyPolicy</a> request on the KMS key.</p>
258    /// <p>The key policy lockout safety check and the <code>BypassPolicyLockoutSafetyCheck</code> parameter apply only to the <code>default</code> key policy. The check evaluates only the new <code>default</code> key policy, with <code>kms:PolicyName</code> set to <code>default</code>. It doesn't consider permissions in the <code>AWS_RAM</code> key policy.</p>
259    pub fn bypass_policy_lockout_safety_check(mut self, input: bool) -> Self {
260        self.inner = self.inner.bypass_policy_lockout_safety_check(input);
261        self
262    }
263    /// <p>Skips ("bypasses") the key policy lockout safety check. The default value is false.</p><important>
264    /// <p>Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this value to true indiscriminately.</p>
265    /// <p>For more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-default.html#prevent-unmanageable-key">Default key policy</a> in the <i>Key Management Service Developer Guide</i>.</p>
266    /// </important>
267    /// <p>Use this parameter only when you intend to prevent the principal that is making the request from making a subsequent <a href="https://docs.aws.amazon.com/kms/latest/APIReference/API_PutKeyPolicy.html">PutKeyPolicy</a> request on the KMS key.</p>
268    /// <p>The key policy lockout safety check and the <code>BypassPolicyLockoutSafetyCheck</code> parameter apply only to the <code>default</code> key policy. The check evaluates only the new <code>default</code> key policy, with <code>kms:PolicyName</code> set to <code>default</code>. It doesn't consider permissions in the <code>AWS_RAM</code> key policy.</p>
269    pub fn set_bypass_policy_lockout_safety_check(mut self, input: ::std::option::Option<bool>) -> Self {
270        self.inner = self.inner.set_bypass_policy_lockout_safety_check(input);
271        self
272    }
273    /// <p>Skips ("bypasses") the key policy lockout safety check. The default value is false.</p><important>
274    /// <p>Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this value to true indiscriminately.</p>
275    /// <p>For more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-default.html#prevent-unmanageable-key">Default key policy</a> in the <i>Key Management Service Developer Guide</i>.</p>
276    /// </important>
277    /// <p>Use this parameter only when you intend to prevent the principal that is making the request from making a subsequent <a href="https://docs.aws.amazon.com/kms/latest/APIReference/API_PutKeyPolicy.html">PutKeyPolicy</a> request on the KMS key.</p>
278    /// <p>The key policy lockout safety check and the <code>BypassPolicyLockoutSafetyCheck</code> parameter apply only to the <code>default</code> key policy. The check evaluates only the new <code>default</code> key policy, with <code>kms:PolicyName</code> set to <code>default</code>. It doesn't consider permissions in the <code>AWS_RAM</code> key policy.</p>
279    pub fn get_bypass_policy_lockout_safety_check(&self) -> &::std::option::Option<bool> {
280        self.inner.get_bypass_policy_lockout_safety_check()
281    }
282}