<a id="cli-aws-entityresolution-create-id-namespace"></a>

# create-id-namespace

## Description

Creates an ID namespace object which will help customers provide metadata explaining their dataset and how to use it. Each ID namespace must have a unique name. To modify an existing ID namespace, use the UpdateIdNamespace API.

See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/entityresolution-2018-05-10/CreateIdNamespace)

`create-id-namespace` uses document type values. Document types follow the JSON data model where valid values are: strings, numbers, booleans, null, arrays, and objects. For command input, options and nested parameters that are labeled with the type `document` must be provided as JSON. Shorthand syntax does not support document types.

## Synopsis

```
  create-id-namespace
--id-namespace-name <value>
[--description <value>]
[--input-source-config <value>]
[--id-mapping-workflow-properties <value>]
--type <value>
[--role-arn <value>]
[--tags <value>]
[--cli-input-json | --cli-input-yaml]
[--generate-cli-skeleton <value>]
[--debug]
[--endpoint-url <value>]
[--no-verify-ssl]
[--no-paginate]
[--output <value>]
[--query <value>]
[--profile <value>]
[--region <value>]
[--version <value>]
[--color <value>]
[--no-sign-request]
[--ca-bundle <value>]
[--cli-read-timeout <value>]
[--cli-connect-timeout <value>]
[--cli-binary-format <value>]
[--no-cli-pager]
[--cli-auto-prompt]
[--no-cli-auto-prompt]
[--cli-error-format <value>]
```

## Options

`--id-namespace-name` (string) [required]

> The name of the ID namespace.

> Constraints:

> * min: `1`
> * max: `255`
> * pattern: `[a-zA-Z_0-9-]*`

`--description` (string)

> The description of the ID namespace.

> Constraints:

> * min: `0`
> * max: `255`

`--input-source-config` (list)

> A list of `InputSource` objects, which have the fields `InputSourceARN` and `SchemaName` .

> Constraints:

> * min: `0`
> * max: `20`

> (structure)

> > An object containing `inputSourceARN` and `schemaName` .

> > inputSourceARN -> (string) [required]

> > > An Glue table Amazon Resource Name (ARN) or a matching workflow ARN for the input source table.

> > > Constraints:

> > > * pattern: `arn:(aws|aws-us-gov|aws-cn):entityresolution:[a-z]{2}-[a-z]{1,10}-[0-9]:[0-9]{12}:(idnamespace/[a-zA-Z_0-9-]{1,255})$|^arn:(aws|aws-us-gov|aws-cn):entityresolution:[a-z]{2}-[a-z]{1,10}-[0-9]:[0-9]{12}:(matchingworkflow/[a-zA-Z_0-9-]{1,255})$|^arn:(aws|aws-us-gov|aws-cn):glue:[a-z]{2}-[a-z]{1,10}-[0-9]:[0-9]{12}:(table/[a-zA-Z_0-9-]{1,255}/[a-zA-Z_0-9-]{1,255})`

> > schemaName -> (string)

> > > The name of the schema.

> > > Constraints:

> > > * min: `1`
> > > * max: `255`
> > > * pattern: `[a-zA-Z_0-9-]*`

Shorthand Syntax:

```
inputSourceARN=string,schemaName=string ...
```

JSON Syntax:

```json
[
  {
    "inputSourceARN": "string",
    "schemaName": "string"
  }
  ...
]
```

`--id-mapping-workflow-properties` (list)

> Determines the properties of `IdMappingWorflow` where this `IdNamespace` can be used as a `Source` or a `Target` .

> Constraints:

> * min: `1`
> * max: `1`

> (structure)

> > An object containing `idMappingType` , `providerProperties` , and `ruleBasedProperties` .

> > idMappingType -> (string) [required]

> > > The type of ID mapping.

> > > Possible values:

> > > * `PROVIDER`
> > > * `RULE_BASED`

