AWS SDK for C++  1.8.24
AWS SDK for C++
Public Member Functions | List of all members
Aws::IAM::Model::RoleLastUsed Class Reference

#include <RoleLastUsed.h>

Public Member Functions

 RoleLastUsed ()
 
 RoleLastUsed (const Aws::Utils::Xml::XmlNode &xmlNode)
 
RoleLastUsedoperator= (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
 
const Aws::Utils::DateTimeGetLastUsedDate () const
 
bool LastUsedDateHasBeenSet () const
 
void SetLastUsedDate (const Aws::Utils::DateTime &value)
 
void SetLastUsedDate (Aws::Utils::DateTime &&value)
 
RoleLastUsedWithLastUsedDate (const Aws::Utils::DateTime &value)
 
RoleLastUsedWithLastUsedDate (Aws::Utils::DateTime &&value)
 
const Aws::StringGetRegion () const
 
bool RegionHasBeenSet () const
 
void SetRegion (const Aws::String &value)
 
void SetRegion (Aws::String &&value)
 
void SetRegion (const char *value)
 
RoleLastUsedWithRegion (const Aws::String &value)
 
RoleLastUsedWithRegion (Aws::String &&value)
 
RoleLastUsedWithRegion (const char *value)
 

Detailed Description

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 Regions Where Data Is Tracked in the IAM User Guide.

This data type is returned as a response element in the GetRole and GetAccountAuthorizationDetails operations.

See Also:

AWS API Reference

Definition at line 40 of file RoleLastUsed.h.

Constructor & Destructor Documentation

◆ RoleLastUsed() [1/2]

Aws::IAM::Model::RoleLastUsed::RoleLastUsed ( )

◆ RoleLastUsed() [2/2]

Aws::IAM::Model::RoleLastUsed::RoleLastUsed ( const Aws::Utils::Xml::XmlNode xmlNode)

Member Function Documentation

◆ GetLastUsedDate()

const Aws::Utils::DateTime& Aws::IAM::Model::RoleLastUsed::GetLastUsedDate ( ) const
inline

The date and time, in ISO 8601 date-time format that the role was last used.

This field is null if the role has not been used within the IAM tracking period. For more information about the tracking period, see Regions Where Data Is Tracked in the IAM User Guide.

Definition at line 59 of file RoleLastUsed.h.

◆ GetRegion()

const Aws::String& Aws::IAM::Model::RoleLastUsed::GetRegion ( ) const
inline

The name of the AWS Region in which the role was last used.

Definition at line 115 of file RoleLastUsed.h.

◆ LastUsedDateHasBeenSet()

bool Aws::IAM::Model::RoleLastUsed::LastUsedDateHasBeenSet ( ) const
inline

The date and time, in ISO 8601 date-time format that the role was last used.

This field is null if the role has not been used within the IAM tracking period. For more information about the tracking period, see Regions Where Data Is Tracked in the IAM User Guide.

Definition at line 69 of file RoleLastUsed.h.

◆ operator=()

RoleLastUsed& Aws::IAM::Model::RoleLastUsed::operator= ( const Aws::Utils::Xml::XmlNode xmlNode)

◆ OutputToStream() [1/2]

void Aws::IAM::Model::RoleLastUsed::OutputToStream ( Aws::OStream ostream,
const char *  location,
unsigned  index,
const char *  locationValue 
) const

◆ OutputToStream() [2/2]

void Aws::IAM::Model::RoleLastUsed::OutputToStream ( Aws::OStream oStream,
const char *  location 
) const

◆ RegionHasBeenSet()

bool Aws::IAM::Model::RoleLastUsed::RegionHasBeenSet ( ) const
inline

The name of the AWS Region in which the role was last used.

Definition at line 120 of file RoleLastUsed.h.

◆ SetLastUsedDate() [1/2]

void Aws::IAM::Model::RoleLastUsed::SetLastUsedDate ( const Aws::Utils::DateTime value)
inline

The date and time, in ISO 8601 date-time format that the role was last used.

This field is null if the role has not been used within the IAM tracking period. For more information about the tracking period, see Regions Where Data Is Tracked in the IAM User Guide.

Definition at line 79 of file RoleLastUsed.h.

◆ SetLastUsedDate() [2/2]

void Aws::IAM::Model::RoleLastUsed::SetLastUsedDate ( Aws::Utils::DateTime &&  value)
inline

The date and time, in ISO 8601 date-time format that the role was last used.

This field is null if the role has not been used within the IAM tracking period. For more information about the tracking period, see Regions Where Data Is Tracked in the IAM User Guide.

Definition at line 89 of file RoleLastUsed.h.

◆ SetRegion() [1/3]

void Aws::IAM::Model::RoleLastUsed::SetRegion ( const Aws::String value)
inline

The name of the AWS Region in which the role was last used.

Definition at line 125 of file RoleLastUsed.h.

◆ SetRegion() [2/3]

void Aws::IAM::Model::RoleLastUsed::SetRegion ( Aws::String &&  value)
inline

The name of the AWS Region in which the role was last used.

Definition at line 130 of file RoleLastUsed.h.

◆ SetRegion() [3/3]

void Aws::IAM::Model::RoleLastUsed::SetRegion ( const char *  value)
inline

The name of the AWS Region in which the role was last used.

Definition at line 135 of file RoleLastUsed.h.

◆ WithLastUsedDate() [1/2]

RoleLastUsed& Aws::IAM::Model::RoleLastUsed::WithLastUsedDate ( const Aws::Utils::DateTime value)
inline

The date and time, in ISO 8601 date-time format that the role was last used.

This field is null if the role has not been used within the IAM tracking period. For more information about the tracking period, see Regions Where Data Is Tracked in the IAM User Guide.

Definition at line 99 of file RoleLastUsed.h.

◆ WithLastUsedDate() [2/2]

RoleLastUsed& Aws::IAM::Model::RoleLastUsed::WithLastUsedDate ( Aws::Utils::DateTime &&  value)
inline

The date and time, in ISO 8601 date-time format that the role was last used.

This field is null if the role has not been used within the IAM tracking period. For more information about the tracking period, see Regions Where Data Is Tracked in the IAM User Guide.

Definition at line 109 of file RoleLastUsed.h.

◆ WithRegion() [1/3]

RoleLastUsed& Aws::IAM::Model::RoleLastUsed::WithRegion ( const Aws::String value)
inline

The name of the AWS Region in which the role was last used.

Definition at line 140 of file RoleLastUsed.h.

◆ WithRegion() [2/3]

RoleLastUsed& Aws::IAM::Model::RoleLastUsed::WithRegion ( Aws::String &&  value)
inline

The name of the AWS Region in which the role was last used.

Definition at line 145 of file RoleLastUsed.h.

◆ WithRegion() [3/3]

RoleLastUsed& Aws::IAM::Model::RoleLastUsed::WithRegion ( const char *  value)
inline

The name of the AWS Region in which the role was last used.

Definition at line 150 of file RoleLastUsed.h.


The documentation for this class was generated from the following file: