Avatar of Marthaj
Marthaj
Flag for United States of America asked on

AWS examples for Java/Javascript

This is going to sound really stupid - so be it - but with the AWS examples - I see a lot of this coding - Can someone explain to me - basically - what the code is describing ??
I think I know, its giving substance/value to "Version", "Statement" etc but when I try this in Java, especially when compiling it in a package it does not fly. And I found this example in AWS SDK examples for Javascript/Java.
Could someone clear the air for me ?? And yes, I feel pretty stupid.
thank you.

{
  "Version":"2012-10-17",
  "Statement":[
    {
      "Sid":"PublicRead",
      "Effect":"Allow",
      "Principal": "*",
      "Action":["s3:GetObject"],
      "Resource":["arn:aws:s3:::examplebucket/*"]
    }
  ]
}

Open in new window

JavaAWSJavaScript

Avatar of undefined
Last Comment
CEHJ

8/22/2022 - Mon
Phil Phillips

That's an IAM policy (see: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html).  You normally attach to those an IAM role/group (can be done in the AWS console). Basically, it's a way of defining access to AWS resources. Another resource to check out is the AWS IAM policy generator: https://awspolicygen.s3.amazonaws.com/policygen.html
ASKER CERTIFIED SOLUTION
CEHJ

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Marthaj

ASKER
well smack myself on the forehead.....then smack myself on the back of the head too ! Thank you both !!
Really clears the air...
Marthaj

ASKER
Thank you both so very much...
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
CEHJ

:)