SourceApiAssociationArgs

data class SourceApiAssociationArgs(val description: Output<String>? = null, val mergedApiArn: Output<String>? = null, val mergedApiId: Output<String>? = null, val sourceApiArn: Output<String>? = null, val sourceApiAssociationConfigs: Output<List<SourceApiAssociationSourceApiAssociationConfigArgs>>? = null, val sourceApiId: Output<String>? = null, val timeouts: Output<SourceApiAssociationTimeoutsArgs>? = null) : ConvertibleToJava<SourceApiAssociationArgs>

Resource for managing an AWS AppSync Source Api Association.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = new aws.appsync.SourceApiAssociation("test", {
description: "My source API Merged",
mergedApiId: "gzos6bteufdunffzzifiowisoe",
sourceApiId: "fzzifiowisoegzos6bteufdunf",
});
import pulumi
import pulumi_aws as aws
test = aws.appsync.SourceApiAssociation("test",
description="My source API Merged",
merged_api_id="gzos6bteufdunffzzifiowisoe",
source_api_id="fzzifiowisoegzos6bteufdunf")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var test = new Aws.AppSync.SourceApiAssociation("test", new()
{
Description = "My source API Merged",
MergedApiId = "gzos6bteufdunffzzifiowisoe",
SourceApiId = "fzzifiowisoegzos6bteufdunf",
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/appsync"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := appsync.NewSourceApiAssociation(ctx, "test", &appsync.SourceApiAssociationArgs{
Description: pulumi.String("My source API Merged"),
MergedApiId: pulumi.String("gzos6bteufdunffzzifiowisoe"),
SourceApiId: pulumi.String("fzzifiowisoegzos6bteufdunf"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.appsync.SourceApiAssociation;
import com.pulumi.aws.appsync.SourceApiAssociationArgs;
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 test = new SourceApiAssociation("test", SourceApiAssociationArgs.builder()
.description("My source API Merged")
.mergedApiId("gzos6bteufdunffzzifiowisoe")
.sourceApiId("fzzifiowisoegzos6bteufdunf")
.build());
}
}
resources:
test:
type: aws:appsync:SourceApiAssociation
properties:
description: My source API Merged
mergedApiId: gzos6bteufdunffzzifiowisoe
sourceApiId: fzzifiowisoegzos6bteufdunf

Import

Using pulumi import, import AppSync Source Api Association using the gzos6bteufdunffzzifiowisoe,243685a0-9347-4a1a-89c1-9b57dea01e31. For example:

$ pulumi import aws:appsync/sourceApiAssociation:SourceApiAssociation example gzos6bteufdunffzzifiowisoe,243685a0-9347-4a1a-89c1-9b57dea01e31

Constructors

Link copied to clipboard
constructor(description: Output<String>? = null, mergedApiArn: Output<String>? = null, mergedApiId: Output<String>? = null, sourceApiArn: Output<String>? = null, sourceApiAssociationConfigs: Output<List<SourceApiAssociationSourceApiAssociationConfigArgs>>? = null, sourceApiId: Output<String>? = null, timeouts: Output<SourceApiAssociationTimeoutsArgs>? = null)

Properties

Link copied to clipboard
val description: Output<String>? = null

Description of the source API being merged.

Link copied to clipboard
val mergedApiArn: Output<String>? = null

ARN of the merged API. One of merged_api_arn or merged_api_id must be specified.

Link copied to clipboard
val mergedApiId: Output<String>? = null

ID of the merged API. One of merged_api_arn or merged_api_id must be specified.

Link copied to clipboard
val sourceApiArn: Output<String>? = null

ARN of the source API. One of source_api_arn or source_api_id must be specified.

Link copied to clipboard
val sourceApiId: Output<String>? = null

ID of the source API. One of source_api_arn or source_api_id must be specified.

Link copied to clipboard

Functions

Link copied to clipboard
open override fun toJava(): SourceApiAssociationArgs