marketplace

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PkgVersion added in v0.0.1

func PkgVersion() (semver.Version, error)

PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.

Types

type GetProductArgs

type GetProductArgs struct {
	// A available region id used to filter market place Ecs images.
	AvailableRegion *string `pulumi:"availableRegion"`
	// The product code of the market product.
	ProductCode string `pulumi:"productCode"`
}

A collection of arguments for invoking getProduct.

type GetProductOutputArgs

type GetProductOutputArgs struct {
	// A available region id used to filter market place Ecs images.
	AvailableRegion pulumi.StringPtrInput `pulumi:"availableRegion"`
	// The product code of the market product.
	ProductCode pulumi.StringInput `pulumi:"productCode"`
}

A collection of arguments for invoking getProduct.

func (GetProductOutputArgs) ElementType

func (GetProductOutputArgs) ElementType() reflect.Type

type GetProductProduct

type GetProductProduct struct {
	// The code of the product.
	Code string `pulumi:"code"`
	// The description of the product.
	Description string `pulumi:"description"`
	// The name of the product.
	Name string `pulumi:"name"`
	// A list of one element containing sku attributes of an object. Each element contains the following attributes:
	Skuses []GetProductProductSkus `pulumi:"skuses"`
}

type GetProductProductArgs

type GetProductProductArgs struct {
	// The code of the product.
	Code pulumi.StringInput `pulumi:"code"`
	// The description of the product.
	Description pulumi.StringInput `pulumi:"description"`
	// The name of the product.
	Name pulumi.StringInput `pulumi:"name"`
	// A list of one element containing sku attributes of an object. Each element contains the following attributes:
	Skuses GetProductProductSkusArrayInput `pulumi:"skuses"`
}

func (GetProductProductArgs) ElementType

func (GetProductProductArgs) ElementType() reflect.Type

func (GetProductProductArgs) ToGetProductProductOutput

func (i GetProductProductArgs) ToGetProductProductOutput() GetProductProductOutput

func (GetProductProductArgs) ToGetProductProductOutputWithContext

func (i GetProductProductArgs) ToGetProductProductOutputWithContext(ctx context.Context) GetProductProductOutput

type GetProductProductArray

type GetProductProductArray []GetProductProductInput

func (GetProductProductArray) ElementType

func (GetProductProductArray) ElementType() reflect.Type

func (GetProductProductArray) ToGetProductProductArrayOutput

func (i GetProductProductArray) ToGetProductProductArrayOutput() GetProductProductArrayOutput

func (GetProductProductArray) ToGetProductProductArrayOutputWithContext

func (i GetProductProductArray) ToGetProductProductArrayOutputWithContext(ctx context.Context) GetProductProductArrayOutput

type GetProductProductArrayInput

type GetProductProductArrayInput interface {
	pulumi.Input

	ToGetProductProductArrayOutput() GetProductProductArrayOutput
	ToGetProductProductArrayOutputWithContext(context.Context) GetProductProductArrayOutput
}

GetProductProductArrayInput is an input type that accepts GetProductProductArray and GetProductProductArrayOutput values. You can construct a concrete instance of `GetProductProductArrayInput` via:

GetProductProductArray{ GetProductProductArgs{...} }

type GetProductProductArrayOutput

type GetProductProductArrayOutput struct{ *pulumi.OutputState }

func (GetProductProductArrayOutput) ElementType

func (GetProductProductArrayOutput) Index

func (GetProductProductArrayOutput) ToGetProductProductArrayOutput

func (o GetProductProductArrayOutput) ToGetProductProductArrayOutput() GetProductProductArrayOutput

func (GetProductProductArrayOutput) ToGetProductProductArrayOutputWithContext

func (o GetProductProductArrayOutput) ToGetProductProductArrayOutputWithContext(ctx context.Context) GetProductProductArrayOutput

type GetProductProductInput

type GetProductProductInput interface {
	pulumi.Input

	ToGetProductProductOutput() GetProductProductOutput
	ToGetProductProductOutputWithContext(context.Context) GetProductProductOutput
}

GetProductProductInput is an input type that accepts GetProductProductArgs and GetProductProductOutput values. You can construct a concrete instance of `GetProductProductInput` via:

GetProductProductArgs{...}

type GetProductProductOutput

type GetProductProductOutput struct{ *pulumi.OutputState }

func (GetProductProductOutput) Code

The code of the product.

func (GetProductProductOutput) Description

The description of the product.

func (GetProductProductOutput) ElementType

func (GetProductProductOutput) ElementType() reflect.Type

func (GetProductProductOutput) Name

The name of the product.

func (GetProductProductOutput) Skuses

A list of one element containing sku attributes of an object. Each element contains the following attributes:

func (GetProductProductOutput) ToGetProductProductOutput

func (o GetProductProductOutput) ToGetProductProductOutput() GetProductProductOutput

func (GetProductProductOutput) ToGetProductProductOutputWithContext

func (o GetProductProductOutput) ToGetProductProductOutputWithContext(ctx context.Context) GetProductProductOutput

type GetProductProductSkus

type GetProductProductSkus struct {
	// The list of custom ECS images, Each element contains the following attributes:
	Images []GetProductProductSkusImage `pulumi:"images"`
	// The list of package version details of this product sku, Each element contains the following attributes:
	PackageVersions []GetProductProductSkusPackageVersion `pulumi:"packageVersions"`
	// The sku code of this product sku.
	SkuCode string `pulumi:"skuCode"`
	// The sku name of this product sku.
	SkuName string `pulumi:"skuName"`
}

