#[non_exhaustive]pub struct CreatePolicyOutput {
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 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 new policy.
policy_id: Option<String>
The unique ID of the new policy.
policy_type: Option<PolicyType>
The policy type of the new policy.
principal: Option<EntityIdentifier>
The principal specified in the new policy's scope. This response element isn't present when principal
isn't specified in the policy content.
resource: Option<EntityIdentifier>
The resource specified in the new policy's scope. This response element isn't present when the resource
isn't specified in the policy content.
created_date: Option<DateTime>
The date and time the policy was originally created.
last_updated_date: Option<DateTime>
The date and time the policy was last updated.
Implementations§
source§impl CreatePolicyOutput
impl CreatePolicyOutput
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 new policy.
sourcepub fn policy_type(&self) -> Option<&PolicyType>
pub fn policy_type(&self) -> Option<&PolicyType>
The policy type of the new policy.
sourcepub fn principal(&self) -> Option<&EntityIdentifier>
pub fn principal(&self) -> Option<&EntityIdentifier>
The principal specified in the new policy's scope. This response element isn't present when principal
isn't specified in the policy content.
sourcepub fn resource(&self) -> Option<&EntityIdentifier>
pub fn resource(&self) -> Option<&EntityIdentifier>
The resource specified in the new policy's scope. This response element isn't present when the resource
isn't specified in the policy content.
sourcepub fn created_date(&self) -> Option<&DateTime>
pub fn created_date(&self) -> Option<&DateTime>
The date and time 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 the policy was last updated.
source§impl CreatePolicyOutput
impl CreatePolicyOutput
sourcepub fn builder() -> CreatePolicyOutputBuilder
pub fn builder() -> CreatePolicyOutputBuilder
Creates a new builder-style object to manufacture CreatePolicyOutput
.
Trait Implementations§
source§impl Clone for CreatePolicyOutput
impl Clone for CreatePolicyOutput
source§fn clone(&self) -> CreatePolicyOutput
fn clone(&self) -> CreatePolicyOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreatePolicyOutput
impl Debug for CreatePolicyOutput
source§impl PartialEq for CreatePolicyOutput
impl PartialEq for CreatePolicyOutput
source§fn eq(&self, other: &CreatePolicyOutput) -> bool
fn eq(&self, other: &CreatePolicyOutput) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for CreatePolicyOutput
impl RequestId for CreatePolicyOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.