aws-sdk-clouddirectory 1.61.0 → 1.68.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -32,11 +32,10 @@ require 'aws-sdk-core/plugins/checksum_algorithm.rb'
32
32
  require 'aws-sdk-core/plugins/request_compression.rb'
33
33
  require 'aws-sdk-core/plugins/defaults_mode.rb'
34
34
  require 'aws-sdk-core/plugins/recursion_detection.rb'
35
+ require 'aws-sdk-core/plugins/telemetry.rb'
35
36
  require 'aws-sdk-core/plugins/sign.rb'
36
37
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
37
38
 
38
- Aws::Plugins::GlobalConfiguration.add_identifier(:clouddirectory)
39
-
40
39
  module Aws::CloudDirectory
41
40
  # An API client for CloudDirectory. To construct a client, you need to configure a `:region` and `:credentials`.
42
41
  #
@@ -83,6 +82,7 @@ module Aws::CloudDirectory
83
82
  add_plugin(Aws::Plugins::RequestCompression)
84
83
  add_plugin(Aws::Plugins::DefaultsMode)
85
84
  add_plugin(Aws::Plugins::RecursionDetection)
85
+ add_plugin(Aws::Plugins::Telemetry)
86
86
  add_plugin(Aws::Plugins::Sign)
87
87
  add_plugin(Aws::Plugins::Protocols::RestJson)
88
88
  add_plugin(Aws::CloudDirectory::Plugins::Endpoints)
@@ -128,13 +128,15 @@ module Aws::CloudDirectory
128
128
  # locations will be searched for credentials:
129
129
  #
130
130
  # * `Aws.config[:credentials]`
131
- # * The `:access_key_id`, `:secret_access_key`, and `:session_token` options.
132
- # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
131
+ # * The `:access_key_id`, `:secret_access_key`, `:session_token`, and
132
+ # `:account_id` options.
133
+ # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY'],
134
+ # ENV['AWS_SESSION_TOKEN'], and ENV['AWS_ACCOUNT_ID']
133
135
  # * `~/.aws/credentials`
134
136
  # * `~/.aws/config`
135
137
  # * EC2/ECS IMDS instance profile - When used by default, the timeouts
136
138
  # are very aggressive. Construct and pass an instance of
137
- # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
139
+ # `Aws::InstanceProfileCredentials` or `Aws::ECSCredentials` to
138
140
  # enable retries and extended timeouts. Instance profile credential
139
141
  # fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
140
142
  # to true.
@@ -153,6 +155,8 @@ module Aws::CloudDirectory
153
155
  #
154
156
  # @option options [String] :access_key_id
155
157
  #
158
+ # @option options [String] :account_id
159
+ #
156
160
  # @option options [Boolean] :active_endpoint_cache (false)
157
161
  # When set to `true`, a thread polling for endpoints will be running in
158
162
  # the background every 60 secs (default). Defaults to `false`.
@@ -330,6 +334,16 @@ module Aws::CloudDirectory
330
334
  # ** Please note ** When response stubbing is enabled, no HTTP
331
335
  # requests are made, and retries are disabled.
332
336
  #
337
+ # @option options [Aws::Telemetry::TelemetryProviderBase] :telemetry_provider (Aws::Telemetry::NoOpTelemetryProvider)
338
+ # Allows you to provide a telemetry provider, which is used to
339
+ # emit telemetry data. By default, uses `NoOpTelemetryProvider` which
340
+ # will not record or emit any telemetry data. The SDK supports the
341
+ # following telemetry providers:
342
+ #
343
+ # * OpenTelemetry (OTel) - To use the OTel provider, install and require the
344
+ # `opentelemetry-sdk` gem and then, pass in an instance of a
345
+ # `Aws::Telemetry::OTelProvider` for telemetry provider.
346
+ #
333
347
  # @option options [Aws::TokenProvider] :token_provider
334
348
  # A Bearer Token Provider. This can be an instance of any one of the
335
349
  # following classes:
@@ -357,7 +371,9 @@ module Aws::CloudDirectory
357
371
  # sending the request.
358
372
  #
359
373
  # @option options [Aws::CloudDirectory::EndpointProvider] :endpoint_provider
360
- # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::CloudDirectory::EndpointParameters`
374
+ # The endpoint provider used to resolve endpoints. Any object that responds to
375
+ # `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to
376
+ # `Aws::CloudDirectory::EndpointParameters`.
361
377
  #
362
378
  # @option options [Float] :http_continue_timeout (1)
363
379
  # The number of seconds to wait for a 100-continue response before sending the
@@ -413,6 +429,12 @@ module Aws::CloudDirectory
413
429
  # @option options [String] :ssl_ca_store
414
430
  # Sets the X509::Store to verify peer certificate.
415
431
  #
432
+ # @option options [OpenSSL::X509::Certificate] :ssl_cert
433
+ # Sets a client certificate when creating http connections.
434
+ #
435
+ # @option options [OpenSSL::PKey] :ssl_key
436
+ # Sets a client key when creating http connections.
437
+ #
416
438
  # @option options [Float] :ssl_timeout
417
439
  # Sets the SSL timeout in seconds
418
440
  #
@@ -444,6 +466,26 @@ module Aws::CloudDirectory
444
466
  #
445
467
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
446
468
  #
469
+ #
470
+ # @example Example: To add a facet to an object
471
+ #
472
+ # resp = client.add_facet_to_object({
473
+ # directory_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AYb8AOV81kHNgdj8mAO3dNY",
474
+ # object_attribute_list: [
475
+ # ],
476
+ # object_reference: {
477
+ # selector: "$AQGG_ADlfNZBzYHY_JgDt3TWmspn1fxfQmSQaaVKSbvEiQ",
478
+ # },
479
+ # schema_facet: {
480
+ # facet_name: "node1",
481
+ # schema_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AYb8AOV81kHNgdj8mAO3dNY/schema/org/1",
482
+ # },
483
+ # })
484
+ #
485
+ # resp.to_h outputs the following:
486
+ # {
487
+ # }
488
+ #
447
489
  # @example Request syntax with placeholder values
448
490
  #
449
491
  # resp = client.add_facet_to_object({
@@ -499,6 +541,20 @@ module Aws::CloudDirectory
499
541
  # * {Types::ApplySchemaResponse#applied_schema_arn #applied_schema_arn} => String
500
542
  # * {Types::ApplySchemaResponse#directory_arn #directory_arn} => String
501
543
  #
544
+ #
545
+ # @example Example: To apply a schema
546
+ #
547
+ # resp = client.apply_schema({
548
+ # directory_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AfMr4qym1kZTvwqOafAYfqI",
549
+ # published_schema_arn: "arn:aws:clouddirectory:us-west-2:45132example:schema/published/org/1",
550
+ # })
551
+ #
552
+ # resp.to_h outputs the following:
553
+ # {
554
+ # applied_schema_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AfMr4qym1kZTvwqOafAYfqI/schema/org/1",
555
+ # directory_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AfMr4qym1kZTvwqOafAYfqI",
556
+ # }
557
+ #
502
558
  # @example Request syntax with placeholder values
503
559
  #
504
560
  # resp = client.apply_schema({
@@ -544,6 +600,25 @@ module Aws::CloudDirectory
544
600
  #
545
601
  # * {Types::AttachObjectResponse#attached_object_identifier #attached_object_identifier} => String
546
602
  #
603
+ #
604
+ # @example Example: To attach an object
605
+ #
606
+ # resp = client.attach_object({
607
+ # child_reference: {
608
+ # selector: "$AQGG_ADlfNZBzYHY_JgDt3TWSvfuEnDqTdmeCuTs6YBNUA",
609
+ # },
610
+ # directory_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AYb8AOV81kHNgdj8mAO3dNY",
611
+ # link_name: "link2",
612
+ # parent_reference: {
613
+ # selector: "$AQGG_ADlfNZBzYHY_JgDt3TWcU7IARvOTeaR09zme1sVsw",
614
+ # },
615
+ # })
616
+ #
617
+ # resp.to_h outputs the following:
618
+ # {
619
+ # attached_object_identifier: "AQGG_ADlfNZBzYHY_JgDt3TWSvfuEnDqTdmeCuTs6YBNUA",
620
+ # }
621
+ #
547
622
  # @example Request syntax with placeholder values
548
623
  #
549
624
  # resp = client.attach_object({
