| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.GameLift.DescribeScript
Description
Retrieves properties for a Realtime script.
To request a script record, specify the script ID. If successful, an object containing the script properties is returned.
Learn more
Amazon GameLift Realtime Servers
Related actions
Synopsis
- data DescribeScript = DescribeScript' {}
- newDescribeScript :: Text -> DescribeScript
- describeScript_scriptId :: Lens' DescribeScript Text
- data DescribeScriptResponse = DescribeScriptResponse' {
- script :: Maybe Script
- httpStatus :: Int
- newDescribeScriptResponse :: Int -> DescribeScriptResponse
- describeScriptResponse_script :: Lens' DescribeScriptResponse (Maybe Script)
- describeScriptResponse_httpStatus :: Lens' DescribeScriptResponse Int
Creating a Request
data DescribeScript Source #
See: newDescribeScript smart constructor.
Constructors
| DescribeScript' | |
Instances
Arguments
| :: Text | |
| -> DescribeScript |
Create a value of DescribeScript with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
DescribeScript, describeScript_scriptId - A unique identifier for the Realtime script to retrieve properties for.
You can use either the script ID or ARN value.
Request Lenses
describeScript_scriptId :: Lens' DescribeScript Text Source #
A unique identifier for the Realtime script to retrieve properties for. You can use either the script ID or ARN value.
Destructuring the Response
data DescribeScriptResponse Source #
See: newDescribeScriptResponse smart constructor.
Constructors
| DescribeScriptResponse' | |
Fields
| |
Instances
newDescribeScriptResponse Source #
Create a value of DescribeScriptResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:script:DescribeScriptResponse', describeScriptResponse_script - A set of properties describing the requested script.
$sel:httpStatus:DescribeScriptResponse', describeScriptResponse_httpStatus - The response's http status code.
Response Lenses
describeScriptResponse_script :: Lens' DescribeScriptResponse (Maybe Script) Source #
A set of properties describing the requested script.
describeScriptResponse_httpStatus :: Lens' DescribeScriptResponse Int Source #
The response's http status code.