/AWS1/CL_S3_CORSRULE¶
Specifies a cross-origin access rule for an Amazon S3 bucket.
CONSTRUCTOR
¶
IMPORTING¶
Required arguments:¶
it_allowedmethods
TYPE /AWS1/CL_S3_ALLOWEDMETHODS_W=>TT_ALLOWEDMETHODS
TT_ALLOWEDMETHODS
¶
An HTTP method that you allow the origin to execute. Valid values are
GET
,PUT
,HEAD
,POST
, andDELETE
.
it_allowedorigins
TYPE /AWS1/CL_S3_ALLOWEDORIGINS_W=>TT_ALLOWEDORIGINS
TT_ALLOWEDORIGINS
¶
One or more origins you want customers to be able to access the bucket from.
Optional arguments:¶
iv_id
TYPE /AWS1/S3_ID
/AWS1/S3_ID
¶
Unique identifier for the rule. The value cannot be longer than 255 characters.
it_allowedheaders
TYPE /AWS1/CL_S3_ALLOWEDHEADERS_W=>TT_ALLOWEDHEADERS
TT_ALLOWEDHEADERS
¶
Headers that are specified in the
Access-Control-Request-Headers
header. These headers are allowed in a preflight OPTIONS request. In response to any preflight OPTIONS request, Amazon S3 returns any requested headers that are allowed.
it_exposeheaders
TYPE /AWS1/CL_S3_EXPOSEHEADERS_W=>TT_EXPOSEHEADERS
TT_EXPOSEHEADERS
¶
One or more headers in the response that you want customers to be able to access from their applications (for example, from a JavaScript
XMLHttpRequest
object).
iv_maxageseconds
TYPE /AWS1/S3_MAXAGESECONDS
/AWS1/S3_MAXAGESECONDS
¶
The time in seconds that your browser is to cache the preflight response for the specified resource.
Queryable Attributes¶
ID¶
Unique identifier for the rule. The value cannot be longer than 255 characters.
Accessible with the following methods¶
Method | Description |
---|---|
GET_ID() |
Getter for ID, with configurable default |
ASK_ID() |
Getter for ID w/ exceptions if field has no value |
HAS_ID() |
Determine if ID has a value |
AllowedHeaders¶
Headers that are specified in the
Access-Control-Request-Headers
header. These headers are allowed in a preflight OPTIONS request. In response to any preflight OPTIONS request, Amazon S3 returns any requested headers that are allowed.
Accessible with the following methods¶
Method | Description |
---|---|
GET_ALLOWEDHEADERS() |
Getter for ALLOWEDHEADERS, with configurable default |
ASK_ALLOWEDHEADERS() |
Getter for ALLOWEDHEADERS w/ exceptions if field has no valu |
HAS_ALLOWEDHEADERS() |
Determine if ALLOWEDHEADERS has a value |
AllowedMethods¶
An HTTP method that you allow the origin to execute. Valid values are
GET
,PUT
,HEAD
,POST
, andDELETE
.
Accessible with the following methods¶
Method | Description |
---|---|
GET_ALLOWEDMETHODS() |
Getter for ALLOWEDMETHODS, with configurable default |
ASK_ALLOWEDMETHODS() |
Getter for ALLOWEDMETHODS w/ exceptions if field has no valu |
HAS_ALLOWEDMETHODS() |
Determine if ALLOWEDMETHODS has a value |
AllowedOrigins¶
One or more origins you want customers to be able to access the bucket from.
Accessible with the following methods¶
Method | Description |
---|---|
GET_ALLOWEDORIGINS() |
Getter for ALLOWEDORIGINS, with configurable default |
ASK_ALLOWEDORIGINS() |
Getter for ALLOWEDORIGINS w/ exceptions if field has no valu |
HAS_ALLOWEDORIGINS() |
Determine if ALLOWEDORIGINS has a value |
ExposeHeaders¶
One or more headers in the response that you want customers to be able to access from their applications (for example, from a JavaScript
XMLHttpRequest
object).
Accessible with the following methods¶
Method | Description |
---|---|
GET_EXPOSEHEADERS() |
Getter for EXPOSEHEADERS, with configurable default |
ASK_EXPOSEHEADERS() |
Getter for EXPOSEHEADERS w/ exceptions if field has no value |
HAS_EXPOSEHEADERS() |
Determine if EXPOSEHEADERS has a value |
MaxAgeSeconds¶
The time in seconds that your browser is to cache the preflight response for the specified resource.
Accessible with the following methods¶
Method | Description |
---|---|
GET_MAXAGESECONDS() |
Getter for MAXAGESECONDS, with configurable default |
ASK_MAXAGESECONDS() |
Getter for MAXAGESECONDS w/ exceptions if field has no value |
HAS_MAXAGESECONDS() |
Determine if MAXAGESECONDS has a value |
Public Local Types In This Class¶
Internal table types, representing arrays and maps of this class, are defined as local types:
TT_CORSRULES
¶
TYPES TT_CORSRULES TYPE STANDARD TABLE OF REF TO /AWS1/CL_S3_CORSRULE WITH DEFAULT KEY
.