public interface RoleApi
RoleAsyncApi
Modifier and Type | Method and Description |
---|---|
Role |
createWithPolicy(String name,
String assumeRolePolicy)
Creates a new role for your AWS account
|
Role |
createWithPolicyAndPath(String name,
String assumeRolePolicy,
String path)
like
createWithPolicy(String, String) , except you can specify a path. |
void |
delete(String name)
Deletes the specified role.
|
Role |
get(String name)
Retrieves information about the specified role, including the role's path, GUID, and ARN.
|
PagedIterable<Role> |
list()
returns all roles in order.
|
IterableWithMarker<Role> |
listAt(String marker)
retrieves up to 100 roles in order, starting at
marker |
IterableWithMarker<Role> |
listFirstPage()
retrieves up to 100 roles in order.
|
IterableWithMarker<InstanceProfile> |
listFirstPageOfInstanceProfiles(String name)
retrieves up to 100 instance profiles in order for this role.
|
PagedIterable<InstanceProfile> |
listInstanceProfiles(String name)
returns all instance profiles in order for this role.
|
IterableWithMarker<InstanceProfile> |
listInstanceProfilesAt(String name,
String marker)
retrieves up to 100 instance profiles in order for this role, starting at
marker |
PagedIterable<Role> |
listPathPrefix(String pathPrefix)
returns all roles in order at the specified
pathPrefix . |
IterableWithMarker<Role> |
listPathPrefixAt(String pathPrefix,
String marker)
retrieves up to 100 roles in order at the specified
pathPrefix , starting at marker . |
IterableWithMarker<Role> |
listPathPrefixFirstPage(String pathPrefix)
retrieves up to 100 roles in order at the specified
pathPrefix . |
Role createWithPolicy(String name, String assumeRolePolicy)
name
- Name of the role to create.assumeRolePolicy
- The policy that grants an entity permission to assume the role.}Role createWithPolicyAndPath(String name, String assumeRolePolicy, String path)
createWithPolicy(String, String)
, except you can specify a path.PagedIterable<Role> list()
IterableWithMarker<Role> listFirstPage()
IterableWithMarker<Role> listAt(String marker)
marker
marker
- starting point to resume the listPagedIterable<Role> listPathPrefix(String pathPrefix)
pathPrefix
.pathPrefix
- ex. /division_abc/subdivision_xyz/
IterableWithMarker<Role> listPathPrefixFirstPage(String pathPrefix)
pathPrefix
.pathPrefix
- ex. /division_abc/subdivision_xyz/
IterableWithMarker<Role> listPathPrefixAt(String pathPrefix, String marker)
pathPrefix
, starting at marker
.pathPrefix
- ex. /division_abc/subdivision_xyz/
marker
- starting point to resume the list@Nullable Role get(String name)
name
- Name of the role to get information about.PagedIterable<InstanceProfile> listInstanceProfiles(String name)
name
- Name of the role to get instance profiles for.IterableWithMarker<InstanceProfile> listFirstPageOfInstanceProfiles(String name)
name
- Name of the role to get instance profiles for.IterableWithMarker<InstanceProfile> listInstanceProfilesAt(String name, String marker)
marker
name
- Name of the role to get instance profiles for.marker
- starting point to resume the listvoid delete(String name)
name
- Name of the role to deleteCopyright © 2009-2013 jclouds. All Rights Reserved.