ionoscloud.LoggingPipeline
Explore with Pulumi AI
Import
In order to import a Logging pipeline, you can define an empty Logging pipeline resource in the plan:
hcl
resource “ionoscloud_logging_pipeline” “example” {
}
The resource can be imported using the location
and pipeline_id
, for example:
$ pulumi import ionoscloud:index/loggingPipeline:LoggingPipeline example location:pipeline_id
Create LoggingPipeline Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LoggingPipeline(name: string, args: LoggingPipelineArgs, opts?: CustomResourceOptions);
@overload
def LoggingPipeline(resource_name: str,
args: LoggingPipelineArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LoggingPipeline(resource_name: str,
opts: Optional[ResourceOptions] = None,
logs: Optional[Sequence[LoggingPipelineLogArgs]] = None,
location: Optional[str] = None,
logging_pipeline_id: Optional[str] = None,
name: Optional[str] = None,
timeouts: Optional[LoggingPipelineTimeoutsArgs] = None)
func NewLoggingPipeline(ctx *Context, name string, args LoggingPipelineArgs, opts ...ResourceOption) (*LoggingPipeline, error)
public LoggingPipeline(string name, LoggingPipelineArgs args, CustomResourceOptions? opts = null)
public LoggingPipeline(String name, LoggingPipelineArgs args)
public LoggingPipeline(String name, LoggingPipelineArgs args, CustomResourceOptions options)
type: ionoscloud:LoggingPipeline
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 LoggingPipelineArgs
- 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 LoggingPipelineArgs
- 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 LoggingPipelineArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LoggingPipelineArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LoggingPipelineArgs
- 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 loggingPipelineResource = new Ionoscloud.LoggingPipeline("loggingPipelineResource", new()
{
Logs = new[]
{
new Ionoscloud.Inputs.LoggingPipelineLogArgs
{
Protocol = "string",
Source = "string",
Tag = "string",
Destinations = new[]
{
new Ionoscloud.Inputs.LoggingPipelineLogDestinationArgs
{
RetentionInDays = 0,
Type = "string",
},
},
Public = false,
},
},
Location = "string",
LoggingPipelineId = "string",
Name = "string",
Timeouts = new Ionoscloud.Inputs.LoggingPipelineTimeoutsArgs
{
Create = "string",
Default = "string",
Delete = "string",
Update = "string",
},
});
example, err := ionoscloud.NewLoggingPipeline(ctx, "loggingPipelineResource", &ionoscloud.LoggingPipelineArgs{
Logs: ionoscloud.LoggingPipelineLogArray{
&ionoscloud.LoggingPipelineLogArgs{
Protocol: pulumi.String("string"),
Source: pulumi.String("string"),
Tag: pulumi.String("string"),
Destinations: ionoscloud.LoggingPipelineLogDestinationArray{
&ionoscloud.LoggingPipelineLogDestinationArgs{
RetentionInDays: pulumi.Float64(0),
Type: pulumi.String("string"),
},
},
Public: pulumi.Bool(false),
},
},
Location: pulumi.String("string"),
LoggingPipelineId: pulumi.String("string"),
Name: pulumi.String("string"),
Timeouts: &ionoscloud.LoggingPipelineTimeoutsArgs{
Create: pulumi.String("string"),
Default: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var loggingPipelineResource = new LoggingPipeline("loggingPipelineResource", LoggingPipelineArgs.builder()
.logs(LoggingPipelineLogArgs.builder()
.protocol("string")
.source("string")
.tag("string")
.destinations(LoggingPipelineLogDestinationArgs.builder()
.retentionInDays(0)
.type("string")
.build())
.public_(false)
.build())
.location("string")
.loggingPipelineId("string")
.name("string")
.timeouts(LoggingPipelineTimeoutsArgs.builder()
.create("string")
.default_("string")
.delete("string")
.update("string")
.build())
.build());
logging_pipeline_resource = ionoscloud.LoggingPipeline("loggingPipelineResource",
logs=[{
"protocol": "string",
"source": "string",
"tag": "string",
"destinations": [{
"retention_in_days": 0,
"type": "string",
}],
"public": False,
}],
location="string",
logging_pipeline_id="string",
name="string",
timeouts={
"create": "string",
"default": "string",
"delete": "string",
"update": "string",
})
const loggingPipelineResource = new ionoscloud.LoggingPipeline("loggingPipelineResource", {
logs: [{
protocol: "string",
source: "string",
tag: "string",
destinations: [{
retentionInDays: 0,
type: "string",
}],
"public": false,
}],
location: "string",
loggingPipelineId: "string",
name: "string",
timeouts: {
create: "string",
"default": "string",
"delete": "string",
update: "string",
},
});
type: ionoscloud:LoggingPipeline
properties:
location: string
loggingPipelineId: string
logs:
- destinations:
- retentionInDays: 0
type: string
protocol: string
public: false
source: string
tag: string
name: string
timeouts:
create: string
default: string
delete: string
update: string
LoggingPipeline 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 LoggingPipeline resource accepts the following input properties:
- Logs
List<Logging
Pipeline Log> - [list] Pipeline logs, a list that contains elements with the following structure:
- Location string
- [string] The location of the Logging pipeline. Default:
de/txl
One ofde/fra
,de/txl
,gb/lhr
,es/vit
,fr/par
. If this is not set and if no value is provided for theIONOS_API_URL
env var, the defaultlocation
will be:de/fra
. - Logging
Pipeline stringId - Name string
- [string] The name of the Logging pipeline.
- Timeouts
Logging
Pipeline Timeouts
- Logs
[]Logging
Pipeline Log Args - [list] Pipeline logs, a list that contains elements with the following structure:
- Location string
- [string] The location of the Logging pipeline. Default:
de/txl
One ofde/fra
,de/txl
,gb/lhr
,es/vit
,fr/par
. If this is not set and if no value is provided for theIONOS_API_URL
env var, the defaultlocation
will be:de/fra
. - Logging
Pipeline stringId - Name string
- [string] The name of the Logging pipeline.
- Timeouts
Logging
Pipeline Timeouts Args
- logs
List<Logging
Pipeline Log> - [list] Pipeline logs, a list that contains elements with the following structure:
- location String
- [string] The location of the Logging pipeline. Default:
de/txl
One ofde/fra
,de/txl
,gb/lhr
,es/vit
,fr/par
. If this is not set and if no value is provided for theIONOS_API_URL
env var, the defaultlocation
will be:de/fra
. - logging
Pipeline StringId - name String
- [string] The name of the Logging pipeline.
- timeouts
Logging
Pipeline Timeouts
- logs
Logging
Pipeline Log[] - [list] Pipeline logs, a list that contains elements with the following structure:
- location string
- [string] The location of the Logging pipeline. Default:
de/txl
One ofde/fra
,de/txl
,gb/lhr
,es/vit
,fr/par
. If this is not set and if no value is provided for theIONOS_API_URL
env var, the defaultlocation
will be:de/fra
. - logging
Pipeline stringId - name string
- [string] The name of the Logging pipeline.
- timeouts
Logging
Pipeline Timeouts
- logs
Sequence[Logging
Pipeline Log Args] - [list] Pipeline logs, a list that contains elements with the following structure:
- location str
- [string] The location of the Logging pipeline. Default:
de/txl
One ofde/fra
,de/txl
,gb/lhr
,es/vit
,fr/par
. If this is not set and if no value is provided for theIONOS_API_URL
env var, the defaultlocation
will be:de/fra
. - logging_
pipeline_ strid - name str
- [string] The name of the Logging pipeline.
- timeouts
Logging
Pipeline Timeouts Args
- logs List<Property Map>
- [list] Pipeline logs, a list that contains elements with the following structure:
- location String
- [string] The location of the Logging pipeline. Default:
de/txl
One ofde/fra
,de/txl
,gb/lhr
,es/vit
,fr/par
. If this is not set and if no value is provided for theIONOS_API_URL
env var, the defaultlocation
will be:de/fra
. - logging
Pipeline StringId - name String
- [string] The name of the Logging pipeline.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the LoggingPipeline resource produces the following output properties:
- Grafana
Address string - [string] The address of the client's grafana instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Grafana
Address string - [string] The address of the client's grafana instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- grafana
Address String - [string] The address of the client's grafana instance.
- id String
- The provider-assigned unique ID for this managed resource.
- grafana
Address string - [string] The address of the client's grafana instance.
- id string
- The provider-assigned unique ID for this managed resource.
- grafana_
address str - [string] The address of the client's grafana instance.
- id str
- The provider-assigned unique ID for this managed resource.
- grafana
Address String - [string] The address of the client's grafana instance.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing LoggingPipeline Resource
Get an existing LoggingPipeline 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?: LoggingPipelineState, opts?: CustomResourceOptions): LoggingPipeline
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
grafana_address: Optional[str] = None,
location: Optional[str] = None,
logging_pipeline_id: Optional[str] = None,
logs: Optional[Sequence[LoggingPipelineLogArgs]] = None,
name: Optional[str] = None,
timeouts: Optional[LoggingPipelineTimeoutsArgs] = None) -> LoggingPipeline
func GetLoggingPipeline(ctx *Context, name string, id IDInput, state *LoggingPipelineState, opts ...ResourceOption) (*LoggingPipeline, error)
public static LoggingPipeline Get(string name, Input<string> id, LoggingPipelineState? state, CustomResourceOptions? opts = null)
public static LoggingPipeline get(String name, Output<String> id, LoggingPipelineState state, CustomResourceOptions options)
resources: _: type: ionoscloud:LoggingPipeline get: 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.
- Grafana
Address string - [string] The address of the client's grafana instance.
- Location string
- [string] The location of the Logging pipeline. Default:
de/txl
One ofde/fra
,de/txl
,gb/lhr
,es/vit
,fr/par
. If this is not set and if no value is provided for theIONOS_API_URL
env var, the defaultlocation
will be:de/fra
. - Logging
Pipeline stringId - Logs
List<Logging
Pipeline Log> - [list] Pipeline logs, a list that contains elements with the following structure:
- Name string
- [string] The name of the Logging pipeline.
- Timeouts
Logging
Pipeline Timeouts
- Grafana
Address string - [string] The address of the client's grafana instance.
- Location string
- [string] The location of the Logging pipeline. Default:
de/txl
One ofde/fra
,de/txl
,gb/lhr
,es/vit
,fr/par
. If this is not set and if no value is provided for theIONOS_API_URL
env var, the defaultlocation
will be:de/fra
. - Logging
Pipeline stringId - Logs
[]Logging
Pipeline Log Args - [list] Pipeline logs, a list that contains elements with the following structure:
- Name string
- [string] The name of the Logging pipeline.
- Timeouts
Logging
Pipeline Timeouts Args
- grafana
Address String - [string] The address of the client's grafana instance.
- location String
- [string] The location of the Logging pipeline. Default:
de/txl
One ofde/fra
,de/txl
,gb/lhr
,es/vit
,fr/par
. If this is not set and if no value is provided for theIONOS_API_URL
env var, the defaultlocation
will be:de/fra
. - logging
Pipeline StringId - logs
List<Logging
Pipeline Log> - [list] Pipeline logs, a list that contains elements with the following structure:
- name String
- [string] The name of the Logging pipeline.
- timeouts
Logging
Pipeline Timeouts
- grafana
Address string - [string] The address of the client's grafana instance.
- location string
- [string] The location of the Logging pipeline. Default:
de/txl
One ofde/fra
,de/txl
,gb/lhr
,es/vit
,fr/par
. If this is not set and if no value is provided for theIONOS_API_URL
env var, the defaultlocation
will be:de/fra
. - logging
Pipeline stringId - logs
Logging
Pipeline Log[] - [list] Pipeline logs, a list that contains elements with the following structure:
- name string
- [string] The name of the Logging pipeline.
- timeouts
Logging
Pipeline Timeouts
- grafana_
address str - [string] The address of the client's grafana instance.
- location str
- [string] The location of the Logging pipeline. Default:
de/txl
One ofde/fra
,de/txl
,gb/lhr
,es/vit
,fr/par
. If this is not set and if no value is provided for theIONOS_API_URL
env var, the defaultlocation
will be:de/fra
. - logging_
pipeline_ strid - logs
Sequence[Logging
Pipeline Log Args] - [list] Pipeline logs, a list that contains elements with the following structure:
- name str
- [string] The name of the Logging pipeline.
- timeouts
Logging
Pipeline Timeouts Args
- grafana
Address String - [string] The address of the client's grafana instance.
- location String
- [string] The location of the Logging pipeline. Default:
de/txl
One ofde/fra
,de/txl
,gb/lhr
,es/vit
,fr/par
. If this is not set and if no value is provided for theIONOS_API_URL
env var, the defaultlocation
will be:de/fra
. - logging
Pipeline StringId - logs List<Property Map>
- [list] Pipeline logs, a list that contains elements with the following structure:
- name String
- [string] The name of the Logging pipeline.
- timeouts Property Map
Supporting Types
LoggingPipelineLog, LoggingPipelineLogArgs
- Protocol string
- [string] "Protocol to use as intake. Possible values are: http, tcp."
- Source string
- [string] The source parser to be used.
- Tag string
- [string] The tag is used to distinguish different pipelines. Must be unique amongst the pipeline's array items.
- Destinations
List<Logging
Pipeline Log Destination> - [list] The configuration of the logs datastore, a list that contains elements with the following structure:
- Public bool
- [bool]
- Protocol string
- [string] "Protocol to use as intake. Possible values are: http, tcp."
- Source string
- [string] The source parser to be used.
- Tag string
- [string] The tag is used to distinguish different pipelines. Must be unique amongst the pipeline's array items.
- Destinations
[]Logging
Pipeline Log Destination - [list] The configuration of the logs datastore, a list that contains elements with the following structure:
- Public bool
- [bool]
- protocol String
- [string] "Protocol to use as intake. Possible values are: http, tcp."
- source String
- [string] The source parser to be used.
- tag String
- [string] The tag is used to distinguish different pipelines. Must be unique amongst the pipeline's array items.
- destinations
List<Logging
Pipeline Log Destination> - [list] The configuration of the logs datastore, a list that contains elements with the following structure:
- public_ Boolean
- [bool]
- protocol string
- [string] "Protocol to use as intake. Possible values are: http, tcp."
- source string
- [string] The source parser to be used.
- tag string
- [string] The tag is used to distinguish different pipelines. Must be unique amongst the pipeline's array items.
- destinations
Logging
Pipeline Log Destination[] - [list] The configuration of the logs datastore, a list that contains elements with the following structure:
- public boolean
- [bool]
- protocol str
- [string] "Protocol to use as intake. Possible values are: http, tcp."
- source str
- [string] The source parser to be used.
- tag str
- [string] The tag is used to distinguish different pipelines. Must be unique amongst the pipeline's array items.
- destinations
Sequence[Logging
Pipeline Log Destination] - [list] The configuration of the logs datastore, a list that contains elements with the following structure:
- public bool
- [bool]
- protocol String
- [string] "Protocol to use as intake. Possible values are: http, tcp."
- source String
- [string] The source parser to be used.
- tag String
- [string] The tag is used to distinguish different pipelines. Must be unique amongst the pipeline's array items.
- destinations List<Property Map>
- [list] The configuration of the logs datastore, a list that contains elements with the following structure:
- public Boolean
- [bool]
LoggingPipelineLogDestination, LoggingPipelineLogDestinationArgs
- Retention
In doubleDays - [int] Defines the number of days a log record should be kept in loki. Works with loki destination type only. Can be one of: 7, 14, 30.
- Type string
- [string] The internal output stream to send logs to.
- Retention
In float64Days - [int] Defines the number of days a log record should be kept in loki. Works with loki destination type only. Can be one of: 7, 14, 30.
- Type string
- [string] The internal output stream to send logs to.
- retention
In DoubleDays - [int] Defines the number of days a log record should be kept in loki. Works with loki destination type only. Can be one of: 7, 14, 30.
- type String
- [string] The internal output stream to send logs to.
- retention
In numberDays - [int] Defines the number of days a log record should be kept in loki. Works with loki destination type only. Can be one of: 7, 14, 30.
- type string
- [string] The internal output stream to send logs to.
- retention_
in_ floatdays - [int] Defines the number of days a log record should be kept in loki. Works with loki destination type only. Can be one of: 7, 14, 30.
- type str
- [string] The internal output stream to send logs to.
- retention
In NumberDays - [int] Defines the number of days a log record should be kept in loki. Works with loki destination type only. Can be one of: 7, 14, 30.
- type String
- [string] The internal output stream to send logs to.
LoggingPipelineTimeouts, LoggingPipelineTimeoutsArgs
Package Details
- Repository
- ionoscloud ionos-cloud/terraform-provider-ionoscloud
- License
- Notes
- This Pulumi package is based on the
ionoscloud
Terraform Provider.