1. Packages
  2. Google Cloud Native
  3. API Docs
  4. apigee
  5. apigee/v1
  6. Subscription

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.apigee/v1.Subscription

Explore with Pulumi AI

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

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 This property is required. string
The unique name of the resource.
args This property is required. SubscriptionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. SubscriptionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. SubscriptionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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",
});
Copy
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"),
})
Copy
var subscriptionResource = new Subscription("subscriptionResource", SubscriptionArgs.builder()
    .developerId("string")
    .organizationId("string")
    .apiproduct("string")
    .endTime("string")
    .startTime("string")
    .build());
Copy
subscription_resource = google_native.apigee.v1.Subscription("subscriptionResource",
    developer_id="string",
    organization_id="string",
    apiproduct="string",
    end_time="string",
    start_time="string")
Copy
const subscriptionResource = new google_native.apigee.v1.Subscription("subscriptionResource", {
    developerId: "string",
    organizationId: "string",
    apiproduct: "string",
    endTime: "string",
    startTime: "string",
});
Copy
type: google-native:apigee/v1:Subscription
properties:
    apiproduct: string
    developerId: string
    endTime: string
    organizationId: string
    startTime: string
Copy

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
This property is required.
Changes to this property will trigger replacement.
string
OrganizationId
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
string
OrganizationId
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
String
organizationId
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
string
organizationId
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
str
organization_id
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
String
organizationId
This property is required.
Changes to this property will trigger replacement.
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.
LastModifiedAt string
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.
LastModifiedAt string
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.
lastModifiedAt String
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.
lastModifiedAt string
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_at str
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.
lastModifiedAt String
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.

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