type GetProductProductSkusArgs

type GetProductProductSkusArgs struct {
	// The list of custom ECS images, Each element contains the following attributes:
	Images GetProductProductSkusImageArrayInput `pulumi:"images"`
	// The list of package version details of this product sku, Each element contains the following attributes:
	PackageVersions GetProductProductSkusPackageVersionArrayInput `pulumi:"packageVersions"`
	// The sku code of this product sku.
	SkuCode pulumi.StringInput `pulumi:"skuCode"`
	// The sku name of this product sku.
	SkuName pulumi.StringInput `pulumi:"skuName"`
}

func (GetProductProductSkusArgs) ElementType

func (GetProductProductSkusArgs) ElementType() reflect.Type

func (GetProductProductSkusArgs) ToGetProductProductSkusOutput

func (i GetProductProductSkusArgs) ToGetProductProductSkusOutput() GetProductProductSkusOutput

func (GetProductProductSkusArgs) ToGetProductProductSkusOutputWithContext

func (i GetProductProductSkusArgs) ToGetProductProductSkusOutputWithContext(ctx context.Context) GetProductProductSkusOutput

type GetProductProductSkusArray

type GetProductProductSkusArray []GetProductProductSkusInput

func (GetProductProductSkusArray) ElementType

func (GetProductProductSkusArray) ElementType() reflect.Type

func (GetProductProductSkusArray) ToGetProductProductSkusArrayOutput

func (i GetProductProductSkusArray) ToGetProductProductSkusArrayOutput() GetProductProductSkusArrayOutput

func (GetProductProductSkusArray) ToGetProductProductSkusArrayOutputWithContext

func (i GetProductProductSkusArray) ToGetProductProductSkusArrayOutputWithContext(ctx context.Context) GetProductProductSkusArrayOutput

type GetProductProductSkusArrayInput

type GetProductProductSkusArrayInput interface {
	pulumi.Input

	ToGetProductProductSkusArrayOutput() GetProductProductSkusArrayOutput
	ToGetProductProductSkusArrayOutputWithContext(context.Context) GetProductProductSkusArrayOutput
}

GetProductProductSkusArrayInput is an input type that accepts GetProductProductSkusArray and GetProductProductSkusArrayOutput values. You can construct a concrete instance of `GetProductProductSkusArrayInput` via:

GetProductProductSkusArray{ GetProductProductSkusArgs{...} }

type GetProductProductSkusArrayOutput

type GetProductProductSkusArrayOutput struct{ *pulumi.OutputState }

func (GetProductProductSkusArrayOutput) ElementType

func (GetProductProductSkusArrayOutput) Index

func (GetProductProductSkusArrayOutput) ToGetProductProductSkusArrayOutput

func (o GetProductProductSkusArrayOutput) ToGetProductProductSkusArrayOutput() GetProductProductSkusArrayOutput

func (GetProductProductSkusArrayOutput) ToGetProductProductSkusArrayOutputWithContext

func (o GetProductProductSkusArrayOutput) ToGetProductProductSkusArrayOutputWithContext(ctx context.Context) GetProductProductSkusArrayOutput

type GetProductProductSkusImage

type GetProductProductSkusImage struct {
	// The Ecs image id.
	ImageId string `pulumi:"imageId"`
	// The Ecs image display name.
	ImageName string `pulumi:"imageName"`
	// The Ecs image region.
	RegionId string `pulumi:"regionId"`
}

type GetProductProductSkusImageArgs

type GetProductProductSkusImageArgs struct {
	// The Ecs image id.
	ImageId pulumi.StringInput `pulumi:"imageId"`
	// The Ecs image display name.
	ImageName pulumi.StringInput `pulumi:"imageName"`
	// The Ecs image region.
	RegionId pulumi.StringInput `pulumi:"regionId"`
}

func (GetProductProductSkusImageArgs) ElementType

func (GetProductProductSkusImageArgs) ToGetProductProductSkusImageOutput

func (i GetProductProductSkusImageArgs) ToGetProductProductSkusImageOutput() GetProductProductSkusImageOutput

func (GetProductProductSkusImageArgs) ToGetProductProductSkusImageOutputWithContext

func (i GetProductProductSkusImageArgs) ToGetProductProductSkusImageOutputWithContext(ctx context.Context) GetProductProductSkusImageOutput

type GetProductProductSkusImageArray

type GetProductProductSkusImageArray []GetProductProductSkusImageInput

func (GetProductProductSkusImageArray) ElementType

func (GetProductProductSkusImageArray) ToGetProductProductSkusImageArrayOutput

func (i GetProductProductSkusImageArray) ToGetProductProductSkusImageArrayOutput() GetProductProductSkusImageArrayOutput

func (GetProductProductSkusImageArray) ToGetProductProductSkusImageArrayOutputWithContext

func (i GetProductProductSkusImageArray) ToGetProductProductSkusImageArrayOutputWithContext(ctx context.Context) GetProductProductSkusImageArrayOutput

type GetProductProductSkusImageArrayInput

type GetProductProductSkusImageArrayInput interface {
	pulumi.Input

	ToGetProductProductSkusImageArrayOutput() GetProductProductSkusImageArrayOutput
	ToGetProductProductSkusImageArrayOutputWithContext(context.Context) GetProductProductSkusImageArrayOutput
}

GetProductProductSkusImageArrayInput is an input type that accepts GetProductProductSkusImageArray and GetProductProductSkusImageArrayOutput values. You can construct a concrete instance of `GetProductProductSkusImageArrayInput` via:

