1. Packages
  2. Google Cloud Native
  3. API Docs
  4. compute
  5. compute/v1
  6. License

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

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

google-native.compute/v1.License

Explore with Pulumi AI

google-native logo

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

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

    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.

    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
    RequestId 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).
    ResourceRequirements Pulumi.GoogleNative.Compute.V1.Inputs.LicenseResourceRequirements
    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
    RequestId 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).
    ResourceRequirements LicenseResourceRequirementsArgs
    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
    requestId 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).
    resourceRequirements LicenseResourceRequirements
    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
    requestId 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).
    resourceRequirements LicenseResourceRequirements
    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 LicenseResourceRequirementsArgs
    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
    requestId 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).
    resourceRequirements 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:

    ChargesUseFee bool
    Deprecated. This field no longer reflects whether a license charges a usage fee.

    Deprecated: [Output Only] Deprecated. This field no longer reflects whether a license charges a usage fee.

    CreationTimestamp 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.
    LicenseCode string
    The unique code used to attach this license to images, snapshots, and disks.
    SelfLink string
    Server-defined URL for the resource.
    ChargesUseFee bool
    Deprecated. This field no longer reflects whether a license charges a usage fee.

    Deprecated: [Output Only] Deprecated. This field no longer reflects whether a license charges a usage fee.

    CreationTimestamp 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.
    LicenseCode string
    The unique code used to attach this license to images, snapshots, and disks.
    SelfLink string
    Server-defined URL for the resource.
    chargesUseFee Boolean
    Deprecated. This field no longer reflects whether a license charges a usage fee.

    Deprecated: [Output Only] Deprecated. This field no longer reflects whether a license charges a usage fee.

    creationTimestamp 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.
    licenseCode String
    The unique code used to attach this license to images, snapshots, and disks.
    selfLink String
    Server-defined URL for the resource.
    chargesUseFee boolean
    Deprecated. This field no longer reflects whether a license charges a usage fee.

    Deprecated: [Output Only] Deprecated. This field no longer reflects whether a license charges a usage fee.

    creationTimestamp 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.
    licenseCode string
    The unique code used to attach this license to images, snapshots, and disks.
    selfLink string
    Server-defined URL for the resource.
    charges_use_fee bool
    Deprecated. This field no longer reflects whether a license charges a usage fee.

    Deprecated: [Output Only] 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.
    chargesUseFee Boolean
    Deprecated. This field no longer reflects whether a license charges a usage fee.

    Deprecated: [Output Only] Deprecated. This field no longer reflects whether a license charges a usage fee.

    creationTimestamp 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.
    licenseCode String
    The unique code used to attach this license to images, snapshots, and disks.
    selfLink String
    Server-defined URL for the resource.

    Supporting Types

    LicenseResourceRequirements, LicenseResourceRequirementsArgs

    MinGuestCpuCount int
    Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
    MinMemoryMb int
    Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
    MinGuestCpuCount int
    Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
    MinMemoryMb int
    Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
    minGuestCpuCount Integer
    Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
    minMemoryMb Integer
    Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
    minGuestCpuCount number
    Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
    minMemoryMb number
    Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
    min_guest_cpu_count int
    Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
    min_memory_mb int
    Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
    minGuestCpuCount Number
    Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
    minMemoryMb Number
    Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.

    LicenseResourceRequirementsResponse, LicenseResourceRequirementsResponseArgs

    MinGuestCpuCount int
    Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
    MinMemoryMb int
    Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
    MinGuestCpuCount int
    Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
    MinMemoryMb int
    Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
    minGuestCpuCount Integer
    Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
    minMemoryMb Integer
    Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
    minGuestCpuCount number
    Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
    minMemoryMb number
    Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
    min_guest_cpu_count int
    Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
    min_memory_mb int
    Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
    minGuestCpuCount Number
    Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
    minMemoryMb Number
    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-native logo

    Google Cloud Native is in preview. Google Cloud Classic is fully supported.

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