#[non_exhaustive]pub struct GetPolicyOutput {
pub policy_store_id: Option<String>,
pub policy_id: Option<String>,
pub policy_type: Option<PolicyType>,
pub principal: Option<EntityIdentifier>,
pub resource: Option<EntityIdentifier>,
pub definition: Option<PolicyDefinitionDetail>,
pub created_date: Option<DateTime>,
pub last_updated_date: Option<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: Option<String>
The ID of the policy store that contains the policy that you want information about.
policy_id: Option<String>
The unique ID of the policy that you want information about.
policy_type: Option<PolicyType>
The 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: Option<DateTime>
The date and time that the policy was originally created.
last_updated_date: Option<DateTime>
The date and time that the policy was last updated.
Implementations§
source§impl GetPolicyOutput
impl GetPolicyOutput
sourcepub fn policy_store_id(&self) -> Option<&str>
pub fn policy_store_id(&self) -> Option<&str>
The ID of the policy store that contains the policy that you want information about.
sourcepub fn policy_id(&self) -> Option<&str>
pub fn policy_id(&self) -> Option<&str>
The unique ID of the policy that you want information about.
sourcepub fn policy_type(&self) -> Option<&PolicyType>
pub fn policy_type(&self) -> Option<&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) -> Option<&DateTime>
pub fn created_date(&self) -> Option<&DateTime>
The date and time that the policy was originally created.
sourcepub fn last_updated_date(&self) -> Option<&DateTime>
pub fn last_updated_date(&self) -> Option<&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.