Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.healthcare/v1beta1.Annotation
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates a new Annotation record. It is valid to create Annotation objects for the same source more than once since a unique ID is assigned to each record by this service.
Create Annotation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Annotation(name: string, args: AnnotationArgs, opts?: CustomResourceOptions);
@overload
def Annotation(resource_name: str,
args: AnnotationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Annotation(resource_name: str,
opts: Optional[ResourceOptions] = None,
annotation_store_id: Optional[str] = None,
dataset_id: Optional[str] = None,
annotation_source: Optional[AnnotationSourceArgs] = None,
custom_data: Optional[Mapping[str, str]] = None,
image_annotation: Optional[ImageAnnotationArgs] = None,
location: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
resource_annotation: Optional[ResourceAnnotationArgs] = None,
text_annotation: Optional[SensitiveTextAnnotationArgs] = None)
func NewAnnotation(ctx *Context, name string, args AnnotationArgs, opts ...ResourceOption) (*Annotation, error)
public Annotation(string name, AnnotationArgs args, CustomResourceOptions? opts = null)
public Annotation(String name, AnnotationArgs args)
public Annotation(String name, AnnotationArgs args, CustomResourceOptions options)
type: google-native:healthcare/v1beta1:Annotation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AnnotationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AnnotationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AnnotationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AnnotationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AnnotationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var annotationResource = new GoogleNative.Healthcare.V1Beta1.Annotation("annotationResource", new()
{
AnnotationStoreId = "string",
DatasetId = "string",
AnnotationSource = new GoogleNative.Healthcare.V1Beta1.Inputs.AnnotationSourceArgs
{
CloudHealthcareSource = new GoogleNative.Healthcare.V1Beta1.Inputs.CloudHealthcareSourceArgs
{
Name = "string",
},
},
CustomData =
{
{ "string", "string" },
},
ImageAnnotation = new GoogleNative.Healthcare.V1Beta1.Inputs.ImageAnnotationArgs
{
BoundingPolys = new[]
{
new GoogleNative.Healthcare.V1Beta1.Inputs.BoundingPolyArgs
{
Label = "string",
Vertices = new[]
{
new GoogleNative.Healthcare.V1Beta1.Inputs.VertexArgs
{
X = 0,
Y = 0,
},
},
},
},
FrameIndex = 0,
},
Location = "string",
Name = "string",
Project = "string",
ResourceAnnotation = new GoogleNative.Healthcare.V1Beta1.Inputs.ResourceAnnotationArgs
{
Label = "string",
},
TextAnnotation = new GoogleNative.Healthcare.V1Beta1.Inputs.SensitiveTextAnnotationArgs
{
Details =
{
{ "string", "string" },
},
},
});
example, err := healthcarev1beta1.NewAnnotation(ctx, "annotationResource", &healthcarev1beta1.AnnotationArgs{
AnnotationStoreId: pulumi.String("string"),
DatasetId: pulumi.String("string"),
AnnotationSource: &healthcare.AnnotationSourceArgs{
CloudHealthcareSource: &healthcare.CloudHealthcareSourceArgs{
Name: pulumi.String("string"),
},
},
CustomData: pulumi.StringMap{
"string": pulumi.String("string"),
},
ImageAnnotation: &healthcare.ImageAnnotationArgs{
BoundingPolys: healthcare.BoundingPolyArray{
&healthcare.BoundingPolyArgs{
Label: pulumi.String("string"),
Vertices: healthcare.VertexArray{
&healthcare.VertexArgs{
X: pulumi.Float64(0),
Y: pulumi.Float64(0),
},
},
},
},
FrameIndex: pulumi.Int(0),
},
Location: pulumi.String("string"),
Name: pulumi.String("string"),
Project: pulumi.String("string"),
ResourceAnnotation: &healthcare.ResourceAnnotationArgs{
Label: pulumi.String("string"),
},
TextAnnotation: &healthcare.SensitiveTextAnnotationArgs{
Details: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
})
var annotationResource = new Annotation("annotationResource", AnnotationArgs.builder()
.annotationStoreId("string")
.datasetId("string")
.annotationSource(AnnotationSourceArgs.builder()
.cloudHealthcareSource(CloudHealthcareSourceArgs.builder()
.name("string")
.build())
.build())
.customData(Map.of("string", "string"))
.imageAnnotation(ImageAnnotationArgs.builder()
.boundingPolys(BoundingPolyArgs.builder()
.label("string")
.vertices(VertexArgs.builder()
.x(0)
.y(0)
.build())
.build())
.frameIndex(0)
.build())
.location("string")
.name("string")
.project("string")
.resourceAnnotation(ResourceAnnotationArgs.builder()
.label("string")
.build())
.textAnnotation(SensitiveTextAnnotationArgs.builder()
.details(Map.of("string", "string"))
.build())
.build());
annotation_resource = google_native.healthcare.v1beta1.Annotation("annotationResource",
annotation_store_id="string",
dataset_id="string",
annotation_source={
"cloud_healthcare_source": {
"name": "string",
},
},
custom_data={
"string": "string",
},
image_annotation={
"bounding_polys": [{
"label": "string",
"vertices": [{
"x": 0,
"y": 0,
}],
}],
"frame_index": 0,
},
location="string",
name="string",
project="string",
resource_annotation={
"label": "string",
},
text_annotation={
"details": {
"string": "string",
},
})
const annotationResource = new google_native.healthcare.v1beta1.Annotation("annotationResource", {
annotationStoreId: "string",
datasetId: "string",
annotationSource: {
cloudHealthcareSource: {
name: "string",
},
},
customData: {
string: "string",
},
imageAnnotation: {
boundingPolys: [{
label: "string",
vertices: [{
x: 0,
y: 0,
}],
}],
frameIndex: 0,
},
location: "string",
name: "string",
project: "string",
resourceAnnotation: {
label: "string",
},
textAnnotation: {
details: {
string: "string",
},
},
});
type: google-native:healthcare/v1beta1:Annotation
properties:
annotationSource:
cloudHealthcareSource:
name: string
annotationStoreId: string
customData:
string: string
datasetId: string
imageAnnotation:
boundingPolys:
- label: string
vertices:
- x: 0
"y": 0
frameIndex: 0
location: string
name: string
project: string
resourceAnnotation:
label: string
textAnnotation:
details:
string: string
Annotation Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Annotation resource accepts the following input properties:
- Annotation
Store stringId - Dataset
Id string - Annotation
Source Pulumi.Google Native. Healthcare. V1Beta1. Inputs. Annotation Source - Details of the source.
- Custom
Data Dictionary<string, string> - Additional information for this annotation record, such as annotator and verifier information or study campaign.
- Image
Annotation Pulumi.Google Native. Healthcare. V1Beta1. Inputs. Image Annotation - Annotations for images. For example, bounding polygons.
- Location string
- Name string
- Resource name of the Annotation, of the form
projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationStores/{annotation_store_id}/annotations/{annotation_id}
. - Project string
- Resource
Annotation Pulumi.Google Native. Healthcare. V1Beta1. Inputs. Resource Annotation - Annotations for resource. For example, classification tags.
- Text
Annotation Pulumi.Google Native. Healthcare. V1Beta1. Inputs. Sensitive Text Annotation - Annotations for sensitive texts. For example, a range that describes the location of sensitive text.
- Annotation
Store stringId - Dataset
Id string - Annotation
Source AnnotationSource Args - Details of the source.
- Custom
Data map[string]string - Additional information for this annotation record, such as annotator and verifier information or study campaign.
- Image
Annotation ImageAnnotation Args - Annotations for images. For example, bounding polygons.
- Location string
- Name string
- Resource name of the Annotation, of the form
projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationStores/{annotation_store_id}/annotations/{annotation_id}
. - Project string
- Resource
Annotation ResourceAnnotation Args - Annotations for resource. For example, classification tags.
- Text
Annotation SensitiveText Annotation Args - Annotations for sensitive texts. For example, a range that describes the location of sensitive text.
- annotation
Store StringId - dataset
Id String - annotation
Source AnnotationSource - Details of the source.
- custom
Data Map<String,String> - Additional information for this annotation record, such as annotator and verifier information or study campaign.
- image
Annotation ImageAnnotation - Annotations for images. For example, bounding polygons.
- location String
- name String
- Resource name of the Annotation, of the form
projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationStores/{annotation_store_id}/annotations/{annotation_id}
. - project String
- resource
Annotation ResourceAnnotation - Annotations for resource. For example, classification tags.
- text
Annotation SensitiveText Annotation - Annotations for sensitive texts. For example, a range that describes the location of sensitive text.
- annotation
Store stringId - dataset
Id string - annotation
Source AnnotationSource - Details of the source.
- custom
Data {[key: string]: string} - Additional information for this annotation record, such as annotator and verifier information or study campaign.
- image
Annotation ImageAnnotation - Annotations for images. For example, bounding polygons.
- location string
- name string
- Resource name of the Annotation, of the form
projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationStores/{annotation_store_id}/annotations/{annotation_id}
. - project string
- resource
Annotation ResourceAnnotation - Annotations for resource. For example, classification tags.
- text
Annotation SensitiveText Annotation - Annotations for sensitive texts. For example, a range that describes the location of sensitive text.
- annotation_
store_ strid - dataset_
id str - annotation_
source AnnotationSource Args - Details of the source.
- custom_
data Mapping[str, str] - Additional information for this annotation record, such as annotator and verifier information or study campaign.
- image_
annotation ImageAnnotation Args - Annotations for images. For example, bounding polygons.
- location str
- name str
- Resource name of the Annotation, of the form
projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationStores/{annotation_store_id}/annotations/{annotation_id}
. - project str
- resource_
annotation ResourceAnnotation Args - Annotations for resource. For example, classification tags.
- text_
annotation SensitiveText Annotation Args - Annotations for sensitive texts. For example, a range that describes the location of sensitive text.
- annotation
Store StringId - dataset
Id String - annotation
Source Property Map - Details of the source.
- custom
Data Map<String> - Additional information for this annotation record, such as annotator and verifier information or study campaign.
- image
Annotation Property Map - Annotations for images. For example, bounding polygons.
- location String
- name String
- Resource name of the Annotation, of the form
projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationStores/{annotation_store_id}/annotations/{annotation_id}
. - project String
- resource
Annotation Property Map - Annotations for resource. For example, classification tags.
- text
Annotation Property Map - Annotations for sensitive texts. For example, a range that describes the location of sensitive text.
Outputs
All input properties are implicitly available as output properties. Additionally, the Annotation resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Supporting Types
AnnotationSource, AnnotationSourceArgs
- Cloud
Healthcare Pulumi.Source Google Native. Healthcare. V1Beta1. Inputs. Cloud Healthcare Source - Cloud Healthcare API resource.
- Cloud
Healthcare CloudSource Healthcare Source - Cloud Healthcare API resource.
- cloud
Healthcare CloudSource Healthcare Source - Cloud Healthcare API resource.
- cloud
Healthcare CloudSource Healthcare Source - Cloud Healthcare API resource.
- cloud_
healthcare_ Cloudsource Healthcare Source - Cloud Healthcare API resource.
- cloud
Healthcare Property MapSource - Cloud Healthcare API resource.
AnnotationSourceResponse, AnnotationSourceResponseArgs
- Cloud
Healthcare Pulumi.Source Google Native. Healthcare. V1Beta1. Inputs. Cloud Healthcare Source Response - Cloud Healthcare API resource.
- Cloud
Healthcare CloudSource Healthcare Source Response - Cloud Healthcare API resource.
- cloud
Healthcare CloudSource Healthcare Source Response - Cloud Healthcare API resource.
- cloud
Healthcare CloudSource Healthcare Source Response - Cloud Healthcare API resource.
- cloud_
healthcare_ Cloudsource Healthcare Source Response - Cloud Healthcare API resource.
- cloud
Healthcare Property MapSource - Cloud Healthcare API resource.
BoundingPoly, BoundingPolyArgs
- Label string
- A description of this polygon.
- Vertices
List<Pulumi.
Google Native. Healthcare. V1Beta1. Inputs. Vertex> - List of the vertices of this polygon.
- label String
- A description of this polygon.
- vertices List<Vertex>
- List of the vertices of this polygon.
- label str
- A description of this polygon.
- vertices Sequence[Vertex]
- List of the vertices of this polygon.
- label String
- A description of this polygon.
- vertices List<Property Map>
- List of the vertices of this polygon.
BoundingPolyResponse, BoundingPolyResponseArgs
- Label string
- A description of this polygon.
- Vertices
List<Pulumi.
Google Native. Healthcare. V1Beta1. Inputs. Vertex Response> - List of the vertices of this polygon.
- Label string
- A description of this polygon.
- Vertices
[]Vertex
Response - List of the vertices of this polygon.
- label String
- A description of this polygon.
- vertices
List<Vertex
Response> - List of the vertices of this polygon.
- label string
- A description of this polygon.
- vertices
Vertex
Response[] - List of the vertices of this polygon.
- label str
- A description of this polygon.
- vertices
Sequence[Vertex
Response] - List of the vertices of this polygon.
- label String
- A description of this polygon.
- vertices List<Property Map>
- List of the vertices of this polygon.
CloudHealthcareSource, CloudHealthcareSourceArgs
- Name string
- Full path of a Cloud Healthcare API resource.
- Name string
- Full path of a Cloud Healthcare API resource.
- name String
- Full path of a Cloud Healthcare API resource.
- name string
- Full path of a Cloud Healthcare API resource.
- name str
- Full path of a Cloud Healthcare API resource.
- name String
- Full path of a Cloud Healthcare API resource.
CloudHealthcareSourceResponse, CloudHealthcareSourceResponseArgs
- Name string
- Full path of a Cloud Healthcare API resource.
- Name string
- Full path of a Cloud Healthcare API resource.
- name String
- Full path of a Cloud Healthcare API resource.
- name string
- Full path of a Cloud Healthcare API resource.
- name str
- Full path of a Cloud Healthcare API resource.
- name String
- Full path of a Cloud Healthcare API resource.
ImageAnnotation, ImageAnnotationArgs
- Bounding
Polys List<Pulumi.Google Native. Healthcare. V1Beta1. Inputs. Bounding Poly> - The list of polygons outlining the sensitive regions in the image.
- Frame
Index int - 0-based index of the image frame. For example, an image frame in a DICOM instance.
- Bounding
Polys []BoundingPoly - The list of polygons outlining the sensitive regions in the image.
- Frame
Index int - 0-based index of the image frame. For example, an image frame in a DICOM instance.
- bounding
Polys List<BoundingPoly> - The list of polygons outlining the sensitive regions in the image.
- frame
Index Integer - 0-based index of the image frame. For example, an image frame in a DICOM instance.
- bounding
Polys BoundingPoly[] - The list of polygons outlining the sensitive regions in the image.
- frame
Index number - 0-based index of the image frame. For example, an image frame in a DICOM instance.
- bounding_
polys Sequence[BoundingPoly] - The list of polygons outlining the sensitive regions in the image.
- frame_
index int - 0-based index of the image frame. For example, an image frame in a DICOM instance.
- bounding
Polys List<Property Map> - The list of polygons outlining the sensitive regions in the image.
- frame
Index Number - 0-based index of the image frame. For example, an image frame in a DICOM instance.
ImageAnnotationResponse, ImageAnnotationResponseArgs
- Bounding
Polys List<Pulumi.Google Native. Healthcare. V1Beta1. Inputs. Bounding Poly Response> - The list of polygons outlining the sensitive regions in the image.
- Frame
Index int - 0-based index of the image frame. For example, an image frame in a DICOM instance.
- Bounding
Polys []BoundingPoly Response - The list of polygons outlining the sensitive regions in the image.
- Frame
Index int - 0-based index of the image frame. For example, an image frame in a DICOM instance.
- bounding
Polys List<BoundingPoly Response> - The list of polygons outlining the sensitive regions in the image.
- frame
Index Integer - 0-based index of the image frame. For example, an image frame in a DICOM instance.
- bounding
Polys BoundingPoly Response[] - The list of polygons outlining the sensitive regions in the image.
- frame
Index number - 0-based index of the image frame. For example, an image frame in a DICOM instance.
- bounding_
polys Sequence[BoundingPoly Response] - The list of polygons outlining the sensitive regions in the image.
- frame_
index int - 0-based index of the image frame. For example, an image frame in a DICOM instance.
- bounding
Polys List<Property Map> - The list of polygons outlining the sensitive regions in the image.
- frame
Index Number - 0-based index of the image frame. For example, an image frame in a DICOM instance.
ResourceAnnotation, ResourceAnnotationArgs
- Label string
- A description of the annotation record.
- Label string
- A description of the annotation record.
- label String
- A description of the annotation record.
- label string
- A description of the annotation record.
- label str
- A description of the annotation record.
- label String
- A description of the annotation record.
ResourceAnnotationResponse, ResourceAnnotationResponseArgs
- Label string
- A description of the annotation record.
- Label string
- A description of the annotation record.
- label String
- A description of the annotation record.
- label string
- A description of the annotation record.
- label str
- A description of the annotation record.
- label String
- A description of the annotation record.
SensitiveTextAnnotation, SensitiveTextAnnotationArgs
- Details Dictionary<string, string>
- Maps from a resource slice. For example, FHIR resource field path to a set of sensitive text findings. For example, Appointment.Narrative text1 --> {findings_1, findings_2, findings_3}
- Details map[string]string
- Maps from a resource slice. For example, FHIR resource field path to a set of sensitive text findings. For example, Appointment.Narrative text1 --> {findings_1, findings_2, findings_3}
- details Map<String,String>
- Maps from a resource slice. For example, FHIR resource field path to a set of sensitive text findings. For example, Appointment.Narrative text1 --> {findings_1, findings_2, findings_3}
- details {[key: string]: string}
- Maps from a resource slice. For example, FHIR resource field path to a set of sensitive text findings. For example, Appointment.Narrative text1 --> {findings_1, findings_2, findings_3}
- details Mapping[str, str]
- Maps from a resource slice. For example, FHIR resource field path to a set of sensitive text findings. For example, Appointment.Narrative text1 --> {findings_1, findings_2, findings_3}
- details Map<String>
- Maps from a resource slice. For example, FHIR resource field path to a set of sensitive text findings. For example, Appointment.Narrative text1 --> {findings_1, findings_2, findings_3}
SensitiveTextAnnotationResponse, SensitiveTextAnnotationResponseArgs
- Details Dictionary<string, string>
- Maps from a resource slice. For example, FHIR resource field path to a set of sensitive text findings. For example, Appointment.Narrative text1 --> {findings_1, findings_2, findings_3}
- Details map[string]string
- Maps from a resource slice. For example, FHIR resource field path to a set of sensitive text findings. For example, Appointment.Narrative text1 --> {findings_1, findings_2, findings_3}
- details Map<String,String>
- Maps from a resource slice. For example, FHIR resource field path to a set of sensitive text findings. For example, Appointment.Narrative text1 --> {findings_1, findings_2, findings_3}
- details {[key: string]: string}
- Maps from a resource slice. For example, FHIR resource field path to a set of sensitive text findings. For example, Appointment.Narrative text1 --> {findings_1, findings_2, findings_3}
- details Mapping[str, str]
- Maps from a resource slice. For example, FHIR resource field path to a set of sensitive text findings. For example, Appointment.Narrative text1 --> {findings_1, findings_2, findings_3}
- details Map<String>
- Maps from a resource slice. For example, FHIR resource field path to a set of sensitive text findings. For example, Appointment.Narrative text1 --> {findings_1, findings_2, findings_3}
Vertex, VertexArgs
VertexResponse, VertexResponseArgs
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.