AWS SDK for .NET Documentation
WithRequiredProtocols Method (protocols)
Amazon ► Amazon.CloudFront_2012_03_15.Model ► CloudFrontDistributionConfig ► WithRequiredProtocols(array<Protocol>[]()[][])
Did this page help you? Yes No Tell us about it...
Sets the RequiredProtocols property. Defines the protocols required for your distribution. Use this element to restrict access to your distribution solely to HTTPS requests. Without this element, CloudFront can use any available protocol to serve the request. For a list of possible protocol values, refer Protocol.
Declaration Syntax

C#

    [ObsoleteAttribute("The With methods are obsolete and will be removed in version 2 of the AWS SDK for .NET. See http://aws.amazon.com/sdkfornet/#version2 for more information.")]
    public CloudFrontDistributionConfig WithRequiredProtocols(
    	params Protocol[] protocols
    )

Parameters

protocols (array<Protocol>[]()[][])
  RequiredProtocols property is set to this value

Return Value
this instance

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)