Struct aws_sdk_xray::input::PutResourcePolicyInput
source · #[non_exhaustive]pub struct PutResourcePolicyInput { /* private fields */ }
Implementations§
source§impl PutResourcePolicyInput
impl PutResourcePolicyInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<PutResourcePolicy, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<PutResourcePolicy, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<PutResourcePolicy
>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture PutResourcePolicyInput
.
source§impl PutResourcePolicyInput
impl PutResourcePolicyInput
sourcepub fn policy_name(&self) -> Option<&str>
pub fn policy_name(&self) -> Option<&str>
The name of the resource policy. Must be unique within a specific Amazon Web Services account.
sourcepub fn policy_document(&self) -> Option<&str>
pub fn policy_document(&self) -> Option<&str>
The resource policy document, which can be up to 5kb in size.
sourcepub fn policy_revision_id(&self) -> Option<&str>
pub fn policy_revision_id(&self) -> Option<&str>
Specifies a specific policy revision, to ensure an atomic create operation. By default the resource policy is created if it does not exist, or updated with an incremented revision id. The revision id is unique to each policy in the account.
If the policy revision id does not match the latest revision id, the operation will fail with an InvalidPolicyRevisionIdException
exception. You can also provide a PolicyRevisionId
of 0. In this case, the operation will fail with an InvalidPolicyRevisionIdException
exception if a resource policy with the same name already exists.
sourcepub fn bypass_policy_lockout_check(&self) -> bool
pub fn bypass_policy_lockout_check(&self) -> bool
A flag to indicate whether to bypass the resource policy lockout safety check.
Setting this value to true increases the risk that the policy becomes unmanageable. Do not set this value to true indiscriminately.
Use this parameter only when you include a policy in the request and you intend to prevent the principal that is making the request from making a subsequent PutResourcePolicy
request.
The default value is false.
Trait Implementations§
source§impl Clone for PutResourcePolicyInput
impl Clone for PutResourcePolicyInput
source§fn clone(&self) -> PutResourcePolicyInput
fn clone(&self) -> PutResourcePolicyInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PutResourcePolicyInput
impl Debug for PutResourcePolicyInput
source§impl PartialEq<PutResourcePolicyInput> for PutResourcePolicyInput
impl PartialEq<PutResourcePolicyInput> for PutResourcePolicyInput
source§fn eq(&self, other: &PutResourcePolicyInput) -> bool
fn eq(&self, other: &PutResourcePolicyInput) -> bool
self
and other
values to be equal, and is used
by ==
.