> > ruleBasedProperties -> (structure)

> > > An object which defines any additional configurations required by rule-based matching.

> > > rules -> (list)

> > > > The rules for the ID namespace.

> > > > Constraints:

> > > > * min: `1`
> > > > * max: `25`

> > > > (structure)

> > > > > An object containing the `ruleName` and `matchingKeys` .

> > > > > ruleName -> (string) [required]

> > > > > > A name for the matching rule.

> > > > > > Constraints:

> > > > > > * min: `0`
> > > > > > * max: `255`
> > > > > > * pattern: `[a-zA-Z_0-9- ]*`

> > > > > matchingKeys -> (list) [required]

> > > > > > A list of `MatchingKeys` . The `MatchingKeys` must have been defined in the `SchemaMapping` . Two records are considered to match according to this rule if all of the `MatchingKeys` match.

> > > > > > Constraints:

> > > > > > * min: `0`
> > > > > > * max: `15`

> > > > > > (string)

> > > > > > > Constraints:

> > > > > > > * min: `0`
> > > > > > > * max: `255`
> > > > > > > * pattern: `[a-zA-Z_0-9- ]*`

> > > ruleDefinitionTypes -> (list)

> > > > The sets of rules you can use in an ID mapping workflow. The limitations specified for the source and target must be compatible.

> > > > (string)

> > > > > Possible values:

> > > > > * `SOURCE`
> > > > > * `TARGET`

> > > attributeMatchingModel -> (string)

> > > > The comparison type. You can either choose `ONE_TO_ONE` or `MANY_TO_MANY` as the `attributeMatchingModel` .

> > > > If you choose `ONE_TO_ONE` , the system can only match attributes if the sub-types are an exact match. For example, for the `Email` attribute type, the system will only consider it a match if the value of the `Email` field of Profile A matches the value of the `Email` field of Profile B.

> > > > If you choose `MANY_TO_MANY` , the system can match attributes across the sub-types of an attribute type. For example, if the value of the `Email` field of Profile A matches the value of `BusinessEmail` field of Profile B, the two profiles are matched on the `Email` attribute type.

> > > > Possible values:

> > > > * `ONE_TO_ONE`
> > > > * `MANY_TO_MANY`

> > > recordMatchingModels -> (list)

> > > > The type of matching record that is allowed to be used in an ID mapping workflow.

> > > > If the value is set to `ONE_SOURCE_TO_ONE_TARGET` , only one record in the source is matched to one record in the target.

> > > > If the value is set to `MANY_SOURCE_TO_ONE_TARGET` , all matching records in the source are matched to one record in the target.

> > > > (string)

> > > > > Possible values:

> > > > > * `ONE_SOURCE_TO_ONE_TARGET`
> > > > > * `MANY_SOURCE_TO_ONE_TARGET`

> > providerProperties -> (structure)

> > > An object which defines any additional configurations required by the provider service.

> > > providerServiceArn -> (string) [required]

> > > > The Amazon Resource Name (ARN) of the provider service.

> > > > Constraints:

> > > > * min: `20`
> > > > * max: `255`
> > > > * pattern: `arn:(aws|aws-us-gov|aws-cn):(entityresolution):([a-z]{2}-[a-z]{1,10}-[0-9])::providerservice/([a-zA-Z0-9_-]{1,255})/([a-zA-Z0-9_-]{1,255})`

> > > providerConfiguration -> (document)

> > > > An object which defines any additional configurations required by the provider service.

JSON Syntax:

```json
[
  {
    "idMappingType": "PROVIDER"|"RULE_BASED",
    "ruleBasedProperties": {
      "rules": [
        {
          "ruleName": "string",
          "matchingKeys": ["string", ...]
        }
        ...
      ],
      "ruleDefinitionTypes": ["SOURCE"|"TARGET", ...],
      "attributeMatchingModel": "ONE_TO_ONE"|"MANY_TO_MANY",
      "recordMatchingModels": ["ONE_SOURCE_TO_ONE_TARGET"|"MANY_SOURCE_TO_ONE_TARGET", ...]
    },
    "providerProperties": {
      "providerServiceArn": "string",
      "providerConfiguration": {...}
    }
  }
  ...
]
```

`--type` (string) [required]

> The type of ID namespace. There are two types: `SOURCE` and `TARGET` .

> The `SOURCE` contains configurations for `sourceId` data that will be processed in an ID mapping workflow.

> The `TARGET` contains a configuration of `targetId` to which all `sourceIds` will resolve to.

> Possible values:

> * `SOURCE`
> * `TARGET`

`--role-arn` (string)

> The Amazon Resource Name (ARN) of the IAM role. Entity Resolution assumes this role to access the resources defined in this `IdNamespace` on your behalf as part of the workflow run.

> Constraints:

> * min: `32`
> * max: `512`
> * pattern: `arn:aws:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+`

`--tags` (map)

> The tags used to organize, track, or control access for this resource.

> Constraints:

> * min: `0`
> * max: `200`

> key -> (string)

> > Constraints:

> > * min: `1`
> > * max: `128`

> value -> (string)

> > Constraints:

> > * min: `0`
> > * max: `256`

Shorthand Syntax:

```
KeyName1=string,KeyName2=string
```

JSON Syntax:

```json
{"string": "string"
  ...}
```

`--cli-input-json` | `--cli-input-yaml` (string)
Reads arguments from the JSON string provided. The JSON string follows the format provided by `--generate-cli-skeleton`. If other arguments are provided on the command line, those values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally. This may not be specified along with `--cli-input-yaml`.

`--generate-cli-skeleton` (string)
Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value `input`, prints a sample input JSON that can be used as an argument for `--cli-input-json`. Similarly, if provided `yaml-input` it will print a sample input YAML that can be used with `--cli-input-yaml`. If provided with the value `output`, it validates the command inputs and returns a sample output JSON for that command. The generated JSON skeleton is not stable between versions of the AWS CLI and there are no backwards compatibility guarantees in the JSON skeleton generated.

## Global Options

`--debug` (boolean)

Turn on debug logging.

`--endpoint-url` (string)

Override command’s default URL with the given URL.

`--no-verify-ssl` (boolean)

By default, the AWS CLI uses SSL when communicating with AWS services. For each SSL connection, the AWS CLI will verify SSL certificates. This option overrides the default behavior of verifying SSL certificates.

`--no-paginate` (boolean)

Disable automatic pagination. If automatic pagination is disabled, the AWS CLI will only make one call, for the first page of results.

`--output` (string)

The formatting style for command output.

* json
* text
* table
* yaml
* yaml-stream
* off

`--query` (string)

A JMESPath query to use in filtering the response data.

`--profile` (string)

Use a specific profile from your credential file.

`--region` (string)

The region to use. Overrides config/env settings.

`--version` (string)

Display the version of this tool.

`--color` (string)

Turn on/off color output.

* on
* off
* auto

`--no-sign-request` (boolean)

Do not sign requests. Credentials will not be loaded if this argument is provided.

`--ca-bundle` (string)

The CA certificate bundle to use when verifying SSL certificates. Overrides config/env settings.

`--cli-read-timeout` (int)

The maximum socket read time in seconds. If the value is set to 0, the socket read will be blocking and not timeout. The default value is 60 seconds.

`--cli-connect-timeout` (int)

The maximum socket connect time in seconds. If the value is set to 0, the socket connect will be blocking and not timeout. The default value is 60 seconds.

`--cli-binary-format` (string)

The formatting style to be used for binary blobs. The default format is base64. The base64 format expects binary blobs to be provided as a base64 encoded string. The raw-in-base64-out format preserves compatibility with AWS CLI V1 behavior and binary values must be passed literally. When providing contents from a file that map to a binary blob `fileb://` will always be treated as binary and use the file contents directly regardless of the `cli-binary-format` setting. When using `file://` the file contents will need to properly formatted for the configured `cli-binary-format`.

