@pulumi/aws 7.17.0-alpha.1770139809 → 7.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/acm/certificate.d.ts +2 -2
- package/acm/certificate.js +2 -2
- package/acmpca/certificate.d.ts +2 -2
- package/acmpca/certificate.js +2 -2
- package/apigateway/domainName.d.ts +12 -0
- package/apigateway/domainName.js +2 -0
- package/apigateway/domainName.js.map +1 -1
- package/apigatewayv2/domainName.d.ts +12 -0
- package/apigatewayv2/domainName.js +2 -0
- package/apigatewayv2/domainName.js.map +1 -1
- package/apigatewayv2/index.d.ts +3 -0
- package/apigatewayv2/index.js +6 -1
- package/apigatewayv2/index.js.map +1 -1
- package/apigatewayv2/routingRule.d.ts +166 -0
- package/apigatewayv2/routingRule.js +113 -0
- package/apigatewayv2/routingRule.js.map +1 -0
- package/arcregionswitch/getPlan.d.ts +118 -0
- package/arcregionswitch/getPlan.js +56 -0
- package/arcregionswitch/getPlan.js.map +1 -0
- package/arcregionswitch/getRoute53HealthChecks.d.ts +80 -0
- package/arcregionswitch/getRoute53HealthChecks.js +56 -0
- package/arcregionswitch/getRoute53HealthChecks.js.map +1 -0
- package/arcregionswitch/index.d.ts +9 -0
- package/arcregionswitch/index.js +28 -0
- package/arcregionswitch/index.js.map +1 -0
- package/arcregionswitch/plan.d.ts +384 -0
- package/arcregionswitch/plan.js +253 -0
- package/arcregionswitch/plan.js.map +1 -0
- package/autoscaling/group.d.ts +3 -3
- package/bedrock/agentDataSource.d.ts +37 -0
- package/bedrock/agentDataSource.js +37 -0
- package/bedrock/agentDataSource.js.map +1 -1
- package/cleanrooms/collaboration.d.ts +27 -59
- package/cleanrooms/collaboration.js.map +1 -1
- package/cloudfront/anycastIpList.d.ts +150 -0
- package/cloudfront/anycastIpList.js +91 -0
- package/cloudfront/anycastIpList.js.map +1 -0
- package/cloudfront/index.d.ts +3 -0
- package/cloudfront/index.js +6 -1
- package/cloudfront/index.js.map +1 -1
- package/cloudfront/multitenantDistribution.d.ts +65 -0
- package/cloudfront/multitenantDistribution.js +65 -0
- package/cloudfront/multitenantDistribution.js.map +1 -1
- package/codebuild/webhook.d.ts +2 -2
- package/codebuild/webhook.js +2 -2
- package/codepipeline/webhook.d.ts +2 -2
- package/codepipeline/webhook.js +2 -2
- package/docdb/clusterInstance.d.ts +72 -140
- package/docdb/clusterInstance.js +4 -7
- package/docdb/clusterInstance.js.map +1 -1
- package/dynamodb/table.d.ts +92 -3
- package/dynamodb/table.js +83 -0
- package/dynamodb/table.js.map +1 -1
- package/ec2/getVpcIpamPool.d.ts +4 -0
- package/ec2/getVpcIpamPool.js.map +1 -1
- package/ec2/index.d.ts +3 -0
- package/ec2/index.js +6 -1
- package/ec2/index.js.map +1 -1
- package/ec2/launchTemplate.d.ts +3 -0
- package/ec2/launchTemplate.js +2 -0
- package/ec2/launchTemplate.js.map +1 -1
- package/ec2/placementGroup.d.ts +3 -3
- package/ec2/securityGroup.d.ts +1 -1
- package/ec2/securityGroup.js +1 -1
- package/ec2/subnet.d.ts +107 -14
- package/ec2/subnet.js +59 -0
- package/ec2/subnet.js.map +1 -1
- package/ec2/vpcIpamPool.d.ts +54 -0
- package/ec2/vpcIpamPool.js +42 -0
- package/ec2/vpcIpamPool.js.map +1 -1
- package/ec2/vpcIpamResourceDiscovery.d.ts +12 -0
- package/ec2/vpcIpamResourceDiscovery.js +2 -0
- package/ec2/vpcIpamResourceDiscovery.js.map +1 -1
- package/ec2/vpcSecurityGroupRulesExclusive.d.ts +93 -0
- package/ec2/vpcSecurityGroupRulesExclusive.js +73 -0
- package/ec2/vpcSecurityGroupRulesExclusive.js.map +1 -0
- package/ec2transitgateway/vpcAttachment.d.ts +0 -18
- package/ec2transitgateway/vpcAttachment.js.map +1 -1
- package/ecr/accountSetting.d.ts +19 -4
- package/ecr/accountSetting.js +13 -1
- package/ecr/accountSetting.js.map +1 -1
- package/eks/addon.d.ts +46 -0
- package/eks/addon.js +46 -0
- package/eks/addon.js.map +1 -1
- package/fsx/windowsFileSystem.d.ts +22 -0
- package/fsx/windowsFileSystem.js +22 -0
- package/fsx/windowsFileSystem.js.map +1 -1
- package/index.d.ts +3 -1
- package/index.js +10 -6
- package/index.js.map +1 -1
- package/invoicing/invoiceUnit.d.ts +9 -3
- package/invoicing/invoiceUnit.js.map +1 -1
- package/iot/caCertificate.d.ts +4 -4
- package/iot/caCertificate.js +4 -4
- package/iot/getEndpoint.d.ts +12 -12
- package/iot/getEndpoint.js +12 -12
- package/iot/getRegistrationCode.d.ts +4 -4
- package/iot/getRegistrationCode.js +4 -4
- package/lambda/function.d.ts +3 -3
- package/memorydb/user.d.ts +1 -1
- package/memorydb/user.js +1 -1
- package/notifications/index.d.ts +12 -0
- package/notifications/index.js +21 -1
- package/notifications/index.js.map +1 -1
- package/notifications/managedNotificationAccountContactAssociation.d.ts +85 -0
- package/notifications/managedNotificationAccountContactAssociation.js +82 -0
- package/notifications/managedNotificationAccountContactAssociation.js.map +1 -0
- package/notifications/managedNotificationAdditionalChannelAssociation.d.ts +89 -0
- package/notifications/managedNotificationAdditionalChannelAssociation.js +86 -0
- package/notifications/managedNotificationAdditionalChannelAssociation.js.map +1 -0
- package/notifications/organizationalUnitAssociation.d.ts +121 -0
- package/notifications/organizationalUnitAssociation.js +118 -0
- package/notifications/organizationalUnitAssociation.js.map +1 -0
- package/notifications/organizationsAccess.d.ts +79 -0
- package/notifications/organizationsAccess.js +80 -0
- package/notifications/organizationsAccess.js.map +1 -0
- package/odb/network.d.ts +48 -0
- package/odb/network.js +8 -0
- package/odb/network.js.map +1 -1
- package/opensearch/application.d.ts +334 -0
- package/opensearch/application.js +244 -0
- package/opensearch/application.js.map +1 -0
- package/opensearch/index.d.ts +3 -0
- package/opensearch/index.js +6 -1
- package/opensearch/index.js.map +1 -1
- package/organizations/getEntityPath.d.ts +63 -0
- package/organizations/getEntityPath.js +50 -0
- package/organizations/getEntityPath.js.map +1 -0
- package/organizations/getOrganization.d.ts +21 -2
- package/organizations/getOrganization.js +10 -4
- package/organizations/getOrganization.js.map +1 -1
- package/organizations/index.d.ts +4 -1
- package/organizations/index.js +4 -1
- package/organizations/index.js.map +1 -1
- package/organizations/organization.d.ts +12 -0
- package/organizations/organization.js +2 -0
- package/organizations/organization.js.map +1 -1
- package/package.json +2 -2
- package/ram/index.d.ts +6 -0
- package/ram/index.js +11 -1
- package/ram/index.js.map +1 -1
- package/ram/permission.d.ts +193 -0
- package/ram/permission.js +117 -0
- package/ram/permission.js.map +1 -0
- package/ram/resourceShareAssociationsExclusive.d.ts +123 -0
- package/ram/resourceShareAssociationsExclusive.js +69 -0
- package/ram/resourceShareAssociationsExclusive.js.map +1 -0
- package/resourcegroupstaggingapi/getRequiredTags.d.ts +64 -0
- package/resourcegroupstaggingapi/getRequiredTags.js +52 -0
- package/resourcegroupstaggingapi/getRequiredTags.js.map +1 -0
- package/resourcegroupstaggingapi/index.d.ts +3 -0
- package/resourcegroupstaggingapi/index.js +4 -1
- package/resourcegroupstaggingapi/index.js.map +1 -1
- package/route53/healthCheck.d.ts +4 -4
- package/s3/bucketReplicationConfig.d.ts +3 -0
- package/s3/bucketReplicationConfig.js.map +1 -1
- package/s3/getBucketObjectLockConfiguration.d.ts +94 -0
- package/s3/getBucketObjectLockConfiguration.js +58 -0
- package/s3/getBucketObjectLockConfiguration.js.map +1 -0
- package/s3/getBucketReplicationConfiguration.d.ts +81 -0
- package/s3/getBucketReplicationConfiguration.js +56 -0
- package/s3/getBucketReplicationConfiguration.js.map +1 -0
- package/s3/getObject.d.ts +14 -1
- package/s3/getObject.js +2 -0
- package/s3/getObject.js.map +1 -1
- package/s3/index.d.ts +6 -0
- package/s3/index.js +8 -2
- package/s3/index.js.map +1 -1
- package/s3control/getAccessPoints.d.ts +131 -0
- package/s3control/getAccessPoints.js +82 -0
- package/s3control/getAccessPoints.js.map +1 -0
- package/s3control/getMultiRegionAccessPoints.d.ts +76 -0
- package/s3control/getMultiRegionAccessPoints.js +54 -0
- package/s3control/getMultiRegionAccessPoints.js.map +1 -0
- package/s3control/index.d.ts +6 -0
- package/s3control/index.js +7 -1
- package/s3control/index.js.map +1 -1
- package/sagemaker/index.d.ts +9 -0
- package/sagemaker/index.js +16 -1
- package/sagemaker/index.js.map +1 -1
- package/sagemaker/labelingJob.d.ts +280 -0
- package/sagemaker/labelingJob.js +142 -0
- package/sagemaker/labelingJob.js.map +1 -0
- package/sagemaker/modelCard.d.ts +176 -0
- package/sagemaker/modelCard.js +111 -0
- package/sagemaker/modelCard.js.map +1 -0
- package/sagemaker/modelCardExportJob.d.ts +136 -0
- package/sagemaker/modelCardExportJob.js +97 -0
- package/sagemaker/modelCardExportJob.js.map +1 -0
- package/savingsplans/getSavingsPlan.d.ts +128 -0
- package/savingsplans/getSavingsPlan.js +52 -0
- package/savingsplans/getSavingsPlan.js.map +1 -0
- package/savingsplans/index.d.ts +6 -0
- package/savingsplans/index.js +25 -0
- package/savingsplans/index.js.map +1 -0
- package/savingsplans/savingsPlan.d.ts +297 -0
- package/savingsplans/savingsPlan.js +143 -0
- package/savingsplans/savingsPlan.js.map +1 -0
- package/sesv2/index.d.ts +3 -0
- package/sesv2/index.js +6 -1
- package/sesv2/index.js.map +1 -1
- package/sesv2/tenantResourceAssociation.d.ts +103 -0
- package/sesv2/tenantResourceAssociation.js +84 -0
- package/sesv2/tenantResourceAssociation.js.map +1 -0
- package/ssoadmin/index.d.ts +3 -0
- package/ssoadmin/index.js +6 -1
- package/ssoadmin/index.js.map +1 -1
- package/ssoadmin/managedPolicyAttachment.d.ts +2 -0
- package/ssoadmin/managedPolicyAttachment.js +2 -0
- package/ssoadmin/managedPolicyAttachment.js.map +1 -1
- package/ssoadmin/managedPolicyAttachmentsExclusive.d.ts +151 -0
- package/ssoadmin/managedPolicyAttachmentsExclusive.js +122 -0
- package/ssoadmin/managedPolicyAttachmentsExclusive.js.map +1 -0
- package/types/input.d.ts +1766 -15
- package/types/input.js.map +1 -1
- package/types/output.d.ts +2169 -14
- package/types/output.js.map +1 -1
- package/wafv2/getManagedRuleGroup.d.ts +127 -0
- package/wafv2/getManagedRuleGroup.js +62 -0
- package/wafv2/getManagedRuleGroup.js.map +1 -0
- package/wafv2/index.d.ts +3 -0
- package/wafv2/index.js +4 -1
- package/wafv2/index.js.map +1 -1
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
import * as outputs from "../types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Manage an Amazon SageMaker labeling job.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* Basic usage:
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as aws from "@pulumi/aws";
|
|
14
|
+
*
|
|
15
|
+
* // https://docs.aws.amazon.com/sagemaker/latest/dg/sms-named-entity-recg.html#sms-creating-ner-api.
|
|
16
|
+
* const test = new aws.sagemaker.LabelingJob("test", {
|
|
17
|
+
* labelAttributeName: "label1",
|
|
18
|
+
* labelingJobName: "my-labeling-job",
|
|
19
|
+
* roleArn: exampleAwsIamRole.arn,
|
|
20
|
+
* labelCategoryConfigS3Uri: `s3://${exampleAwsS3Bucket.bucket}/${exampleAwsS3Object.key}`,
|
|
21
|
+
* humanTaskConfig: {
|
|
22
|
+
* numberOfHumanWorkersPerDataObject: 1,
|
|
23
|
+
* taskDescription: "Apply the labels provided to specific words or phrases within the larger text block.",
|
|
24
|
+
* taskTitle: "Named entity Recognition task",
|
|
25
|
+
* taskTimeLimitInSeconds: 28800,
|
|
26
|
+
* workteamArn: example.arn,
|
|
27
|
+
* uiConfig: {
|
|
28
|
+
* humanTaskUiArn: "arn:aws:sagemaker:us-west-2:394669845002:human-task-ui/NamedEntityRecognition",
|
|
29
|
+
* },
|
|
30
|
+
* preHumanTaskLambdaArn: "arn:aws:lambda:us-west-2:081040173940:function:PRE-NamedEntityRecognition",
|
|
31
|
+
* annotationConsolidationConfig: {
|
|
32
|
+
* annotationConsolidationLambdaArn: "arn:aws:lambda:us-west-2:081040173940:function:ACS-NamedEntityRecognition",
|
|
33
|
+
* },
|
|
34
|
+
* },
|
|
35
|
+
* inputConfig: {
|
|
36
|
+
* dataSource: {
|
|
37
|
+
* snsDataSource: {
|
|
38
|
+
* snsTopicArn: exampleAwsSnsTopic.arn,
|
|
39
|
+
* },
|
|
40
|
+
* },
|
|
41
|
+
* },
|
|
42
|
+
* outputConfig: {
|
|
43
|
+
* s3OutputPath: `s3://${exampleAwsS3Bucket.bucket}/`,
|
|
44
|
+
* },
|
|
45
|
+
* });
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* ## Import
|
|
49
|
+
*
|
|
50
|
+
* Using `pulumi import`, import labeling jobs using the `labeling_job_name`. For example:
|
|
51
|
+
*
|
|
52
|
+
* ```sh
|
|
53
|
+
* $ pulumi import aws:sagemaker/labelingJob:LabelingJob example my-labeling-job
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
export declare class LabelingJob extends pulumi.CustomResource {
|
|
57
|
+
/**
|
|
58
|
+
* Get an existing LabelingJob resource's state with the given name, ID, and optional extra
|
|
59
|
+
* properties used to qualify the lookup.
|
|
60
|
+
*
|
|
61
|
+
* @param name The _unique_ name of the resulting resource.
|
|
62
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
63
|
+
* @param state Any extra arguments used during the lookup.
|
|
64
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
65
|
+
*/
|
|
66
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: LabelingJobState, opts?: pulumi.CustomResourceOptions): LabelingJob;
|
|
67
|
+
/**
|
|
68
|
+
* Returns true if the given object is an instance of LabelingJob. This is designed to work even
|
|
69
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
70
|
+
*/
|
|
71
|
+
static isInstance(obj: any): obj is LabelingJob;
|
|
72
|
+
/**
|
|
73
|
+
* If the job failed, the reason that it failed.
|
|
74
|
+
*/
|
|
75
|
+
readonly failureReason: pulumi.Output<string>;
|
|
76
|
+
/**
|
|
77
|
+
* Configuration information required for human workers to complete a labeling task. Fields are documented below.
|
|
78
|
+
*/
|
|
79
|
+
readonly humanTaskConfig: pulumi.Output<outputs.sagemaker.LabelingJobHumanTaskConfig | undefined>;
|
|
80
|
+
/**
|
|
81
|
+
* Input data for the labeling job. Fields are documented below.
|
|
82
|
+
*/
|
|
83
|
+
readonly inputConfig: pulumi.Output<outputs.sagemaker.LabelingJobInputConfig | undefined>;
|
|
84
|
+
/**
|
|
85
|
+
* Unique identifier for work done as part of a labeling job.
|
|
86
|
+
*/
|
|
87
|
+
readonly jobReferenceCode: pulumi.Output<string>;
|
|
88
|
+
/**
|
|
89
|
+
* Attribute name to use for the label in the output manifest file.
|
|
90
|
+
*/
|
|
91
|
+
readonly labelAttributeName: pulumi.Output<string>;
|
|
92
|
+
/**
|
|
93
|
+
* S3 URI of the file that defines the categories used to label the data objects.
|
|
94
|
+
*/
|
|
95
|
+
readonly labelCategoryConfigS3Uri: pulumi.Output<string | undefined>;
|
|
96
|
+
/**
|
|
97
|
+
* A breakdown of the number of objects labeled.
|
|
98
|
+
*/
|
|
99
|
+
readonly labelCounters: pulumi.Output<outputs.sagemaker.LabelingJobLabelCounter[]>;
|
|
100
|
+
/**
|
|
101
|
+
* Information required to perform automated data labeling.. Fields are documented below.
|
|
102
|
+
*/
|
|
103
|
+
readonly labelingJobAlgorithmsConfig: pulumi.Output<outputs.sagemaker.LabelingJobLabelingJobAlgorithmsConfig | undefined>;
|
|
104
|
+
/**
|
|
105
|
+
* ARN of the labeling job.
|
|
106
|
+
*/
|
|
107
|
+
readonly labelingJobArn: pulumi.Output<string>;
|
|
108
|
+
/**
|
|
109
|
+
* Name of the labeling job.
|
|
110
|
+
*/
|
|
111
|
+
readonly labelingJobName: pulumi.Output<string>;
|
|
112
|
+
/**
|
|
113
|
+
* Processing status of the labeling job.
|
|
114
|
+
*/
|
|
115
|
+
readonly labelingJobStatus: pulumi.Output<string>;
|
|
116
|
+
/**
|
|
117
|
+
* Location of the output data. Fields are documented below.
|
|
118
|
+
*/
|
|
119
|
+
readonly outputConfig: pulumi.Output<outputs.sagemaker.LabelingJobOutputConfig | undefined>;
|
|
120
|
+
/**
|
|
121
|
+
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
|
|
122
|
+
*/
|
|
123
|
+
readonly region: pulumi.Output<string>;
|
|
124
|
+
/**
|
|
125
|
+
* ARN of IAM role that Amazon SageMaker assumes to perform tasks during data labeling.
|
|
126
|
+
*/
|
|
127
|
+
readonly roleArn: pulumi.Output<string>;
|
|
128
|
+
/**
|
|
129
|
+
* Conditions for stopping a labeling job. If any of the conditions are met, the job is automatically stopped. Fields are documented below.
|
|
130
|
+
*/
|
|
131
|
+
readonly stoppingConditions: pulumi.Output<outputs.sagemaker.LabelingJobStoppingCondition[]>;
|
|
132
|
+
/**
|
|
133
|
+
* A mapping of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
|
|
134
|
+
*/
|
|
135
|
+
readonly tags: pulumi.Output<{
|
|
136
|
+
[key: string]: string;
|
|
137
|
+
} | undefined>;
|
|
138
|
+
/**
|
|
139
|
+
* A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
|
|
140
|
+
*/
|
|
141
|
+
readonly tagsAll: pulumi.Output<{
|
|
142
|
+
[key: string]: string;
|
|
143
|
+
}>;
|
|
144
|
+
/**
|
|
145
|
+
* Create a LabelingJob resource with the given unique name, arguments, and options.
|
|
146
|
+
*
|
|
147
|
+
* @param name The _unique_ name of the resource.
|
|
148
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
149
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
150
|
+
*/
|
|
151
|
+
constructor(name: string, args: LabelingJobArgs, opts?: pulumi.CustomResourceOptions);
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Input properties used for looking up and filtering LabelingJob resources.
|
|
155
|
+
*/
|
|
156
|
+
export interface LabelingJobState {
|
|
157
|
+
/**
|
|
158
|
+
* If the job failed, the reason that it failed.
|
|
159
|
+
*/
|
|
160
|
+
failureReason?: pulumi.Input<string>;
|
|
161
|
+
/**
|
|
162
|
+
* Configuration information required for human workers to complete a labeling task. Fields are documented below.
|
|
163
|
+
*/
|
|
164
|
+
humanTaskConfig?: pulumi.Input<inputs.sagemaker.LabelingJobHumanTaskConfig>;
|
|
165
|
+
/**
|
|
166
|
+
* Input data for the labeling job. Fields are documented below.
|
|
167
|
+
*/
|
|
168
|
+
inputConfig?: pulumi.Input<inputs.sagemaker.LabelingJobInputConfig>;
|
|
169
|
+
/**
|
|
170
|
+
* Unique identifier for work done as part of a labeling job.
|
|
171
|
+
*/
|
|
172
|
+
jobReferenceCode?: pulumi.Input<string>;
|
|
173
|
+
/**
|
|
174
|
+
* Attribute name to use for the label in the output manifest file.
|
|
175
|
+
*/
|
|
176
|
+
labelAttributeName?: pulumi.Input<string>;
|
|
177
|
+
/**
|
|
178
|
+
* S3 URI of the file that defines the categories used to label the data objects.
|
|
179
|
+
*/
|
|
180
|
+
labelCategoryConfigS3Uri?: pulumi.Input<string>;
|
|
181
|
+
/**
|
|
182
|
+
* A breakdown of the number of objects labeled.
|
|
183
|
+
*/
|
|
184
|
+
labelCounters?: pulumi.Input<pulumi.Input<inputs.sagemaker.LabelingJobLabelCounter>[]>;
|
|
185
|
+
/**
|
|
186
|
+
* Information required to perform automated data labeling.. Fields are documented below.
|
|
187
|
+
*/
|
|
188
|
+
labelingJobAlgorithmsConfig?: pulumi.Input<inputs.sagemaker.LabelingJobLabelingJobAlgorithmsConfig>;
|
|
189
|
+
/**
|
|
190
|
+
* ARN of the labeling job.
|
|
191
|
+
*/
|
|
192
|
+
labelingJobArn?: pulumi.Input<string>;
|
|
193
|
+
/**
|
|
194
|
+
* Name of the labeling job.
|
|
195
|
+
*/
|
|
196
|
+
labelingJobName?: pulumi.Input<string>;
|
|
197
|
+
/**
|
|
198
|
+
* Processing status of the labeling job.
|
|
199
|
+
*/
|
|
200
|
+
labelingJobStatus?: pulumi.Input<string>;
|
|
201
|
+
/**
|
|
202
|
+
* Location of the output data. Fields are documented below.
|
|
203
|
+
*/
|
|
204
|
+
outputConfig?: pulumi.Input<inputs.sagemaker.LabelingJobOutputConfig>;
|
|
205
|
+
/**
|
|
206
|
+
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
|
|
207
|
+
*/
|
|
208
|
+
region?: pulumi.Input<string>;
|
|
209
|
+
/**
|
|
210
|
+
* ARN of IAM role that Amazon SageMaker assumes to perform tasks during data labeling.
|
|
211
|
+
*/
|
|
212
|
+
roleArn?: pulumi.Input<string>;
|
|
213
|
+
/**
|
|
214
|
+
* Conditions for stopping a labeling job. If any of the conditions are met, the job is automatically stopped. Fields are documented below.
|
|
215
|
+
*/
|
|
216
|
+
stoppingConditions?: pulumi.Input<pulumi.Input<inputs.sagemaker.LabelingJobStoppingCondition>[]>;
|
|
217
|
+
/**
|
|
218
|
+
* A mapping of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
|
|
219
|
+
*/
|
|
220
|
+
tags?: pulumi.Input<{
|
|
221
|
+
[key: string]: pulumi.Input<string>;
|
|
222
|
+
}>;
|
|
223
|
+
/**
|
|
224
|
+
* A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
|
|
225
|
+
*/
|
|
226
|
+
tagsAll?: pulumi.Input<{
|
|
227
|
+
[key: string]: pulumi.Input<string>;
|
|
228
|
+
}>;
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* The set of arguments for constructing a LabelingJob resource.
|
|
232
|
+
*/
|
|
233
|
+
export interface LabelingJobArgs {
|
|
234
|
+
/**
|
|
235
|
+
* Configuration information required for human workers to complete a labeling task. Fields are documented below.
|
|
236
|
+
*/
|
|
237
|
+
humanTaskConfig?: pulumi.Input<inputs.sagemaker.LabelingJobHumanTaskConfig>;
|
|
238
|
+
/**
|
|
239
|
+
* Input data for the labeling job. Fields are documented below.
|
|
240
|
+
*/
|
|
241
|
+
inputConfig?: pulumi.Input<inputs.sagemaker.LabelingJobInputConfig>;
|
|
242
|
+
/**
|
|
243
|
+
* Attribute name to use for the label in the output manifest file.
|
|
244
|
+
*/
|
|
245
|
+
labelAttributeName: pulumi.Input<string>;
|
|
246
|
+
/**
|
|
247
|
+
* S3 URI of the file that defines the categories used to label the data objects.
|
|
248
|
+
*/
|
|
249
|
+
labelCategoryConfigS3Uri?: pulumi.Input<string>;
|
|
250
|
+
/**
|
|
251
|
+
* Information required to perform automated data labeling.. Fields are documented below.
|
|
252
|
+
*/
|
|
253
|
+
labelingJobAlgorithmsConfig?: pulumi.Input<inputs.sagemaker.LabelingJobLabelingJobAlgorithmsConfig>;
|
|
254
|
+
/**
|
|
255
|
+
* Name of the labeling job.
|
|
256
|
+
*/
|
|
257
|
+
labelingJobName: pulumi.Input<string>;
|
|
258
|
+
/**
|
|
259
|
+
* Location of the output data. Fields are documented below.
|
|
260
|
+
*/
|
|
261
|
+
outputConfig?: pulumi.Input<inputs.sagemaker.LabelingJobOutputConfig>;
|
|
262
|
+
/**
|
|
263
|
+
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
|
|
264
|
+
*/
|
|
265
|
+
region?: pulumi.Input<string>;
|
|
266
|
+
/**
|
|
267
|
+
* ARN of IAM role that Amazon SageMaker assumes to perform tasks during data labeling.
|
|
268
|
+
*/
|
|
269
|
+
roleArn: pulumi.Input<string>;
|
|
270
|
+
/**
|
|
271
|
+
* Conditions for stopping a labeling job. If any of the conditions are met, the job is automatically stopped. Fields are documented below.
|
|
272
|
+
*/
|
|
273
|
+
stoppingConditions?: pulumi.Input<pulumi.Input<inputs.sagemaker.LabelingJobStoppingCondition>[]>;
|
|
274
|
+
/**
|
|
275
|
+
* A mapping of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
|
|
276
|
+
*/
|
|
277
|
+
tags?: pulumi.Input<{
|
|
278
|
+
[key: string]: pulumi.Input<string>;
|
|
279
|
+
}>;
|
|
280
|
+
}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.LabelingJob = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Manage an Amazon SageMaker labeling job.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* Basic usage:
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as aws from "@pulumi/aws";
|
|
18
|
+
*
|
|
19
|
+
* // https://docs.aws.amazon.com/sagemaker/latest/dg/sms-named-entity-recg.html#sms-creating-ner-api.
|
|
20
|
+
* const test = new aws.sagemaker.LabelingJob("test", {
|
|
21
|
+
* labelAttributeName: "label1",
|
|
22
|
+
* labelingJobName: "my-labeling-job",
|
|
23
|
+
* roleArn: exampleAwsIamRole.arn,
|
|
24
|
+
* labelCategoryConfigS3Uri: `s3://${exampleAwsS3Bucket.bucket}/${exampleAwsS3Object.key}`,
|
|
25
|
+
* humanTaskConfig: {
|
|
26
|
+
* numberOfHumanWorkersPerDataObject: 1,
|
|
27
|
+
* taskDescription: "Apply the labels provided to specific words or phrases within the larger text block.",
|
|
28
|
+
* taskTitle: "Named entity Recognition task",
|
|
29
|
+
* taskTimeLimitInSeconds: 28800,
|
|
30
|
+
* workteamArn: example.arn,
|
|
31
|
+
* uiConfig: {
|
|
32
|
+
* humanTaskUiArn: "arn:aws:sagemaker:us-west-2:394669845002:human-task-ui/NamedEntityRecognition",
|
|
33
|
+
* },
|
|
34
|
+
* preHumanTaskLambdaArn: "arn:aws:lambda:us-west-2:081040173940:function:PRE-NamedEntityRecognition",
|
|
35
|
+
* annotationConsolidationConfig: {
|
|
36
|
+
* annotationConsolidationLambdaArn: "arn:aws:lambda:us-west-2:081040173940:function:ACS-NamedEntityRecognition",
|
|
37
|
+
* },
|
|
38
|
+
* },
|
|
39
|
+
* inputConfig: {
|
|
40
|
+
* dataSource: {
|
|
41
|
+
* snsDataSource: {
|
|
42
|
+
* snsTopicArn: exampleAwsSnsTopic.arn,
|
|
43
|
+
* },
|
|
44
|
+
* },
|
|
45
|
+
* },
|
|
46
|
+
* outputConfig: {
|
|
47
|
+
* s3OutputPath: `s3://${exampleAwsS3Bucket.bucket}/`,
|
|
48
|
+
* },
|
|
49
|
+
* });
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
52
|
+
* ## Import
|
|
53
|
+
*
|
|
54
|
+
* Using `pulumi import`, import labeling jobs using the `labeling_job_name`. For example:
|
|
55
|
+
*
|
|
56
|
+
* ```sh
|
|
57
|
+
* $ pulumi import aws:sagemaker/labelingJob:LabelingJob example my-labeling-job
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
class LabelingJob extends pulumi.CustomResource {
|
|
61
|
+
/**
|
|
62
|
+
* Get an existing LabelingJob resource's state with the given name, ID, and optional extra
|
|
63
|
+
* properties used to qualify the lookup.
|
|
64
|
+
*
|
|
65
|
+
* @param name The _unique_ name of the resulting resource.
|
|
66
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
67
|
+
* @param state Any extra arguments used during the lookup.
|
|
68
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
69
|
+
*/
|
|
70
|
+
static get(name, id, state, opts) {
|
|
71
|
+
return new LabelingJob(name, state, { ...opts, id: id });
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Returns true if the given object is an instance of LabelingJob. This is designed to work even
|
|
75
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
76
|
+
*/
|
|
77
|
+
static isInstance(obj) {
|
|
78
|
+
if (obj === undefined || obj === null) {
|
|
79
|
+
return false;
|
|
80
|
+
}
|
|
81
|
+
return obj['__pulumiType'] === LabelingJob.__pulumiType;
|
|
82
|
+
}
|
|
83
|
+
constructor(name, argsOrState, opts) {
|
|
84
|
+
let resourceInputs = {};
|
|
85
|
+
opts = opts || {};
|
|
86
|
+
if (opts.id) {
|
|
87
|
+
const state = argsOrState;
|
|
88
|
+
resourceInputs["failureReason"] = state?.failureReason;
|
|
89
|
+
resourceInputs["humanTaskConfig"] = state?.humanTaskConfig;
|
|
90
|
+
resourceInputs["inputConfig"] = state?.inputConfig;
|
|
91
|
+
resourceInputs["jobReferenceCode"] = state?.jobReferenceCode;
|
|
92
|
+
resourceInputs["labelAttributeName"] = state?.labelAttributeName;
|
|
93
|
+
resourceInputs["labelCategoryConfigS3Uri"] = state?.labelCategoryConfigS3Uri;
|
|
94
|
+
resourceInputs["labelCounters"] = state?.labelCounters;
|
|
95
|
+
resourceInputs["labelingJobAlgorithmsConfig"] = state?.labelingJobAlgorithmsConfig;
|
|
96
|
+
resourceInputs["labelingJobArn"] = state?.labelingJobArn;
|
|
97
|
+
resourceInputs["labelingJobName"] = state?.labelingJobName;
|
|
98
|
+
resourceInputs["labelingJobStatus"] = state?.labelingJobStatus;
|
|
99
|
+
resourceInputs["outputConfig"] = state?.outputConfig;
|
|
100
|
+
resourceInputs["region"] = state?.region;
|
|
101
|
+
resourceInputs["roleArn"] = state?.roleArn;
|
|
102
|
+
resourceInputs["stoppingConditions"] = state?.stoppingConditions;
|
|
103
|
+
resourceInputs["tags"] = state?.tags;
|
|
104
|
+
resourceInputs["tagsAll"] = state?.tagsAll;
|
|
105
|
+
}
|
|
106
|
+
else {
|
|
107
|
+
const args = argsOrState;
|
|
108
|
+
if (args?.labelAttributeName === undefined && !opts.urn) {
|
|
109
|
+
throw new Error("Missing required property 'labelAttributeName'");
|
|
110
|
+
}
|
|
111
|
+
if (args?.labelingJobName === undefined && !opts.urn) {
|
|
112
|
+
throw new Error("Missing required property 'labelingJobName'");
|
|
113
|
+
}
|
|
114
|
+
if (args?.roleArn === undefined && !opts.urn) {
|
|
115
|
+
throw new Error("Missing required property 'roleArn'");
|
|
116
|
+
}
|
|
117
|
+
resourceInputs["humanTaskConfig"] = args?.humanTaskConfig;
|
|
118
|
+
resourceInputs["inputConfig"] = args?.inputConfig;
|
|
119
|
+
resourceInputs["labelAttributeName"] = args?.labelAttributeName;
|
|
120
|
+
resourceInputs["labelCategoryConfigS3Uri"] = args?.labelCategoryConfigS3Uri;
|
|
121
|
+
resourceInputs["labelingJobAlgorithmsConfig"] = args?.labelingJobAlgorithmsConfig;
|
|
122
|
+
resourceInputs["labelingJobName"] = args?.labelingJobName;
|
|
123
|
+
resourceInputs["outputConfig"] = args?.outputConfig;
|
|
124
|
+
resourceInputs["region"] = args?.region;
|
|
125
|
+
resourceInputs["roleArn"] = args?.roleArn;
|
|
126
|
+
resourceInputs["stoppingConditions"] = args?.stoppingConditions;
|
|
127
|
+
resourceInputs["tags"] = args?.tags;
|
|
128
|
+
resourceInputs["failureReason"] = undefined /*out*/;
|
|
129
|
+
resourceInputs["jobReferenceCode"] = undefined /*out*/;
|
|
130
|
+
resourceInputs["labelCounters"] = undefined /*out*/;
|
|
131
|
+
resourceInputs["labelingJobArn"] = undefined /*out*/;
|
|
132
|
+
resourceInputs["labelingJobStatus"] = undefined /*out*/;
|
|
133
|
+
resourceInputs["tagsAll"] = undefined /*out*/;
|
|
134
|
+
}
|
|
135
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
136
|
+
super(LabelingJob.__pulumiType, name, resourceInputs, opts);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
exports.LabelingJob = LabelingJob;
|
|
140
|
+
/** @internal */
|
|
141
|
+
LabelingJob.__pulumiType = 'aws:sagemaker/labelingJob:LabelingJob';
|
|
142
|
+
//# sourceMappingURL=labelingJob.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"labelingJob.js","sourceRoot":"","sources":["../../sagemaker/labelingJob.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
import * as outputs from "../types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Manage an Amazon SageMaker Model Card.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* Basic usage:
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as aws from "@pulumi/aws";
|
|
14
|
+
*
|
|
15
|
+
* const example = new aws.sagemaker.ModelCard("example", {
|
|
16
|
+
* modelCardName: "my-model-card",
|
|
17
|
+
* modelCardStatus: "Draft",
|
|
18
|
+
* content: `{
|
|
19
|
+
* \\"business_details\\": {
|
|
20
|
+
* \\"business_problem\\": \\"Quality\\"
|
|
21
|
+
* },
|
|
22
|
+
* \\"intended_uses\\": {
|
|
23
|
+
* \\"intended_uses\\": \\"Testing\\"
|
|
24
|
+
* },
|
|
25
|
+
* \\"additional_information\\": {
|
|
26
|
+
* \\"caveats_and_recommendations\\": \\"Use this\\"
|
|
27
|
+
* }
|
|
28
|
+
* }
|
|
29
|
+
* `,
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* ## Import
|
|
34
|
+
*
|
|
35
|
+
* Using `pulumi import`, import model cards using the `model_card_name`. For example:
|
|
36
|
+
*
|
|
37
|
+
* ```sh
|
|
38
|
+
* $ pulumi import aws:sagemaker/modelCard:ModelCard example my-model-card
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
export declare class ModelCard extends pulumi.CustomResource {
|
|
42
|
+
/**
|
|
43
|
+
* Get an existing ModelCard resource's state with the given name, ID, and optional extra
|
|
44
|
+
* properties used to qualify the lookup.
|
|
45
|
+
*
|
|
46
|
+
* @param name The _unique_ name of the resulting resource.
|
|
47
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
48
|
+
* @param state Any extra arguments used during the lookup.
|
|
49
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
50
|
+
*/
|
|
51
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ModelCardState, opts?: pulumi.CustomResourceOptions): ModelCard;
|
|
52
|
+
/**
|
|
53
|
+
* Returns true if the given object is an instance of ModelCard. This is designed to work even
|
|
54
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
55
|
+
*/
|
|
56
|
+
static isInstance(obj: any): obj is ModelCard;
|
|
57
|
+
/**
|
|
58
|
+
* Content of the model card in [model card JSON schema](https://docs.aws.amazon.com/sagemaker/latest/dg/model-cards.html#model-cards-json-schema).
|
|
59
|
+
*/
|
|
60
|
+
readonly content: pulumi.Output<string>;
|
|
61
|
+
/**
|
|
62
|
+
* The Amazon Resource Name (ARN) of the model card.
|
|
63
|
+
*/
|
|
64
|
+
readonly modelCardArn: pulumi.Output<string>;
|
|
65
|
+
/**
|
|
66
|
+
* Name of the model card.
|
|
67
|
+
*/
|
|
68
|
+
readonly modelCardName: pulumi.Output<string>;
|
|
69
|
+
/**
|
|
70
|
+
* Approval status of the model card. Valid values: `Draft`, `PendingReview`, `Approved`, `Archived`.
|
|
71
|
+
*/
|
|
72
|
+
readonly modelCardStatus: pulumi.Output<string>;
|
|
73
|
+
/**
|
|
74
|
+
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
|
|
75
|
+
*/
|
|
76
|
+
readonly region: pulumi.Output<string>;
|
|
77
|
+
/**
|
|
78
|
+
* KMS key to encrypt, decrypt, and re-encrypt model card content. Fields are documented below.
|
|
79
|
+
*/
|
|
80
|
+
readonly securityConfig: pulumi.Output<outputs.sagemaker.ModelCardSecurityConfig | undefined>;
|
|
81
|
+
/**
|
|
82
|
+
* A mapping of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
|
|
83
|
+
*/
|
|
84
|
+
readonly tags: pulumi.Output<{
|
|
85
|
+
[key: string]: string;
|
|
86
|
+
} | undefined>;
|
|
87
|
+
/**
|
|
88
|
+
* A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
|
|
89
|
+
*/
|
|
90
|
+
readonly tagsAll: pulumi.Output<{
|
|
91
|
+
[key: string]: string;
|
|
92
|
+
}>;
|
|
93
|
+
readonly timeouts: pulumi.Output<outputs.sagemaker.ModelCardTimeouts | undefined>;
|
|
94
|
+
/**
|
|
95
|
+
* Create a ModelCard resource with the given unique name, arguments, and options.
|
|
96
|
+
*
|
|
97
|
+
* @param name The _unique_ name of the resource.
|
|
98
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
99
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
100
|
+
*/
|
|
101
|
+
constructor(name: string, args: ModelCardArgs, opts?: pulumi.CustomResourceOptions);
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Input properties used for looking up and filtering ModelCard resources.
|
|
105
|
+
*/
|
|
106
|
+
export interface ModelCardState {
|
|
107
|
+
/**
|
|
108
|
+
* Content of the model card in [model card JSON schema](https://docs.aws.amazon.com/sagemaker/latest/dg/model-cards.html#model-cards-json-schema).
|
|
109
|
+
*/
|
|
110
|
+
content?: pulumi.Input<string>;
|
|
111
|
+
/**
|
|
112
|
+
* The Amazon Resource Name (ARN) of the model card.
|
|
113
|
+
*/
|
|
114
|
+
modelCardArn?: pulumi.Input<string>;
|
|
115
|
+
/**
|
|
116
|
+
* Name of the model card.
|
|
117
|
+
*/
|
|
118
|
+
modelCardName?: pulumi.Input<string>;
|
|
119
|
+
/**
|
|
120
|
+
* Approval status of the model card. Valid values: `Draft`, `PendingReview`, `Approved`, `Archived`.
|
|
121
|
+
*/
|
|
122
|
+
modelCardStatus?: pulumi.Input<string>;
|
|
123
|
+
/**
|
|
124
|
+
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
|
|
125
|
+
*/
|
|
126
|
+
region?: pulumi.Input<string>;
|
|
127
|
+
/**
|
|
128
|
+
* KMS key to encrypt, decrypt, and re-encrypt model card content. Fields are documented below.
|
|
129
|
+
*/
|
|
130
|
+
securityConfig?: pulumi.Input<inputs.sagemaker.ModelCardSecurityConfig>;
|
|
131
|
+
/**
|
|
132
|
+
* A mapping of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
|
|
133
|
+
*/
|
|
134
|
+
tags?: pulumi.Input<{
|
|
135
|
+
[key: string]: pulumi.Input<string>;
|
|
136
|
+
}>;
|
|
137
|
+
/**
|
|
138
|
+
* A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
|
|
139
|
+
*/
|
|
140
|
+
tagsAll?: pulumi.Input<{
|
|
141
|
+
[key: string]: pulumi.Input<string>;
|
|
142
|
+
}>;
|
|
143
|
+
timeouts?: pulumi.Input<inputs.sagemaker.ModelCardTimeouts>;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* The set of arguments for constructing a ModelCard resource.
|
|
147
|
+
*/
|
|
148
|
+
export interface ModelCardArgs {
|
|
149
|
+
/**
|
|
150
|
+
* Content of the model card in [model card JSON schema](https://docs.aws.amazon.com/sagemaker/latest/dg/model-cards.html#model-cards-json-schema).
|
|
151
|
+
*/
|
|
152
|
+
content: pulumi.Input<string>;
|
|
153
|
+
/**
|
|
154
|
+
* Name of the model card.
|
|
155
|
+
*/
|
|
156
|
+
modelCardName: pulumi.Input<string>;
|
|
157
|
+
/**
|
|
158
|
+
* Approval status of the model card. Valid values: `Draft`, `PendingReview`, `Approved`, `Archived`.
|
|
159
|
+
*/
|
|
160
|
+
modelCardStatus: pulumi.Input<string>;
|
|
161
|
+
/**
|
|
162
|
+
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
|
|
163
|
+
*/
|
|
164
|
+
region?: pulumi.Input<string>;
|
|
165
|
+
/**
|
|
166
|
+
* KMS key to encrypt, decrypt, and re-encrypt model card content. Fields are documented below.
|
|
167
|
+
*/
|
|
168
|
+
securityConfig?: pulumi.Input<inputs.sagemaker.ModelCardSecurityConfig>;
|
|
169
|
+
/**
|
|
170
|
+
* A mapping of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
|
|
171
|
+
*/
|
|
172
|
+
tags?: pulumi.Input<{
|
|
173
|
+
[key: string]: pulumi.Input<string>;
|
|
174
|
+
}>;
|
|
175
|
+
timeouts?: pulumi.Input<inputs.sagemaker.ModelCardTimeouts>;
|
|
176
|
+
}
|