Class CfnAgreement
- All Implemented Interfaces:
- IConstruct,- IDependable,- IInspectable,- software.amazon.jsii.JsiiSerializable,- software.constructs.IConstruct
AWS::Transfer::Agreement.
 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 .
 
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")
         .baseDirectory("baseDirectory")
         .localProfileId("localProfileId")
         .partnerProfileId("partnerProfileId")
         .serverId("serverId")
         // the properties below are optional
         .description("description")
         .status("status")
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build();
 - 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObjectsoftware.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstructIConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstructsoftware.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectableIInspectable.Jsii$Default, IInspectable.Jsii$Proxy
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class.
- 
Constructor SummaryConstructorsModifierConstructorDescriptionCfnAgreement(Construct scope, String id, CfnAgreementProps props) Create a newAWS::Transfer::Agreement.protectedCfnAgreement(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnAgreement(software.amazon.jsii.JsiiObjectRef objRef) 
- 
Method SummaryModifier and TypeMethodDescriptionWith AS2, you can send files by callingStartFileTransferand specifying the file paths in the request parameter,SendFilePaths.The unique identifier for the AS2 agreement, returned after the API call succeeds.The landing directory (folder) for files that are transferred by using the AS2 protocol.The name or short description that's used to identify the agreement.A unique identifier for the AS2 local profile.A unique identifier for the partner profile used in the agreement.A system-assigned unique identifier for a server instance.The current status of the agreement, eitherACTIVEorINACTIVE.getTags()Key-value pairs that can be used to group and search for agreements.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetAccessRole(String value) With AS2, you can send files by callingStartFileTransferand specifying the file paths in the request parameter,SendFilePaths.voidsetBaseDirectory(String value) The landing directory (folder) for files that are transferred by using the AS2 protocol.voidsetDescription(String value) The name or short description that's used to identify the agreement.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.voidsetServerId(String value) A system-assigned unique identifier for a server instance.voidThe current status of the agreement, eitherACTIVEorINACTIVE.Methods inherited from class software.amazon.awscdk.core.CfnResourceaddDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElementgetRefMethods inherited from class software.amazon.awscdk.core.CfnElementgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.ConstructgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObjectjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable$jsii$toJson
- 
Field Details- 
CFN_RESOURCE_TYPE_NAMEThe CloudFormation resource type name for this resource class.
 
- 
- 
Constructor Details- 
CfnAgreementprotected CfnAgreement(software.amazon.jsii.JsiiObjectRef objRef) 
- 
CfnAgreementprotected CfnAgreement(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) 
- 
CfnAgreement@Stability(Stable) public CfnAgreement(@NotNull Construct scope, @NotNull String id, @NotNull CfnAgreementProps props) Create a newAWS::Transfer::Agreement.- Parameters:
- scope-- scope in which this resource is defined.
 
- id-- scoped id of the resource.
 
- props-- resource properties.
 
 
 
- 
- 
Method Details- 
inspectExamines the CloudFormation resource and discloses attributes.- Specified by:
- inspectin interface- IInspectable
- Parameters:
- inspector-- tree inspector to collect and process attributes.
 
 
- 
renderProperties@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
- renderPropertiesin class- CfnResource
- Parameters:
- props- This parameter is required.
 
- 
getAttrAgreementIdThe unique identifier for the AS2 agreement, returned after the API call succeeds.
- 
getAttrArn
- 
getCfnProperties- Overrides:
- getCfnPropertiesin class- CfnResource
 
- 
getTagsKey-value pairs that can be used to group and search for agreements.
- 
getAccessRoleWith AS2, you can send files by callingStartFileTransferand specifying the file paths in the request parameter,SendFilePaths.We use the file’s parent directory (for example, for --send-file-paths /bucket/dir/file.txt, parent directory is/bucket/dir/) to temporarily store a processed AS2 message file, store the MDN when we receive them from the partner, and write a final JSON file containing relevant metadata of the transmission. So, theAccessRoleneeds to provide read and write access to the parent directory of the file location used in theStartFileTransferrequest. Additionally, you need to provide read and write access to the parent directory of the files that you intend to send withStartFileTransfer.
- 
setAccessRoleWith AS2, you can send files by callingStartFileTransferand specifying the file paths in the request parameter,SendFilePaths.We use the file’s parent directory (for example, for --send-file-paths /bucket/dir/file.txt, parent directory is/bucket/dir/) to temporarily store a processed AS2 message file, store the MDN when we receive them from the partner, and write a final JSON file containing relevant metadata of the transmission. So, theAccessRoleneeds to provide read and write access to the parent directory of the file location used in theStartFileTransferrequest. Additionally, you need to provide read and write access to the parent directory of the files that you intend to send withStartFileTransfer.
- 
getBaseDirectoryThe landing directory (folder) for files that are transferred by using the AS2 protocol.
- 
setBaseDirectoryThe landing directory (folder) for files that are transferred by using the AS2 protocol.
- 
getLocalProfileIdA unique identifier for the AS2 local profile.
- 
setLocalProfileIdA unique identifier for the AS2 local profile.
- 
getPartnerProfileIdA unique identifier for the partner profile used in the agreement.
- 
setPartnerProfileIdA unique identifier for the partner profile used in the agreement.
- 
getServerIdA system-assigned unique identifier for a server instance.This identifier indicates the specific server that the agreement uses. 
- 
setServerIdA system-assigned unique identifier for a server instance.This identifier indicates the specific server that the agreement uses. 
- 
getDescriptionThe name or short description that's used to identify the agreement.
- 
setDescriptionThe name or short description that's used to identify the agreement.
- 
getStatusThe current status of the agreement, eitherACTIVEorINACTIVE.
- 
setStatusThe current status of the agreement, eitherACTIVEorINACTIVE.
 
-