Interface IGroup.Jsii$Default
- All Superinterfaces:
IConstruct,software.constructs.IConstruct,IConstruct.Jsii$Default,software.constructs.IConstruct.Jsii$Default,IDependable,IDependable.Jsii$Default,IGrantable,IGrantable.Jsii$Default,IGroup,IIdentity,IIdentity.Jsii$Default,IPrincipal,IPrincipal.Jsii$Default,IResource,IResource.Jsii$Default,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
IGroup.Jsii$Proxy
- Enclosing interface:
- IGroup
IGroup.-
Nested Class Summary
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default, IConstruct.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.core.IDependable
IDependable.Jsii$Default, IDependable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.iam.IGrantable
IGrantable.Jsii$Default, IGrantable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.iam.IGroup
IGroup.Jsii$Default, IGroup.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.iam.IIdentity
IIdentity.Jsii$Default, IIdentity.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.iam.IPrincipal
IPrincipal.Jsii$Default, IPrincipal.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.core.IResource
IResource.Jsii$Default, IResource.Jsii$Proxy -
Method Summary
Modifier and TypeMethodDescriptiondefault voidaddManagedPolicy(IManagedPolicy policy) Attaches a managed policy to this principal.default BooleanaddToPolicy(PolicyStatement statement) Deprecated.default AddToPrincipalPolicyResultaddToPrincipalPolicy(PolicyStatement statement) Add to the policy of this principal.default voidapplyRemovalPolicy(RemovalPolicy policy) Apply the given removal policy to this resource.default voidattachInlinePolicy(Policy policy) Attaches an inline policy to this principal.default StringWhen this Principal is used in an AssumeRole policy, the action to use.default ResourceEnvironmentgetEnv()The environment this resource belongs to.default IPrincipalThe principal to grant permissions to.default StringReturns the IAM Group ARN.default StringReturns the IAM Group Name.default ConstructNodegetNode()The construct tree node for this construct.default PrincipalPolicyFragmentReturn the policy fragment that identifies this principal in a Policy.default StringThe AWS account ID of this principal.default StackgetStack()The stack in which this resource is defined.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getGrantPrincipal
The principal to grant permissions to.- Specified by:
getGrantPrincipalin interfaceIGrantable- Specified by:
getGrantPrincipalin interfaceIGrantable.Jsii$Default- Specified by:
getGrantPrincipalin interfaceIIdentity.Jsii$Default- Specified by:
getGrantPrincipalin interfaceIPrincipal.Jsii$Default
-
getAssumeRoleAction
When this Principal is used in an AssumeRole policy, the action to use.- Specified by:
getAssumeRoleActionin interfaceIIdentity.Jsii$Default- Specified by:
getAssumeRoleActionin interfaceIPrincipal- Specified by:
getAssumeRoleActionin interfaceIPrincipal.Jsii$Default
-
getPolicyFragment
Return the policy fragment that identifies this principal in a Policy.- Specified by:
getPolicyFragmentin interfaceIIdentity.Jsii$Default- Specified by:
getPolicyFragmentin interfaceIPrincipal- Specified by:
getPolicyFragmentin interfaceIPrincipal.Jsii$Default
-
getPrincipalAccount
The AWS account ID of this principal.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.
- Specified by:
getPrincipalAccountin interfaceIIdentity.Jsii$Default- Specified by:
getPrincipalAccountin interfaceIPrincipal- Specified by:
getPrincipalAccountin interfaceIPrincipal.Jsii$Default
-
getNode
The construct tree node for this construct.- Specified by:
getNodein interfaceIConstruct- Specified by:
getNodein interfaceIConstruct.Jsii$Default- Specified by:
getNodein interfaceIIdentity.Jsii$Default- Specified by:
getNodein interfaceIResource.Jsii$Default
-
getEnv
The environment this resource belongs to.For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
- Specified by:
getEnvin interfaceIIdentity.Jsii$Default- Specified by:
getEnvin interfaceIResource- Specified by:
getEnvin interfaceIResource.Jsii$Default
-
getStack
The stack in which this resource is defined.- Specified by:
getStackin interfaceIIdentity.Jsii$Default- Specified by:
getStackin interfaceIResource- Specified by:
getStackin interfaceIResource.Jsii$Default
-
getGroupArn
Returns the IAM Group ARN.- Specified by:
getGroupArnin interfaceIGroup
-
getGroupName
Returns the IAM Group Name.- Specified by:
getGroupNamein interfaceIGroup
-
addToPolicy
@Stability(Deprecated) @Deprecated @NotNull default Boolean addToPolicy(@NotNull PolicyStatement statement) Deprecated.UseaddToPrincipalPolicyinstead.(deprecated) Add to the policy of this principal.- Specified by:
addToPolicyin interfaceIIdentity.Jsii$Default- Specified by:
addToPolicyin interfaceIPrincipal- Specified by:
addToPolicyin interfaceIPrincipal.Jsii$Default- Parameters:
statement- This parameter is required.- Returns:
- true if the statement was added, false if the principal in question does not have a policy document to add the statement to.
-
addToPrincipalPolicy
@Stability(Stable) @NotNull default AddToPrincipalPolicyResult addToPrincipalPolicy(@NotNull PolicyStatement statement) Add to the policy of this principal.- Specified by:
addToPrincipalPolicyin interfaceIIdentity.Jsii$Default- Specified by:
addToPrincipalPolicyin interfaceIPrincipal- Specified by:
addToPrincipalPolicyin interfaceIPrincipal.Jsii$Default- Parameters:
statement- This parameter is required.
-
applyRemovalPolicy
Apply the given removal policy to this resource.The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (
RemovalPolicy.DESTROY), or left in your AWS account for data recovery and cleanup later (RemovalPolicy.RETAIN).- Specified by:
applyRemovalPolicyin interfaceIIdentity.Jsii$Default- Specified by:
applyRemovalPolicyin interfaceIResource- Specified by:
applyRemovalPolicyin interfaceIResource.Jsii$Default- Parameters:
policy- This parameter is required.
-
addManagedPolicy
Attaches a managed policy to this principal.- Specified by:
addManagedPolicyin interfaceIIdentity- Specified by:
addManagedPolicyin interfaceIIdentity.Jsii$Default- Parameters:
policy- The managed policy. This parameter is required.
-
attachInlinePolicy
Attaches an inline policy to this principal.This is the same as calling
policy.addToXxx(principal).- Specified by:
attachInlinePolicyin interfaceIIdentity- Specified by:
attachInlinePolicyin interfaceIIdentity.Jsii$Default- Parameters:
policy- The policy resource to attach to this principal [disable-awslint:ref-via-interface]. This parameter is required.
-
addToPrincipalPolicyinstead.