Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.compute/beta.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/beta: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 google_nativeLicenseResource = new GoogleNative.Compute.Beta.License("google-nativeLicenseResource", new()
{
Description = "string",
Name = "string",
Project = "string",
RequestId = "string",
ResourceRequirements = new GoogleNative.Compute.Beta.Inputs.LicenseResourceRequirementsArgs
{
MinGuestCpuCount = 0,
MinMemoryMb = 0,
},
Transferable = false,
});
example, err := computebeta.NewLicense(ctx, "google-nativeLicenseResource", &computebeta.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 google_nativeLicenseResource = new License("google-nativeLicenseResource", LicenseArgs.builder()
.description("string")
.name("string")
.project("string")
.requestId("string")
.resourceRequirements(LicenseResourceRequirementsArgs.builder()
.minGuestCpuCount(0)
.minMemoryMb(0)
.build())
.transferable(false)
.build());
google_native_license_resource = google_native.compute.beta.License("google-nativeLicenseResource",
description="string",
name="string",
project="string",
request_id="string",
resource_requirements={
"min_guest_cpu_count": 0,
"min_memory_mb": 0,
},
transferable=False)
const google_nativeLicenseResource = new google_native.compute.beta.License("google-nativeLicenseResource", {
description: "string",
name: "string",
project: "string",
requestId: "string",
resourceRequirements: {
minGuestCpuCount: 0,
minMemoryMb: 0,
},
transferable: false,
});
type: google-native:compute/beta: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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
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. Beta. 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.