pub struct Client { /* private fields */ }
Expand description

Client for AWS Directory Service

Client for invoking operations on AWS Directory Service. Each operation on AWS Directory Service is a method on this this struct. .send() MUST be invoked on the generated operations to dispatch the request to the service.

Examples

Constructing a client and invoking an operation

    // create a shared configuration. This can be used & shared between multiple service clients.
    let shared_config = aws_config::load_from_env().await;
    let client = aws_sdk_directory::Client::new(&shared_config);
    // invoke an operation
    /* let rsp = client
        .<operation_name>().
        .<param>("some value")
        .send().await; */

Constructing a client with custom configuration

use aws_config::retry::RetryConfig;
let shared_config = aws_config::load_from_env().await;
let config = aws_sdk_directory::config::Builder::from(&shared_config)
  .retry_config(RetryConfig::disabled())
  .build();
let client = aws_sdk_directory::Client::from_conf(config);

Implementations§

Creates a client with the given service configuration.

Returns the client’s configuration.

Constructs a fluent builder for the AcceptSharedDirectory operation.

Constructs a fluent builder for the AddIpRoutes operation.

  • The fluent builder is configurable:
    • directory_id(impl Into<String>) / set_directory_id(Option<String>):

      Identifier (ID) of the directory to which to add the address block.

    • ip_routes(Vec<IpRoute>) / set_ip_routes(Option<Vec<IpRoute>>):

      IP address blocks, using CIDR format, of the traffic to route. This is often the IP address block of the DNS server used for your self-managed domain.

    • update_security_group_for_directory_controllers(bool) / set_update_security_group_for_directory_controllers(bool):

      If set to true, updates the inbound and outbound rules of the security group that has the description: “Amazon Web Services created security group for directory ID directory controllers.” Following are the new rules:

      Inbound:

      • Type: Custom UDP Rule, Protocol: UDP, Range: 88, Source: 0.0.0.0/0

      • Type: Custom UDP Rule, Protocol: UDP, Range: 123, Source: 0.0.0.0/0

      • Type: Custom UDP Rule, Protocol: UDP, Range: 138, Source: 0.0.0.0/0

      • Type: Custom UDP Rule, Protocol: UDP, Range: 389, Source: 0.0.0.0/0

      • Type: Custom UDP Rule, Protocol: UDP, Range: 464, Source: 0.0.0.0/0

      • Type: Custom UDP Rule, Protocol: UDP, Range: 445, Source: 0.0.0.0/0

      • Type: Custom TCP Rule, Protocol: TCP, Range: 88, Source: 0.0.0.0/0

      • Type: Custom TCP Rule, Protocol: TCP, Range: 135, Source: 0.0.0.0/0

      • Type: Custom TCP Rule, Protocol: TCP, Range: 445, Source: 0.0.0.0/0

      • Type: Custom TCP Rule, Protocol: TCP, Range: 464, Source: 0.0.0.0/0

      • Type: Custom TCP Rule, Protocol: TCP, Range: 636, Source: 0.0.0.0/0

      • Type: Custom TCP Rule, Protocol: TCP, Range: 1024-65535, Source: 0.0.0.0/0

      • Type: Custom TCP Rule, Protocol: TCP, Range: 3268-33269, Source: 0.0.0.0/0

      • Type: DNS (UDP), Protocol: UDP, Range: 53, Source: 0.0.0.0/0

      • Type: DNS (TCP), Protocol: TCP, Range: 53, Source: 0.0.0.0/0

      • Type: LDAP, Protocol: TCP, Range: 389, Source: 0.0.0.0/0

      • Type: All ICMP, Protocol: All, Range: N/A, Source: 0.0.0.0/0

      Outbound:

      • Type: All traffic, Protocol: All, Range: All, Destination: 0.0.0.0/0

      These security rules impact an internal network interface that is not exposed publicly.

  • On success, responds with AddIpRoutesOutput
  • On failure, responds with SdkError<AddIpRoutesError>

Constructs a fluent builder for the AddRegion operation.

Constructs a fluent builder for the AddTagsToResource operation.

Constructs a fluent builder for the CancelSchemaExtension operation.

