{
  "version": "1.0",
  "examples": {
    "AddIpRoutes": [
      {
        "input": {
          "DirectoryId": "d-92654abfed",
          "IpRoutes": [
            {
              "CidrIp": "12.12.12.12/32",
              "Description": "my IpRoute"
            }
          ]
        },
        "output": {},
        "comments": {
          "input": {},
          "output": {}
        },
        "description": "The following example adds a CIDR address block to correctly route traffic to and from your Microsoft AD on AWS.",
        "id": "to-add-a-cidr-address-block-that-routes-traffic-for-microsoft-ad-1481580074651",
        "title": "To add a CIDR address block that routes traffic for Microsoft AD"
      }
    ],
    "AddTagsToResource": [
      {
        "input": {
          "ResourceId": "d-92654abfed",
          "Tags": [
            {
              "Key": "environment",
              "Value": "production"
            }
          ]
        },
        "output": {},
        "comments": {
          "input": {},
          "output": {}
        },
        "description": "The following example adds or overwrites one or more tags for the specified directory.",
        "id": "to-add-tags-to-a-directory-1481582596354",
        "title": "To add tags to a directory"
      }
    ],
    "CancelSchemaExtension": [
      {
        "input": {
          "DirectoryId": "d-92654abfed",
          "SchemaExtensionId": "e-926731d2a0"
        },
        "output": {},
        "comments": {
          "input": {},
          "output": {}
        },
        "description": "The following example cancels an in-progress schema extension to a Microsoft AD directory.",
        "id": "to-cancel-a-microsoft-ad-schema-extension-that-is-in-progress-1481583276240",
        "title": "To cancel a Microsoft AD schema extension that is in progress"
      }
    ],
    "ConnectDirectory": [
      {
        "input": {
          "ConnectSettings": {
            "CustomerDnsIps": [
              "172.30.21.228"
            ],
            "CustomerUserName": "Administrator",
            "SubnetIds": [
              "subnet-ba0146de",
              "subnet-bef46bc8"
            ],
            "VpcId": "vpc-45025421"
          },
          "Description": "Connector to corp",
          "Name": "corp.example.com",
          "Password": "Str0ngP@ssw0rd",
          "ShortName": "corp",
          "Size": "Small"
        },
        "output": {
          "DirectoryId": "d-92654abfed"
        },
        "comments": {
          "input": {},
          "output": {}
        },
        "description": "The following example creates an AD Connector to connect to an on-premises directory.",
        "id": "to-connect-to-an-on-premises-directory-1481586749640",
        "title": "To connect to an on-premises directory"
      }
    ],
    "CreateAlias": [
      {
        "input": {
          "Alias": "salesorg",
          "DirectoryId": "d-92654abfed"
        },
        "output": {
          "Alias": "salesorg",
          "DirectoryId": "d-92654abfed"
        },
        "comments": {
          "input": {},
          "output": {}
        },
        "description": "The following example creates an alias for a directory.",
        "id": "to-create-an-alias-for-a-directory-1481147295279",
        "title": "To create an alias for a directory"
      }
    ],
    "CreateComputer": [
      {
        "input": {
          "ComputerAttributes": [
            {
              "Name": "ip",
              "Value": "192.168.101.100"
            }
          ],
          "ComputerName": "labcomputer",
          "DirectoryId": "d-92654abfed",
          "OrganizationalUnitDistinguishedName": "OU=Computers,OU=example,DC=corp,DC=example,DC=com",
          "Password": "Str0ngP@ssw0rd"
        },
        "output": {
          "Computer": {
            "ComputerAttributes": [
              {
                "Name": "DistinguishedName",
                "Value": "CN=labcomputer,OU=Computers,OU=nickcorp,DC=seattle,DC=nickcorp,DC=com"
              },
              {
                "Name": "WindowsSamName",
                "Value": "labcomputer$"
              }
            ],
            "ComputerId": "S-1-5-21-1932691875-1648176379-1176097576-1124",
            "ComputerName": "labcomputer"
          }
        },
        "comments": {
          "input": {},
          "output": {}
        },
        "description": "The following example creates a computer account in the specified directory, and joins the computer to the directory.",
        "id": "to-create-a-computer-account-1481676943652",
        "title": "To create a computer account"
      }
    ],
    "CreateConditionalForwarder": [
      {
        "input": {
          "DirectoryId": "d-92654abfed",
          "DnsIpAddrs": [
            "172.30.21.228"
          ],
          "RemoteDomainName": "sales.example.com"
        },
        "output": {},
        "comments": {
          "input": {},
          "output": {}
        },
        "description": "The following example creates a conditional forwarder associated with your AWS directory.",
        "id": "to-create-a-conditional-forwarder-1481667053089",
        "title": "To create a conditional forwarder"
      }
    ],
    "CreateDirectory": [
      {
        "input": {
          "Description": "Regional directory for example.com",
          "Name": "seattle.example.com",
          "Password": "Str0ngP@ssw0rd",
          "ShortName": "seattle",
          "Size": "Small",
          "VpcSettings": {
            "SubnetIds": [
              "subnet-ba0146de",
              "subnet-bef46bc8"
            ],
            "VpcId": "vpc-45025421"
          }
        },
        "output": {
          "DirectoryId": "d-92654abfed"
        },
        "comments": {
          "input": {},
          "output": {}
        },
        "description": "The following example creates a Simple AD directory.",
        "id": "to-create-a-simple-ad-directory-1481669101098",
        "title": "To create a Simple AD directory"
      }
    ],
    "CreateMicrosoftAD": [
      {
        "input": {
          "Description": "Corporate AD directory",
          "Name": "ad.example.com",
          "Password": "Str0ngP@ssw0rd",
          "ShortName": "ad",
          "VpcSettings": {
            "SubnetIds": [
              "subnet-ba0146de",
              "subnet-bef46bc8"
            ],
            "VpcId": "vpc-45025421"
          }
        },
        "output": {
          "DirectoryId": "d-92654abfed"
        },
        "comments": {
          "input": {},
          "output": {}
        },
        "description": "The following example creates a Microsoft AD directory in the AWS cloud.",
        "id": "to-create-a-microsoft-ad-directory-1481670169383",
        "title": "To create a Microsoft AD directory"
      }
    ],
    "CreateSnapshot": [
      {
        "input": {
          "DirectoryId": "d-92654abfed",
          "Name": "ad.example.com"
        },
        "output": {
          "SnapshotId": "s-9267f8d3f0"
        },
        "comments": {
          "input": {},
          "output": {}
        },
        "description": "The following example creates a snapshot of a Simple AD or Microsoft AD directory in the AWS cloud.",
        "id": "to-create-a-snapshot-of-a-directory-1481671628145",
        "title": "To create a snapshot of a directory"
      }
    ],
    "CreateTrust": [
      {
        "input": {
          "ConditionalForwarderIpAddrs": [
            "172.30.21.228"
          ],
          "DirectoryId": "d-92654abfed",
          "RemoteDomainName": "europe.example.com",
          "TrustDirection": "One-Way: Outgoing",
          "TrustPassword": "Str0ngP@ssw0rd",
          "TrustType": "Forest"
        },
        "output": {
          "TrustId": "t-9267353743"
        },
        "comments": {
          "input": {},
          "output": {}
        },
        "description": "The following example creates a trust between Microsoft AD in the AWS cloud and an external domain.",
        "id": "to-create-a-trust-1481673599473",
        "title": "To create a trust"
      }
    ],
    "DeleteConditionalForwarder": [
      {
        "input": {
          "DirectoryId": "d-92654abfed",
          "RemoteDomainName": "sales.example.com"
        },
        "output": {},
        "comments": {
          "input": {},
          "output": {}
        },
        "description": "The following example deletes a conditional forwarder. ",
        "id": "to-delete-a-conditional-forwarder-1481673924488",
        "title": "To delete a conditional forwarder"
      }
    ],
    "DeleteDirectory": [
      {
        "input": {
          "DirectoryId": "d-92654abfed"
        },
        "output": {
          "DirectoryId": "d-92654abfed"
        },
        "comments": {
          "input": {},
          "output": {}
        },
        "description": "The following example deletes a directory from your AWS account.",
        "id": "to-delete-a-directory-1481674940318",
        "title": "To delete a directory"
      }
    ],
    "DeleteSnapshot": [
      {
        "input": {
          "SnapshotId": "s-9267f8d3f0"
        },
        "output": {
          "SnapshotId": "s-9267f8d3f0"
        },
        "comments": {
          "input": {},
          "output": {}
        },
        "description": "The following example deletes a directory snapshot.",
        "id": "to-delete-a-snapshot-1481678726239",
        "title": "To delete a snapshot"
      }
    ],
    "DeleteTrust": [
      {
        "input": {
          "DeleteAssociatedConditionalForwarder": true,
          "TrustId": "t-9267353743"
        },
        "output": {
          "TrustId": "t-9267353743"
        },
        "comments": {
          "input": {},
          "output": {}
        },
        "description": "The following example deletes an existing trust between your Microsoft AD in the AWS cloud and an external domain.",
        "id": "to-delete-a-trust-1481678937261",
        "title": "To delete a trust"
      }
    ],
    "DeregisterEventTopic": [
      {
        "input": {
          "DirectoryId": "d-92654abfed",
          "TopicName": "snstopicexample"
        },
        "output": {},
        "comments": {
          "input": {},
          "output": {}
        },
        "description": "The following example removes the specified directory as a publisher to the specified SNS topic.",
        "id": "to-remove-an-event-topic-1481679683016",
        "title": "To remove an event topic"
      }
    ],
    "DescribeConditionalForwarders": [
      {
        "input": {
          "DirectoryId": "d-92654abfed",
          "RemoteDomainNames": [
            "sales.example.com"
          ]
        },
        "output": {
          "ConditionalForwarders": []
        },
        "comments": {
          "input": {},
          "output": {}
        },
        "description": "The following example obtains information about the conditional forwarders for a specified directory.",
        "id": "to-describe-conditional-forwarders-1481681337122",
        "title": "To describe conditional forwarders"
      }
    ],
    "DescribeDirectories": [
      {
        "input": {
          "DirectoryIds": [
            "d-92654abfed"
          ],
          "Limit": 0
        },
        "output": {
          "DirectoryDescriptions": [
            {
              "AccessUrl": "myaccess.awsapps.com",
              "Alias": "myaccess",
              "DirectoryId": "d-92654abfed",
              "DnsIpAddrs": [
                "172.30.21.228",
                "172.30.9.82"
              ],
              "LaunchTime": 1469737584.772,
              "Name": "corp.example.com",
              "ShortName": "example",
              "SsoEnabled": true,
              "Stage": "Active",
              "StageLastUpdatedDateTime": 1469739131.71,
              "Type": "MicrosoftAD",
              "VpcSettings": {
                "AvailabilityZones": [
                  "us-west-2a",
                  "us-west-2b"
                ],
                "SubnetIds": [
                  "subnet-ba0146de",
                  "subnet-bef46bc8"
                ],
                "VpcId": "vpc-45025421"
              }
            }
          ]
        },
        "comments": {
          "input": {},
          "output": {}
        },
        "description": "The following example obtains information about a specified directory.",
        "id": "to-describe-one-or-more-directories-1481681592059",
        "title": "To describe one or more directories"
      }
    ],
    "DescribeEventTopics": [
      {
        "input": {
          "DirectoryId": "d-92654abfed",
          "TopicNames": [
            "snstopicexample"
          ]
        },
        "output": {
          "EventTopics": [
            {
              "DirectoryId": "d-92654abfed",
              "Status": "Registered",
              "TopicArn": "arn:aws:sns:us-east-2:123456789012:snstopicexample",
              "TopicName": "snstopicexample"
            }
          ]
        },
        "comments": {
          "input": {},
          "output": {}
        },
        "description": "The following example obtains information about which SNS topics receive status messages from the specified directory.",
        "id": "to-describe-event-topics-1481683733380",
        "title": "To describe event topics"
      }
    ],
    "DescribeSnapshots": [
      {
        "input": {
          "DirectoryId": "d-92654abfed",
          "Limit": 0,
          "SnapshotIds": [
            "s-9267f6da4e"
          ]
        },
        "output": {
          "Snapshots": [
            {
              "DirectoryId": "d-92673c8a8f",
              "SnapshotId": "s-9267f6da4e",
              "StartTime": 1481289211.615,
              "Status": "Completed",
              "Type": "Auto"
            }
          ]
        },
        "comments": {
          "input": {},
          "output": {}
        },
        "description": "The following example obtains information about a specified directory snapshot.",
        "id": "to-describe-snapshots-1481742829912",
        "title": "To describe snapshots"
      }
    ],
    "DescribeTrusts": [
      {
        "input": {
          "DirectoryId": "d-92654abfed",
          "Limit": 0,
          "TrustIds": [
            "t-9267353df0"
          ]
        },
        "output": {
          "Trusts": [
            {
              "CreatedDateTime": 1481749250.657,
              "DirectoryId": "d-92654abfed",
              "LastUpdatedDateTime": 1481749260.156,
              "RemoteDomainName": "sales.example.com",
              "StateLastUpdatedDateTime": 1481749260.156,
              "TrustDirection": "One-Way: Outgoing",
              "TrustId": "t-9267353df0",
              "TrustState": "Failed",
              "TrustStateReason": "The specified domain either does not exist or could not be contacted. Name: sales.example.com",
              "TrustType": "Forest"
            }
          ]
        },
        "comments": {
          "input": {},
          "output": {}
        },
        "description": "The following example obtains information about the trust relationship for a specified directory.",
        "id": "to-describe-a-trust--1481749974009",
        "title": "To describe a trust "
      }
    ],
    "DisableRadius": [
      {
        "input": {
          "DirectoryId": "d-92654abfed"
        },
        "output": {},
        "comments": {
          "input": {},
          "output": {}
        },
        "description": "The following example disables multi-factor authentication (MFA) with the Remote Authentication Dial In User Service (RADIUS) server for an AD Connector directory.",
        "id": "to-disable-radius-1481752373128",
        "title": "To disable radius"
      }
    ],
    "DisableSso": [
      {
        "input": {
          "DirectoryId": "d-92654abfed",
          "Password": "Str0ngP@ssw0rd",
          "UserName": "Admin"
        },
        "output": {},
        "comments": {
          "input": {},
          "output": {}
        },
        "description": "The following example disables single sign-on for a specified directory.",
        "id": "to-disable-sso-1481753731802",
        "title": "To disable SSO"
      }
    ],
    "EnableRadius": [
      {
        "input": {
          "DirectoryId": "d-92654abfed",
          "RadiusSettings": {
            "AuthenticationProtocol": "PAP",
            "DisplayLabel": "MyRadius",
            "RadiusPort": 1200,
            "RadiusRetries": 2,
            "RadiusServers": [
              "172.168.111.12"
            ],
            "RadiusTimeout": 1,
            "SharedSecret": "123456789",
            "UseSameUsername": true
          }
        },
        "output": {},
        "comments": {
          "input": {},
          "output": {}
        },
        "description": "The following example enables multi-factor authentication (MFA) with the Remote Authentication Dial In User Service (RADIUS) server for an AD Connector directory.",
        "id": "to-enable-radius-1481751944293",
        "title": "To enable radius"
      }
    ],
    "EnableSso": [
      {
        "input": {
          "DirectoryId": "d-92654abfed",
          "Password": "Str0ngP@ssw0rd",
          "UserName": "Admin"
        },
        "output": {},
        "comments": {
          "input": {},
          "output": {}
        },
        "description": "To enable single sign-on for a specified directory.",
        "id": "to-enable-sso-1481753527694",
        "title": "To enable SSO"
      }
    ],
    "GetDirectoryLimits": [
      {
        "input": {},
        "output": {
          "DirectoryLimits": {
            "CloudOnlyDirectoriesCurrentCount": 2,
            "CloudOnlyDirectoriesLimit": 10,
            "CloudOnlyDirectoriesLimitReached": false,
            "CloudOnlyMicrosoftADCurrentCount": 2,
            "CloudOnlyMicrosoftADLimit": 10,
            "CloudOnlyMicrosoftADLimitReached": false,
            "ConnectedDirectoriesCurrentCount": 1,
            "ConnectedDirectoriesLimit": 10,
            "ConnectedDirectoriesLimitReached": false
          }
        },
        "comments": {
          "input": {},
          "output": {}
        },
        "description": "The following example obtains directory limit information for the current region.",
        "id": "to-get-directory-limits-1481754781592",
        "title": "To get directory limits"
      }
    ],
    "GetSnapshotLimits": [
      {
        "input": {
          "DirectoryId": "d-92654abfed"
        },
        "output": {
          "SnapshotLimits": {
            "ManualSnapshotsCurrentCount": 1,
            "ManualSnapshotsLimit": 5,
            "ManualSnapshotsLimitReached": false
          }
        },
        "comments": {
          "input": {},
          "output": {}
        },
        "description": "The following example obtains the manual snapshot limits for a specified directory.",
        "id": "to-get-snapshot-limits-1481755393694",
        "title": "To get snapshot limits"
      }
    ],
    "ListIpRoutes": [
      {
        "input": {
          "DirectoryId": "d-92654abfed",
          "Limit": 0
        },
        "output": {
          "IpRoutesInfo": [
            {
              "AddedDateTime": 1481577631.63,
              "CidrIp": "12.12.12.12/32",
              "Description": "example",
              "DirectoryId": "d-92654abfed",
              "IpRouteStatusMsg": "Added"
            }
          ]
        },
        "comments": {
          "input": {},
          "output": {}
        },
        "description": "The following example lists the address blocks that have been added to a specified directory.",
        "id": "to-list-ip-routes-1481755837685",
        "title": "To list IP routes"
      }
    ],
    "ListSchemaExtensions": [
      {
        "input": {
          "DirectoryId": "d-92654abfed",
          "Limit": 0
        },
        "output": {
          "SchemaExtensionsInfo": [
            {
              "Description": "example text",
              "DirectoryId": "d-92654abfed",
              "EndDateTime": 1481586088.301,
              "SchemaExtensionId": "e-926731d2a0",
              "SchemaExtensionStatus": "Cancelled",
              "SchemaExtensionStatusReason": "Cancellation is complete. No schema updates were applied to your directory.",
              "StartDateTime": 1481584463.548
            }
          ]
        },
        "comments": {
          "input": {},
          "output": {}
        },
        "description": "The following example lists all schema extensions applied to a specified Microsoft AD Directory.",
        "id": "to-list-schema-extensions-1481756433064",
        "title": "To list schema extensions"
      }
    ],
    "ListTagsForResource": [
      {
        "input": {
          "Limit": 0,
          "ResourceId": "d-92654abfed"
        },
        "output": {
          "Tags": [
            {
              "Key": "environment",
              "Value": "production"
            }
          ]
        },
        "comments": {
          "input": {},
          "output": {}
        },
        "description": "The following example lists all tags associated with a specified directory.",
        "id": "to-list-tags-for-a-directory-1481757084225",
        "title": "To list tags for a directory"
      }
    ],
    "RegisterEventTopic": [
      {
        "input": {
          "DirectoryId": "d-92654abfed",
          "TopicName": "snstopicexample"
        },
        "output": {},
        "comments": {
          "input": {},
          "output": {}
        },
        "description": "The following example associates a directory with an SNS topic.",
        "id": "to-register-an-event-topic-1481757657323",
        "title": "To register an event topic"
      }
    ],
    "RemoveIpRoutes": [
      {
        "input": {
          "CidrIps": [
            "12.12.12.12/32"
          ],
          "DirectoryId": "d-92654abfed"
        },
        "output": {},
        "comments": {
          "input": {},
          "output": {}
        },
        "description": "The following example removes IP address blocks from a specified directory.",
        "id": "to-remove-ip-routes-1481758003547",
        "title": "To remove IP routes"
      }
    ],
    "RemoveTagsFromResource": [
      {
        "input": {
          "ResourceId": "d-92654abfed",
          "TagKeys": [
            "environment"
          ]
        },
        "output": {},
        "comments": {
          "input": {},
          "output": {}
        },
        "description": "The following example removes a tag from a specified directory.",
        "id": "to-remove-tags-from-a-directory-1481759009957",
        "title": "To remove tags from a directory"
      }
    ],
    "RestoreFromSnapshot": [
      {
        "input": {
          "SnapshotId": "s-9267f6da4e"
        },
        "output": {},
        "comments": {
          "input": {},
          "output": {}
        },
        "description": "The following example restores a directory using an existing directory snapshot.",
        "id": "to-restore-a-snapshot-1481759429095",
        "title": "To restore a snapshot"
      }
    ],
    "StartSchemaExtension": [
      {
        "input": {
          "CreateSnapshotBeforeSchemaExtension": true,
          "Description": "Adds maycontain attribute to user class. Precede each line as it would be formatted in an ldif file.",
          "DirectoryId": "d-92654abfed",
          "LdifContent": "dn: CN=User,CN=Schema,CN=Configuration,DC=sales,DC=example,DC=com\nchangetype: modify\nadd: mayContain\nmayContain: drink\n-\n\nDN:\nchangetype: modify\nreplace: schemaupdatenow\nschemaupdatenow: 1\n-"
        },
        "output": {
          "SchemaExtensionId": "e-926731dc50"
        },
        "comments": {
          "input": {},
          "output": {}
        },
        "description": "The following example applies a schema extension to a specified Microsoft AD directory.",
        "id": "to-start-a-schema-extension-1481830079414",
        "title": "To start a schema extension"
      }
    ],
    "UpdateConditionalForwarder": [
      {
        "input": {
          "DirectoryId": "d-92654abfed",
          "DnsIpAddrs": [
            "172.168.101.11"
          ],
          "RemoteDomainName": "sales.example.com"
        },
        "output": {},
        "comments": {
          "input": {},
          "output": {}
        },
        "description": "The following example updates a conditional forwarder for a specified directory.",
        "id": "to-update-a-conditional-forwarder-1481826693698",
        "title": "To update a conditional forwarder"
      }
    ],
    "UpdateRadius": [
      {
        "input": {
          "DirectoryId": "d-92654abfed",
          "RadiusSettings": {
            "AuthenticationProtocol": "PAP",
            "DisplayLabel": "MyRadius",
            "RadiusPort": 1027,
            "RadiusRetries": 1,
            "RadiusServers": [
              "172.168.101.113"
            ],
            "RadiusTimeout": 1,
            "SharedSecret": "12345678",
            "UseSameUsername": true
          }
        },
        "output": {},
        "comments": {
          "input": {},
          "output": {}
        },
        "description": "The following example updates the Remote Authentication Dial In User Service (RADIUS) server settings for an AD Connector directory.",
        "id": "to-update-radius-1481827441016",
        "title": "To update Radius"
      }
    ],
    "VerifyTrust": [
      {
        "input": {
          "TrustId": "t-9267353df0"
        },
        "output": {
          "TrustId": "t-9267353df0"
        },
        "comments": {
          "input": {},
          "output": {}
        },
        "description": "The following example verifies a trust relationship between your Microsoft AD in the AWS cloud and an external domain.",
        "id": "to-verify-a-trust-1481828755113",
        "title": "To verify a trust"
      }
    ]
  }
}
