Struct aws_sdk_secretsmanager::operation::validate_resource_policy::builders::ValidateResourcePolicyInputBuilder
source · #[non_exhaustive]pub struct ValidateResourcePolicyInputBuilder { /* private fields */ }
Expand description
A builder for ValidateResourcePolicyInput
.
Implementations§
source§impl ValidateResourcePolicyInputBuilder
impl ValidateResourcePolicyInputBuilder
sourcepub fn secret_id(self, input: impl Into<String>) -> Self
pub fn secret_id(self, input: impl Into<String>) -> Self
This field is reserved for internal use.
sourcepub fn set_secret_id(self, input: Option<String>) -> Self
pub fn set_secret_id(self, input: Option<String>) -> Self
This field is reserved for internal use.
sourcepub fn get_secret_id(&self) -> &Option<String>
pub fn get_secret_id(&self) -> &Option<String>
This field is reserved for internal use.
sourcepub fn resource_policy(self, input: impl Into<String>) -> Self
pub fn resource_policy(self, input: impl Into<String>) -> Self
A JSON-formatted string that contains an Amazon Web Services resource-based policy. The policy in the string identifies who can access or manage this secret and its versions. For example policies, see Permissions policy examples.
This field is required.sourcepub fn set_resource_policy(self, input: Option<String>) -> Self
pub fn set_resource_policy(self, input: Option<String>) -> Self
A JSON-formatted string that contains an Amazon Web Services resource-based policy. The policy in the string identifies who can access or manage this secret and its versions. For example policies, see Permissions policy examples.
sourcepub fn get_resource_policy(&self) -> &Option<String>
pub fn get_resource_policy(&self) -> &Option<String>
A JSON-formatted string that contains an Amazon Web Services resource-based policy. The policy in the string identifies who can access or manage this secret and its versions. For example policies, see Permissions policy examples.
sourcepub fn build(self) -> Result<ValidateResourcePolicyInput, BuildError>
pub fn build(self) -> Result<ValidateResourcePolicyInput, BuildError>
Consumes the builder and constructs a ValidateResourcePolicyInput
.
source§impl ValidateResourcePolicyInputBuilder
impl ValidateResourcePolicyInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<ValidateResourcePolicyOutput, SdkError<ValidateResourcePolicyError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<ValidateResourcePolicyOutput, SdkError<ValidateResourcePolicyError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for ValidateResourcePolicyInputBuilder
impl Clone for ValidateResourcePolicyInputBuilder
source§fn clone(&self) -> ValidateResourcePolicyInputBuilder
fn clone(&self) -> ValidateResourcePolicyInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ValidateResourcePolicyInputBuilder
impl Default for ValidateResourcePolicyInputBuilder
source§fn default() -> ValidateResourcePolicyInputBuilder
fn default() -> ValidateResourcePolicyInputBuilder
source§impl PartialEq for ValidateResourcePolicyInputBuilder
impl PartialEq for ValidateResourcePolicyInputBuilder
source§fn eq(&self, other: &ValidateResourcePolicyInputBuilder) -> bool
fn eq(&self, other: &ValidateResourcePolicyInputBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ValidateResourcePolicyInputBuilder
Auto Trait Implementations§
impl Freeze for ValidateResourcePolicyInputBuilder
impl RefUnwindSafe for ValidateResourcePolicyInputBuilder
impl Send for ValidateResourcePolicyInputBuilder
impl Sync for ValidateResourcePolicyInputBuilder
impl Unpin for ValidateResourcePolicyInputBuilder
impl UnwindSafe for ValidateResourcePolicyInputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)