@Generated(value="jsii-pacmak/1.66.0 (build 3c9512b)", date="2022-08-31T19:38:33.155Z") @Stability(value=Experimental) public enum SharePermission extends Enum<SharePermission>
Example:
import software.amazon.awscdk.services.iam.*;
Application application;
application.shareApplication(ShareOptions.builder()
.accounts(List.of("123456789012", "234567890123"))
.sharePermission(SharePermission.ALLOW_ACCESS)
.build());
| Enum Constant and Description |
|---|
ALLOW_ACCESS
(experimental) Allows principals in the share to associate resources and attribute groups with applications.
|
READ_ONLY
(experimental) Allows principals in the share to only view the application or attribute group.
|
| Modifier and Type | Method and Description |
|---|---|
static SharePermission |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SharePermission[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Experimental) public static final SharePermission READ_ONLY
@Stability(value=Experimental) public static final SharePermission ALLOW_ACCESS
public static SharePermission[] values()
for (SharePermission c : SharePermission.values()) System.out.println(c);
public static SharePermission valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.