Struct aws_sdk_iam::model::PolicyVersion [−][src]
#[non_exhaustive]pub struct PolicyVersion {
pub document: Option<String>,
pub version_id: Option<String>,
pub is_default_version: bool,
pub create_date: Option<DateTime>,
}
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 (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.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.
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
.
is_default_version: bool
Specifies whether the policy version is set as the policy's default version.
create_date: Option<DateTime>
The date and time, in ISO 8601 date-time format, when the policy version was created.
Implementations
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.
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
.
Specifies whether the policy version is set as the policy's default version.
The date and time, in ISO 8601 date-time format, when the policy version was created.
Creates a new builder-style object to manufacture PolicyVersion
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more