Interface IOriginBindConfig
The struct returned from IOrigin.bind
.
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IOriginBindConfig
Syntax (vb)
Public Interface 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
Properties
FailoverConfig | The failover configuration for this Origin. |
OriginProperty | The CloudFormation OriginProperty configuration for this Origin. |
Properties
FailoverConfig
The failover configuration for this Origin.
virtual IOriginFailoverConfig FailoverConfig { get; }
Property Value
Remarks
Default: - nothing is returned
OriginProperty
The CloudFormation OriginProperty configuration for this Origin.
virtual CfnDistribution.IOriginProperty OriginProperty { get; }
Property Value
CfnDistribution.IOriginProperty
Remarks
Default: - nothing is returned