#[non_exhaustive]pub struct GetResourcePolicyInput {
pub secret_id: Option<String>,
pub policy_name: Option<String>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.secret_id: Option<String>The ARN or name of the secret to retrieve the attached resource-based policy for.
For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN.
policy_name: Option<String>The name of the resource policy to retrieve. If you don't specify this field, Secrets Manager uses default. If you specify a name other than default and no policy with that name exists, the operation returns a ResourceNotFoundException.
Implementations§
Source§impl GetResourcePolicyInput
impl GetResourcePolicyInput
Sourcepub fn secret_id(&self) -> Option<&str>
pub fn secret_id(&self) -> Option<&str>
The ARN or name of the secret to retrieve the attached resource-based policy for.
For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN.
Sourcepub fn policy_name(&self) -> Option<&str>
pub fn policy_name(&self) -> Option<&str>
The name of the resource policy to retrieve. If you don't specify this field, Secrets Manager uses default. If you specify a name other than default and no policy with that name exists, the operation returns a ResourceNotFoundException.
Source§impl GetResourcePolicyInput
impl GetResourcePolicyInput
Sourcepub fn builder() -> GetResourcePolicyInputBuilder
pub fn builder() -> GetResourcePolicyInputBuilder
Creates a new builder-style object to manufacture GetResourcePolicyInput.
Source§impl GetResourcePolicyInput
impl GetResourcePolicyInput
Sourcepub fn deserialize(
deserializer: &mut dyn ShapeDeserializer,
) -> Result<Self, SerdeError>
pub fn deserialize( deserializer: &mut dyn ShapeDeserializer, ) -> Result<Self, SerdeError>
Deserializes this structure from a [ShapeDeserializer].
Trait Implementations§
Source§impl Clone for GetResourcePolicyInput
impl Clone for GetResourcePolicyInput
Source§fn clone(&self) -> GetResourcePolicyInput
fn clone(&self) -> GetResourcePolicyInput
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GetResourcePolicyInput
impl Debug for GetResourcePolicyInput
Source§impl PartialEq for GetResourcePolicyInput
impl PartialEq for GetResourcePolicyInput
Source§impl SerializableStruct for GetResourcePolicyInput
impl SerializableStruct for GetResourcePolicyInput
Source§fn schema(&self) -> &Schema<'_>
fn schema(&self) -> &Schema<'_>
Source§fn serialize_members(
&self,
ser: &mut dyn ShapeSerializer,
) -> Result<(), SerdeError>
fn serialize_members( &self, ser: &mut dyn ShapeSerializer, ) -> Result<(), SerdeError>
impl StructuralPartialEq for GetResourcePolicyInput
Auto Trait Implementations§
impl Freeze for GetResourcePolicyInput
impl RefUnwindSafe for GetResourcePolicyInput
impl Send for GetResourcePolicyInput
impl Sync for GetResourcePolicyInput
impl Unpin for GetResourcePolicyInput
impl UnsafeUnpin for GetResourcePolicyInput
impl UnwindSafe for GetResourcePolicyInput
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more