Skip to content

Can't specify actions GetLifecycleConfiguration and PutLifecycleConfiguration in method setBucketPolicy. #831

@MikhailCrimea

Description

@MikhailCrimea

Hello everybody.
I'm looking at policy permissions page here https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html.
I'm already successfully pass some of permissions (PutObject, GetObject, GetBucketPolicy, PutBucketPolicy) from that page to method setBucketPolicy, but still can't pass GetLifecycleConfiguration and PutLifecycleConfiguration.
I see that object and bucket permissions needs to be declared in separate sections.
I'm getting exception "ErrorResponse(code=MalformedPolicy, message=Policy has invalid resource."
Are they implemented for java?
If they are not, where can I get supported "enumerations" and how can I manage permissions for bucket lifecycle operations?

Here is my json I try to apply: json.zip

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions