Class AwsIamAccessKeyDetails
- java.lang.Object
-
- software.amazon.awssdk.services.securityhub.model.AwsIamAccessKeyDetails
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AwsIamAccessKeyDetails.Builder,AwsIamAccessKeyDetails>
@Generated("software.amazon.awssdk:codegen") public final class AwsIamAccessKeyDetails extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AwsIamAccessKeyDetails.Builder,AwsIamAccessKeyDetails>
IAM access key details related to a finding.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAwsIamAccessKeyDetails.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringaccessKeyId()The identifier of the access key.StringaccountId()The Amazon Web Services account ID of the account for the key.static AwsIamAccessKeyDetails.Builderbuilder()StringcreatedAt()Indicates when the IAM access key was created.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringprincipalId()The ID of the principal associated with an access key.StringprincipalName()The name of the principal.StringprincipalType()The type of principal associated with an access key.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends AwsIamAccessKeyDetails.Builder>serializableBuilderClass()AwsIamAccessKeySessionContextsessionContext()Information about the session that the key was used for.AwsIamAccessKeyStatusstatus()The status of the IAM access key related to a finding.StringstatusAsString()The status of the IAM access key related to a finding.AwsIamAccessKeyDetails.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringuserName()Deprecated.This filter is deprecated.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
userName
@Deprecated public final String userName()
Deprecated.This filter is deprecated. Instead, use PrincipalName.The user associated with the IAM access key related to a finding.
The
UserNameparameter has been replaced with thePrincipalNameparameter because access keys can also be assigned to principals that are not IAM users.- Returns:
- The user associated with the IAM access key related to a finding.
The
UserNameparameter has been replaced with thePrincipalNameparameter because access keys can also be assigned to principals that are not IAM users.
-
status
public final AwsIamAccessKeyStatus status()
The status of the IAM access key related to a finding.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnAwsIamAccessKeyStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the IAM access key related to a finding.
- See Also:
AwsIamAccessKeyStatus
-
statusAsString
public final String statusAsString()
The status of the IAM access key related to a finding.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnAwsIamAccessKeyStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the IAM access key related to a finding.
- See Also:
AwsIamAccessKeyStatus
-
createdAt
public final String createdAt()
Indicates when the IAM access key was created.
For more information about the validation and formatting of timestamp fields in Security Hub, see Timestamps.
- Returns:
- Indicates when the IAM access key was created.
For more information about the validation and formatting of timestamp fields in Security Hub, see Timestamps.
-
principalId
public final String principalId()
The ID of the principal associated with an access key.
- Returns:
- The ID of the principal associated with an access key.
-
principalType
public final String principalType()
The type of principal associated with an access key.
- Returns:
- The type of principal associated with an access key.
-
principalName
public final String principalName()
The name of the principal.
- Returns:
- The name of the principal.
-
accountId
public final String accountId()
The Amazon Web Services account ID of the account for the key.
- Returns:
- The Amazon Web Services account ID of the account for the key.
-
accessKeyId
public final String accessKeyId()
The identifier of the access key.
- Returns:
- The identifier of the access key.
-
sessionContext
public final AwsIamAccessKeySessionContext sessionContext()
Information about the session that the key was used for.
- Returns:
- Information about the session that the key was used for.
-
toBuilder
public AwsIamAccessKeyDetails.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AwsIamAccessKeyDetails.Builder,AwsIamAccessKeyDetails>
-
builder
public static AwsIamAccessKeyDetails.Builder builder()
-
serializableBuilderClass
public static Class<? extends AwsIamAccessKeyDetails.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-