Show / Hide Table of Contents

Class CfnBucket.AccessRulesProperty

AccessRules is a property of the AWS::Lightsail::Bucket resource. It describes access rules for a bucket.

Inheritance
object
CfnBucket.AccessRulesProperty
Implements
CfnBucket.IAccessRulesProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.Lightsail
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnBucket.AccessRulesProperty : CfnBucket.IAccessRulesProperty
Syntax (vb)
Public Class CfnBucket.AccessRulesProperty Implements CfnBucket.IAccessRulesProperty
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lightsail-bucket-accessrules.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.Lightsail;

             var accessRulesProperty = new AccessRulesProperty {
                 AllowPublicOverrides = false,
                 ObjectAccess = "objectAccess"
             };

Synopsis

Constructors

AccessRulesProperty()

AccessRules is a property of the AWS::Lightsail::Bucket resource. It describes access rules for a bucket.

Properties

AllowPublicOverrides

A Boolean value indicating whether the access control list (ACL) permissions that are applied to individual objects override the GetObject option that is currently specified.

ObjectAccess

Specifies the anonymous access to all objects in a bucket.

Constructors

AccessRulesProperty()

AccessRules is a property of the AWS::Lightsail::Bucket resource. It describes access rules for a bucket.

public AccessRulesProperty()
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lightsail-bucket-accessrules.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.Lightsail;

             var accessRulesProperty = new AccessRulesProperty {
                 AllowPublicOverrides = false,
                 ObjectAccess = "objectAccess"
             };

Properties

AllowPublicOverrides

A Boolean value indicating whether the access control list (ACL) permissions that are applied to individual objects override the GetObject option that is currently specified.

public object? AllowPublicOverrides { get; set; }
Property Value

object

Remarks

When this is true, you can use the PutObjectAcl Amazon S3 API operation to set individual objects to public (read-only) or private, using either the public-read ACL or the private ACL.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lightsail-bucket-accessrules.html#cfn-lightsail-bucket-accessrules-allowpublicoverrides

ObjectAccess

Specifies the anonymous access to all objects in a bucket.

public string? ObjectAccess { get; set; }
Property Value

string

Remarks

The following options can be specified:

    If the GetObject value is set to public , then all objects in the bucket default to public regardless of the allowPublicOverrides value.

      If the GetObject value is set to private , and the allowPublicOverrides value is set to true , then all objects in the bucket default to private unless they are configured with a public-read ACL. Individual objects with a public-read ACL are readable by everyone on the internet.

      See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lightsail-bucket-accessrules.html#cfn-lightsail-bucket-accessrules-getobject

      Implements

      CfnBucket.IAccessRulesProperty
      Back to top Generated by DocFX