Struct aws_sdk_xray::input::delete_resource_policy_input::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for DeleteResourcePolicyInput
.
Implementations§
source§impl Builder
impl Builder
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 to delete.
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 to delete.
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 delete. Provide a PolicyRevisionId
to ensure an atomic delete operation. If the provided revision id does not match the latest policy revision id, an InvalidPolicyRevisionIdException
exception is returned.
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 delete. Provide a PolicyRevisionId
to ensure an atomic delete operation. If the provided revision id does not match the latest policy revision id, an InvalidPolicyRevisionIdException
exception is returned.
sourcepub fn build(self) -> Result<DeleteResourcePolicyInput, BuildError>
pub fn build(self) -> Result<DeleteResourcePolicyInput, BuildError>
Consumes the builder and constructs a DeleteResourcePolicyInput
.