CfnPartnerAppProps Struct
Properties for defining a CfnPartnerApp.
| Source | |
|---|---|
| Type last changed |
Example
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
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
// 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();
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"
} }
};
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
applicationConfigoptionalIResolvable | CfnPartnerApp.application_configoptionaltyping.Union[IResolvable, PartnerAppConfigProperty]applicationConfigoptionalIResolvableApplicationConfigoptionalIResolvableApplicationConfigoptionalinterface{} #Configuration settings for the Partner AI App.
appVersionoptionalstringapp_versionoptionalstrappVersionoptionalStringAppVersionoptionalstringAppVersionoptional*string #The version of the PartnerApp.
Defines the authentication type used for the Partner AI App.
clientTokenoptionalstringclient_tokenoptionalstrclientTokenoptionalStringClientTokenoptionalstringClientTokenoptional*string deprecated #this property has been deprecated
enableAutoMinorVersionUpgradeoptionalboolean | IResolvableenable_auto_minor_version_upgradeoptionaltyping.Union[bool, IResolvable]enableAutoMinorVersionUpgradeoptionalBooleanEnableAutoMinorVersionUpgradeoptionalboolEnableAutoMinorVersionUpgradeoptionalinterface{} #Enables automatic minor version upgrades for the PartnerApp.
enableIamSessionBasedIdentityoptionalboolean | IResolvableenable_iam_session_based_identityoptionaltyping.Union[bool, IResolvable]enableIamSessionBasedIdentityoptionalBooleanEnableIamSessionBasedIdentityoptionalboolEnableIamSessionBasedIdentityoptionalinterface{} #Enables IAM Session based Identity for PartnerApp.
executionRoleArnstringexecution_role_arnstrexecutionRoleArnStringExecutionRoleArnstringExecutionRoleArn*string required #The Amazon Resource Name (ARN) of the IAM role of the user.
kmsKeyIdoptionalstringkms_key_idoptionalstrkmsKeyIdoptionalStringKmsKeyIdoptionalstringKmsKeyIdoptional*string #The AWS KMS customer managed key used to encrypt the data associated with the PartnerApp.
maintenanceConfigoptionalIResolvable | CfnPartnerApp.maintenance_configoptionaltyping.Union[IResolvable, PartnerAppMaintenanceConfigProperty]maintenanceConfigoptionalIResolvableMaintenanceConfigoptionalIResolvableMaintenanceConfigoptionalinterface{} #A collection of settings that specify the maintenance schedule for the PartnerApp.
The name of the Partner AI App.
This name must be unique within your account and region.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #A list of tags to apply to the PartnerApp.
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 .
Specifies the type of Partner AI App being created.