# CfnPartnerAppProps

Properties for defining a `CfnPartnerApp`.

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

- Source: Generated at build time
- Type last changed: v2.227.0 · 21 Nov 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_sagemaker as sagemaker } from 'aws-cdk-lib';
const cfnPartnerAppProps: sagemaker.CfnPartnerAppProps = {
  authType: 'authType',
  executionRoleArn: 'executionRoleArn',
  name: 'name',
  tier: 'tier',
  type: 'type',

  // the properties below are optional
  applicationConfig: {
    adminUsers: ['adminUsers'],
    arguments: {
      argumentsKey: 'arguments',
    },
  },
  appVersion: 'appVersion',
  clientToken: 'clientToken',
  enableAutoMinorVersionUpgrade: false,
  enableIamSessionBasedIdentity: false,
  kmsKeyId: 'kmsKeyId',
  maintenanceConfig: {
    maintenanceWindowStart: 'maintenanceWindowStart',
  },
  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_sagemaker as sagemaker

cfn_partner_app_props = sagemaker.CfnPartnerAppProps(
    auth_type="authType",
    execution_role_arn="executionRoleArn",
    name="name",
    tier="tier",
    type="type",

    # the properties below are optional
    application_config=sagemaker.CfnPartnerApp.PartnerAppConfigProperty(
        admin_users=["adminUsers"],
        arguments={
            "arguments_key": "arguments"
        }
    ),
    app_version="appVersion",
    client_token="clientToken",
    enable_auto_minor_version_upgrade=False,
    enable_iam_session_based_identity=False,
    kms_key_id="kmsKeyId",
    maintenance_config=sagemaker.CfnPartnerApp.PartnerAppMaintenanceConfigProperty(
        maintenance_window_start="maintenanceWindowStart"
    ),
    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.sagemaker.*;

CfnPartnerAppProps cfnPartnerAppProps = CfnPartnerAppProps.builder()
        .authType("authType")
        .executionRoleArn("executionRoleArn")
        .name("name")
        .tier("tier")
        .type("type")

        // the properties below are optional
        .applicationConfig(PartnerAppConfigProperty.builder()
                .adminUsers(List.of("adminUsers"))
                .arguments(Map.of(
                        "argumentsKey", "arguments"))
                .build())
        .appVersion("appVersion")
        .clientToken("clientToken")
        .enableAutoMinorVersionUpgrade(false)
        .enableIamSessionBasedIdentity(false)
        .kmsKeyId("kmsKeyId")
        .maintenanceConfig(PartnerAppMaintenanceConfigProperty.builder()
                .maintenanceWindowStart("maintenanceWindowStart")
                .build())
        .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.Sagemaker;

var cfnPartnerAppProps = new CfnPartnerAppProps {
    AuthType = "authType",
    ExecutionRoleArn = "executionRoleArn",
    Name = "name",
    Tier = "tier",
    Type = "type",

    // the properties below are optional
    ApplicationConfig = new PartnerAppConfigProperty {
        AdminUsers = new [] { "adminUsers" },
        Arguments = new Dictionary<string, string> {
            { "argumentsKey", "arguments" }
        }
    },
    AppVersion = "appVersion",
    ClientToken = "clientToken",
    EnableAutoMinorVersionUpgrade = false,
    EnableIamSessionBasedIdentity = false,
    KmsKeyId = "kmsKeyId",
    MaintenanceConfig = new PartnerAppMaintenanceConfigProperty {
        MaintenanceWindowStart = "maintenanceWindowStart"
    },
    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"

cfnPartnerAppProps := &CfnPartnerAppProps{
	AuthType: jsii.String("authType"),
	ExecutionRoleArn: jsii.String("executionRoleArn"),
	Name: jsii.String("name"),
	Tier: jsii.String("tier"),
	Type: jsii.String("type"),

	// the properties below are optional
	ApplicationConfig: &PartnerAppConfigProperty{
		AdminUsers: []*string{
			jsii.String("adminUsers"),
		},
		Arguments: map[string]*string{
			"argumentsKey": jsii.String("arguments"),
		},
	},
	AppVersion: jsii.String("appVersion"),
	ClientToken: jsii.String("clientToken"),
	EnableAutoMinorVersionUpgrade: jsii.Boolean(false),
	EnableIamSessionBasedIdentity: jsii.Boolean(false),
	KmsKeyId: jsii.String("kmsKeyId"),
	MaintenanceConfig: &PartnerAppMaintenanceConfigProperty{
		MaintenanceWindowStart: jsii.String("maintenanceWindowStart"),
	},
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}
```

## Properties

- `applicationConfig`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnPartnerApp.PartnerAppConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnPartnerApp.PartnerAppConfigProperty.html) — Configuration settings for the Partner AI App.

- `appVersion`: string — The version of the PartnerApp.

- `authType`: string (required) — Defines the authentication type used for the Partner AI App.

- `clientToken`: string — this property has been deprecated

- `enableAutoMinorVersionUpgrade`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Enables automatic minor version upgrades for the PartnerApp.

- `enableIamSessionBasedIdentity`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Enables IAM Session based Identity for PartnerApp.

- `executionRoleArn`: string (required) — The Amazon Resource Name (ARN) of the IAM role of the user.

- `kmsKeyId`: string — The AWS KMS customer managed key used to encrypt the data associated with the PartnerApp.

- `maintenanceConfig`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnPartnerApp.PartnerAppMaintenanceConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnPartnerApp.PartnerAppMaintenanceConfigProperty.html) — A collection of settings that specify the maintenance schedule for the PartnerApp.

- `name`: string (required) — The name of the Partner AI App.

  This name must be unique within your account and region.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — A list of tags to apply to the PartnerApp.

- `tier`: string (required) — Specifies the tier or level of the Partner AI App.

  The tier size impacts the speed and capabilities of the application. For more information, see [Set up Partner AI Apps](https://docs.aws.amazon.com/sagemaker/latest/dg/partner-app-onboard.html) .

- `type`: string (required) — Specifies the type of Partner AI App being created.