@@ -586,6 +661,23 @@ module Aws::CloudDirectory
586
661
  #
587
662
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
588
663
  #
664
+ #
665
+ # @example Example: To attach a policy to an object
666
+ #
667
+ # resp = client.attach_policy({
668
+ # directory_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AYb8AOV81kHNgdj8mAO3dNY",
669
+ # object_reference: {
670
+ # selector: "$AQGG_ADlfNZBzYHY_JgDt3TWQoovm1s3Ts2v0NKrzdVnPw",
671
+ # },
672
+ # policy_reference: {
673
+ # selector: "$AQGG_ADlfNZBzYHY_JgDt3TWgcBsTVmcQEWs6jlygfhuew",
674
+ # },
675
+ # })
676
+ #
677
+ # resp.to_h outputs the following:
678
+ # {
679
+ # }
680
+ #
589
681
  # @example Request syntax with placeholder values
590
682
  #
591
683
  # resp = client.attach_policy({
@@ -623,6 +715,24 @@ module Aws::CloudDirectory
623
715
  #
624
716
  # * {Types::AttachToIndexResponse#attached_object_identifier #attached_object_identifier} => String
625
717
  #
718
+ #
719
+ # @example Example: To attach a index to an object
720
+ #
721
+ # resp = client.attach_to_index({
722
+ # directory_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AYb8AOV81kHNgdj8mAO3dNY",
723
+ # index_reference: {
724
+ # selector: "$AQGG_ADlfNZBzYHY_JgDt3TW45F26R1HTY2z-stwKBte_Q",
725
+ # },
726
+ # target_reference: {
727
+ # selector: "$AQGG_ADlfNZBzYHY_JgDt3TWcU7IARvOTeaR09zme1sVsw",
728
+ # },
729
+ # })
730
+ #
731
+ # resp.to_h outputs the following:
732
+ # {
733
+ # attached_object_identifier: "AQGG_ADlfNZBzYHY_JgDt3TWcU7IARvOTeaR09zme1sVsw",
734
+ # }
735
+ #
626
736
  # @example Request syntax with placeholder values
627
737
  #
628
738
  # resp = client.attach_to_index({
@@ -676,6 +786,55 @@ module Aws::CloudDirectory
676
786
  #
677
787
  # * {Types::AttachTypedLinkResponse#typed_link_specifier #typed_link_specifier} => Types::TypedLinkSpecifier
678
788
  #
789
+ #
790
+ # @example Example: To attach a typed link to an object
791
+ #
792
+ # resp = client.attach_typed_link({
793
+ # attributes: [
794
+ # {
795
+ # attribute_name: "22",
796
+ # value: {
797
+ # binary_value: "c3Ry",
798
+ # },
799
+ # },
800
+ # ],
801
+ # directory_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AYb8AOV81kHNgdj8mAO3dNY",
802
+ # source_object_reference: {
803
+ # selector: "$AQGG_ADlfNZBzYHY_JgDt3TWSvfuEnDqTdmeCuTs6YBNUA",
804
+ # },
805
+ # target_object_reference: {
806
+ # selector: "$AQGG_ADlfNZBzYHY_JgDt3TWcU7IARvOTeaR09zme1sVsw",
807
+ # },
808
+ # typed_link_facet: {
809
+ # schema_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AYb8AOV81kHNgdj8mAO3dNY/schema/org/1",
810
+ # typed_link_name: "exampletypedlink8",
811
+ # },
812
+ # })
813
+ #
814
+ # resp.to_h outputs the following:
815
+ # {
816
+ # typed_link_specifier: {
817
+ # identity_attribute_values: [
818
+ # {
819
+ # attribute_name: "22",
820
+ # value: {
821
+ # binary_value: "c3Ry",
822
+ # },
823
+ # },
824
+ # ],
825
+ # source_object_reference: {
826
+ # selector: "$AQGG_ADlfNZBzYHY_JgDt3TWSvfuEnDqTdmeCuTs6YBNUA",
827
+ # },
828
+ # target_object_reference: {
829
+ # selector: "$AQGG_ADlfNZBzYHY_JgDt3TWcU7IARvOTeaR09zme1sVsw",
830
+ # },
831
+ # typed_link_facet: {
832
+ # schema_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AYb8AOV81kHNgdj8mAO3dNY/schema/org/1",
833
+ # typed_link_name: "exampletypedlink8",
834
+ # },
835
+ # },
836
+ # }
837
+ #
679
838
  # @example Request syntax with placeholder values
680
839
  #
681
840
  # resp = client.attach_typed_link({
@@ -745,6 +904,22 @@ module Aws::CloudDirectory
745
904
  #
746
905
  # * {Types::BatchReadResponse#responses #responses} => Array<Types::BatchReadOperationResponse>
747
906
  #
907
+ #
908
+ # @example Example: To run a batch read command
909
+ #
910
+ # resp = client.batch_read({
911
+ # consistency_level: "EVENTUAL",
912
+ # directory_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AYb8AOV81kHNgdj8mAO3dNY",
913
+ # operations: [
914
+ # ],
915
+ # })
916
+ #
917
+ # resp.to_h outputs the following:
918
+ # {
919
+ # responses: [
920
+ # ],
921
+ # }
922
+ #
748
923
  # @example Request syntax with placeholder values
749
924
  #
750
925
  # resp = client.batch_read({
@@ -1096,6 +1271,21 @@ module Aws::CloudDirectory
1096
1271
  #
1097
1272
  # * {Types::BatchWriteResponse#responses #responses} => Array<Types::BatchWriteOperationResponse>
1098
1273
  #
1274
+ #
1275
+ # @example Example: To run a batch write command
1276
+ #
1277
+ # resp = client.batch_write({
1278
+ # directory_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AYb8AOV81kHNgdj8mAO3dNY",
1279
+ # operations: [
1280
+ # ],
1281
+ # })
1282
+ #
1283
+ # resp.to_h outputs the following:
1284
+ # {
1285
+ # responses: [
1286
+ # ],
1287
+ # }
1288
+ #
1099
1289
  # @example Request syntax with placeholder values
1100
1290
  #
1101
1291
  # resp = client.batch_write({
@@ -1412,6 +1602,22 @@ module Aws::CloudDirectory
1412
1602
  # * {Types::CreateDirectoryResponse#object_identifier #object_identifier} => String
1413
1603
  # * {Types::CreateDirectoryResponse#applied_schema_arn #applied_schema_arn} => String
1414
1604
  #
1605
+ #
1606
+ # @example Example: To create a new Cloud Directory
1607
+ #
1608
+ # resp = client.create_directory({
1609
+ # name: "ExampleCD",
1610
+ # schema_arn: "arn:aws:clouddirectory:us-west-2:45132example:schema/published/person/1",
1611
+ # })
1612
+ #
1613
+ # resp.to_h outputs the following:
1614
+ # {
1615
+ # applied_schema_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AfMr4qym1kZTvwqOafAYfqI/schema/person/1",
1616
+ # directory_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AfMr4qym1kZTvwqOafAYfqI",
1617
+ # name: "ExampleCD",
1618
+ # object_identifier: "AQHzK-KsptZGU78KjmnwGH6i-4guCM3uQFOTA9_NjeHDrg",
1619
+ # }
1620
+ #
1415
1621
  # @example Request syntax with placeholder values
1416
1622
  #
1417
1623
  # resp = client.create_directory({
@@ -1484,6 +1690,19 @@ module Aws::CloudDirectory
1484
1690
  #
1485
1691
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1486
1692
  #
1693
+ #
1694
+ # @example Example: To create a facet
1695
+ #
1696
+ # resp = client.create_facet({
1697
+ # name: "node1",
1698
+ # object_type: "NODE",
1699
+ # schema_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AYb8AOV81kHNgdj8mAO3dNY/schema/org/1",
1700
+ # })
1701
+ #
1702
+ # resp.to_h outputs the following:
1703
+ # {
1704
+ # }
1705
+ #
1487
1706
  # @example Request syntax with placeholder values
1488
1707
  #
1489
1708
  # resp = client.create_facet({
@@ -1559,6 +1778,24 @@ module Aws::CloudDirectory
1559
1778
  #
1560
1779
  # * {Types::CreateIndexResponse#object_identifier #object_identifier} => String
1561
1780
  #
1781
+ #
1782
+ # @example Example: To create an index
1783
+ #
1784
+ # resp = client.create_index({
1785
+ # directory_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AXQXDXvdgkOWktRXV4HnRa8",
1786
+ # is_unique: true,
1787
+ # link_name: "Examplelink",
1788
+ # ordered_indexed_attribute_list: [
1789
+ # ],
1790
+ # parent_reference: {
1791
+ # },
1792
+ # })
1793
+ #
1794
+ # resp.to_h outputs the following:
1795
+ # {
1796
+ # object_identifier: "AQF0Fw173YJDlpLUV1eB50WvYsWFtVoUSmOzZjz_BLULIA",
1797
+ # }
1798
+ #
1562
1799
  # @example Request syntax with placeholder values
1563
1800
  #
1564
1801
  # resp = client.create_index({
@@ -1619,6 +1856,24 @@ module Aws::CloudDirectory
1619
1856
  #
1620
1857
  # * {Types::CreateObjectResponse#object_identifier #object_identifier} => String
1621
1858
  #
1859
+ #
1860
+ # @example Example: To create an object
1861
+ #
1862
+ # resp = client.create_object({
1863
+ # directory_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AXQXDXvdgkOWktRXV4HnRa8",
1864
+ # schema_facets: [
1865
+ # {
1866
+ # facet_name: "Organization_Person",
1867
+ # schema_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AXQXDXvdgkOWktRXV4HnRa8/schema/ExampleOrgPersonSchema/1",
1868
+ # },
1869
+ # ],
1870
+ # })
1871
+ #
1872
+ # resp.to_h outputs the following:
1873
+ # {
1874
+ # object_identifier: "AQF0Fw173YJDlpLUV1eB50WvScvjsYXcS3K2nP1HwDuuYQ",
1875
+ # }
1876
+ #
1622
1877
  # @example Request syntax with placeholder values
1623
1878
  #
1624
1879
  # resp = client.create_object({
@@ -1687,6 +1942,18 @@ module Aws::CloudDirectory
1687
1942
  #
1688
1943
  # * {Types::CreateSchemaResponse#schema_arn #schema_arn} => String
1689
1944
  #
1945
+ #
1946
+ # @example Example: To create a schema
1947
+ #
1948
+ # resp = client.create_schema({
1949
+ # name: "Customers",
1950
+ # })
1951
+ #
1952
+ # resp.to_h outputs the following:
1953
+ # {
1954
+ # schema_arn: "arn:aws:clouddirectory:us-west-2:45132example:schema/development/Customers",
1955
+ # }
1956
+ #
1690
1957
  # @example Request syntax with placeholder values
1691
1958
  #
1692
1959
  # resp = client.create_schema({
@@ -1721,6 +1988,30 @@ module Aws::CloudDirectory
1721
1988
  #
1722
1989
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1723
1990
  #
1991
+ #
1992
+ # @example Example: To create a typed link facet
1993
+ #
1994
+ # resp = client.create_typed_link_facet({
1995
+ # facet: {
1996
+ # attributes: [
1997
+ # {
1998
+ # name: "1",
1999
+ # required_behavior: "REQUIRED_ALWAYS",
2000
+ # type: "BINARY",
2001
+ # },
2002
+ # ],
2003
+ # identity_attribute_order: [
2004
+ # "1",
2005
+ # ],
2006
+ # name: "FacetExample",
2007
+ # },
2008
+ # schema_arn: "arn:aws:clouddirectory:us-west-2:45132example:schema/development/typedlinkschema",
2009
+ # })
2010
+ #
2011
+ # resp.to_h outputs the following:
2012
+ # {
2013
+ # }
2014
+ #
1724
2015
  # @example Request syntax with placeholder values
1725
2016
  #
1726
2017
  # resp = client.create_typed_link_facet({
@@ -1774,6 +2065,18 @@ module Aws::CloudDirectory
1774
2065
  #
1775
2066
  # * {Types::DeleteDirectoryResponse#directory_arn #directory_arn} => String
1776
2067
  #
2068
+ #
2069
+ # @example Example: To delete a directory
2070
+ #
2071
+ # resp = client.delete_directory({
2072
+ # directory_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AXQXDXvdgkOWktRXV4HnRa8",
2073
+ # })
2074
+ #
2075
+ # resp.to_h outputs the following:
2076
+ # {
2077
+ # directory_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AXQXDXvdgkOWktRXV4HnRa8",
2078
+ # }
2079
+ #
1777
2080
  # @example Request syntax with placeholder values
1778
2081
  #
1779
2082
  # resp = client.delete_directory({
@@ -1806,6 +2109,18 @@ module Aws::CloudDirectory
1806
2109
  #
1807
2110
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1808
2111
  #
2112
+ #
2113
+ # @example Example: To delete a facet
2114
+ #
2115
+ # resp = client.delete_facet({
2116
+ # name: "Organization",
2117
+ # schema_arn: "arn:aws:clouddirectory:us-west-2:45132example:schema/development/exampleorgtest",
2118
+ # })
2119
+ #
2120
+ # resp.to_h outputs the following:
2121
+ # {
2122
+ # }
2123
+ #
1809
2124
  # @example Request syntax with placeholder values
1810
2125
  #
1811
2126
  # resp = client.delete_facet({
@@ -1840,6 +2155,20 @@ module Aws::CloudDirectory
1840
2155
  #
1841
2156
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1842
2157
  #
2158
+ #
2159
+ # @example Example: To delete an object
2160
+ #
2161
+ # resp = client.delete_object({
2162
+ # directory_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AfMr4qym1kZTvwqOafAYfqI",
2163
+ # object_reference: {
2164
+ # selector: "$AQHzK-KsptZGU78KjmnwGH6i8H-voMZDSNCqfx-fRUcBFg",
2165
+ # },
2166
+ # })
2167
+ #
2168
+ # resp.to_h outputs the following:
2169
+ # {
2170
+ # }
2171
+ #
1843
2172
  # @example Request syntax with placeholder values
1844
2173
  #
1845
2174
  # resp = client.delete_object({
@@ -1869,6 +2198,18 @@ module Aws::CloudDirectory
1869
2198
  #
1870
2199
  # * {Types::DeleteSchemaResponse#schema_arn #schema_arn} => String
1871
2200
  #
2201
+ #
2202
+ # @example Example: To delete a schema
2203
+ #
2204
+ # resp = client.delete_schema({
2205
+ # schema_arn: "arn:aws:clouddirectory:us-west-2:45132example:schema/development/exampleorgtest",
2206
+ # })
2207
+ #
2208
+ # resp.to_h outputs the following:
2209
+ # {
2210
+ # schema_arn: "arn:aws:clouddirectory:us-west-2:45132example:schema/development/exampleorgtest",
2211
+ # }
2212
+ #
1872
2213
  # @example Request syntax with placeholder values
1873
2214
  #
1874
2215
  # resp = client.delete_schema({
@@ -1903,6 +2244,18 @@ module Aws::CloudDirectory
1903
2244
  #
1904
2245
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1905
2246
  #
2247
+ #
2248
+ # @example Example: To delete a typed link facet
2249
+ #
2250
+ # resp = client.delete_typed_link_facet({
2251
+ # name: "ExampleFacet",
2252
+ # schema_arn: "arn:aws:clouddirectory:us-west-2:45132example:schema/development/typedlinkschematest",
2253
+ # })
2254
+ #
2255
+ # resp.to_h outputs the following:
2256
+ # {
2257
+ # }
2258
+ #
1906
2259
  # @example Request syntax with placeholder values
1907
2260
  #
1908
2261
  # resp = client.delete_typed_link_facet({
@@ -1935,6 +2288,24 @@ module Aws::CloudDirectory
1935
2288
  #
1936
2289
  # * {Types::DetachFromIndexResponse#detached_object_identifier #detached_object_identifier} => String
1937
2290
  #
2291
+ #
2292
+ # @example Example: To detach an object from an index
2293
+ #
2294
+ # resp = client.detach_from_index({
2295
+ # directory_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AYb8AOV81kHNgdj8mAO3dNY",
2296
+ # index_reference: {
2297
+ # selector: "$AQGG_ADlfNZBzYHY_JgDt3TW45F26R1HTY2z-stwKBte_Q",
2298
+ # },
2299
+ # target_reference: {
2300
+ # selector: "$AQGG_ADlfNZBzYHY_JgDt3TWcU7IARvOTeaR09zme1sVsw",
2301
+ # },
2302
+ # })
2303
+ #
2304
+ # resp.to_h outputs the following:
2305
+ # {
2306
+ # detached_object_identifier: "AQGG_ADlfNZBzYHY_JgDt3TWcU7IARvOTeaR09zme1sVsw",
2307
+ # }
2308
+ #
1938
2309
  # @example Request syntax with placeholder values
