Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.compute/v1.License
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Create a License resource in the specified project. Caution This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
Create License Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new License(name: string, args?: LicenseArgs, opts?: CustomResourceOptions);
@overload
def License(resource_name: str,
args: Optional[LicenseArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def License(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
request_id: Optional[str] = None,
resource_requirements: Optional[LicenseResourceRequirementsArgs] = None,
transferable: Optional[bool] = None)
func NewLicense(ctx *Context, name string, args *LicenseArgs, opts ...ResourceOption) (*License, error)
public License(string name, LicenseArgs? args = null, CustomResourceOptions? opts = null)
public License(String name, LicenseArgs args)
public License(String name, LicenseArgs args, CustomResourceOptions options)
type: google-native:compute/v1:License
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 LicenseArgs
- 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 LicenseArgs
- 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 LicenseArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LicenseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LicenseArgs
- 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 examplelicenseResourceResourceFromComputev1 = new GoogleNative.Compute.V1.License("examplelicenseResourceResourceFromComputev1", new()
{
Description = "string",
Name = "string",
Project = "string",
RequestId = "string",
ResourceRequirements = new GoogleNative.Compute.V1.Inputs.LicenseResourceRequirementsArgs
{
MinGuestCpuCount = 0,
MinMemoryMb = 0,
},
Transferable = false,
});
example, err := computev1.NewLicense(ctx, "examplelicenseResourceResourceFromComputev1", &computev1.LicenseArgs{
Description: pulumi.String("string"),
Name: pulumi.String("string"),
Project: pulumi.String("string"),
RequestId: pulumi.String("string"),
ResourceRequirements: &compute.LicenseResourceRequirementsArgs{
MinGuestCpuCount: pulumi.Int(0),
MinMemoryMb: pulumi.Int(0),
},
Transferable: pulumi.Bool(false),
})
var examplelicenseResourceResourceFromComputev1 = new License("examplelicenseResourceResourceFromComputev1", LicenseArgs.builder()
.description("string")
.name("string")
.project("string")
.requestId("string")
.resourceRequirements(LicenseResourceRequirementsArgs.builder()
.minGuestCpuCount(0)
.minMemoryMb(0)
.build())
.transferable(false)
.build());
examplelicense_resource_resource_from_computev1 = google_native.compute.v1.License("examplelicenseResourceResourceFromComputev1",
description="string",
name="string",
project="string",
request_id="string",
resource_requirements=google_native.compute.v1.LicenseResourceRequirementsArgs(
min_guest_cpu_count=0,
min_memory_mb=0,
),
transferable=False)
const examplelicenseResourceResourceFromComputev1 = new google_native.compute.v1.License("examplelicenseResourceResourceFromComputev1", {
description: "string",
name: "string",
project: "string",
requestId: "string",
resourceRequirements: {
minGuestCpuCount: 0,
minMemoryMb: 0,
},
transferable: false,
});
type: google-native:compute/v1:License
properties:
description: string
name: string
project: string
requestId: string
resourceRequirements:
minGuestCpuCount: 0
minMemoryMb: 0
transferable: false
License Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The License resource accepts the following input properties:
- Description string
- An optional textual description of the resource; provided by the client when the resource is created.
- Name string
- Name of the resource. The name must be 1-63 characters long and comply with RFC1035.
- Project string
- Request
Id string - An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
- Resource
Requirements Pulumi.Google Native. Compute. V1. Inputs. License Resource Requirements - Transferable bool
- If false, licenses will not be copied from the source resource when creating an image from a disk, disk from snapshot, or snapshot from disk.
- Description string
- An optional textual description of the resource; provided by the client when the resource is created.
- Name string
- Name of the resource. The name must be 1-63 characters long and comply with RFC1035.
- Project string
- Request
Id string - An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
- Resource
Requirements LicenseResource Requirements Args - Transferable bool
- If false, licenses will not be copied from the source resource when creating an image from a disk, disk from snapshot, or snapshot from disk.
- description String
- An optional textual description of the resource; provided by the client when the resource is created.
- name String
- Name of the resource. The name must be 1-63 characters long and comply with RFC1035.
- project String
- request
Id String - An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
- resource
Requirements LicenseResource Requirements - transferable Boolean
- If false, licenses will not be copied from the source resource when creating an image from a disk, disk from snapshot, or snapshot from disk.
- description string
- An optional textual description of the resource; provided by the client when the resource is created.
- name string
- Name of the resource. The name must be 1-63 characters long and comply with RFC1035.
- project string
- request
Id string - An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
- resource
Requirements LicenseResource Requirements - transferable boolean
- If false, licenses will not be copied from the source resource when creating an image from a disk, disk from snapshot, or snapshot from disk.
- description str
- An optional textual description of the resource; provided by the client when the resource is created.
- name str
- Name of the resource. The name must be 1-63 characters long and comply with RFC1035.
- project str
- request_
id str - An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
- resource_
requirements LicenseResource Requirements Args - transferable bool
- If false, licenses will not be copied from the source resource when creating an image from a disk, disk from snapshot, or snapshot from disk.
- description String
- An optional textual description of the resource; provided by the client when the resource is created.
- name String
- Name of the resource. The name must be 1-63 characters long and comply with RFC1035.
- project String
- request
Id String - An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
- resource
Requirements Property Map - transferable Boolean
- If false, licenses will not be copied from the source resource when creating an image from a disk, disk from snapshot, or snapshot from disk.
Outputs
All input properties are implicitly available as output properties. Additionally, the License resource produces the following output properties:
- Charges
Use boolFee - Deprecated. This field no longer reflects whether a license charges a usage fee.
- Creation
Timestamp string - Creation timestamp in RFC3339 text format.
- Id string
- The provider-assigned unique ID for this managed resource.
- Kind string
- Type of resource. Always compute#license for licenses.
- License
Code string - The unique code used to attach this license to images, snapshots, and disks.
- Self
Link string - Server-defined URL for the resource.
- Charges
Use boolFee - Deprecated. This field no longer reflects whether a license charges a usage fee.
- Creation
Timestamp string - Creation timestamp in RFC3339 text format.
- Id string
- The provider-assigned unique ID for this managed resource.
- Kind string
- Type of resource. Always compute#license for licenses.
- License
Code string - The unique code used to attach this license to images, snapshots, and disks.
- Self
Link string - Server-defined URL for the resource.
- charges
Use BooleanFee - Deprecated. This field no longer reflects whether a license charges a usage fee.
- creation
Timestamp String - Creation timestamp in RFC3339 text format.
- id String
- The provider-assigned unique ID for this managed resource.
- kind String
- Type of resource. Always compute#license for licenses.
- license
Code String - The unique code used to attach this license to images, snapshots, and disks.
- self
Link String - Server-defined URL for the resource.
- charges
Use booleanFee - Deprecated. This field no longer reflects whether a license charges a usage fee.
- creation
Timestamp string - Creation timestamp in RFC3339 text format.
- id string
- The provider-assigned unique ID for this managed resource.
- kind string
- Type of resource. Always compute#license for licenses.
- license
Code string - The unique code used to attach this license to images, snapshots, and disks.
- self
Link string - Server-defined URL for the resource.
- charges_
use_ boolfee - Deprecated. This field no longer reflects whether a license charges a usage fee.
- creation_
timestamp str - Creation timestamp in RFC3339 text format.
- id str
- The provider-assigned unique ID for this managed resource.
- kind str
- Type of resource. Always compute#license for licenses.
- license_
code str - The unique code used to attach this license to images, snapshots, and disks.
- self_
link str - Server-defined URL for the resource.
- charges
Use BooleanFee - Deprecated. This field no longer reflects whether a license charges a usage fee.
- creation
Timestamp String - Creation timestamp in RFC3339 text format.
- id String
- The provider-assigned unique ID for this managed resource.
- kind String
- Type of resource. Always compute#license for licenses.
- license
Code String - The unique code used to attach this license to images, snapshots, and disks.
- self
Link String - Server-defined URL for the resource.
Supporting Types
LicenseResourceRequirements, LicenseResourceRequirementsArgs
- Min
Guest intCpu Count - Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
- Min
Memory intMb - Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
- Min
Guest intCpu Count - Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
- Min
Memory intMb - Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
- min
Guest IntegerCpu Count - Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
- min
Memory IntegerMb - Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
- min
Guest numberCpu Count - Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
- min
Memory numberMb - Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
- min_
guest_ intcpu_ count - Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
- min_
memory_ intmb - Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
- min
Guest NumberCpu Count - Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
- min
Memory NumberMb - Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
LicenseResourceRequirementsResponse, LicenseResourceRequirementsResponseArgs
- Min
Guest intCpu Count - Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
- Min
Memory intMb - Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
- Min
Guest intCpu Count - Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
- Min
Memory intMb - Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
- min
Guest IntegerCpu Count - Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
- min
Memory IntegerMb - Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
- min
Guest numberCpu Count - Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
- min
Memory numberMb - Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
- min_
guest_ intcpu_ count - Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
- min_
memory_ intmb - Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
- min
Guest NumberCpu Count - Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
- min
Memory NumberMb - Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
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.