Application
Resource for managing an AWS Mainframe Modernization Application.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.m2.Application("example", {
name: "Example",
engineType: "bluage",
definition: {
content: `{
"definition": {
"listeners": [
{
"port": 8196,
"type": "http"
}
],
"ba-application": {
"app-location": "${s3_source}/PlanetsDemo-v1.zip"
}
},
"source-locations": [
{
"source-id": "s3-source",
"source-type": "s3",
"properties": {
"s3-bucket": "example-bucket",
"s3-key-prefix": "v1"
}
}
],
"template-version": "2.0"
}
`,
},
});
Content copied to clipboard
import pulumi
import pulumi_aws as aws
example = aws.m2.Application("example",
name="Example",
engine_type="bluage",
definition={
"content": f"""{{
"definition": {{
"listeners": [
{{
"port": 8196,
"type": "http"
}}
],
"ba-application": {{
"app-location": "{s3_source}/PlanetsDemo-v1.zip"
}}
}},
"source-locations": [
{{
"source-id": "s3-source",
"source-type": "s3",
"properties": {{
"s3-bucket": "example-bucket",
"s3-key-prefix": "v1"
}}
}}
],
"template-version": "2.0"
}}
""",
})
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.M2.Application("example", new()
{
Name = "Example",
EngineType = "bluage",
Definition = new Aws.M2.Inputs.ApplicationDefinitionArgs
{
Content = @$"{{
""definition"": {{
""listeners"": [
{{
""port"": 8196,
""type"": ""http""
}}
],
""ba-application"": {{
""app-location"": ""{s3_source}/PlanetsDemo-v1.zip""
}}
}},
""source-locations"": [
{{
""source-id"": ""s3-source"",
""source-type"": ""s3"",
""properties"": {{
""s3-bucket"": ""example-bucket"",
""s3-key-prefix"": ""v1""
}}
}}
],
""template-version"": ""2.0""
}}
",
},
});
});
Content copied to clipboard
package main
import (
"fmt"
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/m2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := m2.NewApplication(ctx, "example", &m2.ApplicationArgs{
Name: pulumi.String("Example"),
EngineType: pulumi.String("bluage"),
Definition: &m2.ApplicationDefinitionArgs{
Content: pulumi.Sprintf(`{
"definition": {
"listeners": [
{
"port": 8196,
"type": "http"
}
],
"ba-application": {
"app-location": "%v/PlanetsDemo-v1.zip"
}
},
"source-locations": [
{
"source-id": "s3-source",
"source-type": "s3",
"properties": {
"s3-bucket": "example-bucket",
"s3-key-prefix": "v1"
}
}
],
"template-version": "2.0"
}
`, s3_source),
},
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.m2.Application;
import com.pulumi.aws.m2.ApplicationArgs;
import com.pulumi.aws.m2.inputs.ApplicationDefinitionArgs;
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 Application("example", ApplicationArgs.builder()
.name("Example")
.engineType("bluage")
.definition(ApplicationDefinitionArgs.builder()
.content("""
{
"definition": {
"listeners": [
{
"port": 8196,
"type": "http"
}
],
"ba-application": {
"app-location": "%s/PlanetsDemo-v1.zip"
}
},
"source-locations": [
{
"source-id": "s3-source",
"source-type": "s3",
"properties": {
"s3-bucket": "example-bucket",
"s3-key-prefix": "v1"
}
}
],
"template-version": "2.0"
}
", s3_source))
.build())
.build());
}
}
Content copied to clipboard
resources:
example:
type: aws:m2:Application
properties:
name: Example
engineType: bluage
definition:
content: |+
{
"definition": {
"listeners": [
{
"port": 8196,
"type": "http"
}
],
"ba-application": {
"app-location": "${["s3-source"]}/PlanetsDemo-v1.zip"
}
},
"source-locations": [
{
"source-id": "s3-source",
"source-type": "s3",
"properties": {
"s3-bucket": "example-bucket",
"s3-key-prefix": "v1"
}
}
],
"template-version": "2.0"
}
Content copied to clipboard
Import
Using pulumi import
, import Mainframe Modernization Application using the 01234567890abcdef012345678
. For example:
$ pulumi import aws:m2/application:Application example 01234567890abcdef012345678
Content copied to clipboard
Properties
Link copied to clipboard
Id of the Application.
Link copied to clipboard
Current version of the application deployed.
Link copied to clipboard
The application definition for this application. You can specify either inline JSON or an S3 bucket location.
Link copied to clipboard
Description of the application.
Link copied to clipboard
Engine type must be microfocus | bluage
.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard