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 virtual service within a service mesh.
A virtual service is an abstraction of a real service that is provided
by a virtual node directly or indirectly by means of a virtual router.
Dependent services call your virtual service by its
virtualServiceName
, and those requests are routed to the virtual node
or virtual router that is specified as the provider for the virtual
service.
For more information about virtual services, see Virtual services.
Synopsis
- data CreateVirtualService = CreateVirtualService' {
- clientToken :: Maybe Text
- meshOwner :: Maybe Text
- tags :: Maybe [TagRef]
- meshName :: Text
- spec :: VirtualServiceSpec
- virtualServiceName :: Text
- newCreateVirtualService :: Text -> VirtualServiceSpec -> Text -> CreateVirtualService
- createVirtualService_clientToken :: Lens' CreateVirtualService (Maybe Text)
- createVirtualService_meshOwner :: Lens' CreateVirtualService (Maybe Text)
- createVirtualService_tags :: Lens' CreateVirtualService (Maybe [TagRef])
- createVirtualService_meshName :: Lens' CreateVirtualService Text
- createVirtualService_spec :: Lens' CreateVirtualService VirtualServiceSpec
- createVirtualService_virtualServiceName :: Lens' CreateVirtualService Text
- data CreateVirtualServiceResponse = CreateVirtualServiceResponse' {}
- newCreateVirtualServiceResponse :: Int -> VirtualServiceData -> CreateVirtualServiceResponse
- createVirtualServiceResponse_httpStatus :: Lens' CreateVirtualServiceResponse Int
- createVirtualServiceResponse_virtualService :: Lens' CreateVirtualServiceResponse VirtualServiceData
Creating a Request
data CreateVirtualService Source #
See: newCreateVirtualService
smart constructor.
CreateVirtualService' | |
|
Instances
newCreateVirtualService Source #
:: Text | |
-> VirtualServiceSpec | |
-> Text | |
-> CreateVirtualService |
Create a value of CreateVirtualService
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:clientToken:CreateVirtualService'
, createVirtualService_clientToken
- Unique, case-sensitive identifier that you provide to ensure the
idempotency of the request. Up to 36 letters, numbers, hyphens, and
underscores are allowed.
$sel:meshOwner:CreateVirtualService'
, createVirtualService_meshOwner
- The AWS IAM account ID of the service mesh owner. If the account ID is
not your own, then the account that you specify must share the mesh with
your account before you can create the resource in the service mesh. For
more information about mesh sharing, see
Working with shared meshes.
$sel:tags:CreateVirtualService'
, createVirtualService_tags
- Optional metadata that you can apply to the virtual service to assist
with categorization and organization. Each tag consists of a key and an
optional value, both of which you define. Tag keys can have a maximum
character length of 128 characters, and tag values can have a maximum
length of 256 characters.
$sel:meshName:CreateVirtualService'
, createVirtualService_meshName
- The name of the service mesh to create the virtual service in.
$sel:spec:CreateVirtualService'
, createVirtualService_spec
- The virtual service specification to apply.
$sel:virtualServiceName:CreateVirtualService'
, createVirtualService_virtualServiceName
- The name to use for the virtual service.
Request Lenses
createVirtualService_clientToken :: Lens' CreateVirtualService (Maybe Text) Source #
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Up to 36 letters, numbers, hyphens, and underscores are allowed.
createVirtualService_meshOwner :: Lens' CreateVirtualService (Maybe Text) Source #
The AWS IAM account ID of the service mesh owner. If the account ID is not your own, then the account that you specify must share the mesh with your account before you can create the resource in the service mesh. For more information about mesh sharing, see Working with shared meshes.
createVirtualService_tags :: Lens' CreateVirtualService (Maybe [TagRef]) Source #
Optional metadata that you can apply to the virtual service to assist with categorization and organization. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
createVirtualService_meshName :: Lens' CreateVirtualService Text Source #
The name of the service mesh to create the virtual service in.
createVirtualService_spec :: Lens' CreateVirtualService VirtualServiceSpec Source #
The virtual service specification to apply.
createVirtualService_virtualServiceName :: Lens' CreateVirtualService Text Source #
The name to use for the virtual service.
Destructuring the Response
data CreateVirtualServiceResponse Source #
See: newCreateVirtualServiceResponse
smart constructor.
CreateVirtualServiceResponse' | |
|
Instances
newCreateVirtualServiceResponse Source #
Create a value of CreateVirtualServiceResponse
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:httpStatus:CreateVirtualServiceResponse'
, createVirtualServiceResponse_httpStatus
- The response's http status code.
$sel:virtualService:CreateVirtualServiceResponse'
, createVirtualServiceResponse_virtualService
- The full description of your virtual service following the create call.
Response Lenses
createVirtualServiceResponse_httpStatus :: Lens' CreateVirtualServiceResponse Int Source #
The response's http status code.
createVirtualServiceResponse_virtualService :: Lens' CreateVirtualServiceResponse VirtualServiceData Source #
The full description of your virtual service following the create call.