示例#1
0
 public CustomOrigin WithProtocolPolicy(OriginProtocolPolicy protocolPolicy)
 {
     this.ProtocolPolicy = protocolPolicy;
     return(this);
 }
示例#2
0
 /// <summary>
 /// Sets the origin protocol policy to apply to your origin. If HttpOnly is specified,
 /// CloudFront will use HTTP only to
 /// access the origin. If MatchViewer is specified,
 /// CloudFront will fetch from your origin using HTTP or
 /// HTTPS, based on the protocol of the viewer request.
 /// This instance is returned to allow method chaining.
 /// </summary>
 /// <param name="protocolPolicy">The origin protocol policy.</param>
 /// <returns>This instance</returns>
 public CustomOrigin WithProtocolPolicy(OriginProtocolPolicy protocolPolicy)
 {
     this.ProtocolPolicy = protocolPolicy;
     return this;
 }