2018/10/05 - AWS Directory Service - 1 new2 updated api methods
Changes Update ds client to latest version
Updates the trust that has been set up between your AWS Managed Microsoft AD directory and an on-premises Active Directory.
See also: AWS API Documentation
Request Syntax
client.update_trust( TrustId='string', SelectiveAuth='Enabled'|'Disabled' )
string
[REQUIRED]
Identifier of the trust relationship.
string
Updates selective authentication for the trust.
dict
Response Syntax
{ 'RequestId': 'string', 'TrustId': 'string' }
Response Structure
(dict) --
RequestId (string) --
The AWS request identifier.
TrustId (string) --
Identifier of the trust relationship.
{'SelectiveAuth': 'Enabled | Disabled', 'TrustType': {'External'}}
AWS Directory Service for Microsoft Active Directory allows you to configure trust relationships. For example, you can establish a trust between your AWS Managed Microsoft AD directory, and your existing on-premises Microsoft Active Directory. This would allow you to provide users and groups access to resources in either domain, with a single set of credentials.
This action initiates the creation of the AWS side of a trust relationship between an AWS Managed Microsoft AD directory and an external domain. You can create either a forest trust or an external trust.
See also: AWS API Documentation
Request Syntax
client.create_trust( DirectoryId='string', RemoteDomainName='string', TrustPassword='string', TrustDirection='One-Way: Outgoing'|'One-Way: Incoming'|'Two-Way', TrustType='Forest'|'External', ConditionalForwarderIpAddrs=[ 'string', ], SelectiveAuth='Enabled'|'Disabled' )
string
[REQUIRED]
The Directory ID of the AWS Managed Microsoft AD directory for which to establish the trust relationship.
string
[REQUIRED]
The Fully Qualified Domain Name (FQDN) of the external domain for which to create the trust relationship.
string
[REQUIRED]
The trust password. The must be the same password that was used when creating the trust relationship on the external domain.
string
[REQUIRED]
The direction of the trust relationship.
string
The trust relationship type. Forest is the default.
list
The IP addresses of the remote DNS server associated with RemoteDomainName.
(string) --
string
Optional parameter to enable selective authentication for the trust.
dict
Response Syntax
{ 'TrustId': 'string' }
Response Structure
(dict) --
The result of a CreateTrust request.
TrustId (string) --
A unique identifier for the trust relationship that was created.
{'Trusts': {'SelectiveAuth': 'Enabled | Disabled', 'TrustState': {'Updated', 'Updating', 'UpdateFailed'}, 'TrustType': {'External'}}}
Obtains information about the trust relationships for this account.
If no input parameters are provided, such as DirectoryId or TrustIds, this request describes all the trust relationships belonging to the account.
See also: AWS API Documentation
Request Syntax
client.describe_trusts( DirectoryId='string', TrustIds=[ 'string', ], NextToken='string', Limit=123 )
string
The Directory ID of the AWS directory that is a part of the requested trust relationship.
list
A list of identifiers of the trust relationships for which to obtain the information. If this member is null, all trust relationships that belong to the current account are returned.
An empty list results in an InvalidParameterException being thrown.
(string) --
string
The DescribeTrustsResult.NextToken value from a previous call to DescribeTrusts. Pass null if this is the first call.
integer
The maximum number of objects to return.
dict
Response Syntax
{ 'Trusts': [ { 'DirectoryId': 'string', 'TrustId': 'string', 'RemoteDomainName': 'string', 'TrustType': 'Forest'|'External', 'TrustDirection': 'One-Way: Outgoing'|'One-Way: Incoming'|'Two-Way', 'TrustState': 'Creating'|'Created'|'Verifying'|'VerifyFailed'|'Verified'|'Updating'|'UpdateFailed'|'Updated'|'Deleting'|'Deleted'|'Failed', 'CreatedDateTime': datetime(2015, 1, 1), 'LastUpdatedDateTime': datetime(2015, 1, 1), 'StateLastUpdatedDateTime': datetime(2015, 1, 1), 'TrustStateReason': 'string', 'SelectiveAuth': 'Enabled'|'Disabled' }, ], 'NextToken': 'string' }
Response Structure
(dict) --
The result of a DescribeTrust request.
Trusts (list) --
The list of Trust objects that were retrieved.
It is possible that this list contains less than the number of items specified in the Limit member of the request. This occurs if there are less than the requested number of items left to retrieve, or if the limitations of the operation have been exceeded.
(dict) --
Describes a trust relationship between an AWS Managed Microsoft AD directory and an external domain.
DirectoryId (string) --
The Directory ID of the AWS directory involved in the trust relationship.
TrustId (string) --
The unique ID of the trust relationship.
RemoteDomainName (string) --
The Fully Qualified Domain Name (FQDN) of the external domain involved in the trust relationship.
TrustType (string) --
The trust relationship type. Forest is the default.
TrustDirection (string) --
The trust relationship direction.
TrustState (string) --
The trust relationship state.
CreatedDateTime (datetime) --
The date and time that the trust relationship was created.
LastUpdatedDateTime (datetime) --
The date and time that the trust relationship was last updated.
StateLastUpdatedDateTime (datetime) --
The date and time that the TrustState was last updated.
TrustStateReason (string) --
The reason for the TrustState.
SelectiveAuth (string) --
Current state of selective authentication for the trust.
NextToken (string) --
If not null, more results are available. Pass this value for the NextToken parameter in a subsequent call to DescribeTrusts to retrieve the next set of items.