@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.713Z") @Stability(value=Stable) public class AccountRootPrincipal extends AccountPrincipal
Example:
// Example automatically generated from non-compiling source. May contain errors.
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()
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=Stable) public AccountRootPrincipal()
@Stability(value=Stable) @NotNull public String toString()
toString in class AccountPrincipalCopyright © 2022. All rights reserved.