GetProductProductSkusImageArray{ GetProductProductSkusImageArgs{...} }

type GetProductProductSkusImageArrayOutput

type GetProductProductSkusImageArrayOutput struct{ *pulumi.OutputState }

func (GetProductProductSkusImageArrayOutput) ElementType

func (GetProductProductSkusImageArrayOutput) Index

func (GetProductProductSkusImageArrayOutput) ToGetProductProductSkusImageArrayOutput

func (o GetProductProductSkusImageArrayOutput) ToGetProductProductSkusImageArrayOutput() GetProductProductSkusImageArrayOutput

func (GetProductProductSkusImageArrayOutput) ToGetProductProductSkusImageArrayOutputWithContext

func (o GetProductProductSkusImageArrayOutput) ToGetProductProductSkusImageArrayOutputWithContext(ctx context.Context) GetProductProductSkusImageArrayOutput

type GetProductProductSkusImageInput

type GetProductProductSkusImageInput interface {
	pulumi.Input

	ToGetProductProductSkusImageOutput() GetProductProductSkusImageOutput
	ToGetProductProductSkusImageOutputWithContext(context.Context) GetProductProductSkusImageOutput
}

GetProductProductSkusImageInput is an input type that accepts GetProductProductSkusImageArgs and GetProductProductSkusImageOutput values. You can construct a concrete instance of `GetProductProductSkusImageInput` via:

GetProductProductSkusImageArgs{...}

type GetProductProductSkusImageOutput

type GetProductProductSkusImageOutput struct{ *pulumi.OutputState }

func (GetProductProductSkusImageOutput) ElementType

func (GetProductProductSkusImageOutput) ImageId

The Ecs image id.

func (GetProductProductSkusImageOutput) ImageName

The Ecs image display name.

func (GetProductProductSkusImageOutput) RegionId

The Ecs image region.

func (GetProductProductSkusImageOutput) ToGetProductProductSkusImageOutput

func (o GetProductProductSkusImageOutput) ToGetProductProductSkusImageOutput() GetProductProductSkusImageOutput

func (GetProductProductSkusImageOutput) ToGetProductProductSkusImageOutputWithContext

func (o GetProductProductSkusImageOutput) ToGetProductProductSkusImageOutputWithContext(ctx context.Context) GetProductProductSkusImageOutput

type GetProductProductSkusInput

type GetProductProductSkusInput interface {
	pulumi.Input

	ToGetProductProductSkusOutput() GetProductProductSkusOutput
	ToGetProductProductSkusOutputWithContext(context.Context) GetProductProductSkusOutput
}

GetProductProductSkusInput is an input type that accepts GetProductProductSkusArgs and GetProductProductSkusOutput values. You can construct a concrete instance of `GetProductProductSkusInput` via:

GetProductProductSkusArgs{...}

type GetProductProductSkusOutput

type GetProductProductSkusOutput struct{ *pulumi.OutputState }

func (GetProductProductSkusOutput) ElementType

func (GetProductProductSkusOutput) Images

The list of custom ECS images, Each element contains the following attributes:

func (GetProductProductSkusOutput) PackageVersions

The list of package version details of this product sku, Each element contains the following attributes:

func (GetProductProductSkusOutput) SkuCode

The sku code of this product sku.

func (GetProductProductSkusOutput) SkuName

The sku name of this product sku.

func (GetProductProductSkusOutput) ToGetProductProductSkusOutput

func (o GetProductProductSkusOutput) ToGetProductProductSkusOutput() GetProductProductSkusOutput

func (GetProductProductSkusOutput) ToGetProductProductSkusOutputWithContext

func (o GetProductProductSkusOutput) ToGetProductProductSkusOutputWithContext(ctx context.Context) GetProductProductSkusOutput

type GetProductProductSkusPackageVersion

type GetProductProductSkusPackageVersion struct {
	// The package name of this product sku package.
	PackageName string `pulumi:"packageName"`
	// The package version of this product sku package. Currently, the API products can return package_version, but others can not for ensure.
	PackageVersion string `pulumi:"packageVersion"`
}

type GetProductProductSkusPackageVersionArgs

type GetProductProductSkusPackageVersionArgs struct {
	// The package name of this product sku package.
	PackageName pulumi.StringInput `pulumi:"packageName"`
	// The package version of this product sku package. Currently, the API products can return package_version, but others can not for ensure.
	PackageVersion pulumi.StringInput `pulumi:"packageVersion"`
}

func (GetProductProductSkusPackageVersionArgs) ElementType

func (GetProductProductSkusPackageVersionArgs) ToGetProductProductSkusPackageVersionOutput

func (i GetProductProductSkusPackageVersionArgs) ToGetProductProductSkusPackageVersionOutput() GetProductProductSkusPackageVersionOutput

func (GetProductProductSkusPackageVersionArgs) ToGetProductProductSkusPackageVersionOutputWithContext

func (i GetProductProductSkusPackageVersionArgs) ToGetProductProductSkusPackageVersionOutputWithContext(ctx context.Context) GetProductProductSkusPackageVersionOutput

type GetProductProductSkusPackageVersionArray

type GetProductProductSkusPackageVersionArray []GetProductProductSkusPackageVersionInput

func (GetProductProductSkusPackageVersionArray) ElementType

func (GetProductProductSkusPackageVersionArray) ToGetProductProductSkusPackageVersionArrayOutput