1939
2310
  #
1940
2311
  # resp = client.detach_from_index({
@@ -1978,6 +2349,22 @@ module Aws::CloudDirectory
1978
2349
  #
1979
2350
  # * {Types::DetachObjectResponse#detached_object_identifier #detached_object_identifier} => String
1980
2351
  #
2352
+ #
2353
+ # @example Example: To detach an object from its parent object
2354
+ #
2355
+ # resp = client.detach_object({
2356
+ # directory_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AYb8AOV81kHNgdj8mAO3dNY",
2357
+ # link_name: "link2",
2358
+ # parent_reference: {
2359
+ # selector: "$AQGG_ADlfNZBzYHY_JgDt3TWcU7IARvOTeaR09zme1sVsw",
2360
+ # },
2361
+ # })
2362
+ #
2363
+ # resp.to_h outputs the following:
2364
+ # {
2365
+ # detached_object_identifier: "AQGG_ADlfNZBzYHY_JgDt3TWSvfuEnDqTdmeCuTs6YBNUA",
2366
+ # }
2367
+ #
1981
2368
  # @example Request syntax with placeholder values
1982
2369
  #
1983
2370
  # resp = client.detach_object({
@@ -2016,6 +2403,23 @@ module Aws::CloudDirectory
2016
2403
  #
2017
2404
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2018
2405
  #
2406
+ #
2407
+ # @example Example: To detach a policy from an object
2408
+ #
2409
+ # resp = client.detach_policy({
2410
+ # directory_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AYb8AOV81kHNgdj8mAO3dNY",
2411
+ # object_reference: {
2412
+ # selector: "$AQGG_ADlfNZBzYHY_JgDt3TWQoovm1s3Ts2v0NKrzdVnPw",
2413
+ # },
2414
+ # policy_reference: {
2415
+ # selector: "$AQGG_ADlfNZBzYHY_JgDt3TWgcBsTVmcQEWs6jlygfhuew",
2416
+ # },
2417
+ # })
2418
+ #
2419
+ # resp.to_h outputs the following:
2420
+ # {
2421
+ # }
2422
+ #
2019
2423
  # @example Request syntax with placeholder values
2020
2424
  #
2021
2425
  # resp = client.detach_policy({
@@ -2053,6 +2457,33 @@ module Aws::CloudDirectory
2053
2457
  #
2054
2458
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2055
2459
  #
2460
+ #
2461
+ # @example Example: To detach a typed link from an object
2462
+ #
2463
+ # resp = client.detach_typed_link({
2464
+ # directory_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AYb8AOV81kHNgdj8mAO3dNY",
2465
+ # typed_link_specifier: {
2466
+ # identity_attribute_values: [
2467
+ # {
2468
+ # attribute_name: "22",
2469
+ # value: {
2470
+ # binary_value: "c3Ry",
2471
+ # },
2472
+ # },
2473
+ # ],
2474
+ # source_object_reference: {
2475
+ # selector: "$AQGG_ADlfNZBzYHY_JgDt3TWSvfuEnDqTdmeCuTs6YBNUA",
2476
+ # },
2477
+ # target_object_reference: {
2478
+ # selector: "$AQGG_ADlfNZBzYHY_JgDt3TWcU7IARvOTeaR09zme1sVsw",
2479
+ # },
2480
+ # typed_link_facet: {
2481
+ # schema_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AYb8AOV81kHNgdj8mAO3dNY/schema/org/1",
2482
+ # typed_link_name: "exampletypedlink8",
2483
+ # },
2484
+ # },
2485
+ # })
2486
+ #
2056
2487
  # @example Request syntax with placeholder values
2057
2488
  #
2058
2489
  # resp = client.detach_typed_link({
@@ -2103,6 +2534,18 @@ module Aws::CloudDirectory
2103
2534
  #
2104
2535
  # * {Types::DisableDirectoryResponse#directory_arn #directory_arn} => String
2105
2536
  #
2537
+ #
2538
+ # @example Example: To disable a directory
2539
+ #
2540
+ # resp = client.disable_directory({
2541
+ # directory_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AXQXDXvdgkOWktRXV4HnRa8",
2542
+ # })
2543
+ #
2544
+ # resp.to_h outputs the following:
2545
+ # {
2546
+ # directory_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AXQXDXvdgkOWktRXV4HnRa8",
2547
+ # }
2548
+ #
2106
2549
  # @example Request syntax with placeholder values
2107
2550
  #
2108
2551
  # resp = client.disable_directory({
@@ -2132,6 +2575,18 @@ module Aws::CloudDirectory
2132
2575
  #
2133
2576
  # * {Types::EnableDirectoryResponse#directory_arn #directory_arn} => String
2134
2577
  #
2578
+ #
2579
+ # @example Example: To enable a disabled directory
2580
+ #
2581
+ # resp = client.enable_directory({
2582
+ # directory_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AXQXDXvdgkOWktRXV4HnRa8",
2583
+ # })
2584
+ #
2585
+ # resp.to_h outputs the following:
2586
+ # {
2587
+ # directory_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AXQXDXvdgkOWktRXV4HnRa8",
2588
+ # }
2589
+ #
2135
2590
  # @example Request syntax with placeholder values
2136
2591
  #
2137
2592
  # resp = client.enable_directory({
@@ -2189,6 +2644,23 @@ module Aws::CloudDirectory
2189
2644
  #
2190
2645
  # * {Types::GetDirectoryResponse#directory #directory} => Types::Directory
2191
2646
  #
2647
+ #
2648
+ # @example Example: To get information about a directory
2649
+ #
2650
+ # resp = client.get_directory({
2651
+ # directory_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AYb8AOV81kHNgdj8mAO3dNY",
2652
+ # })
2653
+ #
2654
+ # resp.to_h outputs the following:
2655
+ # {
2656
+ # directory: {
2657
+ # creation_date_time: Time.parse(1506115781.186),
2658
+ # directory_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AYb8AOV81kHNgdj8mAO3dNY",
2659
+ # name: "ExampleCD",
2660
+ # state: "ENABLED",
2661
+ # },
2662
+ # }
2663
+ #
2192
2664
  # @example Request syntax with placeholder values
2193
2665
  #
2194
2666
  # resp = client.get_directory({
@@ -2226,6 +2698,22 @@ module Aws::CloudDirectory
2226
2698
  #
2227
2699
  # * {Types::GetFacetResponse#facet #facet} => Types::Facet
2228
2700
  #
2701
+ #
2702
+ # @example Example: To get information about a facet
2703
+ #
2704
+ # resp = client.get_facet({
2705
+ # name: "node2",
2706
+ # schema_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AYb8AOV81kHNgdj8mAO3dNY/schema/org/1",
2707
+ # })
2708
+ #
2709
+ # resp.to_h outputs the following:
2710
+ # {
2711
+ # facet: {
2712
+ # name: "node2",
2713
+ # object_type: "NODE",
2714
+ # },
2715
+ # }
2716
+ #
2229
2717
  # @example Request syntax with placeholder values
2230
2718
  #
2231
2719
  # resp = client.get_facet({
@@ -2404,6 +2892,28 @@ module Aws::CloudDirectory
2404
2892
  # * {Types::GetObjectInformationResponse#schema_facets #schema_facets} => Array<Types::SchemaFacet>
2405
2893
  # * {Types::GetObjectInformationResponse#object_identifier #object_identifier} => String
2406
2894
  #
2895
+ #
2896
+ # @example Example: To get information about an object
2897
+ #
2898
+ # resp = client.get_object_information({
2899
+ # consistency_level: "SERIALIZABLE",
2900
+ # directory_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AYb8AOV81kHNgdj8mAO3dNY",
2901
+ # object_reference: {
2902
+ # selector: "$AQGG_ADlfNZBzYHY_JgDt3TWmspn1fxfQmSQaaVKSbvEiQ",
2903
+ # },
2904
+ # })
2905
+ #
2906
+ # resp.to_h outputs the following:
2907
+ # {
2908
+ # object_identifier: "AQGG_ADlfNZBzYHY_JgDt3TWmspn1fxfQmSQaaVKSbvEiQ",
2909
+ # schema_facets: [
2910
+ # {
2911
+ # facet_name: "node2",
2912
+ # schema_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AYb8AOV81kHNgdj8mAO3dNY/schema/org/1",
2913
+ # },
2914
+ # ],
2915
+ # }
2916
+ #
2407
2917
  # @example Request syntax with placeholder values
