public static final class CredentialAccessBoundary.AccessBoundaryRule extends Object
The following snippet shows an AccessBoundaryRule that applies to the Cloud Storage bucket bucket-one to set the upper bound of permissions to those defined by the roles/storage.objectViewer role.
AccessBoundaryRule rule = AccessBoundaryRule.newBuilder()
.setAvailableResource("//storage.googleapis.com/projects/_/buckets/bucket-one")
.addAvailablePermission("inRole:roles/storage.objectViewer")
.build();
Modifier and Type | Class and Description |
---|---|
static class |
CredentialAccessBoundary.AccessBoundaryRule.AvailabilityCondition
An optional condition that can be used as part of a
CredentialAccessBoundary.AccessBoundaryRule to further
restrict permissions. |
static class |
CredentialAccessBoundary.AccessBoundaryRule.Builder |
Modifier and Type | Method and Description |
---|---|
CredentialAccessBoundary.AccessBoundaryRule.AvailabilityCondition |
getAvailabilityCondition() |
List<String> |
getAvailablePermissions() |
String |
getAvailableResource() |
static CredentialAccessBoundary.AccessBoundaryRule.Builder |
newBuilder() |
public String getAvailableResource()
@Nullable public CredentialAccessBoundary.AccessBoundaryRule.AvailabilityCondition getAvailabilityCondition()
public static CredentialAccessBoundary.AccessBoundaryRule.Builder newBuilder()
Copyright © 2023 Google. All rights reserved.