* base64
* raw-in-base64-out

`--no-cli-pager` (boolean)

Disable cli pager for output.

`--cli-auto-prompt` (boolean)

Automatically prompt for CLI input parameters.

`--no-cli-auto-prompt` (boolean)

Disable automatically prompt for CLI input parameters.

`--cli-error-format` (string)

The formatting style for error output. By default, errors are displayed in enhanced format.

* legacy
* json
* yaml
* text
* table
* enhanced

## Output

idNamespaceName -> (string)

> The name of the ID namespace.

> Constraints:

> * min: `1`
> * max: `255`
> * pattern: `[a-zA-Z_0-9-]*`

idNamespaceArn -> (string)

> The Amazon Resource Name (ARN) of the ID namespace.

> Constraints:

> * pattern: `arn:(aws|aws-us-gov|aws-cn):entityresolution:[a-z]{2}-[a-z]{1,10}-[0-9]:[0-9]{12}:(idnamespace/[a-zA-Z_0-9-]{1,255})`

description -> (string)

> The description of the ID namespace.

> Constraints:

> * min: `0`
> * max: `255`

inputSourceConfig -> (list)

> A list of `InputSource` objects, which have the fields `InputSourceARN` and `SchemaName` .

> Constraints:

> * min: `0`
> * max: `20`

> (structure)

> > An object containing `inputSourceARN` and `schemaName` .

> > inputSourceARN -> (string) [required]

> > > An Glue table Amazon Resource Name (ARN) or a matching workflow ARN for the input source table.

> > > Constraints:

> > > * pattern: `arn:(aws|aws-us-gov|aws-cn):entityresolution:[a-z]{2}-[a-z]{1,10}-[0-9]:[0-9]{12}:(idnamespace/[a-zA-Z_0-9-]{1,255})$|^arn:(aws|aws-us-gov|aws-cn):entityresolution:[a-z]{2}-[a-z]{1,10}-[0-9]:[0-9]{12}:(matchingworkflow/[a-zA-Z_0-9-]{1,255})$|^arn:(aws|aws-us-gov|aws-cn):glue:[a-z]{2}-[a-z]{1,10}-[0-9]:[0-9]{12}:(table/[a-zA-Z_0-9-]{1,255}/[a-zA-Z_0-9-]{1,255})`

> > schemaName -> (string)

> > > The name of the schema.

> > > Constraints:

> > > * min: `1`
> > > * max: `255`
> > > * pattern: `[a-zA-Z_0-9-]*`

idMappingWorkflowProperties -> (list)

> Determines the properties of `IdMappingWorkflow` where this `IdNamespace` can be used as a `Source` or a `Target` .

> Constraints:

> * min: `1`
> * max: `1`

> (structure)

> > An object containing `idMappingType` , `providerProperties` , and `ruleBasedProperties` .

> > idMappingType -> (string) [required]

> > > The type of ID mapping.

> > > Possible values:

> > > * `PROVIDER`
> > > * `RULE_BASED`

> > ruleBasedProperties -> (structure)

> > > An object which defines any additional configurations required by rule-based matching.

> > > rules -> (list)

> > > > The rules for the ID namespace.

> > > > Constraints:

> > > > * min: `1`
> > > > * max: `25`

> > > > (structure)

> > > > > An object containing the `ruleName` and `matchingKeys` .

> > > > > ruleName -> (string) [required]

> > > > > > A name for the matching rule.

> > > > > > Constraints:

> > > > > > * min: `0`
> > > > > > * max: `255`
> > > > > > * pattern: `[a-zA-Z_0-9- ]*`

> > > > > matchingKeys -> (list) [required]

