`GlueSchemaRegistryDeserializerDataParser` replacement in aws-sdk-java-v2 - amazon-web-services

We're using the GlueSchemaRegistryDeserializerDataParser class from https://github.com/awslabs/aws-glue-schema-registry.
This seems to be from the v1 of the AWS SDK (or am I wrong?)
Is there a replacement in aws-sdk-java-v2?

Related

How do you define/substitute $.variable_values in a CloudFormation template for a StepFunctions StateMachine?

I've created a step-function involving 2 lambdas and a choice already, and I'd basically like to create a CloudFormation resource referencing that, or a CloudFormation resource that I can just paste in the definition of my existing step function. I've been searching and found that you seemingly can just paste in the definition of your step function for the DefinitionString property; the problem with that is I use a lot of substitutions/"$" in my definition. I see that some examples are replacing their "$" values with curly braces, but I was wondering if that's required?
Here's one example:
"ResultSelector":{"start_date.$":"$.Payload.body.payload[0]","end_date.$":"$.Payload.body.payload.[1]"
Would I have to replace even the Keys with curly braces? Also, would I have to get rid of the prefixing "." before the rest of the value? I guess I'm basically asking for an example of how I'd properly replace this code snippet for a YAML template

Can I change the regex on NagVis and if yes, how can I do this?

I have a problem with Nagvis. There I created several maps with the locations of hosts and used the service lines to display the bandwidth and utilization of individual interfaces. It all worked well until we eventually switched to CheckMK 2.0. We have renamed the interfaces and theoretically it would not be a problem to simply transfer the new names to NagVis.
However, the regex error mentioned below occurs. I also checked the new label with the regex using regex101 and found that the label has changed. It is structured according to the pattern: 'Interface_Name "Interface description"'. Nagvis's regex doesn't allow quotes, and thus neither does the name of the interface.
I'm relatively new to this and haven't had much to do with it before. One solution would be to escape the quotation marks, but I don't know where to do that. If you have any suggestions for a solution, I would be very grateful.
If you have any questions, just ask.
CMK version: 2.0.0p26
OS version: Windows 10
Error message: The attribute has the wrong format (Regex: /^[0-9a-zа-яё\p{L}\s:+_.,'-*?!##=/]+ $/u).

Kafka transforms ignoring regex

I'm trying to use kafka transforms.RemoveString to modify the name of my topic before passing it into my connector. My topic name looks like this
foo.bar_1.baz
I want to extract bar_1 and pass that in as the topic name. From what I can tell my regex is correct but the kafka transform doesn't seem to like it -
transforms=ReplaceField,RenameField,RemoveString
transforms.RemoveString.type=org.apache.kafka.connect.transforms.RegexRouter
transforms.RemoveString.regex=(\w*.)(\w*\d+)(.*)
transforms.RemoveString.replacement=$2
I can tell the RemoveString is being used as when I change the regex to the following I get my desired results but this is rather restrictive for my use case -
transforms.RemoveString.regex=(foo.)(.*)(.baz)
transforms.RemoveString.replacement=$2
Is there some sort of limitation to the regex usage within Kafka transforms?
Found the issue, backslashes had to be escaped, with my improved regex it now looks like this -
(\\w*)\\.(\\w+)\\.(.*)
You have typo in RegexRouter, You missed the R
transforms=ReplaceField,RenameField,RemoveString
transforms.RemoveString.type=org.apache.kafka.connect.transforms.RegexRouter
transforms.RemoveString.regex=(\w*.)(\w*\d+)(.*)
transforms.RemoveString.replacement=$2

Querying string with apostrophe in Cloud Search

I have string 'Vick's' that I need to pass to the cloud search using the API. But when I passing it to the API it throws an error. When I am using 'Vick's' instead of Vick's as a search string it is not giving exact result. The search for on the other hand 'Vick%27s' is working fine.
When I am in the Amazon and doing some searches there, they turn out fine for "Vick's" and "Vick\'s". I am using Amazing Cloud Search wrapper, which written in C#.
My question is: How to querying string with apostrophe in cloud search?
You'll need to prepend your ' with a slash (\'). And if you're using Java, and you're doing replaceAll, you'll need to do something along the lines of .replaceAll("'", "\\'") (4 slashes - even though only 2 appear here!).
Hope it helps!

Amazon S3 Lifecycle rules Prefix to move files to Glacier with certain naming convention

I am using Duplicati to store backup of important documents on Glacier, however the problem is with Lifecycle Rule Prefix. Duplicati guide says use prefix duplicati-b* to move dblock files to Glacier. Basically it asks to move all files beginning with duplicati-b, its been two days but the rule is not working :(
Is the wildcard '*' all right ? Is there any guide for all prefix types ? I'm only getting simple prefixes that are meant for subfolders. Any help ?
http://i.stack.imgur.com/A5ncv.png
http://i.stack.imgur.com/dQnQf.png
I just used duplicati-b and the files moved over. :) It seems the prefix works as it is. No wildcard required.
I would say the Duplicati docs are wrong, unless the object names actually include a literal * in them. The prefix is a prefix ... not a wildcard string.
/path/to/wherever/in/bucket/is/duplicati-b
...would be a prefix matching .../duplicati-b{anything or nothing at end of the key name}
http://docs.aws.amazon.com/AmazonS3/latest/UG/lifecycle-configuration-bucket-no-versioning.html
If that's actually the root of something that looks like a folder, you could append a trailing / to the prefix.