Class VirtualHostedStyleUrlOptions
Options for creating Virtual-Hosted style URL.
Inheritance
System.Object
VirtualHostedStyleUrlOptions
Implements
Namespace: Amazon.CDK.AWS.S3
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class VirtualHostedStyleUrlOptions : Object, IVirtualHostedStyleUrlOptions
Syntax (vb)
Public Class VirtualHostedStyleUrlOptions
Inherits Object
Implements IVirtualHostedStyleUrlOptions
Remarks
ExampleMetadata: infused
Examples
var bucket = new Bucket(this, "MyBucket");
bucket.UrlForObject("objectname"); // Path-Style URL
bucket.VirtualHostedUrlForObject("objectname"); // Virtual Hosted-Style URL
bucket.VirtualHostedUrlForObject("objectname", new VirtualHostedStyleUrlOptions { Regional = false });
Synopsis
Constructors
VirtualHostedStyleUrlOptions() |
Properties
Regional | Specifies the URL includes the region. |
Constructors
VirtualHostedStyleUrlOptions()
public VirtualHostedStyleUrlOptions()
Properties
Regional
Specifies the URL includes the region.
public Nullable<bool> Regional { get; set; }
Property Value
System.Nullable<System.Boolean>
Remarks
Default: - true