#[non_exhaustive]pub struct CreatePolicyOutput {
pub policy_store_id: String,
pub policy_id: String,
pub policy_type: PolicyType,
pub principal: Option<EntityIdentifier>,
pub resource: Option<EntityIdentifier>,
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 new policy.
policy_id: StringThe unique ID of the new policy.
policy_type: PolicyTypeThe 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: DateTimeThe date and time the policy was originally created.
last_updated_date: DateTimeThe date and time the policy was last updated.
Implementations§
source§impl CreatePolicyOutput
impl CreatePolicyOutput
sourcepub fn policy_store_id(&self) -> &str
pub fn policy_store_id(&self) -> &str
The ID of the policy store that contains the new policy.
sourcepub fn policy_type(&self) -> &PolicyType
pub fn policy_type(&self) -> &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) -> &DateTime
pub fn created_date(&self) -> &DateTime
The date and time the policy was originally created.
sourcepub fn last_updated_date(&self) -> &DateTime
pub fn last_updated_date(&self) -> &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.impl StructuralPartialEq for CreatePolicyOutput
Auto Trait Implementations§
impl Freeze for CreatePolicyOutput
impl RefUnwindSafe for CreatePolicyOutput
impl Send for CreatePolicyOutput
impl Sync for CreatePolicyOutput
impl Unpin for CreatePolicyOutput
impl UnwindSafe for CreatePolicyOutput
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