Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
CreateScript | ListScripts | DescribeScript | UpdateScript | DeleteScript | All APIs by task
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.
Instances
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:
$sel:scriptId: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.
DescribeScriptResponse' | |
|
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.