2408
2918
  #
2409
2919
  # resp = client.get_object_information({
@@ -2445,6 +2955,19 @@ module Aws::CloudDirectory
2445
2955
  # * {Types::GetSchemaAsJsonResponse#name #name} => String
2446
2956
  # * {Types::GetSchemaAsJsonResponse#document #document} => String
2447
2957
  #
2958
+ #
2959
+ # @example Example: To get schema information and display it in JSON format
2960
+ #
2961
+ # resp = client.get_schema_as_json({
2962
+ # schema_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AYb8AOV81kHNgdj8mAO3dNY/schema/org/1",
2963
+ # })
2964
+ #
2965
+ # resp.to_h outputs the following:
2966
+ # {
2967
+ # document: "{\"sourceSchemaArn\":\"arn:aws:clouddirectory:us-west-2:45132example:schema/published/org/1\",\"facets\":{\"node2\":{\"facetAttributes\":{},\"objectType\":\"NODE\"},\"Organization\":{\"facetAttributes\":{\"account_id\":{\"attributeDefinition\":{\"attributeType\":\"STRING\",\"isImmutable\":false,\"attributeRules\":{\"nameLength\":{\"parameters\":{\"min\":\"1\",\"max\":\"1024\"},\"ruleType\":\"STRING_LENGTH\"}}},\"requiredBehavior\":\"NOT_REQUIRED\"},\"account_name\":{\"attributeDefinition\":{\"attributeType\":\"STRING\",\"isImmutable\":false,\"attributeRules\":{\"nameLength\":{\"parameters\":{\"min\":\"1\",\"max\":\"1024\"},\"ruleType\":\"STRING_LENGTH\"}}},\"requiredBehavior\":\"NOT_REQUIRED\"},\"telephone_number\":{\"attributeDefinition\":{\"attributeType\":\"STRING\",\"isImmutable\":false,\"attributeRules\":{\"nameLength\":{\"parameters\":{\"min\":\"1\",\"max\":\"1024\"},\"ruleType\":\"STRING_LENGTH\"}}},\"requiredBehavior\":\"NOT_REQUIRED\"},\"description\":{\"attributeDefinition\":{\"attributeType\":\"STRING\",\"isImmutable\":false,\"attributeRules\":{\"nameLength\":{\"parameters\":{\"min\":\"1\",\"max\":\"1024\"},\"ruleType\":\"STRING_LENGTH\"}}},\"requiredBehavior\":\"NOT_REQUIRED\"},\"mailing_address_country\":{\"attributeDefinition\":{\"attributeType\":\"STRING\",\"isImmutable\":false,\"attributeRules\":{\"nameLength\":{\"parameters\":{\"min\":\"1\",\"max\":\"1024\"},\"ruleType\":\"STRING_LENGTH\"}}},\"requiredBehavior\":\"NOT_REQUIRED\"},\"mailing_address_state\":{\"attributeDefinition\":{\"attributeType\":\"STRING\",\"isImmutable\":false,\"attributeRules\":{\"nameLength\":{\"parameters\":{\"min\":\"1\",\"max\":\"1024\"},\"ruleType\":\"STRING_LENGTH\"}}},\"requiredBehavior\":\"NOT_REQUIRED\"},\"mailing_address_street2\":{\"attributeDefinition\":{\"attributeType\":\"STRING\",\"isImmutable\":false,\"attributeRules\":{\"nameLength\":{\"parameters\":{\"min\":\"1\",\"max\":\"1024\"},\"ruleType\":\"STRING_LENGTH\"}}},\"requiredBehavior\":\"NOT_REQUIRED\"},\"mailing_address_street1\":{\"attributeDefinition\":{\"attributeType\":\"STRING\",\"isImmutable\":false,\"attributeRules\":{\"nameLength\":{\"parameters\":{\"min\":\"1\",\"max\":\"1024\"},\"ruleType\":\"STRING_LENGTH\"}}},\"requiredBehavior\":\"NOT_REQUIRED\"},\"web_site\":{\"attributeDefinition\":{\"attributeType\":\"STRING\",\"isImmutable\":false,\"attributeRules\":{\"nameLength\":{\"parameters\":{\"min\":\"1\",\"max\":\"1024\"},\"ruleType\":\"STRING_LENGTH\"}}},\"requiredBehavior\":\"NOT_REQUIRED\"},\"email\":{\"attributeDefinition\":{\"attributeType\":\"STRING\",\"isImmutable\":false,\"attributeRules\":{\"nameLength\":{\"parameters\":{\"min\":\"1\",\"max\":\"1024\"},\"ruleType\":\"STRING_LENGTH\"}}},\"requiredBehavior\":\"NOT_REQUIRED\"},\"mailing_address_city\":{\"attributeDefinition\":{\"attributeType\":\"STRING\",\"isImmutable\":false,\"attributeRules\":{\"nameLength\":{\"parameters\":{\"min\":\"1\",\"max\":\"1024\"},\"ruleType\":\"STRING_LENGTH\"}}},\"requiredBehavior\":\"NOT_REQUIRED\"},\"organization_status\":{\"attributeDefinition\":{\"attributeType\":\"STRING\",\"isImmutable\":false,\"attributeRules\":{\"nameLength\":{\"parameters\":{\"min\":\"1\",\"max\":\"1024\"},\"ruleType\":\"STRING_LENGTH\"}}},\"requiredBehavior\":\"NOT_REQUIRED\"},\"mailing_address_postal_code\":{\"attributeDefinition\":{\"attributeType\":\"STRING\",\"isImmutable\":false,\"attributeRules\":{\"nameLength\":{\"parameters\":{\"min\":\"1\",\"max\":\"1024\"},\"ruleType\":\"STRING_LENGTH\"}}},\"requiredBehavior\":\"NOT_REQUIRED\"}},\"objectType\":\"LEAF_NODE\"},\"nodex\":{\"facetAttributes\":{},\"objectType\":\"NODE\"},\"Legal_Entity\":{\"facetAttributes\":{\"industry_vertical\":{\"attributeDefinition\":{\"attributeType\":\"STRING\",\"isImmutable\":false,\"attributeRules\":{\"nameLength\":{\"parameters\":{\"min\":\"1\",\"max\":\"1024\"},\"ruleType\":\"STRING_LENGTH\"}}},\"requiredBehavior\":\"NOT_REQUIRED\"},\"registered_company_name\":{\"attributeDefinition\":{\"attributeType\":\"STRING\",\"isImmutable\":false,\"attributeRules\":{\"nameLength\":{\"parameters\":{\"min\":\"1\",\"max\":\"1024\"},\"ruleType\":\"STRING_LENGTH\"}}},\"requiredBehavior\":\"NOT_REQUIRED\"},\"billing_currency\":{\"attributeDefinition\":{\"attributeType\":\"STRING\",\"isImmutable\":false,\"attributeRules\":{\"nameLength\":{\"parameters\":{\"min\":\"1\",\"max\":\"1024\"},\"ruleType\":\"STRING_LENGTH\"}}},\"requiredBehavior\":\"NOT_REQUIRED\"},\"mailing_address_country\":{\"attributeDefinition\":{\"attributeType\":\"STRING\",\"isImmutable\":false,\"attributeRules\":{\"nameLength\":{\"parameters\":{\"min\":\"1\",\"max\":\"1024\"},\"ruleType\":\"STRING_LENGTH\"}}},\"requiredBehavior\":\"NOT_REQUIRED\"},\"mailing_address_state\":{\"attributeDefinition\":{\"attributeType\":\"STRING\",\"isImmutable\":false,\"attributeRules\":{\"nameLength\":{\"parameters\":{\"min\":\"1\",\"max\":\"1024\"},\"ruleType\":\"STRING_LENGTH\"}}},\"requiredBehavior\":\"NOT_REQUIRED\"},\"mailing_address_street2\":{\"attributeDefinition\":{\"attributeType\":\"STRING\",\"isImmutable\":false,\"attributeRules\":{\"nameLength\":{\"parameters\":{\"min\":\"1\",\"max\":\"1024\"},\"ruleType\":\"STRING_LENGTH\"}}},\"requiredBehavior\":\"NOT_REQUIRED\"},\"mailing_address_street1\":{\"attributeDefinition\":{\"attributeType\":\"STRING\",\"isImmutable\":false,\"attributeRules\":{\"nameLength\":{\"parameters\":{\"min\":\"1\",\"max\":\"1024\"},\"ruleType\":\"STRING_LENGTH\"}}},\"requiredBehavior\":\"NOT_REQUIRED\"},\"tax_id\":{\"attributeDefinition\":{\"attributeType\":\"STRING\",\"isImmutable\":false,\"attributeRules\":{\"nameLength\":{\"parameters\":{\"min\":\"1\",\"max\":\"1024\"},\"ruleType\":\"STRING_LENGTH\"}}},\"requiredBehavior\":\"NOT_REQUIRED\"},\"mailing_address_city\":{\"attributeDefinition\":{\"attributeType\":\"STRING\",\"isImmutable\":false,\"attributeRules\":{\"nameLength\":{\"parameters\":{\"min\":\"1\",\"max\":\"1024\"},\"ruleType\":\"STRING_LENGTH\"}}},\"requiredBehavior\":\"NOT_REQUIRED\"},\"mailing_address_postal_code\":{\"attributeDefinition\":{\"attributeType\":\"STRING\",\"isImmutable\":false,\"attributeRules\":{\"nameLength\":{\"parameters\":{\"min\":\"1\",\"max\":\"1024\"},\"ruleType\":\"STRING_LENGTH\"}}},\"requiredBehavior\":\"NOT_REQUIRED\"}},\"objectType\":\"LEAF_NODE\"},\"policyfacet\":{\"facetAttributes\":{},\"objectType\":\"POLICY\"},\"node1\":{\"facetAttributes\":{},\"objectType\":\"NODE\"}},\"typedLinkFacets\":{\"exampletypedlink\":{\"facetAttributes\":{\"1\":{\"attributeDefinition\":{\"attributeType\":\"BINARY\",\"isImmutable\":false,\"attributeRules\":{}},\"requiredBehavior\":\"REQUIRED_ALWAYS\"}},\"identityAttributeOrder\":[\"1\"]},\"exampletypedlink8\":{\"facetAttributes\":{\"22\":{\"attributeDefinition\":{\"attributeType\":\"BINARY\",\"isImmutable\":false,\"attributeRules\":{}},\"requiredBehavior\":\"REQUIRED_ALWAYS\"}},\"identityAttributeOrder\":[\"22\"]}}}",
2968
+ # name: "org",
2969
+ # }
2970
+ #
2448
2971
  # @example Request syntax with placeholder values
