This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.
published on Wednesday, Nov 29, 2023 by Pulumi
This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.
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 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 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
Annotation
Type - Type of an annotation.
Outputs
All input properties are implicitly available as output properties. Additionally, the Annotation resource produces the following output properties:
- Create
Time string - Create time stamp.
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Time 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.
- create_
time string - Create time stamp.
- id string
- The provider-assigned unique ID for this managed resource.
- update_
time 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.
- create
Time string - Create time stamp.
- id string
- The provider-assigned unique ID for this managed resource.
- update
Time 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.
- create
Time String - Create time stamp.
- id String
- The provider-assigned unique ID for this managed resource.
- update
Time 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) -> Annotationfunc 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.
| Name | Value | Description |
|---|---|---|
| Type | TYPE_UNSPECIFIED | Unknown type |
| Type | TYPE_LEGACY_EXPORT_CONSENT | Indicates that this project has opted into StratoZone export. |
| Type | TYPE_QWIKLAB | Indicates that this project is created by Qwiklab. |
| Name | Value | Description |
|---|---|---|
| Annotation | TYPE_UNSPECIFIED | Unknown type |
| Annotation | TYPE_LEGACY_EXPORT_CONSENT | Indicates that this project has opted into StratoZone export. |
| Annotation | TYPE_QWIKLAB | Indicates that this project is created by Qwiklab. |
| Value | Description |
|---|---|
TYPE_UNSPECIFIED | Unknown type |
TYPE_LEGACY_EXPORT_CONSENT | Indicates that this project has opted into StratoZone export. |
TYPE_QWIKLAB | Indicates that this project is created by Qwiklab. |
| Name | Value | Description |
|---|---|---|
| Type | TYPE_UNSPECIFIED | Unknown type |
| Type | TYPE_LEGACY_EXPORT_CONSENT | Indicates that this project has opted into StratoZone export. |
| Type | TYPE_QWIKLAB | Indicates that this project is created by Qwiklab. |
| Name | Value | Description |
|---|---|---|
| Type | TYPE_UNSPECIFIED | Unknown type |
| Type | TYPE_LEGACY_EXPORT_CONSENT | Indicates that this project has opted into StratoZone export. |
| Type | TYPE_QWIKLAB | Indicates that this project is created by Qwiklab. |
| Name | Value | Description |
|---|---|---|
| TYPE_UNSPECIFIED | TYPE_UNSPECIFIED | Unknown type |
| TYPE_LEGACY_EXPORT_CONSENT | TYPE_LEGACY_EXPORT_CONSENT | Indicates that this project has opted into StratoZone export. |
| TYPE_QWIKLAB | TYPE_QWIKLAB | Indicates that this project is created by Qwiklab. |
| Value | Description |
|---|---|
TYPE_UNSPECIFIED | Unknown type |
TYPE_LEGACY_EXPORT_CONSENT | Indicates that this project has opted into StratoZone export. |
TYPE_QWIKLAB | Indicates that this project is created by Qwiklab. |
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.
published on Wednesday, Nov 29, 2023 by Pulumi