Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.apigee/v1.Subscription
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates a subscription to an API product. Auto-naming is currently not supported for this resource. Note - this resource’s API doesn’t support deletion. When deleted, the resource will persist on Google Cloud even though it will be deleted from Pulumi state.
Create Subscription Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Subscription(name: string, args: SubscriptionArgs, opts?: CustomResourceOptions);@overload
def Subscription(resource_name: str,
                 args: SubscriptionArgs,
                 opts: Optional[ResourceOptions] = None)
@overload
def Subscription(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 developer_id: Optional[str] = None,
                 organization_id: Optional[str] = None,
                 apiproduct: Optional[str] = None,
                 end_time: Optional[str] = None,
                 start_time: Optional[str] = None)func NewSubscription(ctx *Context, name string, args SubscriptionArgs, opts ...ResourceOption) (*Subscription, error)public Subscription(string name, SubscriptionArgs args, CustomResourceOptions? opts = null)
public Subscription(String name, SubscriptionArgs args)
public Subscription(String name, SubscriptionArgs args, CustomResourceOptions options)
type: google-native:apigee/v1:Subscription
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 SubscriptionArgs
- 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 SubscriptionArgs
- 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 SubscriptionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SubscriptionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SubscriptionArgs
- 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 subscriptionResource = new GoogleNative.Apigee.V1.Subscription("subscriptionResource", new()
{
    DeveloperId = "string",
    OrganizationId = "string",
    Apiproduct = "string",
    EndTime = "string",
    StartTime = "string",
});
example, err := apigee.NewSubscription(ctx, "subscriptionResource", &apigee.SubscriptionArgs{
	DeveloperId:    pulumi.String("string"),
	OrganizationId: pulumi.String("string"),
	Apiproduct:     pulumi.String("string"),
	EndTime:        pulumi.String("string"),
	StartTime:      pulumi.String("string"),
})
var subscriptionResource = new Subscription("subscriptionResource", SubscriptionArgs.builder()
    .developerId("string")
    .organizationId("string")
    .apiproduct("string")
    .endTime("string")
    .startTime("string")
    .build());
subscription_resource = google_native.apigee.v1.Subscription("subscriptionResource",
    developer_id="string",
    organization_id="string",
    apiproduct="string",
    end_time="string",
    start_time="string")
const subscriptionResource = new google_native.apigee.v1.Subscription("subscriptionResource", {
    developerId: "string",
    organizationId: "string",
    apiproduct: "string",
    endTime: "string",
    startTime: "string",
});
type: google-native:apigee/v1:Subscription
properties:
    apiproduct: string
    developerId: string
    endTime: string
    organizationId: string
    startTime: string
Subscription 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 Subscription resource accepts the following input properties:
- DeveloperId string
- OrganizationId string
- Apiproduct string
- Name of the API product for which the developer is purchasing a subscription.
- EndTime string
- Time when the API product subscription ends in milliseconds since epoch.
- StartTime string
- Time when the API product subscription starts in milliseconds since epoch.
- DeveloperId string
- OrganizationId string
- Apiproduct string
- Name of the API product for which the developer is purchasing a subscription.
- EndTime string
- Time when the API product subscription ends in milliseconds since epoch.
- StartTime string
- Time when the API product subscription starts in milliseconds since epoch.
- developerId String
- organizationId String
- apiproduct String
- Name of the API product for which the developer is purchasing a subscription.
- endTime String
- Time when the API product subscription ends in milliseconds since epoch.
- startTime String
- Time when the API product subscription starts in milliseconds since epoch.
- developerId string
- organizationId string
- apiproduct string
- Name of the API product for which the developer is purchasing a subscription.
- endTime string
- Time when the API product subscription ends in milliseconds since epoch.
- startTime string
- Time when the API product subscription starts in milliseconds since epoch.
- developer_id str
- organization_id str
- apiproduct str
- Name of the API product for which the developer is purchasing a subscription.
- end_time str
- Time when the API product subscription ends in milliseconds since epoch.
- start_time str
- Time when the API product subscription starts in milliseconds since epoch.
- developerId String
- organizationId String
- apiproduct String
- Name of the API product for which the developer is purchasing a subscription.
- endTime String
- Time when the API product subscription ends in milliseconds since epoch.
- startTime String
- Time when the API product subscription starts in milliseconds since epoch.
Outputs
All input properties are implicitly available as output properties. Additionally, the Subscription resource produces the following output properties:
- CreatedAt string
- Time when the API product subscription was created in milliseconds since epoch.
- Id string
- The provider-assigned unique ID for this managed resource.
- LastModified stringAt 
- Time when the API product subscription was last modified in milliseconds since epoch.
- Name string
- Name of the API product subscription.
- CreatedAt string
- Time when the API product subscription was created in milliseconds since epoch.
- Id string
- The provider-assigned unique ID for this managed resource.
- LastModified stringAt 
- Time when the API product subscription was last modified in milliseconds since epoch.
- Name string
- Name of the API product subscription.
- createdAt String
- Time when the API product subscription was created in milliseconds since epoch.
- id String
- The provider-assigned unique ID for this managed resource.
- lastModified StringAt 
- Time when the API product subscription was last modified in milliseconds since epoch.
- name String
- Name of the API product subscription.
- createdAt string
- Time when the API product subscription was created in milliseconds since epoch.
- id string
- The provider-assigned unique ID for this managed resource.
- lastModified stringAt 
- Time when the API product subscription was last modified in milliseconds since epoch.
- name string
- Name of the API product subscription.
- created_at str
- Time when the API product subscription was created in milliseconds since epoch.
- id str
- The provider-assigned unique ID for this managed resource.
- last_modified_ strat 
- Time when the API product subscription was last modified in milliseconds since epoch.
- name str
- Name of the API product subscription.
- createdAt String
- Time when the API product subscription was created in milliseconds since epoch.
- id String
- The provider-assigned unique ID for this managed resource.
- lastModified StringAt 
- Time when the API product subscription was last modified in milliseconds since epoch.
- name String
- Name of the API product subscription.
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.