2449
2972
  #
2450
2973
  # resp = client.get_schema_as_json({
@@ -2483,6 +3006,21 @@ module Aws::CloudDirectory
2483
3006
  #
2484
3007
  # * {Types::GetTypedLinkFacetInformationResponse#identity_attribute_order #identity_attribute_order} => Array<String>
2485
3008
  #
3009
+ #
3010
+ # @example Example: To get information about a typed link facet
3011
+ #
3012
+ # resp = client.get_typed_link_facet_information({
3013
+ # name: "exampletypedlink8",
3014
+ # schema_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AYb8AOV81kHNgdj8mAO3dNY/schema/org/1",
3015
+ # })
3016
+ #
3017
+ # resp.to_h outputs the following:
3018
+ # {
3019
+ # identity_attribute_order: [
3020
+ # "22",
3021
+ # ],
3022
+ # }
3023
+ #
2486
3024
  # @example Request syntax with placeholder values
2487
3025
  #
2488
3026
  # resp = client.get_typed_link_facet_information({
@@ -2527,6 +3065,20 @@ module Aws::CloudDirectory
2527
3065
  #
2528
3066
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2529
3067
  #
3068
+ #
3069
+ # @example Example: To list applied schema ARNs for a specified directory
3070
+ #
3071
+ # resp = client.list_applied_schema_arns({
3072
+ # directory_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AYb8AOV81kHNgdj8mAO3dNY",
3073
+ # })
3074
+ #
3075
+ # resp.to_h outputs the following:
3076
+ # {
3077
+ # schema_arns: [
3078
+ # "arn:aws:clouddirectory:us-west-2:45132example:directory/AYb8AOV81kHNgdj8mAO3dNY/schema/org/1",
3079
+ # ],
3080
+ # }
3081
+ #
2530
3082
  # @example Request syntax with placeholder values
2531
3083
  #
2532
3084
  # resp = client.list_applied_schema_arns({
@@ -2575,6 +3127,27 @@ module Aws::CloudDirectory
2575
3127
  #
2576
3128
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2577
3129
  #
3130
+ #
3131
+ # @example Example: To list the indices attached to an object
3132
+ #
3133
+ # resp = client.list_attached_indices({
3134
+ # directory_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AYb8AOV81kHNgdj8mAO3dNY",
3135
+ # target_reference: {
3136
+ # selector: "$AQGG_ADlfNZBzYHY_JgDt3TWcU7IARvOTeaR09zme1sVsw",
3137
+ # },
3138
+ # })
3139
+ #
3140
+ # resp.to_h outputs the following:
3141
+ # {
3142
+ # index_attachments: [
3143
+ # {
3144
+ # indexed_attributes: [
3145
+ # ],
3146
+ # object_identifier: "AQGG_ADlfNZBzYHY_JgDt3TW45F26R1HTY2z-stwKBte_Q",
3147
+ # },
3148
+ # ],
3149
+ # }
3150
+ #
2578
3151
  # @example Request syntax with placeholder values
2579
3152
  #
2580
3153
  # resp = client.list_attached_indices({
@@ -2627,6 +3200,24 @@ module Aws::CloudDirectory
2627
3200
  #
2628
3201
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2629
3202
  #
3203
+ #
3204
+ # @example Example: To list all development schema arns in your AWS account
3205
+ #
3206
+ # resp = client.list_development_schema_arns({
3207
+ # })
3208
+ #
3209
+ # resp.to_h outputs the following:
3210
+ # {
3211
+ # schema_arns: [
3212
+ # "arn:aws:clouddirectory:us-west-2:45132example:schema/development/typedlinkschematest",
3213
+ # "arn:aws:clouddirectory:us-west-2:45132example:schema/development/testCDschema",
3214
+ # "arn:aws:clouddirectory:us-west-2:45132example:schema/development/Customers",
3215
+ # "arn:aws:clouddirectory:us-west-2:45132example:schema/development/CourseCatalog",
3216
+ # "arn:aws:clouddirectory:us-west-2:45132example:schema/development/Consumers",
3217
+ # "arn:aws:clouddirectory:us-west-2:45132example:schema/development/exampleorg",
3218
+ # ],
3219
+ # }
3220
+ #
2630
3221
  # @example Request syntax with placeholder values
2631
3222
  #
2632
3223
  # resp = client.list_development_schema_arns({
@@ -2668,6 +3259,48 @@ module Aws::CloudDirectory
2668
3259
  #
2669
3260
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2670
3261
  #
3262
+ #
3263
+ # @example Example: To list all directories in your AWS account
3264
+ #
3265
+ # resp = client.list_directories({
3266
+ # })
3267
+ #
3268
+ # resp.to_h outputs the following:
3269
+ # {
3270
+ # directories: [
3271
+ # {
3272
+ # creation_date_time: Time.parse(1506121791.167),
3273
+ # directory_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/Ae89hOKmw0bRpvYgW8EAsus",
3274
+ # name: "ExampleCD4",
3275
+ # state: "ENABLED",
3276
+ # },
3277
+ # {
3278
+ # creation_date_time: Time.parse(1485473189.746),
3279
+ # directory_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AXQXDXvdgkOWktRXV4HnRa8",
3280
+ # name: "testCD",
3281
+ # state: "DELETED",
3282
+ # },
3283
+ # {
3284
+ # creation_date_time: Time.parse(1506115781.186),
3285
+ # directory_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AYb8AOV81kHNgdj8mAO3dNY",
3286
+ # name: "ExampleCD",
3287
+ # state: "ENABLED",
3288
+ # },
3289
+ # {
3290
+ # creation_date_time: Time.parse(1506118003.859),
3291
+ # directory_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AfMr4qym1kZTvwqOafAYfqI",
3292
+ # name: "ExampleCD2",
3293
+ # state: "ENABLED",
3294
+ # },
3295
+ # {
3296
+ # creation_date_time: Time.parse(1485477107.925),
3297
+ # directory_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AWeI1yjiB0SylWVTvQklCD0",
3298
+ # name: "testCD2",
3299
+ # state: "DELETED",
3300
+ # },
3301
+ # ],
3302
+ # }
3303
+ #
2671
3304
  # @example Request syntax with placeholder values
