/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include 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. See
* Also:
AWS
* API Reference
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 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 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 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 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 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 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 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
.
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
.
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
.
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
.
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
.
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
.
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
.
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.
*/ inline bool GetIsDefaultVersion() const{ return m_isDefaultVersion; } /** *Specifies whether the policy version is set as the policy's default * version.
*/ inline bool IsDefaultVersionHasBeenSet() const { return m_isDefaultVersionHasBeenSet; } /** *Specifies whether the policy version is set as the policy's default * version.
*/ inline void SetIsDefaultVersion(bool value) { m_isDefaultVersionHasBeenSet = true; m_isDefaultVersion = value; } /** *Specifies whether the policy version is set as the policy's default * version.
*/ inline PolicyVersion& WithIsDefaultVersion(bool value) { SetIsDefaultVersion(value); return *this;} /** *The date and time, in ISO 8601 * date-time format, when the policy version was created.
*/ inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; } /** *The date and time, in ISO 8601 * date-time format, when the policy version was created.
*/ inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; } /** *The date and time, in ISO 8601 * date-time format, when the policy version was created.
*/ inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; } /** *The date and time, in ISO 8601 * date-time format, when the policy version was created.
*/ inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); } /** *The date and time, in ISO 8601 * date-time format, when the policy version was created.
*/ inline PolicyVersion& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;} /** *The date and time, in ISO 8601 * date-time format, when the policy version was created.
*/ inline PolicyVersion& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(std::move(value)); return *this;} private: Aws::String m_document; bool m_documentHasBeenSet = false; Aws::String m_versionId; bool m_versionIdHasBeenSet = false; bool m_isDefaultVersion; bool m_isDefaultVersionHasBeenSet = false; Aws::Utils::DateTime m_createDate; bool m_createDateHasBeenSet = false; }; } // namespace Model } // namespace IAM } // namespace Aws