Struct aws_sdk_xray::operation::put_resource_policy::builders::PutResourcePolicyInputBuilder
source · #[non_exhaustive]pub struct PutResourcePolicyInputBuilder { /* private fields */ }
Expand description
A builder for PutResourcePolicyInput
.
Implementations§
source§impl PutResourcePolicyInputBuilder
impl PutResourcePolicyInputBuilder
sourcepub fn policy_name(self, input: impl Into<String>) -> Self
pub fn policy_name(self, input: impl Into<String>) -> Self
The name of the resource policy. Must be unique within a specific Amazon Web Services account.
sourcepub fn set_policy_name(self, input: Option<String>) -> Self
pub fn set_policy_name(self, input: Option<String>) -> Self
The name of the resource policy. Must be unique within a specific Amazon Web Services account.
sourcepub fn get_policy_name(&self) -> &Option<String>
pub fn get_policy_name(&self) -> &Option<String>
The name of the resource policy. Must be unique within a specific Amazon Web Services account.
sourcepub fn policy_document(self, input: impl Into<String>) -> Self
pub fn policy_document(self, input: impl Into<String>) -> Self
The resource policy document, which can be up to 5kb in size.
sourcepub fn set_policy_document(self, input: Option<String>) -> Self
pub fn set_policy_document(self, input: Option<String>) -> Self
The resource policy document, which can be up to 5kb in size.
sourcepub fn get_policy_document(&self) -> &Option<String>
pub fn get_policy_document(&self) -> &Option<String>
The resource policy document, which can be up to 5kb in size.
sourcepub fn policy_revision_id(self, input: impl Into<String>) -> Self
pub fn policy_revision_id(self, input: impl Into<String>) -> Self
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 set_policy_revision_id(self, input: Option<String>) -> Self
pub fn set_policy_revision_id(self, input: Option<String>) -> Self
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 get_policy_revision_id(&self) -> &Option<String>
pub fn get_policy_revision_id(&self) -> &Option<String>
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, input: bool) -> Self
pub fn bypass_policy_lockout_check(self, input: bool) -> Self
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.
sourcepub fn set_bypass_policy_lockout_check(self, input: Option<bool>) -> Self
pub fn set_bypass_policy_lockout_check(self, input: Option<bool>) -> Self
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.
sourcepub fn get_bypass_policy_lockout_check(&self) -> &Option<bool>
pub fn get_bypass_policy_lockout_check(&self) -> &Option<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.
sourcepub fn build(self) -> Result<PutResourcePolicyInput, BuildError>
pub fn build(self) -> Result<PutResourcePolicyInput, BuildError>
Consumes the builder and constructs a PutResourcePolicyInput
.
source§impl PutResourcePolicyInputBuilder
impl PutResourcePolicyInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<PutResourcePolicyOutput, SdkError<PutResourcePolicyError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<PutResourcePolicyOutput, SdkError<PutResourcePolicyError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for PutResourcePolicyInputBuilder
impl Clone for PutResourcePolicyInputBuilder
source§fn clone(&self) -> PutResourcePolicyInputBuilder
fn clone(&self) -> PutResourcePolicyInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for PutResourcePolicyInputBuilder
impl Default for PutResourcePolicyInputBuilder
source§fn default() -> PutResourcePolicyInputBuilder
fn default() -> PutResourcePolicyInputBuilder
source§impl PartialEq<PutResourcePolicyInputBuilder> for PutResourcePolicyInputBuilder
impl PartialEq<PutResourcePolicyInputBuilder> for PutResourcePolicyInputBuilder
source§fn eq(&self, other: &PutResourcePolicyInputBuilder) -> bool
fn eq(&self, other: &PutResourcePolicyInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.