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 |
Adds a file gateway to an Active Directory domain. This operation is only supported for file gateways that support the SMB file protocol.
Synopsis
- data JoinDomain = JoinDomain' {}
- newJoinDomain :: Text -> Text -> Text -> Text -> JoinDomain
- joinDomain_organizationalUnit :: Lens' JoinDomain (Maybe Text)
- joinDomain_timeoutInSeconds :: Lens' JoinDomain (Maybe Natural)
- joinDomain_domainControllers :: Lens' JoinDomain (Maybe [Text])
- joinDomain_gatewayARN :: Lens' JoinDomain Text
- joinDomain_domainName :: Lens' JoinDomain Text
- joinDomain_userName :: Lens' JoinDomain Text
- joinDomain_password :: Lens' JoinDomain Text
- data JoinDomainResponse = JoinDomainResponse' {}
- newJoinDomainResponse :: Int -> JoinDomainResponse
- joinDomainResponse_gatewayARN :: Lens' JoinDomainResponse (Maybe Text)
- joinDomainResponse_activeDirectoryStatus :: Lens' JoinDomainResponse (Maybe ActiveDirectoryStatus)
- joinDomainResponse_httpStatus :: Lens' JoinDomainResponse Int
Creating a Request
data JoinDomain Source #
JoinDomainInput
See: newJoinDomain
smart constructor.
JoinDomain' | |
|
Instances
:: Text | |
-> Text | |
-> Text | |
-> Text | |
-> JoinDomain |
Create a value of JoinDomain
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:organizationalUnit:JoinDomain'
, joinDomain_organizationalUnit
- The organizational unit (OU) is a container in an Active Directory that
can hold users, groups, computers, and other OUs and this parameter
specifies the OU that the gateway will join within the AD domain.
$sel:timeoutInSeconds:JoinDomain'
, joinDomain_timeoutInSeconds
- Specifies the time in seconds, in which the JoinDomain
operation must
complete. The default is 20 seconds.
$sel:domainControllers:JoinDomain'
, joinDomain_domainControllers
- List of IPv4 addresses, NetBIOS names, or host names of your domain
server. If you need to specify the port number include it after the
colon (“:”). For example, mydc.mydomain.com:389
.
$sel:gatewayARN:JoinDomain'
, joinDomain_gatewayARN
- The Amazon Resource Name (ARN) of the gateway. Use the ListGateways
operation to return a list of gateways for your account and Amazon Web
Services Region.
$sel:domainName:JoinDomain'
, joinDomain_domainName
- The name of the domain that you want the gateway to join.
$sel:userName:JoinDomain'
, joinDomain_userName
- Sets the user name of user who has permission to add the gateway to the
Active Directory domain. The domain user account should be enabled to
join computers to the domain. For example, you can use the domain
administrator account or an account with delegated permissions to join
computers to the domain.
$sel:password:JoinDomain'
, joinDomain_password
- Sets the password of the user who has permission to add the gateway to
the Active Directory domain.
Request Lenses
joinDomain_organizationalUnit :: Lens' JoinDomain (Maybe Text) Source #
The organizational unit (OU) is a container in an Active Directory that can hold users, groups, computers, and other OUs and this parameter specifies the OU that the gateway will join within the AD domain.
joinDomain_timeoutInSeconds :: Lens' JoinDomain (Maybe Natural) Source #
Specifies the time in seconds, in which the JoinDomain
operation must
complete. The default is 20 seconds.
joinDomain_domainControllers :: Lens' JoinDomain (Maybe [Text]) Source #
List of IPv4 addresses, NetBIOS names, or host names of your domain
server. If you need to specify the port number include it after the
colon (“:”). For example, mydc.mydomain.com:389
.
joinDomain_gatewayARN :: Lens' JoinDomain Text Source #
The Amazon Resource Name (ARN) of the gateway. Use the ListGateways
operation to return a list of gateways for your account and Amazon Web
Services Region.
joinDomain_domainName :: Lens' JoinDomain Text Source #
The name of the domain that you want the gateway to join.
joinDomain_userName :: Lens' JoinDomain Text Source #
Sets the user name of user who has permission to add the gateway to the Active Directory domain. The domain user account should be enabled to join computers to the domain. For example, you can use the domain administrator account or an account with delegated permissions to join computers to the domain.
joinDomain_password :: Lens' JoinDomain Text Source #
Sets the password of the user who has permission to add the gateway to the Active Directory domain.
Destructuring the Response
data JoinDomainResponse Source #
JoinDomainOutput
See: newJoinDomainResponse
smart constructor.
JoinDomainResponse' | |
|
Instances
newJoinDomainResponse Source #
Create a value of JoinDomainResponse
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:gatewayARN:JoinDomain'
, joinDomainResponse_gatewayARN
- The unique Amazon Resource Name (ARN) of the gateway that joined the
domain.
$sel:activeDirectoryStatus:JoinDomainResponse'
, joinDomainResponse_activeDirectoryStatus
- Indicates the status of the gateway as a member of the Active Directory
domain.
ACCESS_DENIED
: Indicates that theJoinDomain
operation failed due to an authentication error.DETACHED
: Indicates that gateway is not joined to a domain.JOINED
: Indicates that the gateway has successfully joined a domain.JOINING
: Indicates that aJoinDomain
operation is in progress.NETWORK_ERROR
: Indicates thatJoinDomain
operation failed due to a network or connectivity error.TIMEOUT
: Indicates that theJoinDomain
operation failed because the operation didn't complete within the allotted time.UNKNOWN_ERROR
: Indicates that theJoinDomain
operation failed due to another type of error.
$sel:httpStatus:JoinDomainResponse'
, joinDomainResponse_httpStatus
- The response's http status code.
Response Lenses
joinDomainResponse_gatewayARN :: Lens' JoinDomainResponse (Maybe Text) Source #
The unique Amazon Resource Name (ARN) of the gateway that joined the domain.
joinDomainResponse_activeDirectoryStatus :: Lens' JoinDomainResponse (Maybe ActiveDirectoryStatus) Source #
Indicates the status of the gateway as a member of the Active Directory domain.
ACCESS_DENIED
: Indicates that theJoinDomain
operation failed due to an authentication error.DETACHED
: Indicates that gateway is not joined to a domain.JOINED
: Indicates that the gateway has successfully joined a domain.JOINING
: Indicates that aJoinDomain
operation is in progress.NETWORK_ERROR
: Indicates thatJoinDomain
operation failed due to a network or connectivity error.TIMEOUT
: Indicates that theJoinDomain
operation failed because the operation didn't complete within the allotted time.UNKNOWN_ERROR
: Indicates that theJoinDomain
operation failed due to another type of error.
joinDomainResponse_httpStatus :: Lens' JoinDomainResponse Int Source #
The response's http status code.