func (i GetProductProductSkusPackageVersionArray) ToGetProductProductSkusPackageVersionArrayOutput() GetProductProductSkusPackageVersionArrayOutput

func (GetProductProductSkusPackageVersionArray) ToGetProductProductSkusPackageVersionArrayOutputWithContext

func (i GetProductProductSkusPackageVersionArray) ToGetProductProductSkusPackageVersionArrayOutputWithContext(ctx context.Context) GetProductProductSkusPackageVersionArrayOutput

type GetProductProductSkusPackageVersionArrayInput

type GetProductProductSkusPackageVersionArrayInput interface {
	pulumi.Input

	ToGetProductProductSkusPackageVersionArrayOutput() GetProductProductSkusPackageVersionArrayOutput
	ToGetProductProductSkusPackageVersionArrayOutputWithContext(context.Context) GetProductProductSkusPackageVersionArrayOutput
}

GetProductProductSkusPackageVersionArrayInput is an input type that accepts GetProductProductSkusPackageVersionArray and GetProductProductSkusPackageVersionArrayOutput values. You can construct a concrete instance of `GetProductProductSkusPackageVersionArrayInput` via:

GetProductProductSkusPackageVersionArray{ GetProductProductSkusPackageVersionArgs{...} }

type GetProductProductSkusPackageVersionArrayOutput

type GetProductProductSkusPackageVersionArrayOutput struct{ *pulumi.OutputState }

func (GetProductProductSkusPackageVersionArrayOutput) ElementType

func (GetProductProductSkusPackageVersionArrayOutput) Index

func (GetProductProductSkusPackageVersionArrayOutput) ToGetProductProductSkusPackageVersionArrayOutput

func (o GetProductProductSkusPackageVersionArrayOutput) ToGetProductProductSkusPackageVersionArrayOutput() GetProductProductSkusPackageVersionArrayOutput

func (GetProductProductSkusPackageVersionArrayOutput) ToGetProductProductSkusPackageVersionArrayOutputWithContext

func (o GetProductProductSkusPackageVersionArrayOutput) ToGetProductProductSkusPackageVersionArrayOutputWithContext(ctx context.Context) GetProductProductSkusPackageVersionArrayOutput

type GetProductProductSkusPackageVersionInput

type GetProductProductSkusPackageVersionInput interface {
	pulumi.Input

	ToGetProductProductSkusPackageVersionOutput() GetProductProductSkusPackageVersionOutput
	ToGetProductProductSkusPackageVersionOutputWithContext(context.Context) GetProductProductSkusPackageVersionOutput
}

GetProductProductSkusPackageVersionInput is an input type that accepts GetProductProductSkusPackageVersionArgs and GetProductProductSkusPackageVersionOutput values. You can construct a concrete instance of `GetProductProductSkusPackageVersionInput` via:

GetProductProductSkusPackageVersionArgs{...}

type GetProductProductSkusPackageVersionOutput

type GetProductProductSkusPackageVersionOutput struct{ *pulumi.OutputState }

func (GetProductProductSkusPackageVersionOutput) ElementType

func (GetProductProductSkusPackageVersionOutput) PackageName

The package name of this product sku package.

func (GetProductProductSkusPackageVersionOutput) PackageVersion

The package version of this product sku package. Currently, the API products can return package_version, but others can not for ensure.

func (GetProductProductSkusPackageVersionOutput) ToGetProductProductSkusPackageVersionOutput

func (o GetProductProductSkusPackageVersionOutput) ToGetProductProductSkusPackageVersionOutput() GetProductProductSkusPackageVersionOutput

func (GetProductProductSkusPackageVersionOutput) ToGetProductProductSkusPackageVersionOutputWithContext

func (o GetProductProductSkusPackageVersionOutput) ToGetProductProductSkusPackageVersionOutputWithContext(ctx context.Context) GetProductProductSkusPackageVersionOutput

type GetProductResult

type GetProductResult struct {
	AvailableRegion *string `pulumi:"availableRegion"`
	// The provider-assigned unique ID for this managed resource.
	Id          string `pulumi:"id"`
	ProductCode string `pulumi:"productCode"`
	// A product. It contains the following attributes:
	Products []GetProductProduct `pulumi:"products"`
}

A collection of values returned by getProduct.

func GetProduct

func GetProduct(ctx *pulumi.Context, args *GetProductArgs, opts ...pulumi.InvokeOption) (*GetProductResult, error)

This data source provides the Market product item details of Alibaba Cloud.

> **NOTE:** Available in 1.69.0+

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/marketplace"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/marketplace"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := marketplace.GetProduct(ctx, &marketplace.GetProductArgs{
			ProductCode: "cmapi022206",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("productName", _default.Products[0].Name)
		ctx.Export("firstProductSkuCode", _default.Products[0].Skuses[0].SkuCode)
		ctx.Export("firstProductPackageVersion", _default.Products[0].Skuses[0].PackageVersions[0].PackageVersion)
		return nil
	})
}

