Skip to content
v2.278.0

InputOriginProperty Struct ​

InputOrigin is a property of the AWS::Lightsail::Distribution resource. It describes the origin resource of an Amazon Lightsail content delivery network (CDN) distribution.

An origin can be a instance, bucket, or load balancer. A distribution pulls content from an origin, caches it, and serves it to viewers through a worldwide network of edge servers.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lightsail as lightsail } from 'aws-cdk-lib';
const inputOriginProperty: lightsail.CfnDistribution.InputOriginProperty = {
  name: 'name',
  protocolPolicy: 'protocolPolicy',
  regionName: 'regionName',
};
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_lightsail as lightsail

input_origin_property = lightsail.CfnDistribution.InputOriginProperty(
    name="name",
    protocol_policy="protocolPolicy",
    region_name="regionName"
)
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.lightsail.*;

InputOriginProperty inputOriginProperty = InputOriginProperty.builder()
        .name("name")
        .protocolPolicy("protocolPolicy")
        .regionName("regionName")
        .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.Lightsail;

var inputOriginProperty = new InputOriginProperty {
    Name = "name",
    ProtocolPolicy = "protocolPolicy",
    RegionName = "regionName"
};
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"

inputOriginProperty := &InputOriginProperty{
	Name: jsii.String("name"),
	ProtocolPolicy: jsii.String("protocolPolicy"),
	RegionName: jsii.String("regionName"),
}

Properties ​

nameoptionalstringnameoptionalstrnameoptionalStringNameoptionalstringNameoptional*string #
The name of the origin resource.
protocolPolicyoptionalstringprotocol_policyoptionalstrprotocolPolicyoptionalStringProtocolPolicyoptionalstringProtocolPolicyoptional*string #
The protocol that your Amazon Lightsail distribution uses when establishing a connection with your origin to pull content.
regionNameoptionalstringregion_nameoptionalstrregionNameoptionalStringRegionNameoptionalstringRegionNameoptional*string #
The AWS Region name of the origin resource.