StatusCodesProperty Struct
A complex data type for the status codes that you specify that, when returned by a primary origin, trigger CloudFront to failover to a second origin.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudfront as cloudfront } from 'aws-cdk-lib';
const statusCodesProperty: cloudfront.CfnDistribution.StatusCodesProperty = {
items: [123],
quantity: 123,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_cloudfront as cloudfront
status_codes_property = cloudfront.CfnDistribution.StatusCodesProperty(
items=[123],
quantity=123
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cloudfront.*;
StatusCodesProperty statusCodesProperty = StatusCodesProperty.builder()
.items(List.of(123))
.quantity(123)
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudFront;
var statusCodesProperty = new StatusCodesProperty {
Items = new [] { 123 },
Quantity = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
statusCodesProperty := &StatusCodesProperty{
Items: []interface{}{
jsii.Number(123),
},
Quantity: jsii.Number(123),
}
Properties
itemsnumber[] | IResolvableitemstyping.Union[typing.List[int | float], IResolvable]itemsList<Number>Itemsdouble[]Itemsinterface{}required#The items (status codes) for an origin group.
The number of status codes.