Class Service
Example Usage
using Pulumi;
using Aiven = Pulumi.Aiven;
class MyStack : Stack
{
public MyStack()
{
var myservice = new Aiven.Service("myservice", new Aiven.ServiceArgs
{
CloudName = "google-europe-west1",
PgUserConfig = new Aiven.Inputs.ServicePgUserConfigArgs
{
IpFilter =
{
"0.0.0.0/0",
},
PgVersion = "10",
},
Plan = "business-8",
Project = aiven_project.Myproject.Project,
ProjectVpcId = aiven_project_vpc.Vpc_gcp_europe_west1.Id,
ServiceName = "<SERVICE_NAME>",
ServiceType = "pg",
TerminationProtection = true,
});
}
}
Inherited Members
Namespace: Pulumi.Aiven
Assembly: Pulumi.Aiven.dll
Syntax
public class Service : CustomResource
Constructors
View SourceService(String, ServiceArgs, CustomResourceOptions)
Create a Service resource with the given unique name, arguments, and options.
Declaration
public Service(string name, ServiceArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| ServiceArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceCassandra
Cassandra specific server provided values
Declaration
public Output<ServiceCassandra> Cassandra { get; }
Property Value
| Type | Description |
|---|---|
| Output<ServiceCassandra> |
CassandraUserConfig
Cassandra specific user configurable settings
Declaration
public Output<ServiceCassandraUserConfig> CassandraUserConfig { get; }
Property Value
| Type | Description |
|---|---|
| Output<ServiceCassandraUserConfig> |
CloudName
Cloud the service runs in
Declaration
public Output<string> CloudName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Components
Service component information objects
Declaration
public Output<ImmutableArray<ServiceComponent>> Components { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<ServiceComponent>> |
Elasticsearch
Elasticsearch specific server provided values
Declaration
public Output<ServiceElasticsearch> Elasticsearch { get; }
Property Value
| Type | Description |
|---|---|
| Output<ServiceElasticsearch> |
ElasticsearchUserConfig
Elasticsearch specific user configurable settings
Declaration
public Output<ServiceElasticsearchUserConfig> ElasticsearchUserConfig { get; }
Property Value
| Type | Description |
|---|---|
| Output<ServiceElasticsearchUserConfig> |
Grafana
Grafana specific server provided values
Declaration
public Output<ServiceGrafana> Grafana { get; }
Property Value
| Type | Description |
|---|---|
| Output<ServiceGrafana> |
GrafanaUserConfig
Grafana specific user configurable settings
Declaration
public Output<ServiceGrafanaUserConfig> GrafanaUserConfig { get; }
Property Value
| Type | Description |
|---|---|
| Output<ServiceGrafanaUserConfig> |
Influxdb
InfluxDB specific server provided values
Declaration
public Output<ServiceInfluxdb> Influxdb { get; }
Property Value
| Type | Description |
|---|---|
| Output<ServiceInfluxdb> |
InfluxdbUserConfig
InfluxDB specific user configurable settings
Declaration
public Output<ServiceInfluxdbUserConfig> InfluxdbUserConfig { get; }
Property Value
| Type | Description |
|---|---|
| Output<ServiceInfluxdbUserConfig> |
Kafka
Kafka specific server provided values
Declaration
public Output<ServiceKafka> Kafka { get; }
Property Value
| Type | Description |
|---|---|
| Output<ServiceKafka> |
KafkaConnect
Kafka Connect specific server provided values
Declaration
public Output<ServiceKafkaConnect> KafkaConnect { get; }
Property Value
| Type | Description |
|---|---|
| Output<ServiceKafkaConnect> |
KafkaConnectUserConfig
Kafka Connect specific user configurable settings
Declaration
public Output<ServiceKafkaConnectUserConfig> KafkaConnectUserConfig { get; }
Property Value
| Type | Description |
|---|---|
| Output<ServiceKafkaConnectUserConfig> |
KafkaUserConfig
Kafka specific user configurable settings
Declaration
public Output<ServiceKafkaUserConfig> KafkaUserConfig { get; }
Property Value
| Type | Description |
|---|---|
| Output<ServiceKafkaUserConfig> |
MaintenanceWindowDow
Day of week when maintenance operations should be performed. One monday, tuesday, wednesday, etc.
Declaration
public Output<string> MaintenanceWindowDow { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
MaintenanceWindowTime
Time of day when maintenance operations should be performed. UTC time in HH:mm:ss format.
Declaration
public Output<string> MaintenanceWindowTime { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Mysql
MySQL specific server provided values
Declaration
public Output<ServiceMysql> Mysql { get; }
Property Value
| Type | Description |
|---|---|
| Output<ServiceMysql> |
MysqlUserConfig
MySQL specific user configurable settings
Declaration
public Output<ServiceMysqlUserConfig> MysqlUserConfig { get; }
Property Value
| Type | Description |
|---|---|
| Output<ServiceMysqlUserConfig> |
Pg
PostgreSQL specific server provided values
Declaration
public Output<ServicePg> Pg { get; }
Property Value
| Type | Description |
|---|---|
| Output<ServicePg> |
PgUserConfig
PostgreSQL specific user configurable settings
Declaration
public Output<ServicePgUserConfig> PgUserConfig { get; }
Property Value
| Type | Description |
|---|---|
| Output<ServicePgUserConfig> |
Plan
Subscription plan
Declaration
public Output<string> Plan { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Project
Target project
Declaration
public Output<string> Project { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ProjectVpcId
Identifier of the VPC the service should be in, if any
Declaration
public Output<string> ProjectVpcId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Redis
Redis specific server provided values
Declaration
public Output<ServiceRedis> Redis { get; }
Property Value
| Type | Description |
|---|---|
| Output<ServiceRedis> |
RedisUserConfig
Redis specific user configurable settings
Declaration
public Output<ServiceRedisUserConfig> RedisUserConfig { get; }
Property Value
| Type | Description |
|---|---|
| Output<ServiceRedisUserConfig> |
ServiceHost
Service hostname
Declaration
public Output<string> ServiceHost { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ServiceIntegrations
Service integrations to specify when creating a service. Not applied after initial service creation
Declaration
public Output<ImmutableArray<ServiceServiceIntegration>> ServiceIntegrations { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<ServiceServiceIntegration>> |
ServiceName
Service name
Declaration
public Output<string> ServiceName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ServicePassword
Password used for connecting to the service, if applicable
Declaration
public Output<string> ServicePassword { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ServicePort
Service port
Declaration
public Output<int> ServicePort { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Int32> |
ServiceType
Service type code
Declaration
public Output<string> ServiceType { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ServiceUri
URI for connecting to the service. Service specific info is under "kafka", "pg", etc.
Declaration
public Output<string> ServiceUri { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ServiceUsername
Username used for connecting to the service, if applicable
Declaration
public Output<string> ServiceUsername { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
State
Service state
Declaration
public Output<string> State { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
TerminationProtection
Prevent service from being deleted. It is recommended to have this enabled for all services.
Declaration
public Output<bool?> TerminationProtection { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
Methods
View SourceGet(String, Input<String>, ServiceState, CustomResourceOptions)
Get an existing Service resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Service Get(string name, Input<string> id, ServiceState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| ServiceState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Service |