NAME

Paws::IAM::PolicyVersion

USAGE

This class represents one of two things:

Arguments in a call to a service

Use the attributes of this class as arguments to methods. You shouldn't make instances of this class. Each attribute should be used as a named argument in the calls that expect this type of object.

As an example, if Att1 is expected to be a Paws::IAM::PolicyVersion object:

$service_obj->Method(Att1 => { CreateDate => $value, ..., VersionId => $value  });

Results returned from an API call

Use accessors for each attribute. If Att1 is expected to be an Paws::IAM::PolicyVersion object:

$result = $service_obj->Method(...);
$result->Att1->CreateDate

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 (https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) in the IAM User Guide.

ATTRIBUTES

CreateDate => Str

The date and time, in ISO 8601 date-time format (http://www.iso.org/iso/iso8601), when the policy version was created.

Document => 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 (https://tools.ietf.org/html/rfc3986). 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.

IsDefaultVersion => Bool

Specifies whether the policy version is set as the policy's default version.

VersionId => 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.

SEE ALSO

This class forms part of Paws, describing an object used in Paws::IAM

BUGS and CONTRIBUTIONS

The source code is located here: https://github.com/pplu/aws-sdk-perl

Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues