# CfnApplicationProps

Properties for defining a `CfnApplication`.

Used as props by: [CfnApplication](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_systemsmanagersap.CfnApplication.html)

- Source: Generated at build time
- Type last changed: v2.187.0 · 31 Mar 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_systemsmanagersap as systemsmanagersap } from 'aws-cdk-lib';
const cfnApplicationProps: systemsmanagersap.CfnApplicationProps = {
  applicationId: 'applicationId',
  applicationType: 'applicationType',

  // the properties below are optional
  componentsInfo: [{
    componentType: 'componentType',
    ec2InstanceId: 'ec2InstanceId',
    sid: 'sid',
  }],
  credentials: [{
    credentialType: 'credentialType',
    databaseName: 'databaseName',
    secretId: 'secretId',
  }],
  databaseArn: 'databaseArn',
  instances: ['instances'],
  sapInstanceNumber: 'sapInstanceNumber',
  sid: 'sid',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

Python:

```python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_systemsmanagersap as systemsmanagersap

cfn_application_props = systemsmanagersap.CfnApplicationProps(
    application_id="applicationId",
    application_type="applicationType",

    # the properties below are optional
    components_info=[systemsmanagersap.CfnApplication.ComponentInfoProperty(
        component_type="componentType",
        ec2_instance_id="ec2InstanceId",
        sid="sid"
    )],
    credentials=[systemsmanagersap.CfnApplication.CredentialProperty(
        credential_type="credentialType",
        database_name="databaseName",
        secret_id="secretId"
    )],
    database_arn="databaseArn",
    instances=["instances"],
    sap_instance_number="sapInstanceNumber",
    sid="sid",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.systemsmanagersap.*;

CfnApplicationProps cfnApplicationProps = CfnApplicationProps.builder()
        .applicationId("applicationId")
        .applicationType("applicationType")

        // the properties below are optional
        .componentsInfo(List.of(ComponentInfoProperty.builder()
                .componentType("componentType")
                .ec2InstanceId("ec2InstanceId")
                .sid("sid")
                .build()))
        .credentials(List.of(CredentialProperty.builder()
                .credentialType("credentialType")
                .databaseName("databaseName")
                .secretId("secretId")
                .build()))
        .databaseArn("databaseArn")
        .instances(List.of("instances"))
        .sapInstanceNumber("sapInstanceNumber")
        .sid("sid")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.SystemsManagerSAP;

var cfnApplicationProps = new CfnApplicationProps {
    ApplicationId = "applicationId",
    ApplicationType = "applicationType",

    // the properties below are optional
    ComponentsInfo = new [] { new ComponentInfoProperty {
        ComponentType = "componentType",
        Ec2InstanceId = "ec2InstanceId",
        Sid = "sid"
    } },
    Credentials = new [] { new CredentialProperty {
        CredentialType = "credentialType",
        DatabaseName = "databaseName",
        SecretId = "secretId"
    } },
    DatabaseArn = "databaseArn",
    Instances = new [] { "instances" },
    SapInstanceNumber = "sapInstanceNumber",
    Sid = "sid",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnApplicationProps := &CfnApplicationProps{
	ApplicationId: jsii.String("applicationId"),
	ApplicationType: jsii.String("applicationType"),

	// the properties below are optional
	ComponentsInfo: []interface{}{
		&ComponentInfoProperty{
			ComponentType: jsii.String("componentType"),
			Ec2InstanceId: jsii.String("ec2InstanceId"),
			Sid: jsii.String("sid"),
		},
	},
	Credentials: []interface{}{
		&CredentialProperty{
			CredentialType: jsii.String("credentialType"),
			DatabaseName: jsii.String("databaseName"),
			SecretId: jsii.String("secretId"),
		},
	},
	DatabaseArn: jsii.String("databaseArn"),
	Instances: []*string{
		jsii.String("instances"),
	},
	SapInstanceNumber: jsii.String("sapInstanceNumber"),
	Sid: jsii.String("sid"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}
```

## Properties

- `applicationId`: string (required) — The ID of the application.

- `applicationType`: string (required) — The type of the application.

- `componentsInfo`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnApplication.ComponentInfoProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_systemsmanagersap.CfnApplication.ComponentInfoProperty.html)[] — This is an optional parameter for component details to which the SAP ABAP application is attached, such as Web Dispatcher.

- `credentials`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnApplication.CredentialProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_systemsmanagersap.CfnApplication.CredentialProperty.html)[] — The credentials of the SAP application.

- `databaseArn`: string — The Amazon Resource Name (ARN) of the database.

- `instances`: string[] — The Amazon EC2 instances on which your SAP application is running.

- `sapInstanceNumber`: string — The SAP instance number of the application.

- `sid`: string — The System ID of the application.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — The tags on the application.
