Class CredentialAccessBoundary.AccessBoundaryRule (1.18.0)

public static final class CredentialAccessBoundary.AccessBoundaryRule

Defines an upper bound of permissions on a particular resource.

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();
 

Inheritance

java.lang.Object > CredentialAccessBoundary.AccessBoundaryRule

Static Methods

newBuilder()

public static CredentialAccessBoundary.AccessBoundaryRule.Builder newBuilder()
Returns
TypeDescription
CredentialAccessBoundary.AccessBoundaryRule.Builder

Methods

getAvailabilityCondition()

public CredentialAccessBoundary.AccessBoundaryRule.AvailabilityCondition getAvailabilityCondition()
Returns
TypeDescription
CredentialAccessBoundary.AccessBoundaryRule.AvailabilityCondition

getAvailablePermissions()

public List<String> getAvailablePermissions()
Returns
TypeDescription
List<String>

getAvailableResource()

public String getAvailableResource()
Returns
TypeDescription
String