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 new service profile.
Synopsis
- data CreateServiceProfile = CreateServiceProfile' {}
- newCreateServiceProfile :: CreateServiceProfile
- createServiceProfile_loRaWAN :: Lens' CreateServiceProfile (Maybe LoRaWANServiceProfile)
- createServiceProfile_name :: Lens' CreateServiceProfile (Maybe Text)
- createServiceProfile_clientRequestToken :: Lens' CreateServiceProfile (Maybe Text)
- createServiceProfile_tags :: Lens' CreateServiceProfile (Maybe [Tag])
- data CreateServiceProfileResponse = CreateServiceProfileResponse' {}
- newCreateServiceProfileResponse :: Int -> CreateServiceProfileResponse
- createServiceProfileResponse_arn :: Lens' CreateServiceProfileResponse (Maybe Text)
- createServiceProfileResponse_id :: Lens' CreateServiceProfileResponse (Maybe Text)
- createServiceProfileResponse_httpStatus :: Lens' CreateServiceProfileResponse Int
Creating a Request
data CreateServiceProfile Source #
See: newCreateServiceProfile
smart constructor.
CreateServiceProfile' | |
|
Instances
newCreateServiceProfile :: CreateServiceProfile Source #
Create a value of CreateServiceProfile
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:loRaWAN:CreateServiceProfile'
, createServiceProfile_loRaWAN
- The service profile information to use to create the service profile.
$sel:name:CreateServiceProfile'
, createServiceProfile_name
- The name of the new resource.
$sel:clientRequestToken:CreateServiceProfile'
, createServiceProfile_clientRequestToken
- Each resource must have a unique client request token. If you try to
create a new resource with the same token as a resource that already
exists, an exception occurs. If you omit this value, AWS SDKs will
automatically generate a unique client request.
$sel:tags:CreateServiceProfile'
, createServiceProfile_tags
- The tags to attach to the new service profile. Tags are metadata that
you can use to manage a resource.
Request Lenses
createServiceProfile_loRaWAN :: Lens' CreateServiceProfile (Maybe LoRaWANServiceProfile) Source #
The service profile information to use to create the service profile.
createServiceProfile_name :: Lens' CreateServiceProfile (Maybe Text) Source #
The name of the new resource.
createServiceProfile_clientRequestToken :: Lens' CreateServiceProfile (Maybe Text) Source #
Each resource must have a unique client request token. If you try to create a new resource with the same token as a resource that already exists, an exception occurs. If you omit this value, AWS SDKs will automatically generate a unique client request.
createServiceProfile_tags :: Lens' CreateServiceProfile (Maybe [Tag]) Source #
The tags to attach to the new service profile. Tags are metadata that you can use to manage a resource.
Destructuring the Response
data CreateServiceProfileResponse Source #
See: newCreateServiceProfileResponse
smart constructor.
Instances
newCreateServiceProfileResponse Source #
Create a value of CreateServiceProfileResponse
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:arn:CreateServiceProfileResponse'
, createServiceProfileResponse_arn
- The Amazon Resource Name of the new resource.
$sel:id:CreateServiceProfileResponse'
, createServiceProfileResponse_id
- The ID of the new service profile.
$sel:httpStatus:CreateServiceProfileResponse'
, createServiceProfileResponse_httpStatus
- The response's http status code.
Response Lenses
createServiceProfileResponse_arn :: Lens' CreateServiceProfileResponse (Maybe Text) Source #
The Amazon Resource Name of the new resource.
createServiceProfileResponse_id :: Lens' CreateServiceProfileResponse (Maybe Text) Source #
The ID of the new service profile.
createServiceProfileResponse_httpStatus :: Lens' CreateServiceProfileResponse Int Source #
The response's http status code.