Represents the communication protocol to use when sending requests to AWS.
Communication over HTTPS is the default, and is more secure than HTTP, which
is why AWS recommends using HTTPS. HTTPS connections can use more system resources
because of the extra work to encrypt network traffic, so the option to use HTTP
is available in case users need it.
[static] HTTP Protocol - Using the HTTP protocol is less secure than HTTPS, but can slightly reduce the system resources used when communicating with AWS.
[static] HTTPS Protocol - Using the HTTPS protocol is more secure than using the HTTP protocol, but may use slightly more system resources.
ProtocolEnum
Method Detail
toString
()
method
public function toString():String
Returns the Protocol attribute.
Returns
String — The name of this attribute.
valueOf
()
method
public static function valueOf(name:String):ProtocolEnum
Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an enum constant in this type.
(Extraneous whitespace characters are not permitted.)
Parameters
name:String — the name of the enum constant to be returned.
Returns
ProtocolEnum — the enum constant with the specified name
Throws
TypeError — if the argument is null
ArgumentError — if this enum type has no constant with the specified name
values
()
method
public static function values():Array
Returns an array containing the constants of this enum type, in the order they are declared.
Returns
Array —
Example
This function may be used to iterate over the constants as follows:
for each (var protocol:ProtocolEnum in ProtocolEnum.values()) {
// do something with protocol object...
}