@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-07T23:47:08.049Z") @Stability(value=Experimental) public class AccountRootPrincipal extends AccountPrincipal
Example:
Bucket bucket = new Bucket(this, "MyBucket");
AddToResourcePolicyResult result = bucket.addToResourcePolicy(PolicyStatement.Builder.create()
.actions(List.of("s3:GetObject"))
.resources(List.of(bucket.arnForObjects("file.txt")))
.principals(List.of(new AccountRootPrincipal()))
.build());
software.amazon.jsii.JsiiObject.InitializationModeIAssumeRolePrincipal.Jsii$DefaultIComparablePrincipal.Jsii$Default| Modifier | Constructor and Description |
|---|---|
|
AccountRootPrincipal() |
protected |
AccountRootPrincipal(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
AccountRootPrincipal(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
toString()
(experimental) Returns a string representation of an object.
|
getAccountId, getPrincipalAccountdedupeString, getArn, getPolicyFragment, inOrganizationaddToAssumeRolePolicy, addToPolicy, addToPrincipalPolicy, getAssumeRoleAction, getGrantPrincipal, toJSON, withConditions, withSessionTagsprotected AccountRootPrincipal(software.amazon.jsii.JsiiObjectRef objRef)
protected AccountRootPrincipal(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental) public AccountRootPrincipal()
@Stability(value=Experimental) @NotNull public String toString()
toString in class AccountPrincipalCopyright © 2022. All rights reserved.