Note:

You are viewing the documentation for an older major version of the AWS CLI (version 1).

AWS CLI version 2, the latest major version of AWS CLI, is now stable and recommended for general use. To view this page for the AWS CLI version 2, click here. For more information see the AWS CLI version 2 installation instructions and migration guide.

[ aws . b2bi ]

create-partnership

Description

Creates a partnership between a customer and a trading partner, based on the supplied parameters. A partnership represents the connection between you and your trading partner. It ties together a profile and one or more trading capabilities.

See also: AWS API Documentation

Synopsis

  create-partnership
--profile-id <value>
--name <value>
--email <value>
[--phone <value>]
--capabilities <value>
[--capability-options <value>]
[--client-token <value>]
[--tags <value>]
[--cli-input-json <value>]
[--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>]

Options

--profile-id (string)

Specifies the unique, system-generated identifier for the profile connected to this partnership.

--name (string)

Specifies a descriptive name for the partnership.

--email (string)

Specifies the email address associated with this trading partner.

--phone (string)

Specifies the phone number associated with the partnership.

--capabilities (list)

Specifies a list of the capabilities associated with this partnership.

(string)

Syntax:

"string" "string" ...

--capability-options (structure)

Specify the structure that contains the details for the associated capabilities.

outboundEdi -> (tagged union structure)

A structure that contains the outbound EDI options.

Note

This is a Tagged Union structure. Only one of the following top level keys can be set: x12.

x12 -> (structure)

A structure that contains an X12 envelope structure.

common -> (structure)

A container for the X12 outbound EDI headers.

interchangeControlHeaders -> (structure)

In X12 EDI messages, delimiters are used to mark the end of segments or elements, and are defined in the interchange control header.

senderIdQualifier -> (string)

Located at position ISA-05 in the header. Qualifier for the sender ID. Together, the ID and qualifier uniquely identify the sending trading partner.

senderId -> (string)

Located at position ISA-06 in the header. This value (along with the senderIdQualifier ) identifies the sender of the interchange.

receiverIdQualifier -> (string)

Located at position ISA-07 in the header. Qualifier for the receiver ID. Together, the ID and qualifier uniquely identify the receiving trading partner.

receiverId -> (string)

Located at position ISA-08 in the header. This value (along with the receiverIdQualifier ) identifies the intended recipient of the interchange.

repetitionSeparator -> (string)

Located at position ISA-11 in the header. This string makes it easier when you need to group similar adjacent element values together without using extra segments.

Note

This parameter is only honored for version greater than 401 (VERSION_4010 and higher).

For versions less than 401, this field is called StandardsId , in which case our service sets the value to U .

acknowledgmentRequestedCode -> (string)

Located at position ISA-14 in the header. The value "1" indicates that the sender is requesting an interchange acknowledgment at receipt of the interchange. The value "0" is used otherwise.

usageIndicatorCode -> (string)

Located at position ISA-15 in the header. Specifies how this interchange is being used:

  • T indicates this interchange is for testing.
  • P indicates this interchange is for production.
  • I indicates this interchange is informational.

functionalGroupHeaders -> (structure)

The functional group headers for the X12 object.

applicationSenderCode -> (string)

A value representing the code used to identify the party transmitting a message, at position GS-02.

applicationReceiverCode -> (string)

A value representing the code used to identify the party receiving a message, at position GS-03.

responsibleAgencyCode -> (string)

A code that identifies the issuer of the standard, at position GS-07.

delimiters -> (structure)

The delimiters, for example semicolon (; ), that separates sections of the headers for the X12 object.

componentSeparator -> (string)

The component, or sub-element, separator. The default value is : (colon).

dataElementSeparator -> (string)

The data element separator. The default value is * (asterisk).

segmentTerminator -> (string)

The segment terminator. The default value is ~ (tilde).

validateEdi -> (boolean)

Specifies whether or not to validate the EDI for this X12 object: TRUE or FALSE .

JSON Syntax:

{
  "outboundEdi": {
    "x12": {
      "common": {
        "interchangeControlHeaders": {
          "senderIdQualifier": "string",
          "senderId": "string",
          "receiverIdQualifier": "string",
          "receiverId": "string",
          "repetitionSeparator": "string",
          "acknowledgmentRequestedCode": "string",
          "usageIndicatorCode": "string"
        },
        "functionalGroupHeaders": {
          "applicationSenderCode": "string",
          "applicationReceiverCode": "string",
          "responsibleAgencyCode": "string"
        },
        "delimiters": {
          "componentSeparator": "string",
          "dataElementSeparator": "string",
          "segmentTerminator": "string"
        },
        "validateEdi": true|false
      }
    }
  }
}

