Class AwsCredsAuthenticationDetailsProperties
java.lang.Object
com.azure.resourcemanager.security.models.AuthenticationDetailsProperties
com.azure.resourcemanager.security.models.AwsCredsAuthenticationDetailsProperties
AWS cloud account connector based credentials, the credentials is composed of access key ID and secret key, for more
details, refer to <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_users_create.html">Creating an
IAM User in Your AWS Account (write only)</a>.
-
Constructor Summary
ConstructorDescriptionCreates an instance of AwsCredsAuthenticationDetailsProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the accountId property: The ID of the cloud account.Get the awsAccessKeyId property: Public key element of the AWS credential object (write only).Get the awsSecretAccessKey property: Secret key element of the AWS credential object (write only).void
validate()
Validates the instance.withAwsAccessKeyId
(String awsAccessKeyId) Set the awsAccessKeyId property: Public key element of the AWS credential object (write only).withAwsSecretAccessKey
(String awsSecretAccessKey) Set the awsSecretAccessKey property: Secret key element of the AWS credential object (write only).Methods inherited from class com.azure.resourcemanager.security.models.AuthenticationDetailsProperties
authenticationProvisioningState, grantedPermissions
-
Constructor Details
-
AwsCredsAuthenticationDetailsProperties
public AwsCredsAuthenticationDetailsProperties()Creates an instance of AwsCredsAuthenticationDetailsProperties class.
-
-
Method Details
-
accountId
Get the accountId property: The ID of the cloud account.- Returns:
- the accountId value.
-
awsAccessKeyId
Get the awsAccessKeyId property: Public key element of the AWS credential object (write only).- Returns:
- the awsAccessKeyId value.
-
withAwsAccessKeyId
Set the awsAccessKeyId property: Public key element of the AWS credential object (write only).- Parameters:
awsAccessKeyId
- the awsAccessKeyId value to set.- Returns:
- the AwsCredsAuthenticationDetailsProperties object itself.
-
awsSecretAccessKey
Get the awsSecretAccessKey property: Secret key element of the AWS credential object (write only).- Returns:
- the awsSecretAccessKey value.
-
withAwsSecretAccessKey
Set the awsSecretAccessKey property: Secret key element of the AWS credential object (write only).- Parameters:
awsSecretAccessKey
- the awsSecretAccessKey value to set.- Returns:
- the AwsCredsAuthenticationDetailsProperties object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classAuthenticationDetailsProperties
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-