```

type GetProductResultOutput

type GetProductResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getProduct.

func (GetProductResultOutput) AvailableRegion

func (o GetProductResultOutput) AvailableRegion() pulumi.StringPtrOutput

func (GetProductResultOutput) ElementType

func (GetProductResultOutput) ElementType() reflect.Type

func (GetProductResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetProductResultOutput) ProductCode

func (o GetProductResultOutput) ProductCode() pulumi.StringOutput

func (GetProductResultOutput) Products

A product. It contains the following attributes:

func (GetProductResultOutput) ToGetProductResultOutput

func (o GetProductResultOutput) ToGetProductResultOutput() GetProductResultOutput

func (GetProductResultOutput) ToGetProductResultOutputWithContext

func (o GetProductResultOutput) ToGetProductResultOutputWithContext(ctx context.Context) GetProductResultOutput

type GetProductsArgs

type GetProductsArgs struct {
	// The Category ID of products. For more information, see [DescribeProducts](https://help.aliyun.com/document_detail/89834.htm).
	CategoryId *string `pulumi:"categoryId"`
	// A list of product code.
	Ids []string `pulumi:"ids"`
	// A regex string to apply to the product name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
	// The type of products, Valid values: `APP`, `SERVICE`, `MIRROR`, `DOWNLOAD` and `API_SERVICE`.
	ProductType *string `pulumi:"productType"`
	// Search term in this query.
	SearchTerm *string `pulumi:"searchTerm"`
	// This field determines how to sort the filtered results, Valid values: `user_count-desc`, `created_on-desc`, `price-desc` and `score-desc`.
	Sort *string `pulumi:"sort"`
	// The suggested price of the product.
	SuggestedPrice *float64 `pulumi:"suggestedPrice"`
	// The supplier id of the product.
	SupplierId *string `pulumi:"supplierId"`
	// The supplier name keyword of the product.
	SupplierNameKeyword *string `pulumi:"supplierNameKeyword"`
}

A collection of arguments for invoking getProducts.

type GetProductsOutputArgs

type GetProductsOutputArgs struct {
	// The Category ID of products. For more information, see [DescribeProducts](https://help.aliyun.com/document_detail/89834.htm).
	CategoryId pulumi.StringPtrInput `pulumi:"categoryId"`
	// A list of product code.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to apply to the product name.
	NameRegex  pulumi.StringPtrInput `pulumi:"nameRegex"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The type of products, Valid values: `APP`, `SERVICE`, `MIRROR`, `DOWNLOAD` and `API_SERVICE`.
	ProductType pulumi.StringPtrInput `pulumi:"productType"`
	// Search term in this query.
	SearchTerm pulumi.StringPtrInput `pulumi:"searchTerm"`
	// This field determines how to sort the filtered results, Valid values: `user_count-desc`, `created_on-desc`, `price-desc` and `score-desc`.
	Sort pulumi.StringPtrInput `pulumi:"sort"`
	// The suggested price of the product.
	SuggestedPrice pulumi.Float64PtrInput `pulumi:"suggestedPrice"`
	// The supplier id of the product.
	SupplierId pulumi.StringPtrInput `pulumi:"supplierId"`
	// The supplier name keyword of the product.
	SupplierNameKeyword pulumi.StringPtrInput `pulumi:"supplierNameKeyword"`
}

A collection of arguments for invoking getProducts.

func (GetProductsOutputArgs) ElementType

func (GetProductsOutputArgs) ElementType() reflect.Type

type GetProductsProduct

type GetProductsProduct struct {
	// The Category ID of products. For more information, see [DescribeProducts](https://help.aliyun.com/document_detail/89834.htm).
	CategoryId int `pulumi:"categoryId"`
	// The code of the product.
	Code string `pulumi:"code"`
	// The delivery date of the product.
	DeliveryDate string `pulumi:"deliveryDate"`
	// The delivery way of the product.
	DeliveryWay string `pulumi:"deliveryWay"`
	// The image URL of the product.
	ImageUrl string `pulumi:"imageUrl"`
	// The name of the product.
	Name string `pulumi:"name"`
	// The operation system of the product.
	OperationSystem string `pulumi:"operationSystem"`
	// The rating information of the product.
	Score string `pulumi:"score"`
	// The short description of the product.
	ShortDescription string `pulumi:"shortDescription"`
	// The suggested price of the product.
	SuggestedPrice string `pulumi:"suggestedPrice"`
	// The supplier id of the product.
	SupplierId int `pulumi:"supplierId"`
	// The supplier name of the product.
	SupplierName string `pulumi:"supplierName"`
	// The tags of the product.
	Tags string `pulumi:"tags"`
	// The detail page URL of the product.
	TargetUrl string `pulumi:"targetUrl"`
	// The warranty date of the product.
	WarrantyDate string `pulumi:"warrantyDate"`
}

type GetProductsProductArgs

type GetProductsProductArgs struct {
	// The Category ID of products. For more information, see [DescribeProducts](https://help.aliyun.com/document_detail/89834.htm).
	CategoryId pulumi.IntInput `pulumi:"categoryId"`
	// The code of the product.
	Code pulumi.StringInput `pulumi:"code"`
	// The delivery date of the product.
	DeliveryDate pulumi.StringInput `pulumi:"deliveryDate"`
	// The delivery way of the product.
	DeliveryWay pulumi.StringInput `pulumi:"deliveryWay"`
	// The image URL of the product.
	ImageUrl pulumi.StringInput `pulumi:"imageUrl"`
	// The name of the product.
	Name pulumi.StringInput `pulumi:"name"`
	// The operation system of the product.
	OperationSystem pulumi.StringInput `pulumi:"operationSystem"`
	// The rating information of the product.
	Score pulumi.StringInput `pulumi:"score"`
	// The short description of the product.
	ShortDescription pulumi.StringInput `pulumi:"shortDescription"`
	// The suggested price of the product.
	SuggestedPrice pulumi.StringInput `pulumi:"suggestedPrice"`
	// The supplier id of the product.
	SupplierId pulumi.IntInput `pulumi:"supplierId"`
	// The supplier name of the product.
	SupplierName pulumi.StringInput `pulumi:"supplierName"`
	// The tags of the product.
	Tags pulumi.StringInput `pulumi:"tags"`
	// The detail page URL of the product.
	TargetUrl pulumi.StringInput `pulumi:"targetUrl"`
	// The warranty date of the product.
	WarrantyDate pulumi.StringInput `pulumi:"warrantyDate"`
}

