Agreement Args
data class AgreementArgs(val accessRole: Output<String>? = null, val baseDirectory: Output<String>? = null, val description: Output<String>? = null, val localProfileId: Output<String>? = null, val partnerProfileId: Output<String>? = null, val serverId: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<AgreementArgs>
Provides a AWS Transfer AS2 Agreement resource.
Example Usage
Basic
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.transfer.Agreement;
import com.pulumi.aws.transfer.AgreementArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Agreement("example", AgreementArgs.builder()
.accessRole(aws_iam_role.test().arn())
.baseDirectory("/DOC-EXAMPLE-BUCKET/home/mydirectory")
.description("example")
.localProfileId(aws_transfer_profile.local().profile_id())
.partnerProfileId(aws_transfer_profile.partner().profile_id())
.serverId(aws_transfer_server.test().id())
.build());
}
}
Content copied to clipboard
Import
Using pulumi import
, import Transfer AS2 Agreement using the server_id/agreement_id
. For example:
$ pulumi import aws:transfer/agreement:Agreement example s-4221a88afd5f4362a/a-4221a88afd5f4362a
Content copied to clipboard