Class CreateServiceSpecificCredentialRequest
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<CreateServiceSpecificCredentialRequest.Builder,CreateServiceSpecificCredentialRequest>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final IntegerThe number of days until the service specific credential expires.final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()static Class<? extends CreateServiceSpecificCredentialRequest.Builder>final StringThe name of the Amazon Web Services service that is to be associated with the credentials.final StringtoString()Returns a string representation of this object.final StringuserName()The name of the IAM user that is to be associated with the credentials.Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfigurationMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
userName
The name of the IAM user that is to be associated with the credentials. The new service-specific credentials have the same permissions as the associated user except that they can be used only to access the specified service.
This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
- Returns:
- The name of the IAM user that is to be associated with the credentials. The new service-specific
credentials have the same permissions as the associated user except that they can be used only to access
the specified service.
This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
-
serviceName
The name of the Amazon Web Services service that is to be associated with the credentials. The service you specify here is the only service that can be accessed using these credentials.
- Returns:
- The name of the Amazon Web Services service that is to be associated with the credentials. The service you specify here is the only service that can be accessed using these credentials.
-
credentialAgeDays
The number of days until the service specific credential expires. This field is only valid for Bedrock and CloudWatch Logs API keys and must be a positive integer. When not specified, the credential will not expire.
- Returns:
- The number of days until the service specific credential expires. This field is only valid for Bedrock and CloudWatch Logs API keys and must be a positive integer. When not specified, the credential will not expire.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<CreateServiceSpecificCredentialRequest.Builder,CreateServiceSpecificCredentialRequest> - Specified by:
toBuilderin classIamRequest
-
builder
-
serializableBuilderClass
public static Class<? extends CreateServiceSpecificCredentialRequest.Builder> serializableBuilderClass() -
hashCode
public final int hashCode()- Overrides:
hashCodein classAwsRequest
-
equals
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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. -
getValueForField
- Overrides:
getValueForFieldin classSdkRequest
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-