Class HttpOrigin
An Origin for an HTTP server or S3 bucket configured for website hosting.
Implements
Namespace: Amazon.CDK.AWS.CloudFront.Origins
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class HttpOrigin : OriginBase, IOrigin
Syntax (vb)
Public Class HttpOrigin
Inherits OriginBase
Implements IOrigin
Remarks
ExampleMetadata: infused
Examples
// Validating signed URLs or signed cookies with Trusted Key Groups
// public key in PEM format
string publicKey;
var pubKey = new PublicKey(this, "MyPubKey", new PublicKeyProps {
EncodedKey = publicKey
});
var keyGroup = new KeyGroup(this, "MyKeyGroup", new KeyGroupProps {
Items = new [] { pubKey }
});
new Distribution(this, "Dist", new DistributionProps {
DefaultBehavior = new BehaviorOptions {
Origin = new HttpOrigin("www.example.com"),
TrustedKeyGroups = new [] { keyGroup }
}
});
Synopsis
Constructors
HttpOrigin(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
HttpOrigin(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
HttpOrigin(String, IHttpOriginProps) |
Methods
RenderCustomOriginConfig() |
Constructors
HttpOrigin(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected HttpOrigin(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
HttpOrigin(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected HttpOrigin(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
HttpOrigin(String, IHttpOriginProps)
public HttpOrigin(string domainName, IHttpOriginProps props = null)
Parameters
- domainName System.String
- props IHttpOriginProps
Methods
RenderCustomOriginConfig()
protected override CfnDistribution.ICustomOriginConfigProperty RenderCustomOriginConfig()
Returns
CfnDistribution.ICustomOriginConfigProperty