Skip to content

Latest commit

 

History

History
60 lines (39 loc) · 1.22 KB

collections.rst

File metadata and controls

60 lines (39 loc) · 1.22 KB

Collections

IAM Floyd provides commonly used statement collections. These can be called via:

ts

new statement.Collection().nameOfTheCollection();

js

new statement.Collection().nameOfTheCollection();

py

statement.Collection().name_of_the_collection()

Collections return a list of statements, which then can be used in a policy like this:

ts

const policy = {

Version: '2012-10-17', Statement: [ ...new statement.Collection().nameOfTheCollection(), ],

}

js

const policy = {

Version: '2012-10-17', Statement: [ ...new statement.Collection().nameOfTheCollection(), ],

}

py

statements = statement.Collection().name_of_the_collection()

policy = {

"Version": "2012-10-17", "Statement": list(map(lambda x: x.to_json(), statements)),

}

Available collections

allowEc2InstanceDeleteByOwner

Allows stopping EC2 instance only for the user who started them.