
com.pulumi.okta.LogStream Maven / Gradle / Ivy
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.okta;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import com.pulumi.okta.LogStreamArgs;
import com.pulumi.okta.Utilities;
import com.pulumi.okta.inputs.LogStreamState;
import com.pulumi.okta.outputs.LogStreamSettings;
import java.lang.String;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Manages log streams
*
* ## Import
*
* ```sh
* $ pulumi import okta:index/logStream:LogStream example <stream_id>
* ```
*
*/
@ResourceType(type="okta:index/logStream:LogStream")
public class LogStream extends com.pulumi.resources.CustomResource {
/**
* Unique name for the Log Stream object
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return Unique name for the Log Stream object
*
*/
public Output name() {
return this.name;
}
@Export(name="settings", refs={LogStreamSettings.class}, tree="[0]")
private Output* @Nullable */ LogStreamSettings> settings;
public Output> settings() {
return Codegen.optional(this.settings);
}
/**
* Stream status
*
*/
@Export(name="status", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> status;
/**
* @return Stream status
*
*/
public Output> status() {
return Codegen.optional(this.status);
}
/**
* Streaming provider used - 'aws*eventbridge' or 'splunk*cloud_logstreaming'
*
*/
@Export(name="type", refs={String.class}, tree="[0]")
private Output type;
/**
* @return Streaming provider used - 'aws*eventbridge' or 'splunk*cloud_logstreaming'
*
*/
public Output type() {
return this.type;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public LogStream(java.lang.String name) {
this(name, LogStreamArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public LogStream(java.lang.String name, LogStreamArgs args) {
this(name, args, null);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
* @param options A bag of options that control this resource's behavior.
*/
public LogStream(java.lang.String name, LogStreamArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("okta:index/logStream:LogStream", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private LogStream(java.lang.String name, Output id, @Nullable LogStreamState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("okta:index/logStream:LogStream", name, state, makeResourceOptions(options, id), false);
}
private static LogStreamArgs makeArgs(LogStreamArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? LogStreamArgs.Empty : args;
}
private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
.version(Utilities.getVersion())
.build();
return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
}
/**
* Get an existing Host resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state
* @param options Optional settings to control the behavior of the CustomResource.
*/
public static LogStream get(java.lang.String name, Output id, @Nullable LogStreamState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new LogStream(name, id, state, options);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy