Struct rusoto_iam::PolicyVersion
source · [−]pub struct PolicyVersion {
pub create_date: Option<String>,
pub document: Option<String>,
pub is_default_version: Option<bool>,
pub version_id: Option<String>,
}
Expand description
Contains information about a version of a managed policy.
This data type is used as a response element in the CreatePolicyVersion, GetPolicyVersion, ListPolicyVersions, and GetAccountAuthorizationDetails operations.
For more information about managed policies, refer to Managed policies and inline policies in the IAM User Guide.
Fields
create_date: Option<String>
The date and time, in ISO 8601 date-time format, when the policy version was created.
document: Option<String>
The policy document.
The policy document is returned in the response to the GetPolicyVersion and GetAccountAuthorizationDetails operations. It is not returned in the response to the CreatePolicyVersion or ListPolicyVersions operations.
The policy document returned in this structure is URL-encoded compliant with RFC 3986. You can use a URL decoding method to convert the policy back to plain JSON text. For example, if you use Java, you can use the decode
method of the java.net.URLDecoder
utility class in the Java SDK. Other languages and SDKs provide similar functionality.
is_default_version: Option<bool>
Specifies whether the policy version is set as the policy's default version.
version_id: Option<String>
The identifier for the policy version.
Policy version identifiers always begin with v
(always lowercase). When a policy is created, the first policy version is v1
.
Trait Implementations
sourceimpl Clone for PolicyVersion
impl Clone for PolicyVersion
sourcefn clone(&self) -> PolicyVersion
fn clone(&self) -> PolicyVersion
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PolicyVersion
impl Debug for PolicyVersion
sourceimpl Default for PolicyVersion
impl Default for PolicyVersion
sourcefn default() -> PolicyVersion
fn default() -> PolicyVersion
Returns the “default value” for a type. Read more
sourceimpl PartialEq<PolicyVersion> for PolicyVersion
impl PartialEq<PolicyVersion> for PolicyVersion
sourcefn eq(&self, other: &PolicyVersion) -> bool
fn eq(&self, other: &PolicyVersion) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PolicyVersion) -> bool
fn ne(&self, other: &PolicyVersion) -> bool
This method tests for !=
.
impl StructuralPartialEq for PolicyVersion
Auto Trait Implementations
impl RefUnwindSafe for PolicyVersion
impl Send for PolicyVersion
impl Sync for PolicyVersion
impl Unpin for PolicyVersion
impl UnwindSafe for PolicyVersion
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more