#[non_exhaustive]pub struct GetPolicyOutput {
pub policy_store_id: String,
pub policy_id: String,
pub policy_type: PolicyType,
pub principal: Option<EntityIdentifier>,
pub resource: Option<EntityIdentifier>,
pub definition: Option<PolicyDefinitionDetail>,
pub created_date: DateTime,
pub last_updated_date: DateTime,
/* private fields */
}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.policy_store_id: StringThe ID of the policy store that contains the policy that you want information about.
policy_id: StringThe unique ID of the policy that you want information about.
policy_type: PolicyTypeThe type of the policy.
principal: Option<EntityIdentifier>The principal specified in the policy's scope. This element isn't included in the response when Principal isn't present in the policy content.
resource: Option<EntityIdentifier>The resource specified in the policy's scope. This element isn't included in the response when Resource isn't present in the policy content.
definition: Option<PolicyDefinitionDetail>The definition of the requested policy.
created_date: DateTimeThe date and time that the policy was originally created.
last_updated_date: DateTimeThe date and time that the policy was last updated.
Implementations§
source§impl GetPolicyOutput
impl GetPolicyOutput
sourcepub fn policy_store_id(&self) -> &str
pub fn policy_store_id(&self) -> &str
The ID of the policy store that contains the policy that you want information about.
sourcepub fn policy_type(&self) -> &PolicyType
pub fn policy_type(&self) -> &PolicyType
The type of the policy.
sourcepub fn principal(&self) -> Option<&EntityIdentifier>
pub fn principal(&self) -> Option<&EntityIdentifier>
The principal specified in the policy's scope. This element isn't included in the response when Principal isn't present in the policy content.
sourcepub fn resource(&self) -> Option<&EntityIdentifier>
pub fn resource(&self) -> Option<&EntityIdentifier>
The resource specified in the policy's scope. This element isn't included in the response when Resource isn't present in the policy content.
sourcepub fn definition(&self) -> Option<&PolicyDefinitionDetail>
pub fn definition(&self) -> Option<&PolicyDefinitionDetail>
The definition of the requested policy.
sourcepub fn created_date(&self) -> &DateTime
pub fn created_date(&self) -> &DateTime
The date and time that the policy was originally created.
sourcepub fn last_updated_date(&self) -> &DateTime
pub fn last_updated_date(&self) -> &DateTime
The date and time that the policy was last updated.
source§impl GetPolicyOutput
impl GetPolicyOutput
sourcepub fn builder() -> GetPolicyOutputBuilder
pub fn builder() -> GetPolicyOutputBuilder
Creates a new builder-style object to manufacture GetPolicyOutput.
Trait Implementations§
source§impl Clone for GetPolicyOutput
impl Clone for GetPolicyOutput
source§fn clone(&self) -> GetPolicyOutput
fn clone(&self) -> GetPolicyOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for GetPolicyOutput
impl Debug for GetPolicyOutput
source§impl PartialEq for GetPolicyOutput
impl PartialEq for GetPolicyOutput
source§fn eq(&self, other: &GetPolicyOutput) -> bool
fn eq(&self, other: &GetPolicyOutput) -> bool
self and other values to be equal, and is used
by ==.source§impl RequestId for GetPolicyOutput
impl RequestId for GetPolicyOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None if the service could not be reached.impl StructuralPartialEq for GetPolicyOutput
Auto Trait Implementations§
impl Freeze for GetPolicyOutput
impl RefUnwindSafe for GetPolicyOutput
impl Send for GetPolicyOutput
impl Sync for GetPolicyOutput
impl Unpin for GetPolicyOutput
impl UnwindSafe for GetPolicyOutput
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> 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