s3Client.getBucketEncryption(bucketName).getServerSideEncryptionConfiguration().getRules()
returns a List<ServerSideEncryptionRule>
. Since there are no option of selection multiple Server Side Encryptions (The console has a radio button to select between various encryption types), why a list of Rules with just element is returned. Would it not have been a better API design to just return a ServerSideEncryptionRule
instead of a list ?
Hey All,
I'm trying to create a signed request to use in the vault-java-driver (https://github.com/BetterCloud/vault-java-driver/blob/fef74b881b9f3620b68759f1b0d297591f80975e/src/main/java/com/bettercloud/vault/api/Auth.java#L838-L917)
What's the correct way to go about creating a signed request and passing along the signed data?
Using the golang SDK you could just create a request objet and then call ..sign
on it. I was hoping there would be something similar in Java.
@DynamoDBTable(tableName = "ignored")
data class PendingOrder(
@DynamoDBHashKey
var PK: String? = null,
@DynamoDBRangeKey
@DynamoDBIndexRangeKey(globalSecondaryIndexName = "pendingOrders")
var createdAt: String? = null,
@DynamoDBIndexHashKey(globalSecondaryIndexName = "pendingOrders")
var pending: Int? = null,
...
)
open fun findPendingOrders(createdAt: String): List<PendingOrder>? {
val expression = DynamoDBQueryExpression<PendingOrder>()
.withConsistentRead(false)
.withIndexName("pendingOrders")
.withKeyConditionExpression("pending = :pending AND createdAt < :createdAt")
.withExpressionAttributeValues(
mapOf(
":pending" to AttributeValue().withN("1"),
":createdAt" to AttributeValue(createdAt)
)
)
return mapper.query(PendingOrder::class.java, expression)
}
PendingOrder; no mapping for HASH key: com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMappingException
com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMappingException: PendingOrder; no mapping for HASH key
@DynamoDBTable(tableName = "ignored")
data class PendingOrder(
@get:DynamoDBHashKey(attributeName = "PK")
var PK: String? = null,
@get:DynamoDBRangeKey
@get:DynamoDBIndexRangeKey(globalSecondaryIndexName = "pendingOrders")
var createdAt: String? = null,
@get:DynamoDBIndexHashKey(globalSecondaryIndexName = "pendingOrders")
var pending: Int? = null,
WebIdentityTokenCredentialsProvider
. I thought I'd try backporting WebIdentityTokenCredentialsProvider
and related classes to the same version that Hadoop depends on and provide a custom build. That might make things work as I need. Does this sound like a reasonable thing to do? :)
How can I know programmatically that used AWS SDK version is compatible with any of the AWS region?
For eg. I am using the aws-java-sdk-cognitoidentity version 1.11.967 and if I want to check that given version supported in eu-west-1 region or not. How can I check?
Hi, I connected owasp plugin to my project and it complaints about these libraries:
[ERROR] aws-java-sdk-lexmodelsv2-1.12.128.jar: CVE-2020-36460
[ERROR] aws-java-sdk-prometheus-1.12.128.jar: CVE-2019-3826
There are 2 questions:
Hello all! I'm currently trying to monitor the namespace AWS/Events via Cloudwatch. I noticed that there seems to be an undocumented dimension called EventBusName when I try to list metrics:
{
"Metrics": [
{
"Namespace": "AWS/Events",
"MetricName": "FailedInvocations",
"Dimensions": [
{
"Name": "EventBusName",
"Value": "test-event-bus"
},
{
"Name": "RuleName",
"Value": "test-rule-custom"
}
]
},
{
"Namespace": "AWS/Events",
"MetricName": "Invocations",
"Dimensions": [
{
"Name": "EventBusName",
"Value": "test-event-bus"
},
{
"Name": "RuleName",
"Value": "test-rule-custom"
}
]
},
{
"Namespace": "AWS/Events",
"MetricName": "TriggeredRules",
"Dimensions": [
{
"Name": "EventBusName",
"Value": "test-event-bus"
},
{
"Name": "RuleName",
"Value": "test-rule-custom"
}
]
}
]
}
The interesting this here is that when the event bus being used is the default event bus, this dimension disappears:
{
"Metrics": [
{
"Namespace": "AWS/Events",
"MetricName": "TriggeredRules",
"Dimensions": [
{
"Name": "RuleName",
"Value": "test-rule-default"
}
]
},
{
"Namespace": "AWS/Events",
"MetricName": "Invocations",
"Dimensions": [
{
"Name": "RuleName",
"Value": "test-rule-default"
}
]
},
{
"Namespace": "AWS/Events",
"MetricName": "FailedInvocations",
"Dimensions": [
{
"Name": "RuleName",
"Value": "test-rule-default"
}
]
}
]
}
Any idea on why this is the case? It looks like a bug, but keen to know if this is expected by any chance. Thanks!
Hi , can you help me with this problem?
javax.net.ssl.SSLProtocolException: Connection reset
i used java sdk for download videos
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk</artifactId>
<version>1.11.920</version>
</dependency>
I don't watch any deprecation message for this version of SDK but today I can't download any video of my s3 bucket :(