Constructs a fluent builder for the ConnectDirectory operation.

Constructs a fluent builder for the CreateAlias operation.

Constructs a fluent builder for the CreateComputer operation.

Constructs a fluent builder for the CreateConditionalForwarder operation.

Constructs a fluent builder for the CreateDirectory operation.


  1.  

Constructs a fluent builder for the CreateLogSubscription operation.

Constructs a fluent builder for the CreateMicrosoftAD operation.

Constructs a fluent builder for the CreateSnapshot operation.

Constructs a fluent builder for the CreateTrust operation.

Constructs a fluent builder for the DeleteConditionalForwarder operation.

Constructs a fluent builder for the DeleteDirectory operation.

Constructs a fluent builder for the DeleteLogSubscription operation.

Constructs a fluent builder for the DeleteSnapshot operation.

Constructs a fluent builder for the DeleteTrust operation.

Constructs a fluent builder for the DeregisterCertificate operation.

Constructs a fluent builder for the DeregisterEventTopic operation.

Constructs a fluent builder for the DescribeCertificate operation.

Constructs a fluent builder for the DescribeClientAuthenticationSettings operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the DescribeConditionalForwarders operation.

Constructs a fluent builder for the DescribeDirectories operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the DescribeDomainControllers operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the DescribeEventTopics operation.

Constructs a fluent builder for the DescribeLDAPSSettings operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the DescribeRegions operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the DescribeSettings operation.

Constructs a fluent builder for the DescribeSharedDirectories operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the DescribeSnapshots operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the DescribeTrusts operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the DescribeUpdateDirectory operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the DisableClientAuthentication operation.

Constructs a fluent builder for the DisableLDAPS operation.

Constructs a fluent builder for the DisableRadius operation.

Constructs a fluent builder for the DisableSso operation.

Constructs a fluent builder for the EnableClientAuthentication operation.

Constructs a fluent builder for the EnableLDAPS operation.

Constructs a fluent builder for the EnableRadius operation.

Constructs a fluent builder for the EnableSso operation.

Constructs a fluent builder for the GetDirectoryLimits operation.

Constructs a fluent builder for the GetSnapshotLimits operation.

Constructs a fluent builder for the ListCertificates operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the ListIpRoutes operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the ListLogSubscriptions operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the ListSchemaExtensions operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the ListTagsForResource operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the RegisterCertificate operation.

Constructs a fluent builder for the RegisterEventTopic operation.

Constructs a fluent builder for the RejectSharedDirectory operation.

Constructs a fluent builder for the RemoveIpRoutes operation.

Constructs a fluent builder for the RemoveRegion operation.

Constructs a fluent builder for the RemoveTagsFromResource operation.

Constructs a fluent builder for the ResetUserPassword operation.

Constructs a fluent builder for the RestoreFromSnapshot operation.

Constructs a fluent builder for the ShareDirectory operation.

Constructs a fluent builder for the StartSchemaExtension operation.

Constructs a fluent builder for the UnshareDirectory operation.

Constructs a fluent builder for the UpdateConditionalForwarder operation.

Constructs a fluent builder for the UpdateDirectorySetup operation.

Constructs a fluent builder for the UpdateNumberOfDomainControllers operation.

Constructs a fluent builder for the UpdateRadius operation.

Constructs a fluent builder for the UpdateSettings operation.

Constructs a fluent builder for the UpdateTrust operation.

Constructs a fluent builder for the VerifyTrust operation.

Creates a new client from an SDK Config.

Panics
  • This method will panic if the sdk_config is missing an async sleep implementation. If you experience this panic, set the sleep_impl on the Config passed into this function to fix it.
  • This method will panic if the sdk_config is missing an HTTP connector. If you experience this panic, set the http_connector on the Config passed into this function to fix it.

Creates a new client from the service Config.

Panics
  • This method will panic if the conf is missing an async sleep implementation. If you experience this panic, set the sleep_impl on the Config passed into this function to fix it.
  • This method will panic if the conf is missing an HTTP connector. If you experience this panic, set the http_connector on the Config passed into this function to fix it.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more