Interface AwsIamAccessKeyDetails.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AwsIamAccessKeyDetails.Builder,
,AwsIamAccessKeyDetails> SdkBuilder<AwsIamAccessKeyDetails.Builder,
,AwsIamAccessKeyDetails> SdkPojo
- Enclosing class:
AwsIamAccessKeyDetails
-
Method Summary
Modifier and TypeMethodDescriptionaccessKeyId
(String accessKeyId) The identifier of the access key.The Amazon Web Services account ID of the account for the key.Indicates when the IAM access key was created.principalId
(String principalId) The ID of the principal associated with an access key.principalName
(String principalName) The name of the principal.principalType
(String principalType) The type of principal associated with an access key.default AwsIamAccessKeyDetails.Builder
sessionContext
(Consumer<AwsIamAccessKeySessionContext.Builder> sessionContext) Information about the session that the key was used for.sessionContext
(AwsIamAccessKeySessionContext sessionContext) Information about the session that the key was used for.The status of the IAM access key related to a finding.status
(AwsIamAccessKeyStatus status) The status of the IAM access key related to a finding.Deprecated.This filter is deprecated.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
userName
Deprecated.This filter is deprecated. Instead, use PrincipalName.The user associated with the IAM access key related to a finding.
The
UserName
parameter has been replaced with thePrincipalName
parameter because access keys can also be assigned to principals that are not IAM users.- Parameters:
userName
- The user associated with the IAM access key related to a finding.The
UserName
parameter has been replaced with thePrincipalName
parameter because access keys can also be assigned to principals that are not IAM users.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The status of the IAM access key related to a finding.
- Parameters:
status
- The status of the IAM access key related to a finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status of the IAM access key related to a finding.
- Parameters:
status
- The status of the IAM access key related to a finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
createdAt
Indicates when the IAM access key was created.
This field accepts only the specified formats. Timestamps can end with
Z
or("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:-
YYYY-MM-DDTHH:MM:SSZ
(for example,2019-01-31T23:00:00Z
) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example,2019-01-31T23:00:00.123456789Z
) -
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example,2024-01-04T15:25:10+17:59
) -
YYYY-MM-DDTHH:MM:SS-HHMM
(for example,2024-01-04T15:25:10-1759
) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example,2024-01-04T15:25:10.123456789+17:59
)
- Parameters:
createdAt
- Indicates when the IAM access key was created.This field accepts only the specified formats. Timestamps can end with
Z
or("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:-
YYYY-MM-DDTHH:MM:SSZ
(for example,2019-01-31T23:00:00Z
) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example,2019-01-31T23:00:00.123456789Z
) -
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example,2024-01-04T15:25:10+17:59
) -
YYYY-MM-DDTHH:MM:SS-HHMM
(for example,2024-01-04T15:25:10-1759
) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example,2024-01-04T15:25:10.123456789+17:59
)
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
principalId
The ID of the principal associated with an access key.
- Parameters:
principalId
- The ID of the principal associated with an access key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
principalType
The type of principal associated with an access key.
- Parameters:
principalType
- The type of principal associated with an access key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
principalName
The name of the principal.
- Parameters:
principalName
- The name of the principal.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accountId
The Amazon Web Services account ID of the account for the key.
- Parameters:
accountId
- The Amazon Web Services account ID of the account for the key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessKeyId
The identifier of the access key.
- Parameters:
accessKeyId
- The identifier of the access key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionContext
Information about the session that the key was used for.
- Parameters:
sessionContext
- Information about the session that the key was used for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionContext
default AwsIamAccessKeyDetails.Builder sessionContext(Consumer<AwsIamAccessKeySessionContext.Builder> sessionContext) Information about the session that the key was used for.
This is a convenience method that creates an instance of theAwsIamAccessKeySessionContext.Builder
avoiding the need to create one manually viaAwsIamAccessKeySessionContext.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosessionContext(AwsIamAccessKeySessionContext)
.- Parameters:
sessionContext
- a consumer that will call methods onAwsIamAccessKeySessionContext.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-