Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.rapidmigrationassessment/v1.Annotation
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates an Annotation Note - this resource’s API doesn’t support deletion. When deleted, the resource will persist on Google Cloud even though it will be deleted from Pulumi state.
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: Optional[AnnotationArgs] = None,
               opts: Optional[ResourceOptions] = None)
@overload
def Annotation(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               labels: Optional[Mapping[str, str]] = None,
               location: Optional[str] = None,
               name: Optional[str] = None,
               project: Optional[str] = None,
               request_id: Optional[str] = None,
               type: Optional[AnnotationType] = None)func NewAnnotation(ctx *Context, name string, args *AnnotationArgs, opts ...ResourceOption) (*Annotation, error)public Annotation(string name, AnnotationArgs? args = null, CustomResourceOptions? opts = null)
public Annotation(String name, AnnotationArgs args)
public Annotation(String name, AnnotationArgs args, CustomResourceOptions options)
type: google-native:rapidmigrationassessment/v1: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 google_nativeAnnotationResource = new GoogleNative.RapidMigrationAssessment.V1.Annotation("google-nativeAnnotationResource", new()
{
    Labels = 
    {
        { "string", "string" },
    },
    Location = "string",
    Name = "string",
    Project = "string",
    RequestId = "string",
    Type = GoogleNative.RapidMigrationAssessment.V1.AnnotationType.TypeUnspecified,
});
example, err := rapidmigrationassessment.NewAnnotation(ctx, "google-nativeAnnotationResource", &rapidmigrationassessment.AnnotationArgs{
	Labels: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Location:  pulumi.String("string"),
	Name:      pulumi.String("string"),
	Project:   pulumi.String("string"),
	RequestId: pulumi.String("string"),
	Type:      rapidmigrationassessment.AnnotationTypeTypeUnspecified,
})
var google_nativeAnnotationResource = new Annotation("google-nativeAnnotationResource", AnnotationArgs.builder()
    .labels(Map.of("string", "string"))
    .location("string")
    .name("string")
    .project("string")
    .requestId("string")
    .type("TYPE_UNSPECIFIED")
    .build());
google_native_annotation_resource = google_native.rapidmigrationassessment.v1.Annotation("google-nativeAnnotationResource",
    labels={
        "string": "string",
    },
    location="string",
    name="string",
    project="string",
    request_id="string",
    type=google_native.rapidmigrationassessment.v1.AnnotationType.TYPE_UNSPECIFIED)
const google_nativeAnnotationResource = new google_native.rapidmigrationassessment.v1.Annotation("google-nativeAnnotationResource", {
    labels: {
        string: "string",
    },
    location: "string",
    name: "string",
    project: "string",
    requestId: "string",
    type: google_native.rapidmigrationassessment.v1.AnnotationType.TypeUnspecified,
});
type: google-native:rapidmigrationassessment/v1:Annotation
properties:
    labels:
        string: string
    location: string
    name: string
    project: string
    requestId: string
    type: TYPE_UNSPECIFIED
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:
- labels Mapping[str, str]
- Labels as key value pairs.
- location str
- name str
- name of resource.
- project str
- request_id str
- Optional. An optional request ID to identify requests.
- type
AnnotationType 
- Type of an annotation.
Outputs
All input properties are implicitly available as output properties. Additionally, the Annotation resource produces the following output properties:
- CreateTime string
- Create time stamp.
- Id string
- The provider-assigned unique ID for this managed resource.
- UpdateTime string
- Update time stamp.
- CreateTime string
- Create time stamp.
- Id string
- The provider-assigned unique ID for this managed resource.
- UpdateTime string
- Update time stamp.
- createTime String
- Create time stamp.
- id String
- The provider-assigned unique ID for this managed resource.
- updateTime String
- Update time stamp.
- createTime string
- Create time stamp.
- id string
- The provider-assigned unique ID for this managed resource.
- updateTime string
- Update time stamp.
- create_time str
- Create time stamp.
- id str
- The provider-assigned unique ID for this managed resource.
- update_time str
- Update time stamp.
- createTime String
- Create time stamp.
- id String
- The provider-assigned unique ID for this managed resource.
- updateTime String
- Update time stamp.
Supporting Types
AnnotationType, AnnotationTypeArgs    
- TypeUnspecified 
- TYPE_UNSPECIFIEDUnknown type
- TypeLegacy Export Consent 
- TYPE_LEGACY_EXPORT_CONSENTIndicates that this project has opted into StratoZone export.
- TypeQwiklab 
- TYPE_QWIKLABIndicates that this project is created by Qwiklab.
- AnnotationType Type Unspecified 
- TYPE_UNSPECIFIEDUnknown type
- AnnotationType Type Legacy Export Consent 
- TYPE_LEGACY_EXPORT_CONSENTIndicates that this project has opted into StratoZone export.
- AnnotationType Type Qwiklab 
- TYPE_QWIKLABIndicates that this project is created by Qwiklab.
- TypeUnspecified 
- TYPE_UNSPECIFIEDUnknown type
- TypeLegacy Export Consent 
- TYPE_LEGACY_EXPORT_CONSENTIndicates that this project has opted into StratoZone export.
- TypeQwiklab 
- TYPE_QWIKLABIndicates that this project is created by Qwiklab.
- TypeUnspecified 
- TYPE_UNSPECIFIEDUnknown type
- TypeLegacy Export Consent 
- TYPE_LEGACY_EXPORT_CONSENTIndicates that this project has opted into StratoZone export.
- TypeQwiklab 
- TYPE_QWIKLABIndicates that this project is created by Qwiklab.
- TYPE_UNSPECIFIED
- TYPE_UNSPECIFIEDUnknown type
- TYPE_LEGACY_EXPORT_CONSENT
- TYPE_LEGACY_EXPORT_CONSENTIndicates that this project has opted into StratoZone export.
- TYPE_QWIKLAB
- TYPE_QWIKLABIndicates that this project is created by Qwiklab.
- "TYPE_UNSPECIFIED"
- TYPE_UNSPECIFIEDUnknown type
- "TYPE_LEGACY_EXPORT_CONSENT"
- TYPE_LEGACY_EXPORT_CONSENTIndicates that this project has opted into StratoZone export.
- "TYPE_QWIKLAB"
- TYPE_QWIKLABIndicates that this project is created by Qwiklab.
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.