> > > > > > A list of `MatchingKeys` . The `MatchingKeys` must have been defined in the `SchemaMapping` . Two records are considered to match according to this rule if all of the `MatchingKeys` match.

> > > > > > Constraints:

> > > > > > * min: `0`
> > > > > > * max: `15`

> > > > > > (string)

> > > > > > > Constraints:

> > > > > > > * min: `0`
> > > > > > > * max: `255`
> > > > > > > * pattern: `[a-zA-Z_0-9- ]*`

> > > ruleDefinitionTypes -> (list)

> > > > The sets of rules you can use in an ID mapping workflow. The limitations specified for the source and target must be compatible.

> > > > (string)

> > > > > Possible values:

> > > > > * `SOURCE`
> > > > > * `TARGET`

> > > attributeMatchingModel -> (string)

> > > > The comparison type. You can either choose `ONE_TO_ONE` or `MANY_TO_MANY` as the `attributeMatchingModel` .

> > > > If you choose `ONE_TO_ONE` , the system can only match attributes if the sub-types are an exact match. For example, for the `Email` attribute type, the system will only consider it a match if the value of the `Email` field of Profile A matches the value of the `Email` field of Profile B.

> > > > If you choose `MANY_TO_MANY` , the system can match attributes across the sub-types of an attribute type. For example, if the value of the `Email` field of Profile A matches the value of `BusinessEmail` field of Profile B, the two profiles are matched on the `Email` attribute type.

> > > > Possible values:

> > > > * `ONE_TO_ONE`
> > > > * `MANY_TO_MANY`

> > > recordMatchingModels -> (list)

> > > > The type of matching record that is allowed to be used in an ID mapping workflow.

> > > > If the value is set to `ONE_SOURCE_TO_ONE_TARGET` , only one record in the source is matched to one record in the target.

> > > > If the value is set to `MANY_SOURCE_TO_ONE_TARGET` , all matching records in the source are matched to one record in the target.

> > > > (string)

> > > > > Possible values:

> > > > > * `ONE_SOURCE_TO_ONE_TARGET`
> > > > > * `MANY_SOURCE_TO_ONE_TARGET`

> > providerProperties -> (structure)

> > > An object which defines any additional configurations required by the provider service.

> > > providerServiceArn -> (string) [required]

> > > > The Amazon Resource Name (ARN) of the provider service.

> > > > Constraints:

> > > > * min: `20`
> > > > * max: `255`
> > > > * pattern: `arn:(aws|aws-us-gov|aws-cn):(entityresolution):([a-z]{2}-[a-z]{1,10}-[0-9])::providerservice/([a-zA-Z0-9_-]{1,255})/([a-zA-Z0-9_-]{1,255})`

> > > providerConfiguration -> (document)

> > > > An object which defines any additional configurations required by the provider service.

type -> (string)

> The type of ID namespace. There are two types: `SOURCE` and `TARGET` .

> The `SOURCE` contains configurations for `sourceId` data that will be processed in an ID mapping workflow.

> The `TARGET` contains a configuration of `targetId` to which all `sourceIds` will resolve to.

> Possible values:

> * `SOURCE`
> * `TARGET`

roleArn -> (string)

> The Amazon Resource Name (ARN) of the IAM role. Entity Resolution assumes this role to access the resources defined in `inputSourceConfig` on your behalf as part of the workflow run.

> Constraints:

> * min: `32`
> * max: `512`
> * pattern: `arn:aws:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+`

createdAt -> (timestamp)

> The timestamp of when the ID namespace was created.

updatedAt -> (timestamp)

> The timestamp of when the ID namespace was last updated.

tags -> (map)

> The tags used to organize, track, or control access for this resource.

> Constraints:

> * min: `0`
> * max: `200`

> key -> (string)

> > Constraints:

> > * min: `1`
> > * max: `128`

> value -> (string)

> > Constraints:

> > * min: `0`
> > * max: `256`