--client-token (string)

Reserved for future use.

--tags (list)

Specifies the key-value pairs assigned to ARNs that you can use to group and search for resources by type. You can attach this metadata to resources (capabilities, partnerships, and so on) for any purpose.

(structure)

Creates a key-value pair for a specific resource. Tags are metadata that you can use to search for and group a resource for various purposes. You can apply tags to capabilities, partnerships, profiles and transformers. A tag key can take more than one value. For example, to group capabilities for accounting purposes, you might create a tag called Group and assign the values Research and Accounting to that group.

Key -> (string)

Specifies the name assigned to the tag that you create.

Value -> (string)

Contains one or more values that you assigned to the key name that you create.

Shorthand Syntax:

Key=string,Value=string ...

JSON Syntax:

[
  {
    "Key": "string",
    "Value": "string"
  }
  ...
]

--cli-input-json (string) Performs service operation based on the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, the CLI 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.

--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. If provided with the value output, it validates the command inputs and returns a sample output JSON for that command.

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

--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.

Output

profileId -> (string)

Returns the unique, system-generated identifier for the profile connected to this partnership.

partnershipId -> (string)

Returns the unique, system-generated identifier for a partnership.

partnershipArn -> (string)

Returns an Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a capability, partnership, profile, or transformer.

name -> (string)

Returns a descriptive name for the partnership.

email -> (string)

Returns the email address associated with this trading partner.

phone -> (string)

Returns the phone number associated with the partnership.

capabilities -> (list)

Returns one or more capabilities associated with this partnership.

(string)

capabilityOptions -> (structure)

Returns the structure that contains the details for the associated capabilities.

outboundEdi -> (tagged union structure)

A structure that contains the outbound EDI options.

Note

This is a Tagged Union structure. Only one of the following top level keys can be set: x12.

x12 -> (structure)

A structure that contains an X12 envelope structure.

common -> (structure)

A container for the X12 outbound EDI headers.

interchangeControlHeaders -> (structure)

In X12 EDI messages, delimiters are used to mark the end of segments or elements, and are defined in the interchange control header.

senderIdQualifier -> (string)

Located at position ISA-05 in the header. Qualifier for the sender ID. Together, the ID and qualifier uniquely identify the sending trading partner.

senderId -> (string)

Located at position ISA-06 in the header. This value (along with the senderIdQualifier ) identifies the sender of the interchange.

receiverIdQualifier -> (string)

Located at position ISA-07 in the header. Qualifier for the receiver ID. Together, the ID and qualifier uniquely identify the receiving trading partner.

receiverId -> (string)

Located at position ISA-08 in the header. This value (along with the receiverIdQualifier ) identifies the intended recipient of the interchange.

repetitionSeparator -> (string)

Located at position ISA-11 in the header. This string makes it easier when you need to group similar adjacent element values together without using extra segments.

Note

This parameter is only honored for version greater than 401 (VERSION_4010 and higher).

For versions less than 401, this field is called StandardsId , in which case our service sets the value to U .

acknowledgmentRequestedCode -> (string)

Located at position ISA-14 in the header. The value "1" indicates that the sender is requesting an interchange acknowledgment at receipt of the interchange. The value "0" is used otherwise.

usageIndicatorCode -> (string)

Located at position ISA-15 in the header. Specifies how this interchange is being used:

  • T indicates this interchange is for testing.
  • P indicates this interchange is for production.
  • I indicates this interchange is informational.

functionalGroupHeaders -> (structure)

The functional group headers for the X12 object.

applicationSenderCode -> (string)

A value representing the code used to identify the party transmitting a message, at position GS-02.

applicationReceiverCode -> (string)

A value representing the code used to identify the party receiving a message, at position GS-03.

responsibleAgencyCode -> (string)

A code that identifies the issuer of the standard, at position GS-07.

delimiters -> (structure)

The delimiters, for example semicolon (; ), that separates sections of the headers for the X12 object.

componentSeparator -> (string)

The component, or sub-element, separator. The default value is : (colon).

dataElementSeparator -> (string)

The data element separator. The default value is * (asterisk).

segmentTerminator -> (string)

The segment terminator. The default value is ~ (tilde).

validateEdi -> (boolean)

Specifies whether or not to validate the EDI for this X12 object: TRUE or FALSE .

tradingPartnerId -> (string)

Returns the unique, system-generated identifier for a trading partner.

createdAt -> (timestamp)

Returns a timestamp for creation date and time of the partnership.