Class CfnAgreement
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.transfer.CfnAgreement
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IAgreementRef,ITaggable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:47.005Z")
@Stability(Stable)
public class CfnAgreement
extends CfnResource
implements IInspectable, IAgreementRef, ITaggable
Creates an agreement.
An agreement is a bilateral trading partner agreement, or partnership, between an AWS Transfer Family server and an AS2 process. The agreement defines the file and message transfer relationship between the server and the AS2 process. To define an agreement, Transfer Family combines a server, local profile, partner profile, certificate, and other attributes.
The partner is identified with the PartnerProfileId , and the AS2 process is identified with the LocalProfileId .
Specify either
BaseDirectoryorCustomDirectories, but not both. Specifying both causes the command to fail.
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.transfer.*;
CfnAgreement cfnAgreement = CfnAgreement.Builder.create(this, "MyCfnAgreement")
.accessRole("accessRole")
.localProfileId("localProfileId")
.partnerProfileId("partnerProfileId")
.serverId("serverId")
// the properties below are optional
.baseDirectory("baseDirectory")
.customDirectories(CustomDirectoriesProperty.builder()
.failedFilesDirectory("failedFilesDirectory")
.mdnFilesDirectory("mdnFilesDirectory")
.payloadFilesDirectory("payloadFilesDirectory")
.statusFilesDirectory("statusFilesDirectory")
.temporaryFilesDirectory("temporaryFilesDirectory")
.build())
.description("description")
.enforceMessageSigning("enforceMessageSigning")
.preserveFilename("preserveFilename")
.status("status")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnAgreement.static interfaceSpecifies a separate directory for each type of file to store for an AS2 message.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.transfer.IAgreementRef
IAgreementRef.Jsii$Default, IAgreementRef.Jsii$ProxyNested 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.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnAgreement(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnAgreement(software.amazon.jsii.JsiiObjectRef objRef) CfnAgreement(software.constructs.Construct scope, String id, CfnAgreementProps props) Create a newAWS::Transfer::Agreement. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForAgreement(IAgreementRef resource) Connectors are used to send files using either the AS2 or SFTP protocol.A reference to a Agreement resource.The unique identifier for the AS2 agreement, returned after the API call succeeds.Specifies the unique Amazon Resource Name (ARN) for the agreement.The landing directory (folder) for files that are transferred by using the AS2 protocol.ACustomDirectoriesTypestructure.The name or short description that's used to identify the agreement.Determines whether or not unsigned messages from your trading partners will be accepted.A unique identifier for the AS2 local profile.A unique identifier for the partner profile used in the agreement.Determines whether or not Transfer Family appends a unique string of characters to the end of the AS2 message payload filename when saving it.A system-assigned unique identifier for a server instance.The current status of the agreement, eitherACTIVEorINACTIVE.getTags()Tag Manager which manages the tags for this resource.Key-value pairs that can be used to group and search for agreements.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnAgreement.renderProperties(Map<String, Object> props) voidsetAccessRole(String value) Connectors are used to send files using either the AS2 or SFTP protocol.voidsetBaseDirectory(String value) The landing directory (folder) for files that are transferred by using the AS2 protocol.voidsetCustomDirectories(IResolvable value) ACustomDirectoriesTypestructure.voidACustomDirectoriesTypestructure.voidsetDescription(String value) The name or short description that's used to identify the agreement.voidsetEnforceMessageSigning(String value) Determines whether or not unsigned messages from your trading partners will be accepted.voidsetLocalProfileId(String value) A unique identifier for the AS2 local profile.voidsetPartnerProfileId(String value) A unique identifier for the partner profile used in the agreement.voidsetPreserveFilename(String value) Determines whether or not Transfer Family appends a unique string of characters to the end of the AS2 message payload filename when saving it.voidsetServerId(String value) A system-assigned unique identifier for a server instance.voidThe current status of the agreement, eitherACTIVEorINACTIVE.voidsetTagsRaw(List<CfnTag> value) Key-value pairs that can be used to group and search for agreements.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, 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.awscdk.interfaces.IEnvironmentAware
getEnvMethods 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
-
CfnAgreement
protected CfnAgreement(software.amazon.jsii.JsiiObjectRef objRef) -
CfnAgreement
protected CfnAgreement(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnAgreement
@Stability(Stable) public CfnAgreement(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnAgreementProps props) Create a newAWS::Transfer::Agreement.- 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
-
arnForAgreement
- Parameters:
resource- This parameter is required.
-
isCfnAgreement
Checks whether the given object is a CfnAgreement.- Parameters:
x- This parameter is required.
-
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.
-
getAgreementRef
A reference to a Agreement resource.- Specified by:
getAgreementRefin interfaceIAgreementRef
-
getAttrAgreementId
The unique identifier for the AS2 agreement, returned after the API call succeeds. -
getAttrArn
Specifies the unique Amazon Resource Name (ARN) for the agreement. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getAccessRole
Connectors are used to send files using either the AS2 or SFTP protocol. -
setAccessRole
Connectors are used to send files using either the AS2 or SFTP protocol. -
getLocalProfileId
A unique identifier for the AS2 local profile. -
setLocalProfileId
A unique identifier for the AS2 local profile. -
getPartnerProfileId
A unique identifier for the partner profile used in the agreement. -
setPartnerProfileId
A unique identifier for the partner profile used in the agreement. -
getServerId
A system-assigned unique identifier for a server instance. -
setServerId
A system-assigned unique identifier for a server instance. -
getBaseDirectory
The landing directory (folder) for files that are transferred by using the AS2 protocol. -
setBaseDirectory
The landing directory (folder) for files that are transferred by using the AS2 protocol. -
getCustomDirectories
ACustomDirectoriesTypestructure.Returns union: either
IResolvableorCfnAgreement.CustomDirectoriesProperty -
setCustomDirectories
ACustomDirectoriesTypestructure. -
setCustomDirectories
@Stability(Stable) public void setCustomDirectories(@Nullable CfnAgreement.CustomDirectoriesProperty value) ACustomDirectoriesTypestructure. -
getDescription
The name or short description that's used to identify the agreement. -
setDescription
The name or short description that's used to identify the agreement. -
getEnforceMessageSigning
Determines whether or not unsigned messages from your trading partners will be accepted. -
setEnforceMessageSigning
Determines whether or not unsigned messages from your trading partners will be accepted. -
getPreserveFilename
Determines whether or not Transfer Family appends a unique string of characters to the end of the AS2 message payload filename when saving it. -
setPreserveFilename
Determines whether or not Transfer Family appends a unique string of characters to the end of the AS2 message payload filename when saving it. -
getStatus
The current status of the agreement, eitherACTIVEorINACTIVE. -
setStatus
The current status of the agreement, eitherACTIVEorINACTIVE. -
getTagsRaw
Key-value pairs that can be used to group and search for agreements. -
setTagsRaw
Key-value pairs that can be used to group and search for agreements.
-