CfnProjectProps Struct
Properties for defining a CfnProject.
| 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';
declare const serviceCatalogProvisioningDetails: any;
const cfnProjectProps: sagemaker.CfnProjectProps = {
projectName: 'projectName',
// the properties below are optional
projectDescription: 'projectDescription',
serviceCatalogProvisionedProductDetails: {
provisionedProductId: 'provisionedProductId',
provisionedProductStatusMessage: 'provisionedProductStatusMessage',
},
serviceCatalogProvisioningDetails: serviceCatalogProvisioningDetails,
tags: [{
key: 'key',
value: 'value',
}],
templateProviderDetails: [{
cfnTemplateProviderDetail: {
templateName: 'templateName',
templateUrl: 'templateUrl',
// the properties below are optional
parameters: [{
key: 'key',
value: 'value',
}],
roleArn: 'roleArn',
},
}],
};
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
# service_catalog_provisioning_details: Any
cfn_project_props = sagemaker.CfnProjectProps(
project_name="projectName",
# the properties below are optional
project_description="projectDescription",
service_catalog_provisioned_product_details=sagemaker.CfnProject.ServiceCatalogProvisionedProductDetailsProperty(
provisioned_product_id="provisionedProductId",
provisioned_product_status_message="provisionedProductStatusMessage"
),
service_catalog_provisioning_details=service_catalog_provisioning_details,
tags=[CfnTag(
key="key",
value="value"
)],
template_provider_details=[sagemaker.CfnProject.TemplateProviderDetailProperty(
cfn_template_provider_detail=sagemaker.CfnProject.CfnTemplateProviderDetailProperty(
template_name="templateName",
template_url="templateUrl",
# the properties below are optional
parameters=[sagemaker.CfnProject.CfnStackParameterProperty(
key="key",
value="value"
)],
role_arn="roleArn"
)
)]
)
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.*;
Object serviceCatalogProvisioningDetails;
CfnProjectProps cfnProjectProps = CfnProjectProps.builder()
.projectName("projectName")
// the properties below are optional
.projectDescription("projectDescription")
.serviceCatalogProvisionedProductDetails(ServiceCatalogProvisionedProductDetailsProperty.builder()
.provisionedProductId("provisionedProductId")
.provisionedProductStatusMessage("provisionedProductStatusMessage")
.build())
.serviceCatalogProvisioningDetails(serviceCatalogProvisioningDetails)
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.templateProviderDetails(List.of(TemplateProviderDetailProperty.builder()
.cfnTemplateProviderDetail(CfnTemplateProviderDetailProperty.builder()
.templateName("templateName")
.templateUrl("templateUrl")
// the properties below are optional
.parameters(List.of(CfnStackParameterProperty.builder()
.key("key")
.value("value")
.build()))
.roleArn("roleArn")
.build())
.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 serviceCatalogProvisioningDetails;
var cfnProjectProps = new CfnProjectProps {
ProjectName = "projectName",
// the properties below are optional
ProjectDescription = "projectDescription",
ServiceCatalogProvisionedProductDetails = new ServiceCatalogProvisionedProductDetailsProperty {
ProvisionedProductId = "provisionedProductId",
ProvisionedProductStatusMessage = "provisionedProductStatusMessage"
},
ServiceCatalogProvisioningDetails = serviceCatalogProvisioningDetails,
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
TemplateProviderDetails = new [] { new TemplateProviderDetailProperty {
CfnTemplateProviderDetail = new CfnTemplateProviderDetailProperty {
TemplateName = "templateName",
TemplateUrl = "templateUrl",
// the properties below are optional
Parameters = new [] { new CfnStackParameterProperty {
Key = "key",
Value = "value"
} },
RoleArn = "roleArn"
}
} }
};
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"
var serviceCatalogProvisioningDetails interface{}
cfnProjectProps := &CfnProjectProps{
ProjectName: jsii.String("projectName"),
// the properties below are optional
ProjectDescription: jsii.String("projectDescription"),
ServiceCatalogProvisionedProductDetails: &ServiceCatalogProvisionedProductDetailsProperty{
ProvisionedProductId: jsii.String("provisionedProductId"),
ProvisionedProductStatusMessage: jsii.String("provisionedProductStatusMessage"),
},
ServiceCatalogProvisioningDetails: serviceCatalogProvisioningDetails,
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
TemplateProviderDetails: []interface{}{
&TemplateProviderDetailProperty{
CfnTemplateProviderDetail: &CfnTemplateProviderDetailProperty{
TemplateName: jsii.String("templateName"),
TemplateUrl: jsii.String("templateUrl"),
// the properties below are optional
Parameters: []interface{}{
&CfnStackParameterProperty{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
RoleArn: jsii.String("roleArn"),
},
},
},
}
Properties
projectDescriptionoptionalstringproject_descriptionoptionalstrprojectDescriptionoptionalStringProjectDescriptionoptionalstringProjectDescriptionoptional*string #The description of the project.
The name of the project.
serviceCatalogProvisionedProductDetailsoptionalIResolvable | CfnProject.service_catalog_provisioned_product_detailsoptionaltyping.Union[IResolvable, ServiceCatalogProvisionedProductDetailsProperty]serviceCatalogProvisionedProductDetailsoptionalIResolvableServiceCatalogProvisionedProductDetailsoptionalIResolvableServiceCatalogProvisionedProductDetailsoptionalinterface{} #Details of a provisioned service catalog product.
For information about service catalog, see What is AWS Service Catalog .
serviceCatalogProvisioningDetailsoptionalanyservice_catalog_provisioning_detailsoptionalAnyserviceCatalogProvisioningDetailsoptionalObjectServiceCatalogProvisioningDetailsoptionalobjectServiceCatalogProvisioningDetailsoptionalinterface{} #The product ID and provisioning artifact ID to provision a service catalog.
For information, see What is AWS Service Catalog .
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #A list of key-value pairs to apply to this resource.
notes
For more information, see Resource Tag and Using Cost Allocation Tags in the AWS Billing and Cost Management User Guide .
templateProviderDetailsoptionalIResolvable | IResolvable | CfnProject.template_provider_detailsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, TemplateProviderDetailProperty]]]templateProviderDetailsoptionalIResolvableTemplateProviderDetailsoptionalIResolvableTemplateProviderDetailsoptionalinterface{} #An array of template providers associated with the project.