2672
3305
  #
2673
3306
  # resp = client.list_directories({
@@ -2715,6 +3348,191 @@ module Aws::CloudDirectory
2715
3348
  #
2716
3349
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2717
3350
  #
3351
+ #
3352
+ # @example Example: To list facet attributes
3353
+ #
3354
+ # resp = client.list_facet_attributes({
3355
+ # name: "Organization",
3356
+ # schema_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AYb8AOV81kHNgdj8mAO3dNY/schema/org/1",
3357
+ # })
3358
+ #
3359
+ # resp.to_h outputs the following:
3360
+ # {
3361
+ # attributes: [
3362
+ # {
3363
+ # attribute_definition: {
3364
+ # is_immutable: false,
3365
+ # rules: {
3366
+ # "nameLength" => {
3367
+ # parameters: {
3368
+ # "max" => "1024",
3369
+ # "min" => "1",
3370
+ # },
3371
+ # type: "STRING_LENGTH",
3372
+ # },
3373
+ # },
3374
+ # type: "STRING",
3375
+ # },
3376
+ # name: "account_id",
3377
+ # required_behavior: "NOT_REQUIRED",
3378
+ # },
3379
+ # {
3380
+ # attribute_definition: {
3381
+ # is_immutable: false,
3382
+ # rules: {
3383
+ # "nameLength" => {
3384
+ # parameters: {
3385
+ # "max" => "1024",
3386
+ # "min" => "1",
3387
+ # },
3388
+ # type: "STRING_LENGTH",
3389
+ # },
3390
+ # },
3391
+ # type: "STRING",
3392
+ # },
3393
+ # name: "account_name",
3394
+ # required_behavior: "NOT_REQUIRED",
3395
+ # },
3396
+ # {
3397
+ # attribute_definition: {
3398
+ # is_immutable: false,
3399
+ # rules: {
3400
+ # "nameLength" => {
3401
+ # parameters: {
3402
+ # "max" => "1024",
3403
+ # "min" => "1",
3404
+ # },
3405
+ # type: "STRING_LENGTH",
3406
+ # },
3407
+ # },
3408
+ # type: "STRING",
3409
+ # },
3410
+ # name: "description",
3411
+ # required_behavior: "NOT_REQUIRED",
3412
+ # },
3413
+ # {
3414
+ # attribute_definition: {
3415
+ # is_immutable: false,
3416
+ # rules: {
3417
+ # "nameLength" => {
3418
+ # parameters: {
3419
+ # "max" => "1024",
3420
+ # "min" => "1",
3421
+ # },
3422
+ # type: "STRING_LENGTH",
3423
+ # },
3424
+ # },
3425
+ # type: "STRING",
3426
+ # },
3427
+ # name: "email",
3428
+ # required_behavior: "NOT_REQUIRED",
3429
+ # },
3430
+ # {
3431
+ # attribute_definition: {
3432
+ # is_immutable: false,
3433
+ # rules: {
3434
+ # "nameLength" => {
3435
+ # parameters: {
3436
+ # "max" => "1024",
3437
+ # "min" => "1",
3438
+ # },
3439
+ # type: "STRING_LENGTH",
3440
+ # },
3441
+ # },
3442
+ # type: "STRING",
3443
+ # },
3444
+ # name: "mailing_address_city",
3445
+ # required_behavior: "NOT_REQUIRED",
3446
+ # },
3447
+ # {
3448
+ # attribute_definition: {
3449
+ # is_immutable: false,
3450
+ # rules: {
3451
+ # "nameLength" => {
3452
+ # parameters: {
3453
+ # "max" => "1024",
3454
+ # "min" => "1",
3455
+ # },
3456
+ # type: "STRING_LENGTH",
3457
+ # },
3458
+ # },
3459
+ # type: "STRING",
3460
+ # },
3461
+ # name: "mailing_address_country",
3462
+ # required_behavior: "NOT_REQUIRED",
3463
+ # },
3464
+ # {
3465
+ # attribute_definition: {
3466
+ # is_immutable: false,
3467
+ # rules: {
3468
+ # "nameLength" => {
3469
+ # parameters: {
3470
+ # "max" => "1024",
3471
+ # "min" => "1",
3472
+ # },
3473
+ # type: "STRING_LENGTH",
3474
+ # },
3475
+ # },
3476
+ # type: "STRING",
3477
+ # },
3478
+ # name: "mailing_address_postal_code",
3479
+ # required_behavior: "NOT_REQUIRED",
3480
+ # },
3481
+ # {
3482
+ # attribute_definition: {
3483
+ # is_immutable: false,
3484
+ # rules: {
3485
+ # "nameLength" => {
3486
+ # parameters: {
3487
+ # "max" => "1024",
3488
+ # "min" => "1",
3489
+ # },
3490
+ # type: "STRING_LENGTH",
3491
+ # },
3492
+ # },
3493
+ # type: "STRING",
3494
+ # },
3495
+ # name: "mailing_address_state",
3496
+ # required_behavior: "NOT_REQUIRED",
3497
+ # },
3498
+ # {
3499
+ # attribute_definition: {
3500
+ # is_immutable: false,
3501
+ # rules: {
3502
+ # "nameLength" => {
3503
+ # parameters: {
3504
+ # "max" => "1024",
3505
+ # "min" => "1",
3506
+ # },
3507
+ # type: "STRING_LENGTH",
3508
+ # },
3509
+ # },
3510
+ # type: "STRING",
3511
+ # },
3512
+ # name: "mailing_address_street1",
3513
+ # required_behavior: "NOT_REQUIRED",
3514
+ # },
3515
+ # {
3516
+ # attribute_definition: {
3517
+ # is_immutable: false,
3518
+ # rules: {
3519
+ # "nameLength" => {
3520
+ # parameters: {
3521
+ # "max" => "1024",
3522
+ # "min" => "1",
3523
+ # },
3524
+ # type: "STRING_LENGTH",
3525
+ # },
3526
+ # },
3527
+ # type: "STRING",
3528
+ # },
3529
+ # name: "mailing_address_street2",
3530
+ # required_behavior: "NOT_REQUIRED",
3531
+ # },
3532
+ # ],
3533
+ # next_token: "V0b3JnYW5pemF0aW9uX3N0YXR1cw==",
3534
+ # }
3535
+ #
2718
3536
  # @example Request syntax with placeholder values
2719
3537
  #
2720
3538
  # resp = client.list_facet_attributes({
@@ -2771,6 +3589,25 @@ module Aws::CloudDirectory
2771
3589
  #
2772
3590
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2773
3591
  #
3592
+ #
3593
+ # @example Example: To list facet names
3594
+ #
3595
+ # resp = client.list_facet_names({
3596
+ # schema_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AYb8AOV81kHNgdj8mAO3dNY/schema/org/1",
3597
+ # })
3598
+ #
3599
+ # resp.to_h outputs the following:
3600
+ # {
3601
+ # facet_names: [
3602
+ # "Legal_Entity",
3603
+ # "Organization",
3604
+ # "node1",
3605
+ # "node2",
3606
+ # "nodex",
3607
+ # "policyfacet",
3608
+ # ],
3609
+ # }
3610
+ #
2774
3611
  # @example Request syntax with placeholder values
2775
3612
  #
2776
3613
  # resp = client.list_facet_names({
@@ -2834,6 +3671,83 @@ module Aws::CloudDirectory
2834
3671
  # * {Types::ListIncomingTypedLinksResponse#link_specifiers #link_specifiers} => Array<Types::TypedLinkSpecifier>
2835
3672
  # * {Types::ListIncomingTypedLinksResponse#next_token #next_token} => String
2836
3673
  #
