published on Friday, Aug 14, 2026 by Pulumi
published on Friday, Aug 14, 2026 by Pulumi
A product_feature represents an attachment between a feature and a product. When a product is purchased that has a feature attached, Stripe will create an entitlement to the feature for the purchasing customer.
Create ProductFeature Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ProductFeature(name: string, args: ProductFeatureArgs, opts?: CustomResourceOptions);@overload
def ProductFeature(resource_name: str,
args: ProductFeatureArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ProductFeature(resource_name: str,
opts: Optional[ResourceOptions] = None,
entitlement_feature: Optional[str] = None,
product: Optional[str] = None)func NewProductFeature(ctx *Context, name string, args ProductFeatureArgs, opts ...ResourceOption) (*ProductFeature, error)public ProductFeature(string name, ProductFeatureArgs args, CustomResourceOptions? opts = null)
public ProductFeature(String name, ProductFeatureArgs args)
public ProductFeature(String name, ProductFeatureArgs args, CustomResourceOptions options)
type: stripe:ProductFeature
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "stripe_product_feature" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ProductFeatureArgs
- 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 ProductFeatureArgs
- 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 ProductFeatureArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProductFeatureArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ProductFeatureArgs
- 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 productFeatureResource = new Stripe.ProductFeature("productFeatureResource", new()
{
EntitlementFeature = "string",
Product = "string",
});
example, err := stripe.NewProductFeature(ctx, "productFeatureResource", &stripe.ProductFeatureArgs{
EntitlementFeature: pulumi.String("string"),
Product: pulumi.String("string"),
})
resource "stripe_product_feature" "productFeatureResource" {
lifecycle {
create_before_destroy = true
}
entitlement_feature = "string"
product = "string"
}
var productFeatureResource = new ProductFeature("productFeatureResource", ProductFeatureArgs.builder()
.entitlementFeature("string")
.product("string")
.build());
product_feature_resource = stripe.ProductFeature("productFeatureResource",
entitlement_feature="string",
product="string")
const productFeatureResource = new stripe.ProductFeature("productFeatureResource", {
entitlementFeature: "string",
product: "string",
});
type: stripe:ProductFeature
properties:
entitlementFeature: string
product: string
ProductFeature 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 ProductFeature resource accepts the following input properties:
- Entitlement
Feature string - A feature represents a monetizable ability or functionality in your system. Features can be assigned to products, and when those products are purchased, Stripe will create an entitlement to the feature for the purchasing customer.
- Product string
- Entitlement
Feature string - A feature represents a monetizable ability or functionality in your system. Features can be assigned to products, and when those products are purchased, Stripe will create an entitlement to the feature for the purchasing customer.
- Product string
- entitlement_
feature string - A feature represents a monetizable ability or functionality in your system. Features can be assigned to products, and when those products are purchased, Stripe will create an entitlement to the feature for the purchasing customer.
- product string
- entitlement
Feature String - A feature represents a monetizable ability or functionality in your system. Features can be assigned to products, and when those products are purchased, Stripe will create an entitlement to the feature for the purchasing customer.
- product String
- entitlement
Feature string - A feature represents a monetizable ability or functionality in your system. Features can be assigned to products, and when those products are purchased, Stripe will create an entitlement to the feature for the purchasing customer.
- product string
- entitlement_
feature str - A feature represents a monetizable ability or functionality in your system. Features can be assigned to products, and when those products are purchased, Stripe will create an entitlement to the feature for the purchasing customer.
- product str
- entitlement
Feature String - A feature represents a monetizable ability or functionality in your system. Features can be assigned to products, and when those products are purchased, Stripe will create an entitlement to the feature for the purchasing customer.
- product String
Outputs
All input properties are implicitly available as output properties. Additionally, the ProductFeature resource produces the following output properties:
Look up Existing ProductFeature Resource
Get an existing ProductFeature resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ProductFeatureState, opts?: CustomResourceOptions): ProductFeature@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
entitlement_feature: Optional[str] = None,
livemode: Optional[bool] = None,
object: Optional[str] = None,
product: Optional[str] = None) -> ProductFeaturefunc GetProductFeature(ctx *Context, name string, id IDInput, state *ProductFeatureState, opts ...ResourceOption) (*ProductFeature, error)public static ProductFeature Get(string name, Input<string> id, ProductFeatureState? state, CustomResourceOptions? opts = null)public static ProductFeature get(String name, Output<String> id, ProductFeatureState state, CustomResourceOptions options)resources: _: type: stripe:ProductFeature get: id: ${id}import {
to = stripe_product_feature.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Entitlement
Feature string - A feature represents a monetizable ability or functionality in your system. Features can be assigned to products, and when those products are purchased, Stripe will create an entitlement to the feature for the purchasing customer.
- Livemode bool
- If the object exists in live mode, the value is
true. If the object exists in test mode, the value isfalse. - Object string
- String representing the object's type. Objects of the same type share the same value.
- Product string
- Entitlement
Feature string - A feature represents a monetizable ability or functionality in your system. Features can be assigned to products, and when those products are purchased, Stripe will create an entitlement to the feature for the purchasing customer.
- Livemode bool
- If the object exists in live mode, the value is
true. If the object exists in test mode, the value isfalse. - Object string
- String representing the object's type. Objects of the same type share the same value.
- Product string
- entitlement_
feature string - A feature represents a monetizable ability or functionality in your system. Features can be assigned to products, and when those products are purchased, Stripe will create an entitlement to the feature for the purchasing customer.
- livemode bool
- If the object exists in live mode, the value is
true. If the object exists in test mode, the value isfalse. - object string
- String representing the object's type. Objects of the same type share the same value.
- product string
- entitlement
Feature String - A feature represents a monetizable ability or functionality in your system. Features can be assigned to products, and when those products are purchased, Stripe will create an entitlement to the feature for the purchasing customer.
- livemode Boolean
- If the object exists in live mode, the value is
true. If the object exists in test mode, the value isfalse. - object String
- String representing the object's type. Objects of the same type share the same value.
- product String
- entitlement
Feature string - A feature represents a monetizable ability or functionality in your system. Features can be assigned to products, and when those products are purchased, Stripe will create an entitlement to the feature for the purchasing customer.
- livemode boolean
- If the object exists in live mode, the value is
true. If the object exists in test mode, the value isfalse. - object string
- String representing the object's type. Objects of the same type share the same value.
- product string
- entitlement_
feature str - A feature represents a monetizable ability or functionality in your system. Features can be assigned to products, and when those products are purchased, Stripe will create an entitlement to the feature for the purchasing customer.
- livemode bool
- If the object exists in live mode, the value is
true. If the object exists in test mode, the value isfalse. - object str
- String representing the object's type. Objects of the same type share the same value.
- product str
- entitlement
Feature String - A feature represents a monetizable ability or functionality in your system. Features can be assigned to products, and when those products are purchased, Stripe will create an entitlement to the feature for the purchasing customer.
- livemode Boolean
- If the object exists in live mode, the value is
true. If the object exists in test mode, the value isfalse. - object String
- String representing the object's type. Objects of the same type share the same value.
- product String
Package Details
- Repository
- stripe stripe/terraform-provider-stripe
- License
- Notes
- This Pulumi package is based on the
stripeTerraform Provider.
published on Friday, Aug 14, 2026 by Pulumi