libZSservicesZSamazonka-storagegatewayZSamazonka-storagegateway
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.StorageGateway.JoinDomain

Description

Adds a file gateway to an Active Directory domain. This operation is only supported for file gateways that support the SMB file protocol.

Synopsis

Creating a Request

data JoinDomain Source #

JoinDomainInput

See: newJoinDomain smart constructor.

Constructors

JoinDomain' 

Fields

  • organizationalUnit :: Maybe Text

    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.

  • timeoutInSeconds :: Maybe Natural

    Specifies the time in seconds, in which the JoinDomain operation must complete. The default is 20 seconds.

  • domainControllers :: Maybe [Text]

    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.

  • gatewayARN :: Text

    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.

  • domainName :: Text

    The name of the domain that you want the gateway to join.

  • userName :: Text

    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.

  • password :: Sensitive Text

    Sets the password of the user who has permission to add the gateway to the Active Directory domain.

Instances

Instances details
Eq JoinDomain Source # 
Instance details

Defined in Amazonka.StorageGateway.JoinDomain

Show JoinDomain Source # 
Instance details

Defined in Amazonka.StorageGateway.JoinDomain

Generic JoinDomain Source # 
Instance details

Defined in Amazonka.StorageGateway.JoinDomain

Associated Types

type Rep JoinDomain :: Type -> Type #

NFData JoinDomain Source # 
Instance details

Defined in Amazonka.StorageGateway.JoinDomain

Methods

rnf :: JoinDomain -> () #

Hashable JoinDomain Source # 
Instance details

Defined in Amazonka.StorageGateway.JoinDomain

ToJSON JoinDomain Source # 
Instance details

Defined in Amazonka.StorageGateway.JoinDomain

AWSRequest JoinDomain Source # 
Instance details

Defined in Amazonka.StorageGateway.JoinDomain

Associated Types

type AWSResponse JoinDomain #

ToHeaders JoinDomain Source # 
Instance details

Defined in Amazonka.StorageGateway.JoinDomain

Methods

toHeaders :: JoinDomain -> [Header] #

ToPath JoinDomain Source # 
Instance details

Defined in Amazonka.StorageGateway.JoinDomain

ToQuery JoinDomain Source # 
Instance details

Defined in Amazonka.StorageGateway.JoinDomain

type Rep JoinDomain Source # 
Instance details

Defined in Amazonka.StorageGateway.JoinDomain

type Rep JoinDomain = D1 ('MetaData "JoinDomain" "Amazonka.StorageGateway.JoinDomain" "libZSservicesZSamazonka-storagegatewayZSamazonka-storagegateway" 'False) (C1 ('MetaCons "JoinDomain'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "organizationalUnit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "timeoutInSeconds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "domainControllers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])))) :*: ((S1 ('MetaSel ('Just "gatewayARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "domainName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "userName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "password") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text))))))
type AWSResponse JoinDomain Source # 
Instance details

Defined in Amazonka.StorageGateway.JoinDomain

newJoinDomain Source #

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.

Constructors

JoinDomainResponse' 

Fields

  • gatewayARN :: Maybe Text

    The unique Amazon Resource Name (ARN) of the gateway that joined the domain.

  • activeDirectoryStatus :: Maybe ActiveDirectoryStatus

    Indicates the status of the gateway as a member of the Active Directory domain.

    • ACCESS_DENIED: Indicates that the JoinDomain 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 a JoinDomain operation is in progress.
    • NETWORK_ERROR: Indicates that JoinDomain operation failed due to a network or connectivity error.
    • TIMEOUT: Indicates that the JoinDomain operation failed because the operation didn't complete within the allotted time.
    • UNKNOWN_ERROR: Indicates that the JoinDomain operation failed due to another type of error.
  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq JoinDomainResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.JoinDomain

Read JoinDomainResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.JoinDomain

Show JoinDomainResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.JoinDomain

Generic JoinDomainResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.JoinDomain

Associated Types

type Rep JoinDomainResponse :: Type -> Type #

NFData JoinDomainResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.JoinDomain

Methods

rnf :: JoinDomainResponse -> () #

type Rep JoinDomainResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.JoinDomain

type Rep JoinDomainResponse = D1 ('MetaData "JoinDomainResponse" "Amazonka.StorageGateway.JoinDomain" "libZSservicesZSamazonka-storagegatewayZSamazonka-storagegateway" 'False) (C1 ('MetaCons "JoinDomainResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "gatewayARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "activeDirectoryStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ActiveDirectoryStatus)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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 the JoinDomain 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 a JoinDomain operation is in progress.
  • NETWORK_ERROR: Indicates that JoinDomain operation failed due to a network or connectivity error.
  • TIMEOUT: Indicates that the JoinDomain operation failed because the operation didn't complete within the allotted time.
  • UNKNOWN_ERROR: Indicates that the JoinDomain 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 the JoinDomain 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 a JoinDomain operation is in progress.
  • NETWORK_ERROR: Indicates that JoinDomain operation failed due to a network or connectivity error.
  • TIMEOUT: Indicates that the JoinDomain operation failed because the operation didn't complete within the allotted time.
  • UNKNOWN_ERROR: Indicates that the JoinDomain operation failed due to another type of error.