3674
+ #
3675
+ # @example Example: To list incoming typed links
3676
+ #
3677
+ # resp = client.list_incoming_typed_links({
3678
+ # directory_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AYb8AOV81kHNgdj8mAO3dNY",
3679
+ # object_reference: {
3680
+ # selector: "$AQGG_ADlfNZBzYHY_JgDt3TWcU7IARvOTeaR09zme1sVsw",
3681
+ # },
3682
+ # })
3683
+ #
3684
+ # resp.to_h outputs the following:
3685
+ # {
3686
+ # link_specifiers: [
3687
+ # {
3688
+ # identity_attribute_values: [
3689
+ # {
3690
+ # attribute_name: "22",
3691
+ # value: {
3692
+ # binary_value: "",
3693
+ # },
3694
+ # },
3695
+ # ],
3696
+ # source_object_reference: {
3697
+ # selector: "$AQGG_ADlfNZBzYHY_JgDt3TWSvfuEnDqTdmeCuTs6YBNUA",
3698
+ # },
3699
+ # target_object_reference: {
3700
+ # selector: "$AQGG_ADlfNZBzYHY_JgDt3TWcU7IARvOTeaR09zme1sVsw",
3701
+ # },
3702
+ # typed_link_facet: {
3703
+ # schema_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AYb8AOV81kHNgdj8mAO3dNY/schema/org/1",
3704
+ # typed_link_name: "exampletypedlink8",
3705
+ # },
3706
+ # },
3707
+ # {
3708
+ # identity_attribute_values: [
3709
+ # {
3710
+ # attribute_name: "22",
3711
+ # value: {
3712
+ # binary_value: "MA==",
3713
+ # },
3714
+ # },
3715
+ # ],
3716
+ # source_object_reference: {
3717
+ # selector: "$AQGG_ADlfNZBzYHY_JgDt3TWSvfuEnDqTdmeCuTs6YBNUA",
3718
+ # },
3719
+ # target_object_reference: {
3720
+ # selector: "$AQGG_ADlfNZBzYHY_JgDt3TWcU7IARvOTeaR09zme1sVsw",
3721
+ # },
3722
+ # typed_link_facet: {
3723
+ # schema_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AYb8AOV81kHNgdj8mAO3dNY/schema/org/1",
3724
+ # typed_link_name: "exampletypedlink8",
3725
+ # },
3726
+ # },
3727
+ # {
3728
+ # identity_attribute_values: [
3729
+ # {
3730
+ # attribute_name: "22",
3731
+ # value: {
3732
+ # binary_value: "c3Ry",
3733
+ # },
3734
+ # },
3735
+ # ],
3736
+ # source_object_reference: {
3737
+ # selector: "$AQGG_ADlfNZBzYHY_JgDt3TWSvfuEnDqTdmeCuTs6YBNUA",
3738
+ # },
3739
+ # target_object_reference: {
3740
+ # selector: "$AQGG_ADlfNZBzYHY_JgDt3TWcU7IARvOTeaR09zme1sVsw",
3741
+ # },
3742
+ # typed_link_facet: {
3743
+ # schema_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AYb8AOV81kHNgdj8mAO3dNY/schema/org/1",
3744
+ # typed_link_name: "exampletypedlink8",
3745
+ # },
3746
+ # },
3747
+ # ],
3748
+ # next_token: "",
3749
+ # }
3750
+ #
2837
3751
  # @example Request syntax with placeholder values
2838
3752
  #
2839
3753
  # resp = client.list_incoming_typed_links({
@@ -2931,6 +3845,36 @@ module Aws::CloudDirectory
2931
3845
  #
2932
3846
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2933
3847
  #
3848
+ #
3849
+ # @example Example: To list an index
3850
+ #
3851
+ # resp = client.list_index({
3852
+ # directory_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AYb8AOV81kHNgdj8mAO3dNY",
3853
+ # index_reference: {
3854
+ # selector: "$AQGG_ADlfNZBzYHY_JgDt3TW45F26R1HTY2z-stwKBte_Q",
3855
+ # },
3856
+ # })
3857
+ #
3858
+ # resp.to_h outputs the following:
3859
+ # {
3860
+ # index_attachments: [
3861
+ # {
3862
+ # indexed_attributes: [
3863
+ # {
3864
+ # key: {
3865
+ # facet_name: "Organization",
3866
+ # name: "description",
3867
+ # schema_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AYb8AOV81kHNgdj8mAO3dNY/schema/org/1",
3868
+ # },
3869
+ # value: {
3870
+ # },
3871
+ # },
3872
+ # ],
3873
+ # object_identifier: "AQGG_ADlfNZBzYHY_JgDt3TWcU7IARvOTeaR09zme1sVsw",
3874
+ # },
3875
+ # ],
3876
+ # }
3877
+ #
2934
3878
  # @example Request syntax with placeholder values
2935
3879
  #
2936
3880
  # resp = client.list_index({
@@ -3071,6 +4015,42 @@ module Aws::CloudDirectory
3071
4015
  #
3072
4016
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3073
4017
  #
4018
+ #
4019
+ # @example Example: To list object attributes
4020
+ #
4021
+ # resp = client.list_object_attributes({
4022
+ # directory_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AYb8AOV81kHNgdj8mAO3dNY",
4023
+ # object_reference: {
4024
+ # selector: "$AQGG_ADlfNZBzYHY_JgDt3TW45F26R1HTY2z-stwKBte_Q",
4025
+ # },
4026
+ # })
4027
+ #
4028
+ # resp.to_h outputs the following:
4029
+ # {
4030
+ # attributes: [
4031
+ # {
4032
+ # key: {
4033
+ # facet_name: "INDEX",
4034
+ # name: "index_is_unique",
4035
+ # schema_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AYb8AOV81kHNgdj8mAO3dNY/schema/CloudDirectory/1.0",
4036
+ # },
4037
+ # value: {
4038
+ # boolean_value: true,
4039
+ # },
4040
+ # },
4041
+ # {
4042
+ # key: {
4043
+ # facet_name: "INDEX",
4044
+ # name: "ordered_indexed_attributes",
4045
+ # schema_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AYb8AOV81kHNgdj8mAO3dNY/schema/CloudDirectory/1.0",
4046
+ # },
4047
+ # value: {
4048
+ # string_value: "arn:aws:clouddirectory:us-west-2:45132example:directory/AYb8AOV81kHNgdj8mAO3dNY/schema/org/1*Organization*description",
4049
+ # },
4050
+ # },
4051
+ # ],
4052
+ # }
4053
+ #
3074
4054
  # @example Request syntax with placeholder values
3075
4055
  #
3076
4056
  # resp = client.list_object_attributes({
@@ -3139,6 +4119,23 @@ module Aws::CloudDirectory
3139
4119
  #
3140
4120
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3141
4121
  #
4122
+ #
4123
+ # @example Example: To list an objects children
4124
+ #
4125
+ # resp = client.list_object_children({
4126
+ # directory_arn: "arn:aws:clouddirectory:us-west-2:45132example:directory/AYb8AOV81kHNgdj8mAO3dNY",
4127
+ # object_reference: {
4128
+ # selector: "$AQGG_ADlfNZBzYHY_JgDt3TWcU7IARvOTeaR09zme1sVsw",
4129
+ # },
4130
+ # })
4131
+ #
4132
+ # resp.to_h outputs the following:
4133
+ # {
4134
+ # children: {
4135
+ # "link2" => "AQGG_ADlfNZBzYHY_JgDt3TWSvfuEnDqTdmeCuTs6YBNUA",
4136
+ # },
4137
+ # }
4138
+ #
3142
4139
  # @example Request syntax with placeholder values
3143
4140
  #
3144
4141
  # resp = client.list_object_children({
@@ -4378,14 +5375,19 @@ module Aws::CloudDirectory
4378
5375
  # @api private
4379
5376
  def build_request(operation_name, params = {})
4380
5377
  handlers = @handlers.for(operation_name)
5378
+ tracer = config.telemetry_provider.tracer_provider.tracer(
5379
+ Aws::Telemetry.module_to_tracer_name('Aws::CloudDirectory')
5380
+ )
4381
5381
  context = Seahorse::Client::RequestContext.new(
4382
5382
  operation_name: operation_name,
4383
5383
  operation: config.api.operation(operation_name),
4384
5384
  client: self,
4385
5385
  params: params,
4386
- config: config)
5386
+ config: config,
5387
+ tracer: tracer
5388
+ )
4387
5389
  context[:gem_name] = 'aws-sdk-clouddirectory'
4388
- context[:gem_version] = '1.61.0'
5390
+ context[:gem_version] = '1.68.0'
4389
5391
  Seahorse::Client::Request.new(handlers, context)
4390
5392
  end
4391
5393