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 |
Creates a profile that can be applied to one or more private fleet device instances.
Synopsis
- data CreateInstanceProfile = CreateInstanceProfile' {}
- newCreateInstanceProfile :: Text -> CreateInstanceProfile
- createInstanceProfile_rebootAfterUse :: Lens' CreateInstanceProfile (Maybe Bool)
- createInstanceProfile_packageCleanup :: Lens' CreateInstanceProfile (Maybe Bool)
- createInstanceProfile_excludeAppPackagesFromCleanup :: Lens' CreateInstanceProfile (Maybe [Text])
- createInstanceProfile_description :: Lens' CreateInstanceProfile (Maybe Text)
- createInstanceProfile_name :: Lens' CreateInstanceProfile Text
- data CreateInstanceProfileResponse = CreateInstanceProfileResponse' {}
- newCreateInstanceProfileResponse :: Int -> CreateInstanceProfileResponse
- createInstanceProfileResponse_instanceProfile :: Lens' CreateInstanceProfileResponse (Maybe InstanceProfile)
- createInstanceProfileResponse_httpStatus :: Lens' CreateInstanceProfileResponse Int
Creating a Request
data CreateInstanceProfile Source #
See: newCreateInstanceProfile
smart constructor.
CreateInstanceProfile' | |
|
Instances
newCreateInstanceProfile Source #
Create a value of CreateInstanceProfile
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:rebootAfterUse:CreateInstanceProfile'
, createInstanceProfile_rebootAfterUse
- When set to true
, Device Farm reboots the instance after a test run.
The default value is true
.
$sel:packageCleanup:CreateInstanceProfile'
, createInstanceProfile_packageCleanup
- When set to true
, Device Farm removes app packages after a test run.
The default value is false
for private devices.
$sel:excludeAppPackagesFromCleanup:CreateInstanceProfile'
, createInstanceProfile_excludeAppPackagesFromCleanup
- An array of strings that specifies the list of app packages that should
not be cleaned up from the device after a test run.
The list of packages is considered only if you set packageCleanup
to
true
.
$sel:description:CreateInstanceProfile'
, createInstanceProfile_description
- The description of your instance profile.
$sel:name:CreateInstanceProfile'
, createInstanceProfile_name
- The name of your instance profile.
Request Lenses
createInstanceProfile_rebootAfterUse :: Lens' CreateInstanceProfile (Maybe Bool) Source #
When set to true
, Device Farm reboots the instance after a test run.
The default value is true
.
createInstanceProfile_packageCleanup :: Lens' CreateInstanceProfile (Maybe Bool) Source #
When set to true
, Device Farm removes app packages after a test run.
The default value is false
for private devices.
createInstanceProfile_excludeAppPackagesFromCleanup :: Lens' CreateInstanceProfile (Maybe [Text]) Source #
An array of strings that specifies the list of app packages that should not be cleaned up from the device after a test run.
The list of packages is considered only if you set packageCleanup
to
true
.
createInstanceProfile_description :: Lens' CreateInstanceProfile (Maybe Text) Source #
The description of your instance profile.
createInstanceProfile_name :: Lens' CreateInstanceProfile Text Source #
The name of your instance profile.
Destructuring the Response
data CreateInstanceProfileResponse Source #
See: newCreateInstanceProfileResponse
smart constructor.
CreateInstanceProfileResponse' | |
|
Instances
newCreateInstanceProfileResponse Source #
Create a value of CreateInstanceProfileResponse
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:instanceProfile:CreateInstanceProfileResponse'
, createInstanceProfileResponse_instanceProfile
- An object that contains information about your instance profile.
$sel:httpStatus:CreateInstanceProfileResponse'
, createInstanceProfileResponse_httpStatus
- The response's http status code.
Response Lenses
createInstanceProfileResponse_instanceProfile :: Lens' CreateInstanceProfileResponse (Maybe InstanceProfile) Source #
An object that contains information about your instance profile.
createInstanceProfileResponse_httpStatus :: Lens' CreateInstanceProfileResponse Int Source #
The response's http status code.