Class CfnPartnership
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.b2bi.CfnPartnership
- All Implemented Interfaces:
IInspectable,ITaggableV2,IPartnershipRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:31.869Z")
@Stability(Stable)
public class CfnPartnership
extends CfnResource
implements IInspectable, IPartnershipRef, ITaggableV2
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.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.b2bi.*;
CfnPartnership cfnPartnership = CfnPartnership.Builder.create(this, "MyCfnPartnership")
.capabilities(List.of("capabilities"))
.email("email")
.name("name")
.profileId("profileId")
// the properties below are optional
.capabilityOptions(CapabilityOptionsProperty.builder()
.inboundEdi(InboundEdiOptionsProperty.builder()
.x12(X12InboundEdiOptionsProperty.builder()
.acknowledgmentOptions(X12AcknowledgmentOptionsProperty.builder()
.functionalAcknowledgment("functionalAcknowledgment")
.technicalAcknowledgment("technicalAcknowledgment")
.build())
.build())
.build())
.outboundEdi(OutboundEdiOptionsProperty.builder()
.x12(X12EnvelopeProperty.builder()
.common(X12OutboundEdiHeadersProperty.builder()
.controlNumbers(X12ControlNumbersProperty.builder()
.startingFunctionalGroupControlNumber(123)
.startingInterchangeControlNumber(123)
.startingTransactionSetControlNumber(123)
.build())
.delimiters(X12DelimitersProperty.builder()
.componentSeparator("componentSeparator")
.dataElementSeparator("dataElementSeparator")
.segmentTerminator("segmentTerminator")
.build())
.functionalGroupHeaders(X12FunctionalGroupHeadersProperty.builder()
.applicationReceiverCode("applicationReceiverCode")
.applicationSenderCode("applicationSenderCode")
.responsibleAgencyCode("responsibleAgencyCode")
.build())
.gs05TimeFormat("gs05TimeFormat")
.interchangeControlHeaders(X12InterchangeControlHeadersProperty.builder()
.acknowledgmentRequestedCode("acknowledgmentRequestedCode")
.receiverId("receiverId")
.receiverIdQualifier("receiverIdQualifier")
.repetitionSeparator("repetitionSeparator")
.senderId("senderId")
.senderIdQualifier("senderIdQualifier")
.usageIndicatorCode("usageIndicatorCode")
.build())
.validateEdi(false)
.build())
.wrapOptions(WrapOptionsProperty.builder()
.lineLength(123)
.lineTerminator("lineTerminator")
.wrapBy("wrapBy")
.build())
.build())
.build())
.build())
.phone("phone")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnPartnership.static interfaceContains the details for an Outbound EDI capability.static interfaceContains options for processing inbound EDI files.static interfaceA container for outbound EDI options.static interfaceContains options for wrapping (line folding) in X12 EDI files.static interfaceContains options for configuring X12 acknowledgments.static interfaceContains configuration for X12 control numbers used in X12 EDI generation.static interfaceIn X12 EDI messages, delimiters are used to mark the end of segments or elements, and are defined in the interchange control header.static interfaceA wrapper structure for an X12 definition object.static interfacePart of the X12 message structure.static interfaceContains options specific to processing inbound X12 EDI files.static interfaceIn X12, the Interchange Control Header is the first segment of an EDI document and is part of the Interchange Envelope.static interfaceA structure containing the details for an outbound EDI object.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.b2bi.IPartnershipRef
IPartnershipRef.Jsii$Default, IPartnershipRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnPartnership(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnPartnership(software.amazon.jsii.JsiiObjectRef objRef) CfnPartnership(software.constructs.Construct scope, String id, CfnPartnershipProps props) -
Method Summary
Modifier and TypeMethodDescriptionReturns a timestamp for creation date and time of the partnership.Returns a timestamp that identifies the most recent date and time that the partnership was modified.Returns an Amazon Resource Name (ARN) for a specific AWS resource, such as a capability, partnership, profile, or transformer.Returns the unique, system-generated identifier for a partnership.Returns the unique, system-generated identifier for a trading partner.Returns one or more capabilities associated with this partnership.Contains the details for an Outbound EDI capability.Tag Manager which manages the tags for this resource.getEmail()Specifies the email address associated with this trading partner.getName()Returns the name of the partnership.A reference to a Partnership resource.getPhone()Specifies the phone number associated with the partnership.Returns the unique, system-generated identifier for the profile connected to this partnership.getTags()A key-value pair for a specific partnership.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetCapabilities(List<String> value) Returns one or more capabilities associated with this partnership.voidsetCapabilityOptions(IResolvable value) Contains the details for an Outbound EDI capability.voidContains the details for an Outbound EDI capability.voidSpecifies the email address associated with this trading partner.voidReturns the name of the partnership.voidSpecifies the phone number associated with the partnership.voidsetProfileId(String value) Returns the unique, system-generated identifier for the profile connected to this partnership.voidA key-value pair for a specific partnership.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnPartnership
protected CfnPartnership(software.amazon.jsii.JsiiObjectRef objRef) -
CfnPartnership
protected CfnPartnership(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnPartnership
@Stability(Stable) public CfnPartnership(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnPartnershipProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrCreatedAt
Returns a timestamp for creation date and time of the partnership. -
getAttrModifiedAt
Returns a timestamp that identifies the most recent date and time that the partnership was modified. -
getAttrPartnershipArn
Returns an Amazon Resource Name (ARN) for a specific AWS resource, such as a capability, partnership, profile, or transformer. -
getAttrPartnershipId
Returns the unique, system-generated identifier for a partnership. -
getAttrTradingPartnerId
Returns the unique, system-generated identifier for a trading partner. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getPartnershipRef
A reference to a Partnership resource.- Specified by:
getPartnershipRefin interfaceIPartnershipRef
-
getCapabilities
Returns one or more capabilities associated with this partnership. -
setCapabilities
Returns one or more capabilities associated with this partnership. -
getEmail
Specifies the email address associated with this trading partner. -
setEmail
Specifies the email address associated with this trading partner. -
getName
Returns the name of the partnership. -
setName
Returns the name of the partnership. -
getProfileId
Returns the unique, system-generated identifier for the profile connected to this partnership. -
setProfileId
Returns the unique, system-generated identifier for the profile connected to this partnership. -
getCapabilityOptions
Contains the details for an Outbound EDI capability.Returns union: either
IResolvableorCfnPartnership.CapabilityOptionsProperty -
setCapabilityOptions
Contains the details for an Outbound EDI capability. -
setCapabilityOptions
@Stability(Stable) public void setCapabilityOptions(@Nullable CfnPartnership.CapabilityOptionsProperty value) Contains the details for an Outbound EDI capability. -
getPhone
Specifies the phone number associated with the partnership. -
setPhone
Specifies the phone number associated with the partnership. -
getTags
A key-value pair for a specific partnership. -
setTags
A key-value pair for a specific partnership.
-