Interface IS3OriginProps
Properties to use to customize an S3 Origin.
Inherited Members
Namespace: Amazon.CDK.AWS.CloudFront.Origins
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IS3OriginProps : IOriginProps, IOriginOptions
Syntax (vb)
Public Interface IS3OriginProps
Inherits IOriginProps, IOriginOptions
Remarks
ExampleMetadata: infused
Examples
var myBucket = new Bucket(this, "myBucket");
new Distribution(this, "myDist", new DistributionProps {
DefaultBehavior = new BehaviorOptions { Origin = new S3Origin(myBucket, new S3OriginProps {
CustomHeaders = new Dictionary<string, string> {
{ "Foo", "bar" }
}
}) }
});
Synopsis
Properties
OriginAccessIdentity | An optional Origin Access Identity of the origin identity cloudfront will use when calling your s3 bucket. |
Properties
OriginAccessIdentity
An optional Origin Access Identity of the origin identity cloudfront will use when calling your s3 bucket.
virtual IOriginAccessIdentity OriginAccessIdentity { get; }
Property Value
Remarks
Default: - An Origin Access Identity will be created.