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
The Subscription resource accepts the following input properties:
- Developer
Id string - Organization
Id string - Apiproduct string
- Name of the API product for which the developer is purchasing a subscription.
- End
Time string - Time when the API product subscription ends in milliseconds since epoch.
- Start
Time string - Time when the API product subscription starts in milliseconds since epoch.
- Developer
Id string - Organization
Id string - Apiproduct string
- Name of the API product for which the developer is purchasing a subscription.
- End
Time string - Time when the API product subscription ends in milliseconds since epoch.
- Start
Time string - Time when the API product subscription starts in milliseconds since epoch.
- developer
Id String - organization
Id String - apiproduct String
- Name of the API product for which the developer is purchasing a subscription.
- end
Time String - Time when the API product subscription ends in milliseconds since epoch.
- start
Time String - Time when the API product subscription starts in milliseconds since epoch.
- developer
Id string - organization
Id string - apiproduct string
- Name of the API product for which the developer is purchasing a subscription.
- end
Time string - Time when the API product subscription ends in milliseconds since epoch.
- start
Time 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.
- developer
Id String - organization
Id String - apiproduct String
- Name of the API product for which the developer is purchasing a subscription.
- end
Time String - Time when the API product subscription ends in milliseconds since epoch.
- start
Time 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:
- Created
At string - Time when the API product subscription was created in milliseconds since epoch.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Modified stringAt - Time when the API product subscription was last modified in milliseconds since epoch.
- Name string
- Name of the API product subscription.
- Created
At string - Time when the API product subscription was created in milliseconds since epoch.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Modified stringAt - Time when the API product subscription was last modified in milliseconds since epoch.
- Name string
- Name of the API product subscription.
- created
At String - Time when the API product subscription was created in milliseconds since epoch.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Modified StringAt - Time when the API product subscription was last modified in milliseconds since epoch.
- name String
- Name of the API product subscription.
- created
At string - Time when the API product subscription was created in milliseconds since epoch.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Modified 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.
- created
At String - Time when the API product subscription was created in milliseconds since epoch.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Modified 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.