/AWS1/CL_FNTORIGINSHIELD¶
CloudFront Origin Shield.
Using Origin Shield can help reduce the load on your origin. For more information, see Using Origin Shield in the Amazon CloudFront Developer Guide.
CONSTRUCTOR¶
IMPORTING¶
Required arguments:¶
iv_enabled TYPE /AWS1/FNTBOOLEAN /AWS1/FNTBOOLEAN¶
A flag that specifies whether Origin Shield is enabled.
When it's enabled, CloudFront routes all requests through Origin Shield, which can help protect your origin. When it's disabled, CloudFront might send requests directly to your origin from multiple edge locations or regional edge caches.
Optional arguments:¶
iv_originshieldregion TYPE /AWS1/FNTORIGINSHIELDREGION /AWS1/FNTORIGINSHIELDREGION¶
The Amazon Web Services Region for Origin Shield.
Specify the Amazon Web Services Region that has the lowest latency to your origin. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as
us-east-2.When you enable CloudFront Origin Shield, you must specify the Amazon Web Services Region for Origin Shield. For the list of Amazon Web Services Regions that you can specify, and for help choosing the best Region for your origin, see Choosing the Amazon Web Services Region for Origin Shield in the Amazon CloudFront Developer Guide.
Queryable Attributes¶
Enabled¶
A flag that specifies whether Origin Shield is enabled.
When it's enabled, CloudFront routes all requests through Origin Shield, which can help protect your origin. When it's disabled, CloudFront might send requests directly to your origin from multiple edge locations or regional edge caches.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_ENABLED() |
Getter for ENABLED, with configurable default |
ASK_ENABLED() |
Getter for ENABLED w/ exceptions if field has no value |
HAS_ENABLED() |
Determine if ENABLED has a value |
OriginShieldRegion¶
The Amazon Web Services Region for Origin Shield.
Specify the Amazon Web Services Region that has the lowest latency to your origin. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as
us-east-2.When you enable CloudFront Origin Shield, you must specify the Amazon Web Services Region for Origin Shield. For the list of Amazon Web Services Regions that you can specify, and for help choosing the best Region for your origin, see Choosing the Amazon Web Services Region for Origin Shield in the Amazon CloudFront Developer Guide.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_ORIGINSHIELDREGION() |
Getter for ORIGINSHIELDREGION, with configurable default |
ASK_ORIGINSHIELDREGION() |
Getter for ORIGINSHIELDREGION w/ exceptions if field has no |
HAS_ORIGINSHIELDREGION() |
Determine if ORIGINSHIELDREGION has a value |