com.pulumi.aws.appmesh.VirtualRouter 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.
// *** 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.appmesh;
import com.pulumi.aws.Utilities;
import com.pulumi.aws.appmesh.VirtualRouterArgs;
import com.pulumi.aws.appmesh.inputs.VirtualRouterState;
import com.pulumi.aws.appmesh.outputs.VirtualRouterSpec;
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.Map;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Provides an AWS App Mesh virtual router resource.
*
* ## Breaking Changes
*
* Because of backward incompatible API changes (read [here](https://github.com/awslabs/aws-app-mesh-examples/issues/92) and [here](https://github.com/awslabs/aws-app-mesh-examples/issues/94)), `aws.appmesh.VirtualRouter` resource definitions created with provider versions earlier than v2.3.0 will need to be modified:
*
* * Remove service `service_names` from the `spec` argument. AWS has created a `aws.appmesh.VirtualService` resource for each service name. Import these resource using `pulumi import`.
*
* * Add a `listener` configuration block to the `spec` argument.
*
* The state associated with existing resources will automatically be migrated.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.appmesh.VirtualRouter;
* import com.pulumi.aws.appmesh.VirtualRouterArgs;
* import com.pulumi.aws.appmesh.inputs.VirtualRouterSpecArgs;
* 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 serviceb = new VirtualRouter("serviceb", VirtualRouterArgs.builder()
* .name("serviceB")
* .meshName(simple.id())
* .spec(VirtualRouterSpecArgs.builder()
* .listeners(VirtualRouterSpecListenerArgs.builder()
* .portMapping(VirtualRouterSpecListenerPortMappingArgs.builder()
* .port(8080)
* .protocol("http")
* .build())
* .build())
* .build())
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ## Import
*
* Using `pulumi import`, import App Mesh virtual routers using `mesh_name` together with the virtual router's `name`. For example:
*
* ```sh
* $ pulumi import aws:appmesh/virtualRouter:VirtualRouter serviceb simpleapp/serviceB
* ```
*
*/
@ResourceType(type="aws:appmesh/virtualRouter:VirtualRouter")
public class VirtualRouter extends com.pulumi.resources.CustomResource {
/**
* ARN of the virtual router.
*
*/
@Export(name="arn", refs={String.class}, tree="[0]")
private Output arn;
/**
* @return ARN of the virtual router.
*
*/
public Output arn() {
return this.arn;
}
/**
* Creation date of the virtual router.
*
*/
@Export(name="createdDate", refs={String.class}, tree="[0]")
private Output createdDate;
/**
* @return Creation date of the virtual router.
*
*/
public Output createdDate() {
return this.createdDate;
}
/**
* Last update date of the virtual router.
*
*/
@Export(name="lastUpdatedDate", refs={String.class}, tree="[0]")
private Output lastUpdatedDate;
/**
* @return Last update date of the virtual router.
*
*/
public Output lastUpdatedDate() {
return this.lastUpdatedDate;
}
/**
* Name of the service mesh in which to create the virtual router. Must be between 1 and 255 characters in length.
*
*/
@Export(name="meshName", refs={String.class}, tree="[0]")
private Output meshName;
/**
* @return Name of the service mesh in which to create the virtual router. Must be between 1 and 255 characters in length.
*
*/
public Output meshName() {
return this.meshName;
}
/**
* AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to.
*
*/
@Export(name="meshOwner", refs={String.class}, tree="[0]")
private Output meshOwner;
/**
* @return AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to.
*
*/
public Output meshOwner() {
return this.meshOwner;
}
/**
* Name to use for the virtual router. Must be between 1 and 255 characters in length.
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return Name to use for the virtual router. Must be between 1 and 255 characters in length.
*
*/
public Output name() {
return this.name;
}
/**
* Resource owner's AWS account ID.
*
*/
@Export(name="resourceOwner", refs={String.class}, tree="[0]")
private Output resourceOwner;
/**
* @return Resource owner's AWS account ID.
*
*/
public Output resourceOwner() {
return this.resourceOwner;
}
/**
* Virtual router specification to apply.
*
*/
@Export(name="spec", refs={VirtualRouterSpec.class}, tree="[0]")
private Output spec;
/**
* @return Virtual router specification to apply.
*
*/
public Output spec() {
return this.spec;
}
/**
* Map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
*
*/
@Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> tags;
/**
* @return Map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
*
*/
public Output>> tags() {
return Codegen.optional(this.tags);
}
/**
* Map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
*
* @deprecated
* Please use `tags` instead.
*
*/
@Deprecated /* Please use `tags` instead. */
@Export(name="tagsAll", refs={Map.class,String.class}, tree="[0,1,1]")
private Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy