IPWorks Cloud 2020 Kotlin Edition

Questions / Feedback?

AccessPolicy Property

The canned access policy to apply to a bucket or object.

Syntax

public var accessPolicy: DigitaloceanAccessPolicies

public enum class DigitaloceanAccessPolicies(val value: Int) {
ptPrivate(0),
ptPublicRead(1),
ptPublicReadWrite(2),
ptAuthenticatedRead(3),
ptBucketOwnerRead(4),
ptBucketOwnerFullControl(5),
ptNone(6);
}

Default Value

0

Remarks

This property specifies the canned access policy that should be applied to a bucket or object when one of the following methods is called:

Valid values are:

ptPrivate (0) (default) Owner gets full control, no one else has access.
ptPublicRead (1) Owner gets full control, everyone else gets read access.
ptPublicReadWrite (2) Owner gets full control, everyone else gets read/write access.
ptAuthenticatedRead (3) Owner gets full control, authenticated users get read access.
ptBucketOwnerRead (4) Only applicable for objects. Object owner gets full control, bucket owner gets read access.
ptBucketOwnerFullControl (5) Only applicable for objects. Both object and bucket owner get full control.
ptNone (6) (Instructs the component to not explicitly set a canned access policy for a bucket or object.)

Copyright (c) 2021 /n software inc. - All rights reserved.
IPWorks Cloud 2020 Kotlin Edition - Version 20.0 [Build 7941]