Struct aws_sdk_iam::model::PolicyVersion
source · [−]#[non_exhaustive]pub struct PolicyVersion { /* private fields */ }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.
Implementations
sourceimpl PolicyVersion
impl PolicyVersion
sourcepub fn document(&self) -> Option<&str>
pub fn document(&self) -> Option<&str>
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.
sourcepub fn version_id(&self) -> Option<&str>
pub fn version_id(&self) -> Option<&str>
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.
sourcepub fn is_default_version(&self) -> bool
pub fn is_default_version(&self) -> bool
Specifies whether the policy version is set as the policy's default version.
sourcepub fn create_date(&self) -> Option<&DateTime>
pub fn create_date(&self) -> Option<&DateTime>
The date and time, in ISO 8601 date-time format, when the policy version was created.
sourceimpl PolicyVersion
impl PolicyVersion
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture PolicyVersion.
Trait Implementations
sourceimpl Clone for PolicyVersion
impl Clone for PolicyVersion
sourcefn clone(&self) -> PolicyVersion
fn clone(&self) -> PolicyVersion
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more