com.pulumi.aws.appsync.SourceApiAssociation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
The newest version!
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.appsync;
import com.pulumi.aws.Utilities;
import com.pulumi.aws.appsync.SourceApiAssociationArgs;
import com.pulumi.aws.appsync.inputs.SourceApiAssociationState;
import com.pulumi.aws.appsync.outputs.SourceApiAssociationSourceApiAssociationConfig;
import com.pulumi.aws.appsync.outputs.SourceApiAssociationTimeouts;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Resource for managing an AWS AppSync Source Api Association.
*
* ## Example Usage
*
* ### Basic Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ## Import
*
* Using `pulumi import`, import AppSync Source Api Association using the `gzos6bteufdunffzzifiowisoe,243685a0-9347-4a1a-89c1-9b57dea01e31`. For example:
*
* ```sh
* $ pulumi import aws:appsync/sourceApiAssociation:SourceApiAssociation example gzos6bteufdunffzzifiowisoe,243685a0-9347-4a1a-89c1-9b57dea01e31
* ```
*
*/
@ResourceType(type="aws:appsync/sourceApiAssociation:SourceApiAssociation")
public class SourceApiAssociation extends com.pulumi.resources.CustomResource {
/**
* ARN of the Source Api Association.
*
*/
@Export(name="arn", refs={String.class}, tree="[0]")
private Output arn;
/**
* @return ARN of the Source Api Association.
*
*/
public Output arn() {
return this.arn;
}
/**
* ID of the Source Api Association.
*
*/
@Export(name="associationId", refs={String.class}, tree="[0]")
private Output associationId;
/**
* @return ID of the Source Api Association.
*
*/
public Output associationId() {
return this.associationId;
}
/**
* Description of the source API being merged.
*
*/
@Export(name="description", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> description;
/**
* @return Description of the source API being merged.
*
*/
public Output> description() {
return Codegen.optional(this.description);
}
/**
* ARN of the merged API. One of `merged_api_arn` or `merged_api_id` must be specified.
*
*/
@Export(name="mergedApiArn", refs={String.class}, tree="[0]")
private Output mergedApiArn;
/**
* @return ARN of the merged API. One of `merged_api_arn` or `merged_api_id` must be specified.
*
*/
public Output mergedApiArn() {
return this.mergedApiArn;
}
/**
* ID of the merged API. One of `merged_api_arn` or `merged_api_id` must be specified.
*
*/
@Export(name="mergedApiId", refs={String.class}, tree="[0]")
private Output mergedApiId;
/**
* @return ID of the merged API. One of `merged_api_arn` or `merged_api_id` must be specified.
*
*/
public Output mergedApiId() {
return this.mergedApiId;
}
/**
* ARN of the source API. One of `source_api_arn` or `source_api_id` must be specified.
*
*/
@Export(name="sourceApiArn", refs={String.class}, tree="[0]")
private Output sourceApiArn;
/**
* @return ARN of the source API. One of `source_api_arn` or `source_api_id` must be specified.
*
*/
public Output sourceApiArn() {
return this.sourceApiArn;
}
@Export(name="sourceApiAssociationConfigs", refs={List.class,SourceApiAssociationSourceApiAssociationConfig.class}, tree="[0,1]")
private Output> sourceApiAssociationConfigs;
public Output> sourceApiAssociationConfigs() {
return this.sourceApiAssociationConfigs;
}
/**
* ID of the source API. One of `source_api_arn` or `source_api_id` must be specified.
*
*/
@Export(name="sourceApiId", refs={String.class}, tree="[0]")
private Output sourceApiId;
/**
* @return ID of the source API. One of `source_api_arn` or `source_api_id` must be specified.
*
*/
public Output sourceApiId() {
return this.sourceApiId;
}
@Export(name="timeouts", refs={SourceApiAssociationTimeouts.class}, tree="[0]")
private Output* @Nullable */ SourceApiAssociationTimeouts> timeouts;
public Output> timeouts() {
return Codegen.optional(this.timeouts);
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public SourceApiAssociation(java.lang.String name) {
this(name, SourceApiAssociationArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public SourceApiAssociation(java.lang.String name, @Nullable SourceApiAssociationArgs args) {
this(name, args, null);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
* @param options A bag of options that control this resource's behavior.
*/
public SourceApiAssociation(java.lang.String name, @Nullable SourceApiAssociationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("aws:appsync/sourceApiAssociation:SourceApiAssociation", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private SourceApiAssociation(java.lang.String name, Output id, @Nullable SourceApiAssociationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("aws:appsync/sourceApiAssociation:SourceApiAssociation", name, state, makeResourceOptions(options, id), false);
}
private static SourceApiAssociationArgs makeArgs(@Nullable SourceApiAssociationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? SourceApiAssociationArgs.Empty : args;
}
private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
.version(Utilities.getVersion())
.build();
return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
}
/**
* Get an existing Host resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state
* @param options Optional settings to control the behavior of the CustomResource.
*/
public static SourceApiAssociation get(java.lang.String name, Output id, @Nullable SourceApiAssociationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new SourceApiAssociation(name, id, state, options);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy