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 resource that represents the infrastructure where a third-party provider is installed. The host is used when you create connections to an installed third-party provider type, such as GitHub Enterprise Server. You create one host for all connections to that provider.
A host created through the CLI or the SDK is in `PENDING` status by default. You can make its status `AVAILABLE` by setting up the host in the console.
Synopsis
- data CreateHost = CreateHost' {}
- newCreateHost :: Text -> ProviderType -> Text -> CreateHost
- createHost_vpcConfiguration :: Lens' CreateHost (Maybe VpcConfiguration)
- createHost_tags :: Lens' CreateHost (Maybe [Tag])
- createHost_name :: Lens' CreateHost Text
- createHost_providerType :: Lens' CreateHost ProviderType
- createHost_providerEndpoint :: Lens' CreateHost Text
- data CreateHostResponse = CreateHostResponse' {}
- newCreateHostResponse :: Int -> CreateHostResponse
- createHostResponse_hostArn :: Lens' CreateHostResponse (Maybe Text)
- createHostResponse_tags :: Lens' CreateHostResponse (Maybe [Tag])
- createHostResponse_httpStatus :: Lens' CreateHostResponse Int
Creating a Request
data CreateHost Source #
See: newCreateHost
smart constructor.
CreateHost' | |
|
Instances
:: Text | |
-> ProviderType | |
-> Text | |
-> CreateHost |
Create a value of CreateHost
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:vpcConfiguration:CreateHost'
, createHost_vpcConfiguration
- The VPC configuration to be provisioned for the host. A VPC must be
configured and the infrastructure to be represented by the host must
already be connected to the VPC.
$sel:tags:CreateHost'
, createHost_tags
- Undocumented member.
$sel:name:CreateHost'
, createHost_name
- The name of the host to be created. The name must be unique in the
calling AWS account.
$sel:providerType:CreateHost'
, createHost_providerType
- The name of the installed provider to be associated with your
connection. The host resource represents the infrastructure where your
provider type is installed. The valid provider type is GitHub Enterprise
Server.
$sel:providerEndpoint:CreateHost'
, createHost_providerEndpoint
- The endpoint of the infrastructure to be represented by the host after
it is created.
Request Lenses
createHost_vpcConfiguration :: Lens' CreateHost (Maybe VpcConfiguration) Source #
The VPC configuration to be provisioned for the host. A VPC must be configured and the infrastructure to be represented by the host must already be connected to the VPC.
createHost_tags :: Lens' CreateHost (Maybe [Tag]) Source #
Undocumented member.
createHost_name :: Lens' CreateHost Text Source #
The name of the host to be created. The name must be unique in the calling AWS account.
createHost_providerType :: Lens' CreateHost ProviderType Source #
The name of the installed provider to be associated with your connection. The host resource represents the infrastructure where your provider type is installed. The valid provider type is GitHub Enterprise Server.
createHost_providerEndpoint :: Lens' CreateHost Text Source #
The endpoint of the infrastructure to be represented by the host after it is created.
Destructuring the Response
data CreateHostResponse Source #
See: newCreateHostResponse
smart constructor.
Instances
newCreateHostResponse Source #
Create a value of CreateHostResponse
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:hostArn:CreateHostResponse'
, createHostResponse_hostArn
- The Amazon Resource Name (ARN) of the host to be created.
$sel:tags:CreateHost'
, createHostResponse_tags
- Undocumented member.
$sel:httpStatus:CreateHostResponse'
, createHostResponse_httpStatus
- The response's http status code.
Response Lenses
createHostResponse_hostArn :: Lens' CreateHostResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the host to be created.
createHostResponse_tags :: Lens' CreateHostResponse (Maybe [Tag]) Source #
Undocumented member.
createHostResponse_httpStatus :: Lens' CreateHostResponse Int Source #
The response's http status code.