Class OriginBindConfig
The struct returned from {@link IOrigin.bind}.
Inheritance
System.Object
OriginBindConfig
Implements
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.AWS.CloudFront.dll
Syntax (csharp)
public class OriginBindConfig : Object, IOriginBindConfig
Syntax (vb)
Public Class OriginBindConfig
Inherits Object
Implements IOriginBindConfig
Remarks
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.CloudFront;
IOrigin origin;
var originBindConfig = new OriginBindConfig {
FailoverConfig = new OriginFailoverConfig {
FailoverOrigin = origin,
// the properties below are optional
StatusCodes = new [] { 123 }
},
OriginProperty = new OriginProperty {
DomainName = "domainName",
Id = "id",
// the properties below are optional
ConnectionAttempts = 123,
ConnectionTimeout = 123,
CustomOriginConfig = new CustomOriginConfigProperty {
OriginProtocolPolicy = "originProtocolPolicy",
// the properties below are optional
HttpPort = 123,
HttpsPort = 123,
OriginKeepaliveTimeout = 123,
OriginReadTimeout = 123,
OriginSslProtocols = new [] { "originSslProtocols" }
},
OriginAccessControlId = "originAccessControlId",
OriginCustomHeaders = new [] { new OriginCustomHeaderProperty {
HeaderName = "headerName",
HeaderValue = "headerValue"
} },
OriginPath = "originPath",
OriginShield = new OriginShieldProperty {
Enabled = false,
OriginShieldRegion = "originShieldRegion"
},
S3OriginConfig = new S3OriginConfigProperty {
OriginAccessIdentity = "originAccessIdentity"
}
}
};
Synopsis
Constructors
OriginBindConfig() |
Properties
FailoverConfig | The failover configuration for this Origin. |
OriginProperty | The CloudFormation OriginProperty configuration for this Origin. |
Constructors
OriginBindConfig()
public OriginBindConfig()
Properties
FailoverConfig
The failover configuration for this Origin.
public IOriginFailoverConfig FailoverConfig { get; set; }
Property Value
Remarks
Default: - nothing is returned
OriginProperty
The CloudFormation OriginProperty configuration for this Origin.
public CfnDistribution.IOriginProperty OriginProperty { get; set; }
Property Value
CfnDistribution.IOriginProperty
Remarks
Default: - nothing is returned