func (GetProductsProductArgs) ElementType

func (GetProductsProductArgs) ElementType() reflect.Type

func (GetProductsProductArgs) ToGetProductsProductOutput

func (i GetProductsProductArgs) ToGetProductsProductOutput() GetProductsProductOutput

func (GetProductsProductArgs) ToGetProductsProductOutputWithContext

func (i GetProductsProductArgs) ToGetProductsProductOutputWithContext(ctx context.Context) GetProductsProductOutput

type GetProductsProductArray

type GetProductsProductArray []GetProductsProductInput

func (GetProductsProductArray) ElementType

func (GetProductsProductArray) ElementType() reflect.Type

func (GetProductsProductArray) ToGetProductsProductArrayOutput

func (i GetProductsProductArray) ToGetProductsProductArrayOutput() GetProductsProductArrayOutput

func (GetProductsProductArray) ToGetProductsProductArrayOutputWithContext

func (i GetProductsProductArray) ToGetProductsProductArrayOutputWithContext(ctx context.Context) GetProductsProductArrayOutput

type GetProductsProductArrayInput

type GetProductsProductArrayInput interface {
	pulumi.Input

	ToGetProductsProductArrayOutput() GetProductsProductArrayOutput
	ToGetProductsProductArrayOutputWithContext(context.Context) GetProductsProductArrayOutput
}

GetProductsProductArrayInput is an input type that accepts GetProductsProductArray and GetProductsProductArrayOutput values. You can construct a concrete instance of `GetProductsProductArrayInput` via:

GetProductsProductArray{ GetProductsProductArgs{...} }

type GetProductsProductArrayOutput

type GetProductsProductArrayOutput struct{ *pulumi.OutputState }

func (GetProductsProductArrayOutput) ElementType

func (GetProductsProductArrayOutput) Index

func (GetProductsProductArrayOutput) ToGetProductsProductArrayOutput

func (o GetProductsProductArrayOutput) ToGetProductsProductArrayOutput() GetProductsProductArrayOutput

func (GetProductsProductArrayOutput) ToGetProductsProductArrayOutputWithContext

func (o GetProductsProductArrayOutput) ToGetProductsProductArrayOutputWithContext(ctx context.Context) GetProductsProductArrayOutput

type GetProductsProductInput

type GetProductsProductInput interface {
	pulumi.Input

	ToGetProductsProductOutput() GetProductsProductOutput
	ToGetProductsProductOutputWithContext(context.Context) GetProductsProductOutput
}

GetProductsProductInput is an input type that accepts GetProductsProductArgs and GetProductsProductOutput values. You can construct a concrete instance of `GetProductsProductInput` via:

GetProductsProductArgs{...}

type GetProductsProductOutput

type GetProductsProductOutput struct{ *pulumi.OutputState }

func (GetProductsProductOutput) CategoryId

func (o GetProductsProductOutput) CategoryId() pulumi.IntOutput

