1. Registry
  2. Packages
  3. Google Cloud Native
  4. API Docs
  5. rapidmigrationassessment
  6. rapidmigrationassessment/v1
  7. Annotation

This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.

Viewing docs for Google Cloud Native v0.32.0
published on Wednesday, Nov 29, 2023 by Pulumi
google-native logo Google Cloud Native

This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.

Viewing docs for Google Cloud Native v0.32.0
published on Wednesday, Nov 29, 2023 by Pulumi

    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.
    
    
    resource "google-native_rapidmigrationassessment_v1_annotation" "name" {
        # resource properties
    }

    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,
    })
    
    resource "google-native_rapidmigrationassessment_v1_annotation" "google-nativeAnnotationResource" {
      lifecycle {
        create_before_destroy = true
      }
      labels = {
        "string" = "string"
      }
      location   = "string"
      name       = "string"
      project    = "string"
      request_id = "string"
      type       = "TYPE_UNSPECIFIED"
    }
    
    var google_nativeAnnotationResource = new com.pulumi.googlenative.rapidmigrationassessment_v1.Annotation("google-nativeAnnotationResource", com.pulumi.googlenative.rapidmigrationassessment_v1.AnnotationArgs.builder()
        .labels(Map.of("string", "string"))
        .location("string")
        .name("string")
        .project("string")
        .requestId("string")
        .type(com.pulumi.googlenative.rapidmigrationassessment_v1.enums.AnnotationType.TypeUnspecified)
        .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 Dictionary<string, string>
    Labels as key value pairs.
    Location string
    Name string
    name of resource.
    Project string
    RequestId string
    Optional. An optional request ID to identify requests.
    Type Pulumi.GoogleNative.RapidMigrationAssessment.V1.AnnotationType
    Type of an annotation.
    Labels map[string]string
    Labels as key value pairs.
    Location string
    Name string
    name of resource.
    Project string
    RequestId string
    Optional. An optional request ID to identify requests.
    Type AnnotationType
    Type of an annotation.
    labels map(string)
    Labels as key value pairs.
    location string
    name string
    name of resource.
    project string
    request_id string
    Optional. An optional request ID to identify requests.
    type "TYPE_UNSPECIFIED" | "TYPE_LEGACY_EXPORT_CONSENT" | "TYPE_QWIKLAB"
    Type of an annotation.
    labels Map<String,String>
    Labels as key value pairs.
    location String
    name String
    name of resource.
    project String
    requestId String
    Optional. An optional request ID to identify requests.
    type AnnotationType
    Type of an annotation.
    labels {[key: string]: string}
    Labels as key value pairs.
    location string
    name string
    name of resource.
    project string
    requestId string
    Optional. An optional request ID to identify requests.
    type AnnotationType
    Type of an annotation.
    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.
    labels Map<String>
    Labels as key value pairs.
    location String
    name String
    name of resource.
    project String
    requestId String
    Optional. An optional request ID to identify requests.
    type "TYPE_UNSPECIFIED" | "TYPE_LEGACY_EXPORT_CONSENT" | "TYPE_QWIKLAB"
    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.
    create_time string
    Create time stamp.
    id string
    The provider-assigned unique ID for this managed resource.
    update_time 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.

    Look up Existing Annotation Resource

    Get an existing Annotation resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, opts?: CustomResourceOptions): Annotation
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None) -> Annotation
    func GetAnnotation(ctx *Context, name string, id IDInput, state *AnnotationState, opts ...ResourceOption) (*Annotation, error)
    public static Annotation Get(string name, Input<string> id, CustomResourceOptions? opts = null)
    public static Annotation get(String name, Output<String> id, CustomResourceOptions options)
    resources:  existingAnnotation:    type: google-native:rapidmigrationassessment/v1:Annotation    get:      id: ${id}
    import {
      to = google-native_rapidmigrationassessment_v1_annotation.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    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 resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state AnnotationState
    Pass nil. This resource has no state arguments.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Supporting Types

    AnnotationType

    Type of an annotation.

    NameValueDescription
    TypeUnspecifiedTYPE_UNSPECIFIEDUnknown type
    TypeLegacyExportConsentTYPE_LEGACY_EXPORT_CONSENTIndicates that this project has opted into StratoZone export.
    TypeQwiklabTYPE_QWIKLABIndicates that this project is created by Qwiklab.
    NameValueDescription
    AnnotationTypeTypeUnspecifiedTYPE_UNSPECIFIEDUnknown type
    AnnotationTypeTypeLegacyExportConsentTYPE_LEGACY_EXPORT_CONSENTIndicates that this project has opted into StratoZone export.
    AnnotationTypeTypeQwiklabTYPE_QWIKLABIndicates that this project is created by Qwiklab.
    ValueDescription
    TYPE_UNSPECIFIEDUnknown type
    TYPE_LEGACY_EXPORT_CONSENTIndicates that this project has opted into StratoZone export.
    TYPE_QWIKLABIndicates that this project is created by Qwiklab.
    NameValueDescription
    TypeUnspecifiedTYPE_UNSPECIFIEDUnknown type
    TypeLegacyExportConsentTYPE_LEGACY_EXPORT_CONSENTIndicates that this project has opted into StratoZone export.
    TypeQwiklabTYPE_QWIKLABIndicates that this project is created by Qwiklab.
    NameValueDescription
    TypeUnspecifiedTYPE_UNSPECIFIEDUnknown type
    TypeLegacyExportConsentTYPE_LEGACY_EXPORT_CONSENTIndicates that this project has opted into StratoZone export.
    TypeQwiklabTYPE_QWIKLABIndicates that this project is created by Qwiklab.
    NameValueDescription
    TYPE_UNSPECIFIEDTYPE_UNSPECIFIEDUnknown type
    TYPE_LEGACY_EXPORT_CONSENTTYPE_LEGACY_EXPORT_CONSENTIndicates that this project has opted into StratoZone export.
    TYPE_QWIKLABTYPE_QWIKLABIndicates that this project is created by Qwiklab.
    ValueDescription
    TYPE_UNSPECIFIEDUnknown type
    TYPE_LEGACY_EXPORT_CONSENTIndicates that this project has opted into StratoZone export.
    TYPE_QWIKLABIndicates that this project is created by Qwiklab.

    Package Details

    Repository
    Google Cloud Native pulumi/pulumi-google-native
    License
    Apache-2.0
    google-native logo Google Cloud Native

    This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.

    Viewing docs for Google Cloud Native v0.32.0
    published on Wednesday, Nov 29, 2023 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial