@Generated(value="jsii-pacmak/1.29.0 (build 41df200)", date="2021-06-02T09:55:31.403Z") @Stability(value=Experimental) public class Group extends Resource implements IGroup
https://docs.aws.amazon.com/IAM/latest/UserGuide/id_groups.html| Modifier and Type | Class and Description |
|---|---|
static class |
Group.Builder
(experimental) A fluent builder for
Group. |
software.amazon.jsii.JsiiObject.InitializationModeIGroup.Jsii$Default, IGroup.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
Group(software.constructs.Construct scope,
String id) |
|
Group(software.constructs.Construct scope,
String id,
GroupProps props) |
protected |
Group(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Group(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
void |
addManagedPolicy(IManagedPolicy policy)
(experimental) Attaches a managed policy to this group.
|
Boolean |
addToPolicy(PolicyStatement statement)
(experimental) Add to the policy of this principal.
|
AddToPrincipalPolicyResult |
addToPrincipalPolicy(PolicyStatement statement)
(experimental) Adds an IAM statement to the default policy.
|
void |
addUser(IUser user)
(experimental) Adds a user to this group.
|
void |
attachInlinePolicy(Policy policy)
(experimental) Attaches a policy to this group.
|
static IGroup |
fromGroupArn(software.constructs.Construct scope,
String id,
String groupArn)
(experimental) Import an external group by ARN.
|
String |
getAssumeRoleAction()
(experimental) When this Principal is used in an AssumeRole policy, the action to use.
|
IPrincipal |
getGrantPrincipal()
(experimental) The principal to grant permissions to.
|
String |
getGroupArn()
(experimental) Returns the IAM Group ARN.
|
String |
getGroupName()
(experimental) Returns the IAM Group Name.
|
PrincipalPolicyFragment |
getPolicyFragment()
(experimental) Return the policy fragment that identifies this principal in a Policy.
|
String |
getPrincipalAccount()
(experimental) The AWS account ID of this principal.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Group(software.amazon.jsii.JsiiObjectRef objRef)
protected Group(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public Group(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
GroupProps props)
scope - This parameter is required.id - This parameter is required.props - @Stability(value=Experimental)
public Group(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - This parameter is required.id - This parameter is required.@Stability(value=Experimental) @NotNull public static IGroup fromGroupArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String groupArn)
If the imported Group ARN is a Token (such as a
CfnParameter.valueAsString or a Fn.importValue()) and the referenced
group has a path (like arn:...:group/AdminGroup/NetworkAdmin), the
groupName property will not resolve to the correct value. Instead it
will resolve to the first path component. We unfortunately cannot express
the correct calculation of the full path name as a CloudFormation
expression. In this scenario the Group ARN should be supplied without the
path in order to resolve the correct group resource.
scope - construct scope. This parameter is required.id - construct id. This parameter is required.groupArn - the ARN of the group to import (e.g. `arn:aws:iam::account-id:group/group-name`). This parameter is required.@Stability(value=Experimental)
public void addManagedPolicy(@NotNull
IManagedPolicy policy)
addManagedPolicy in interface IIdentitypolicy - The managed policy to attach. This parameter is required.@Stability(value=Experimental) @NotNull public Boolean addToPolicy(@NotNull PolicyStatement statement)
statement - This parameter is required.@Stability(value=Experimental) @NotNull public AddToPrincipalPolicyResult addToPrincipalPolicy(@NotNull PolicyStatement statement)
addToPrincipalPolicy in interface IPrincipalstatement - This parameter is required.@Stability(value=Experimental)
public void addUser(@NotNull
IUser user)
user - This parameter is required.@Stability(value=Experimental)
public void attachInlinePolicy(@NotNull
Policy policy)
attachInlinePolicy in interface IIdentitypolicy - The policy to attach. This parameter is required.@Stability(value=Experimental) @NotNull public String getAssumeRoleAction()
getAssumeRoleAction in interface IPrincipal@Stability(value=Experimental) @NotNull public IPrincipal getGrantPrincipal()
getGrantPrincipal in interface IGrantable@Stability(value=Experimental) @NotNull public String getGroupArn()
getGroupArn in interface IGroup@Stability(value=Experimental) @NotNull public String getGroupName()
getGroupName in interface IGroup@Stability(value=Experimental) @NotNull public PrincipalPolicyFragment getPolicyFragment()
getPolicyFragment in interface IPrincipal@Stability(value=Experimental) @Nullable public String getPrincipalAccount()
Can be undefined when the account is not known (for example, for service principals). Can be a Token - in that case, it's assumed to be AWS::AccountId.
getPrincipalAccount in interface IPrincipalCopyright © 2021. All rights reserved.