Class RestApiOrigin
An Origin for an API Gateway REST API.
Implements
Namespace: Amazon.CDK.AWS.CloudFront.Origins
Assembly: Amazon.CDK.AWS.CloudFront.Origins.dll
Syntax (csharp)
public class RestApiOrigin : OriginBase, IOrigin
Syntax (vb)
Public Class RestApiOrigin
Inherits OriginBase
Implements IOrigin
Remarks
ExampleMetadata: infused
Examples
RestApi api;
new Distribution(this, "Distribution", new DistributionProps {
DefaultBehavior = new BehaviorOptions { Origin = new RestApiOrigin(api) }
});
Synopsis
Constructors
RestApiOrigin(RestApi, IRestApiOriginProps) | |
RestApiOrigin(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
RestApiOrigin(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
RenderCustomOriginConfig() |
Constructors
RestApiOrigin(RestApi, IRestApiOriginProps)
public RestApiOrigin(RestApi restApi, IRestApiOriginProps props = null)
Parameters
- restApi RestApi
- props IRestApiOriginProps
RestApiOrigin(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected RestApiOrigin(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
RestApiOrigin(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected RestApiOrigin(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
RenderCustomOriginConfig()
protected override CfnDistribution.ICustomOriginConfigProperty RenderCustomOriginConfig()
Returns
CfnDistribution.ICustomOriginConfigProperty