The Category ID of products. For more information, see [DescribeProducts](https://help.aliyun.com/document_detail/89834.htm).

func (GetProductsProductOutput) Code

The code of the product.

func (GetProductsProductOutput) DeliveryDate

func (o GetProductsProductOutput) DeliveryDate() pulumi.StringOutput

The delivery date of the product.

func (GetProductsProductOutput) DeliveryWay

The delivery way of the product.

func (GetProductsProductOutput) ElementType

func (GetProductsProductOutput) ElementType() reflect.Type

func (GetProductsProductOutput) ImageUrl

The image URL of the product.

func (GetProductsProductOutput) Name

The name of the product.

func (GetProductsProductOutput) OperationSystem

func (o GetProductsProductOutput) OperationSystem() pulumi.StringOutput

The operation system of the product.

func (GetProductsProductOutput) Score

The rating information of the product.

func (GetProductsProductOutput) ShortDescription

func (o GetProductsProductOutput) ShortDescription() pulumi.StringOutput

The short description of the product.

func (GetProductsProductOutput) SuggestedPrice

func (o GetProductsProductOutput) SuggestedPrice() pulumi.StringOutput

The suggested price of the product.

func (GetProductsProductOutput) SupplierId

func (o GetProductsProductOutput) SupplierId() pulumi.IntOutput

The supplier id of the product.

func (GetProductsProductOutput) SupplierName

func (o GetProductsProductOutput) SupplierName() pulumi.StringOutput

The supplier name of the product.

func (GetProductsProductOutput) Tags

The tags of the product.

func (GetProductsProductOutput) TargetUrl

The detail page URL of the product.

func (GetProductsProductOutput) ToGetProductsProductOutput

func (o GetProductsProductOutput) ToGetProductsProductOutput() GetProductsProductOutput

func (GetProductsProductOutput) ToGetProductsProductOutputWithContext

func (o GetProductsProductOutput) ToGetProductsProductOutputWithContext(ctx context.Context) GetProductsProductOutput

func (GetProductsProductOutput) WarrantyDate

func (o GetProductsProductOutput) WarrantyDate() pulumi.StringOutput

The warranty date of the product.

type GetProductsResult

type GetProductsResult struct {
	// The category id of the product.
	CategoryId *string `pulumi:"categoryId"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of product codes.
	Ids         []string `pulumi:"ids"`
	NameRegex   *string  `pulumi:"nameRegex"`
	OutputFile  *string  `pulumi:"outputFile"`
	ProductType *string  `pulumi:"productType"`
	// A list of products. Each element contains the following attributes:
	Products   []GetProductsProduct `pulumi:"products"`
	SearchTerm *string              `pulumi:"searchTerm"`
	Sort       *string              `pulumi:"sort"`
	// The suggested price of the product.
	SuggestedPrice *float64 `pulumi:"suggestedPrice"`
	// The supplier id of the product.
	SupplierId          *string `pulumi:"supplierId"`
	SupplierNameKeyword *string `pulumi:"supplierNameKeyword"`
}

A collection of values returned by getProducts.

func GetProducts

func GetProducts(ctx *pulumi.Context, args *GetProductsArgs, opts ...pulumi.InvokeOption) (*GetProductsResult, error)

This data source provides the Market product items of Alibaba Cloud.

> **NOTE:** Available in 1.64.0+

type GetProductsResultOutput

type GetProductsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getProducts.

func (GetProductsResultOutput) CategoryId

The category id of the product.

func (GetProductsResultOutput) ElementType

func (GetProductsResultOutput) ElementType() reflect.Type

func (GetProductsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetProductsResultOutput) Ids

A list of product codes.

func (GetProductsResultOutput) NameRegex

func (GetProductsResultOutput) OutputFile

func (GetProductsResultOutput) ProductType

func (GetProductsResultOutput) Products

A list of products. Each element contains the following attributes:

func (GetProductsResultOutput) SearchTerm

func (GetProductsResultOutput) Sort

func (GetProductsResultOutput) SuggestedPrice

func (o GetProductsResultOutput) SuggestedPrice() pulumi.Float64PtrOutput

The suggested price of the product.

func (GetProductsResultOutput) SupplierId

The supplier id of the product.

func (GetProductsResultOutput) SupplierNameKeyword

func (o GetProductsResultOutput) SupplierNameKeyword() pulumi.StringPtrOutput

func (GetProductsResultOutput) ToGetProductsResultOutput

func (o GetProductsResultOutput) ToGetProductsResultOutput() GetProductsResultOutput

func (GetProductsResultOutput) ToGetProductsResultOutputWithContext

func (o GetProductsResultOutput) ToGetProductsResultOutputWithContext(ctx context.Context) GetProductsResultOutput

type Order

type Order struct {
	pulumi.CustomResourceState

	// Service providers customize additional components.
	Components pulumi.MapOutput `pulumi:"components"`
	// The coupon id of the market product.
	CouponId pulumi.StringPtrOutput `pulumi:"couponId"`
	// The number of purchase cycles.
	Duration pulumi.IntPtrOutput `pulumi:"duration"`
	// The package version of the market product.
	PackageVersion pulumi.StringOutput `pulumi:"packageVersion"`
	// Valid values are `PrePaid`, `PostPaid`,System default to `PostPaid`.
	PayType pulumi.StringPtrOutput `pulumi:"payType"`
	// The purchase cycle of the product, valid values are `Day`, `Month` and `Year`.
	PricingCycle pulumi.StringOutput `pulumi:"pricingCycle"`
	// The productCode of market place product.
	ProductCode pulumi.StringOutput `pulumi:"productCode"`
	// The quantity of the market product will be purchased.
	Quantity pulumi.IntPtrOutput `pulumi:"quantity"`
}

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/marketplace"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := marketplace.NewOrder(ctx, "order", &marketplace.OrderArgs{
			CouponId:       pulumi.String(""),
			Duration:       pulumi.Int(1),
			PackageVersion: pulumi.String("yuncode2713600001"),
			PayType:        pulumi.String("prepay"),
			PricingCycle:   pulumi.String("Month"),
			ProductCode:    pulumi.String("cmapi033136"),
			Quantity:       pulumi.Int(1),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Market order can be imported using the id, e.g.

```sh

$ pulumi import alicloud:marketplace/order:Order order your-order-id

```

func GetOrder

func GetOrder(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *OrderState, opts ...pulumi.ResourceOption) (*Order, error)

GetOrder gets an existing Order resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewOrder

func NewOrder(ctx *pulumi.Context,
	name string, args *OrderArgs, opts ...pulumi.ResourceOption) (*Order, error)

NewOrder registers a new resource with the given unique name, arguments, and options.

func (*Order) ElementType

func (*Order) ElementType() reflect.Type

func (*Order) ToOrderOutput

func (i *Order) ToOrderOutput() OrderOutput

func (*Order) ToOrderOutputWithContext

func (i *Order) ToOrderOutputWithContext(ctx context.Context) OrderOutput

type OrderArgs

type OrderArgs struct {
	// Service providers customize additional components.
	Components pulumi.MapInput
	// The coupon id of the market product.
	CouponId pulumi.StringPtrInput
	// The number of purchase cycles.
	Duration pulumi.IntPtrInput
	// The package version of the market product.
	PackageVersion pulumi.StringInput
	// Valid values are `PrePaid`, `PostPaid`,System default to `PostPaid`.
	PayType pulumi.StringPtrInput
	// The purchase cycle of the product, valid values are `Day`, `Month` and `Year`.
	PricingCycle pulumi.StringInput
	// The productCode of market place product.
	ProductCode pulumi.StringInput
	// The quantity of the market product will be purchased.
	Quantity pulumi.IntPtrInput
}

The set of arguments for constructing a Order resource.

func (OrderArgs) ElementType

func (OrderArgs) ElementType() reflect.Type

type OrderArray

type OrderArray []OrderInput

func (OrderArray) ElementType

func (OrderArray) ElementType() reflect.Type

func (OrderArray) ToOrderArrayOutput

func (i OrderArray) ToOrderArrayOutput() OrderArrayOutput

func (OrderArray) ToOrderArrayOutputWithContext

func (i OrderArray) ToOrderArrayOutputWithContext(ctx context.Context) OrderArrayOutput

type OrderArrayInput

type OrderArrayInput interface {
	pulumi.Input

	ToOrderArrayOutput() OrderArrayOutput
	ToOrderArrayOutputWithContext(context.Context) OrderArrayOutput
}

OrderArrayInput is an input type that accepts OrderArray and OrderArrayOutput values. You can construct a concrete instance of `OrderArrayInput` via:

OrderArray{ OrderArgs{...} }

type OrderArrayOutput

type OrderArrayOutput struct{ *pulumi.OutputState }

func (OrderArrayOutput) ElementType

func (OrderArrayOutput) ElementType() reflect.Type

func (OrderArrayOutput) Index

func (OrderArrayOutput) ToOrderArrayOutput

func (o OrderArrayOutput) ToOrderArrayOutput() OrderArrayOutput

func (OrderArrayOutput) ToOrderArrayOutputWithContext

func (o OrderArrayOutput) ToOrderArrayOutputWithContext(ctx context.Context) OrderArrayOutput

type OrderInput

type OrderInput interface {
	pulumi.Input

	ToOrderOutput() OrderOutput
	ToOrderOutputWithContext(ctx context.Context) OrderOutput
}

type OrderMap

type OrderMap map[string]OrderInput

func (OrderMap) ElementType

func (OrderMap) ElementType() reflect.Type

func (OrderMap) ToOrderMapOutput

func (i OrderMap) ToOrderMapOutput() OrderMapOutput

func (OrderMap) ToOrderMapOutputWithContext

func (i OrderMap) ToOrderMapOutputWithContext(ctx context.Context) OrderMapOutput

type OrderMapInput

type OrderMapInput interface {
	pulumi.Input

	ToOrderMapOutput() OrderMapOutput
	ToOrderMapOutputWithContext(context.Context) OrderMapOutput
}

OrderMapInput is an input type that accepts OrderMap and OrderMapOutput values. You can construct a concrete instance of `OrderMapInput` via:

OrderMap{ "key": OrderArgs{...} }

type OrderMapOutput

type OrderMapOutput struct{ *pulumi.OutputState }

func (OrderMapOutput) ElementType

func (OrderMapOutput) ElementType() reflect.Type

func (OrderMapOutput) MapIndex

func (OrderMapOutput) ToOrderMapOutput

func (o OrderMapOutput) ToOrderMapOutput() OrderMapOutput

func (OrderMapOutput) ToOrderMapOutputWithContext

func (o OrderMapOutput) ToOrderMapOutputWithContext(ctx context.Context) OrderMapOutput

type OrderOutput

type OrderOutput struct{ *pulumi.OutputState }

func (OrderOutput) Components

func (o OrderOutput) Components() pulumi.MapOutput

Service providers customize additional components.

func (OrderOutput) CouponId

func (o OrderOutput) CouponId() pulumi.StringPtrOutput

The coupon id of the market product.

func (OrderOutput) Duration

func (o OrderOutput) Duration() pulumi.IntPtrOutput

The number of purchase cycles.

func (OrderOutput) ElementType

func (OrderOutput) ElementType() reflect.Type

func (OrderOutput) PackageVersion

func (o OrderOutput) PackageVersion() pulumi.StringOutput

The package version of the market product.

func (OrderOutput) PayType

func (o OrderOutput) PayType() pulumi.StringPtrOutput

Valid values are `PrePaid`, `PostPaid`,System default to `PostPaid`.

func (OrderOutput) PricingCycle

func (o OrderOutput) PricingCycle() pulumi.StringOutput

The purchase cycle of the product, valid values are `Day`, `Month` and `Year`.

func (OrderOutput) ProductCode

func (o OrderOutput) ProductCode() pulumi.StringOutput

The productCode of market place product.

func (OrderOutput) Quantity

func (o OrderOutput) Quantity() pulumi.IntPtrOutput

The quantity of the market product will be purchased.

func (OrderOutput) ToOrderOutput

func (o OrderOutput) ToOrderOutput() OrderOutput

func (OrderOutput) ToOrderOutputWithContext

func (o OrderOutput) ToOrderOutputWithContext(ctx context.Context) OrderOutput

type OrderState

type OrderState struct {
	// Service providers customize additional components.
	Components pulumi.MapInput
	// The coupon id of the market product.
	CouponId pulumi.StringPtrInput
	// The number of purchase cycles.
	Duration pulumi.IntPtrInput
	// The package version of the market product.
	PackageVersion pulumi.StringPtrInput
	// Valid values are `PrePaid`, `PostPaid`,System default to `PostPaid`.
	PayType pulumi.StringPtrInput
	// The purchase cycle of the product, valid values are `Day`, `Month` and `Year`.
	PricingCycle pulumi.StringPtrInput
	// The productCode of market place product.
	ProductCode pulumi.StringPtrInput
	// The quantity of the market product will be purchased.
	Quantity pulumi.IntPtrInput
}

func (OrderState) ElementType

func (OrderState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL