648 lines
28 KiB
C++
648 lines
28 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/iam/IAM_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/core/utils/DateTime.h>
|
|
#include <aws/iam/model/AttachedPermissionsBoundary.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <aws/iam/model/RoleLastUsed.h>
|
|
#include <aws/iam/model/Tag.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Xml
|
|
{
|
|
class XmlNode;
|
|
} // namespace Xml
|
|
} // namespace Utils
|
|
namespace IAM
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>Contains information about an IAM role. This structure is returned as a
|
|
* response element in several API operations that interact with
|
|
* roles.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/Role">AWS API
|
|
* Reference</a></p>
|
|
*/
|
|
class AWS_IAM_API Role
|
|
{
|
|
public:
|
|
Role();
|
|
Role(const Aws::Utils::Xml::XmlNode& xmlNode);
|
|
Role& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
|
|
|
|
void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
|
|
void OutputToStream(Aws::OStream& oStream, const char* location) const;
|
|
|
|
|
|
/**
|
|
* <p> The path to the role. For more information about paths, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
|
|
* Identifiers</a> in the <i>IAM User Guide</i>. </p>
|
|
*/
|
|
inline const Aws::String& GetPath() const{ return m_path; }
|
|
|
|
/**
|
|
* <p> The path to the role. For more information about paths, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
|
|
* Identifiers</a> in the <i>IAM User Guide</i>. </p>
|
|
*/
|
|
inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
|
|
|
|
/**
|
|
* <p> The path to the role. For more information about paths, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
|
|
* Identifiers</a> in the <i>IAM User Guide</i>. </p>
|
|
*/
|
|
inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
|
|
|
|
/**
|
|
* <p> The path to the role. For more information about paths, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
|
|
* Identifiers</a> in the <i>IAM User Guide</i>. </p>
|
|
*/
|
|
inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
|
|
|
|
/**
|
|
* <p> The path to the role. For more information about paths, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
|
|
* Identifiers</a> in the <i>IAM User Guide</i>. </p>
|
|
*/
|
|
inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
|
|
|
|
/**
|
|
* <p> The path to the role. For more information about paths, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
|
|
* Identifiers</a> in the <i>IAM User Guide</i>. </p>
|
|
*/
|
|
inline Role& WithPath(const Aws::String& value) { SetPath(value); return *this;}
|
|
|
|
/**
|
|
* <p> The path to the role. For more information about paths, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
|
|
* Identifiers</a> in the <i>IAM User Guide</i>. </p>
|
|
*/
|
|
inline Role& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p> The path to the role. For more information about paths, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
|
|
* Identifiers</a> in the <i>IAM User Guide</i>. </p>
|
|
*/
|
|
inline Role& WithPath(const char* value) { SetPath(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The friendly name that identifies the role.</p>
|
|
*/
|
|
inline const Aws::String& GetRoleName() const{ return m_roleName; }
|
|
|
|
/**
|
|
* <p>The friendly name that identifies the role.</p>
|
|
*/
|
|
inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The friendly name that identifies the role.</p>
|
|
*/
|
|
inline void SetRoleName(const Aws::String& value) { m_roleNameHasBeenSet = true; m_roleName = value; }
|
|
|
|
/**
|
|
* <p>The friendly name that identifies the role.</p>
|
|
*/
|
|
inline void SetRoleName(Aws::String&& value) { m_roleNameHasBeenSet = true; m_roleName = std::move(value); }
|
|
|
|
/**
|
|
* <p>The friendly name that identifies the role.</p>
|
|
*/
|
|
inline void SetRoleName(const char* value) { m_roleNameHasBeenSet = true; m_roleName.assign(value); }
|
|
|
|
/**
|
|
* <p>The friendly name that identifies the role.</p>
|
|
*/
|
|
inline Role& WithRoleName(const Aws::String& value) { SetRoleName(value); return *this;}
|
|
|
|
/**
|
|
* <p>The friendly name that identifies the role.</p>
|
|
*/
|
|
inline Role& WithRoleName(Aws::String&& value) { SetRoleName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The friendly name that identifies the role.</p>
|
|
*/
|
|
inline Role& WithRoleName(const char* value) { SetRoleName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p> The stable and unique string identifying the role. For more information
|
|
* about IDs, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
|
|
* Identifiers</a> in the <i>IAM User Guide</i>. </p>
|
|
*/
|
|
inline const Aws::String& GetRoleId() const{ return m_roleId; }
|
|
|
|
/**
|
|
* <p> The stable and unique string identifying the role. For more information
|
|
* about IDs, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
|
|
* Identifiers</a> in the <i>IAM User Guide</i>. </p>
|
|
*/
|
|
inline bool RoleIdHasBeenSet() const { return m_roleIdHasBeenSet; }
|
|
|
|
/**
|
|
* <p> The stable and unique string identifying the role. For more information
|
|
* about IDs, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
|
|
* Identifiers</a> in the <i>IAM User Guide</i>. </p>
|
|
*/
|
|
inline void SetRoleId(const Aws::String& value) { m_roleIdHasBeenSet = true; m_roleId = value; }
|
|
|
|
/**
|
|
* <p> The stable and unique string identifying the role. For more information
|
|
* about IDs, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
|
|
* Identifiers</a> in the <i>IAM User Guide</i>. </p>
|
|
*/
|
|
inline void SetRoleId(Aws::String&& value) { m_roleIdHasBeenSet = true; m_roleId = std::move(value); }
|
|
|
|
/**
|
|
* <p> The stable and unique string identifying the role. For more information
|
|
* about IDs, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
|
|
* Identifiers</a> in the <i>IAM User Guide</i>. </p>
|
|
*/
|
|
inline void SetRoleId(const char* value) { m_roleIdHasBeenSet = true; m_roleId.assign(value); }
|
|
|
|
/**
|
|
* <p> The stable and unique string identifying the role. For more information
|
|
* about IDs, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
|
|
* Identifiers</a> in the <i>IAM User Guide</i>. </p>
|
|
*/
|
|
inline Role& WithRoleId(const Aws::String& value) { SetRoleId(value); return *this;}
|
|
|
|
/**
|
|
* <p> The stable and unique string identifying the role. For more information
|
|
* about IDs, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
|
|
* Identifiers</a> in the <i>IAM User Guide</i>. </p>
|
|
*/
|
|
inline Role& WithRoleId(Aws::String&& value) { SetRoleId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p> The stable and unique string identifying the role. For more information
|
|
* about IDs, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
|
|
* Identifiers</a> in the <i>IAM User Guide</i>. </p>
|
|
*/
|
|
inline Role& WithRoleId(const char* value) { SetRoleId(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p> The Amazon Resource Name (ARN) specifying the role. For more information
|
|
* about ARNs and how to use them in policies, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
|
|
* Identifiers</a> in the <i>IAM User Guide</i> guide. </p>
|
|
*/
|
|
inline const Aws::String& GetArn() const{ return m_arn; }
|
|
|
|
/**
|
|
* <p> The Amazon Resource Name (ARN) specifying the role. For more information
|
|
* about ARNs and how to use them in policies, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
|
|
* Identifiers</a> in the <i>IAM User Guide</i> guide. </p>
|
|
*/
|
|
inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
|
|
|
|
/**
|
|
* <p> The Amazon Resource Name (ARN) specifying the role. For more information
|
|
* about ARNs and how to use them in policies, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
|
|
* Identifiers</a> in the <i>IAM User Guide</i> guide. </p>
|
|
*/
|
|
inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
|
|
|
|
/**
|
|
* <p> The Amazon Resource Name (ARN) specifying the role. For more information
|
|
* about ARNs and how to use them in policies, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
|
|
* Identifiers</a> in the <i>IAM User Guide</i> guide. </p>
|
|
*/
|
|
inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
|
|
|
|
/**
|
|
* <p> The Amazon Resource Name (ARN) specifying the role. For more information
|
|
* about ARNs and how to use them in policies, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
|
|
* Identifiers</a> in the <i>IAM User Guide</i> guide. </p>
|
|
*/
|
|
inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
|
|
|
|
/**
|
|
* <p> The Amazon Resource Name (ARN) specifying the role. For more information
|
|
* about ARNs and how to use them in policies, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
|
|
* Identifiers</a> in the <i>IAM User Guide</i> guide. </p>
|
|
*/
|
|
inline Role& WithArn(const Aws::String& value) { SetArn(value); return *this;}
|
|
|
|
/**
|
|
* <p> The Amazon Resource Name (ARN) specifying the role. For more information
|
|
* about ARNs and how to use them in policies, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
|
|
* Identifiers</a> in the <i>IAM User Guide</i> guide. </p>
|
|
*/
|
|
inline Role& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p> The Amazon Resource Name (ARN) specifying the role. For more information
|
|
* about ARNs and how to use them in policies, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
|
|
* Identifiers</a> in the <i>IAM User Guide</i> guide. </p>
|
|
*/
|
|
inline Role& WithArn(const char* value) { SetArn(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The date and time, in <a href="http://www.iso.org/iso/iso8601">ISO 8601
|
|
* date-time format</a>, when the role was created.</p>
|
|
*/
|
|
inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; }
|
|
|
|
/**
|
|
* <p>The date and time, in <a href="http://www.iso.org/iso/iso8601">ISO 8601
|
|
* date-time format</a>, when the role was created.</p>
|
|
*/
|
|
inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The date and time, in <a href="http://www.iso.org/iso/iso8601">ISO 8601
|
|
* date-time format</a>, when the role was created.</p>
|
|
*/
|
|
inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; }
|
|
|
|
/**
|
|
* <p>The date and time, in <a href="http://www.iso.org/iso/iso8601">ISO 8601
|
|
* date-time format</a>, when the role was created.</p>
|
|
*/
|
|
inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); }
|
|
|
|
/**
|
|
* <p>The date and time, in <a href="http://www.iso.org/iso/iso8601">ISO 8601
|
|
* date-time format</a>, when the role was created.</p>
|
|
*/
|
|
inline Role& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;}
|
|
|
|
/**
|
|
* <p>The date and time, in <a href="http://www.iso.org/iso/iso8601">ISO 8601
|
|
* date-time format</a>, when the role was created.</p>
|
|
*/
|
|
inline Role& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The policy that grants an entity permission to assume the role.</p>
|
|
*/
|
|
inline const Aws::String& GetAssumeRolePolicyDocument() const{ return m_assumeRolePolicyDocument; }
|
|
|
|
/**
|
|
* <p>The policy that grants an entity permission to assume the role.</p>
|
|
*/
|
|
inline bool AssumeRolePolicyDocumentHasBeenSet() const { return m_assumeRolePolicyDocumentHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The policy that grants an entity permission to assume the role.</p>
|
|
*/
|
|
inline void SetAssumeRolePolicyDocument(const Aws::String& value) { m_assumeRolePolicyDocumentHasBeenSet = true; m_assumeRolePolicyDocument = value; }
|
|
|
|
/**
|
|
* <p>The policy that grants an entity permission to assume the role.</p>
|
|
*/
|
|
inline void SetAssumeRolePolicyDocument(Aws::String&& value) { m_assumeRolePolicyDocumentHasBeenSet = true; m_assumeRolePolicyDocument = std::move(value); }
|
|
|
|
/**
|
|
* <p>The policy that grants an entity permission to assume the role.</p>
|
|
*/
|
|
inline void SetAssumeRolePolicyDocument(const char* value) { m_assumeRolePolicyDocumentHasBeenSet = true; m_assumeRolePolicyDocument.assign(value); }
|
|
|
|
/**
|
|
* <p>The policy that grants an entity permission to assume the role.</p>
|
|
*/
|
|
inline Role& WithAssumeRolePolicyDocument(const Aws::String& value) { SetAssumeRolePolicyDocument(value); return *this;}
|
|
|
|
/**
|
|
* <p>The policy that grants an entity permission to assume the role.</p>
|
|
*/
|
|
inline Role& WithAssumeRolePolicyDocument(Aws::String&& value) { SetAssumeRolePolicyDocument(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The policy that grants an entity permission to assume the role.</p>
|
|
*/
|
|
inline Role& WithAssumeRolePolicyDocument(const char* value) { SetAssumeRolePolicyDocument(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>A description of the role that you provide.</p>
|
|
*/
|
|
inline const Aws::String& GetDescription() const{ return m_description; }
|
|
|
|
/**
|
|
* <p>A description of the role that you provide.</p>
|
|
*/
|
|
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
|
|
|
|
/**
|
|
* <p>A description of the role that you provide.</p>
|
|
*/
|
|
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
|
|
|
|
/**
|
|
* <p>A description of the role that you provide.</p>
|
|
*/
|
|
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
|
|
|
|
/**
|
|
* <p>A description of the role that you provide.</p>
|
|
*/
|
|
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
|
|
|
|
/**
|
|
* <p>A description of the role that you provide.</p>
|
|
*/
|
|
inline Role& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
|
|
|
|
/**
|
|
* <p>A description of the role that you provide.</p>
|
|
*/
|
|
inline Role& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>A description of the role that you provide.</p>
|
|
*/
|
|
inline Role& WithDescription(const char* value) { SetDescription(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The maximum session duration (in seconds) for the specified role. Anyone who
|
|
* uses the AWS CLI, or API to assume the role can specify the duration using the
|
|
* optional <code>DurationSeconds</code> API parameter or
|
|
* <code>duration-seconds</code> CLI parameter.</p>
|
|
*/
|
|
inline int GetMaxSessionDuration() const{ return m_maxSessionDuration; }
|
|
|
|
/**
|
|
* <p>The maximum session duration (in seconds) for the specified role. Anyone who
|
|
* uses the AWS CLI, or API to assume the role can specify the duration using the
|
|
* optional <code>DurationSeconds</code> API parameter or
|
|
* <code>duration-seconds</code> CLI parameter.</p>
|
|
*/
|
|
inline bool MaxSessionDurationHasBeenSet() const { return m_maxSessionDurationHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The maximum session duration (in seconds) for the specified role. Anyone who
|
|
* uses the AWS CLI, or API to assume the role can specify the duration using the
|
|
* optional <code>DurationSeconds</code> API parameter or
|
|
* <code>duration-seconds</code> CLI parameter.</p>
|
|
*/
|
|
inline void SetMaxSessionDuration(int value) { m_maxSessionDurationHasBeenSet = true; m_maxSessionDuration = value; }
|
|
|
|
/**
|
|
* <p>The maximum session duration (in seconds) for the specified role. Anyone who
|
|
* uses the AWS CLI, or API to assume the role can specify the duration using the
|
|
* optional <code>DurationSeconds</code> API parameter or
|
|
* <code>duration-seconds</code> CLI parameter.</p>
|
|
*/
|
|
inline Role& WithMaxSessionDuration(int value) { SetMaxSessionDuration(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The ARN of the policy used to set the permissions boundary for the role.</p>
|
|
* <p>For more information about permissions boundaries, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_boundaries.html">Permissions
|
|
* Boundaries for IAM Identities </a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
inline const AttachedPermissionsBoundary& GetPermissionsBoundary() const{ return m_permissionsBoundary; }
|
|
|
|
/**
|
|
* <p>The ARN of the policy used to set the permissions boundary for the role.</p>
|
|
* <p>For more information about permissions boundaries, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_boundaries.html">Permissions
|
|
* Boundaries for IAM Identities </a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
inline bool PermissionsBoundaryHasBeenSet() const { return m_permissionsBoundaryHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The ARN of the policy used to set the permissions boundary for the role.</p>
|
|
* <p>For more information about permissions boundaries, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_boundaries.html">Permissions
|
|
* Boundaries for IAM Identities </a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
inline void SetPermissionsBoundary(const AttachedPermissionsBoundary& value) { m_permissionsBoundaryHasBeenSet = true; m_permissionsBoundary = value; }
|
|
|
|
/**
|
|
* <p>The ARN of the policy used to set the permissions boundary for the role.</p>
|
|
* <p>For more information about permissions boundaries, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_boundaries.html">Permissions
|
|
* Boundaries for IAM Identities </a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
inline void SetPermissionsBoundary(AttachedPermissionsBoundary&& value) { m_permissionsBoundaryHasBeenSet = true; m_permissionsBoundary = std::move(value); }
|
|
|
|
/**
|
|
* <p>The ARN of the policy used to set the permissions boundary for the role.</p>
|
|
* <p>For more information about permissions boundaries, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_boundaries.html">Permissions
|
|
* Boundaries for IAM Identities </a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
inline Role& WithPermissionsBoundary(const AttachedPermissionsBoundary& value) { SetPermissionsBoundary(value); return *this;}
|
|
|
|
/**
|
|
* <p>The ARN of the policy used to set the permissions boundary for the role.</p>
|
|
* <p>For more information about permissions boundaries, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_boundaries.html">Permissions
|
|
* Boundaries for IAM Identities </a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
inline Role& WithPermissionsBoundary(AttachedPermissionsBoundary&& value) { SetPermissionsBoundary(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>A list of tags that are attached to the specified role. For more information
|
|
* about tagging, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html">Tagging IAM
|
|
* Identities</a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
|
|
|
|
/**
|
|
* <p>A list of tags that are attached to the specified role. For more information
|
|
* about tagging, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html">Tagging IAM
|
|
* Identities</a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>A list of tags that are attached to the specified role. For more information
|
|
* about tagging, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html">Tagging IAM
|
|
* Identities</a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
|
|
|
|
/**
|
|
* <p>A list of tags that are attached to the specified role. For more information
|
|
* about tagging, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html">Tagging IAM
|
|
* Identities</a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
|
|
|
|
/**
|
|
* <p>A list of tags that are attached to the specified role. For more information
|
|
* about tagging, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html">Tagging IAM
|
|
* Identities</a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
inline Role& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
|
|
|
|
/**
|
|
* <p>A list of tags that are attached to the specified role. For more information
|
|
* about tagging, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html">Tagging IAM
|
|
* Identities</a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
inline Role& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>A list of tags that are attached to the specified role. For more information
|
|
* about tagging, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html">Tagging IAM
|
|
* Identities</a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
inline Role& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>A list of tags that are attached to the specified role. For more information
|
|
* about tagging, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html">Tagging IAM
|
|
* Identities</a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
inline Role& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
|
|
|
|
|
|
/**
|
|
* <p>Contains information about the last time that an IAM role was used. This
|
|
* includes the date and time and the Region in which the role was last used.
|
|
* Activity is only reported for the trailing 400 days. This period can be shorter
|
|
* if your Region began supporting these features within the last year. The role
|
|
* might have been used more than 400 days ago. For more information, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_access-advisor.html#access-advisor_tracking-period">Regions
|
|
* Where Data Is Tracked</a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
inline const RoleLastUsed& GetRoleLastUsed() const{ return m_roleLastUsed; }
|
|
|
|
/**
|
|
* <p>Contains information about the last time that an IAM role was used. This
|
|
* includes the date and time and the Region in which the role was last used.
|
|
* Activity is only reported for the trailing 400 days. This period can be shorter
|
|
* if your Region began supporting these features within the last year. The role
|
|
* might have been used more than 400 days ago. For more information, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_access-advisor.html#access-advisor_tracking-period">Regions
|
|
* Where Data Is Tracked</a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
inline bool RoleLastUsedHasBeenSet() const { return m_roleLastUsedHasBeenSet; }
|
|
|
|
/**
|
|
* <p>Contains information about the last time that an IAM role was used. This
|
|
* includes the date and time and the Region in which the role was last used.
|
|
* Activity is only reported for the trailing 400 days. This period can be shorter
|
|
* if your Region began supporting these features within the last year. The role
|
|
* might have been used more than 400 days ago. For more information, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_access-advisor.html#access-advisor_tracking-period">Regions
|
|
* Where Data Is Tracked</a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
inline void SetRoleLastUsed(const RoleLastUsed& value) { m_roleLastUsedHasBeenSet = true; m_roleLastUsed = value; }
|
|
|
|
/**
|
|
* <p>Contains information about the last time that an IAM role was used. This
|
|
* includes the date and time and the Region in which the role was last used.
|
|
* Activity is only reported for the trailing 400 days. This period can be shorter
|
|
* if your Region began supporting these features within the last year. The role
|
|
* might have been used more than 400 days ago. For more information, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_access-advisor.html#access-advisor_tracking-period">Regions
|
|
* Where Data Is Tracked</a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
inline void SetRoleLastUsed(RoleLastUsed&& value) { m_roleLastUsedHasBeenSet = true; m_roleLastUsed = std::move(value); }
|
|
|
|
/**
|
|
* <p>Contains information about the last time that an IAM role was used. This
|
|
* includes the date and time and the Region in which the role was last used.
|
|
* Activity is only reported for the trailing 400 days. This period can be shorter
|
|
* if your Region began supporting these features within the last year. The role
|
|
* might have been used more than 400 days ago. For more information, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_access-advisor.html#access-advisor_tracking-period">Regions
|
|
* Where Data Is Tracked</a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
inline Role& WithRoleLastUsed(const RoleLastUsed& value) { SetRoleLastUsed(value); return *this;}
|
|
|
|
/**
|
|
* <p>Contains information about the last time that an IAM role was used. This
|
|
* includes the date and time and the Region in which the role was last used.
|
|
* Activity is only reported for the trailing 400 days. This period can be shorter
|
|
* if your Region began supporting these features within the last year. The role
|
|
* might have been used more than 400 days ago. For more information, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_access-advisor.html#access-advisor_tracking-period">Regions
|
|
* Where Data Is Tracked</a> in the <i>IAM User Guide</i>.</p>
|
|
*/
|
|
inline Role& WithRoleLastUsed(RoleLastUsed&& value) { SetRoleLastUsed(std::move(value)); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_path;
|
|
bool m_pathHasBeenSet;
|
|
|
|
Aws::String m_roleName;
|
|
bool m_roleNameHasBeenSet;
|
|
|
|
Aws::String m_roleId;
|
|
bool m_roleIdHasBeenSet;
|
|
|
|
Aws::String m_arn;
|
|
bool m_arnHasBeenSet;
|
|
|
|
Aws::Utils::DateTime m_createDate;
|
|
bool m_createDateHasBeenSet;
|
|
|
|
Aws::String m_assumeRolePolicyDocument;
|
|
bool m_assumeRolePolicyDocumentHasBeenSet;
|
|
|
|
Aws::String m_description;
|
|
bool m_descriptionHasBeenSet;
|
|
|
|
int m_maxSessionDuration;
|
|
bool m_maxSessionDurationHasBeenSet;
|
|
|
|
AttachedPermissionsBoundary m_permissionsBoundary;
|
|
bool m_permissionsBoundaryHasBeenSet;
|
|
|
|
Aws::Vector<Tag> m_tags;
|
|
bool m_tagsHasBeenSet;
|
|
|
|
RoleLastUsed m_roleLastUsed;
|
|
bool m_roleLastUsedHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace IAM
|
|
} // namespace Aws
|