NS1 v3.4.2 published on Tuesday, Sep 17, 2024 by Pulumi
ns1.PulsarJob
Explore with Pulumi AI
Create PulsarJob Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PulsarJob(name: string, args: PulsarJobArgs, opts?: CustomResourceOptions);
@overload
def PulsarJob(resource_name: str,
args: PulsarJobArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PulsarJob(resource_name: str,
opts: Optional[ResourceOptions] = None,
app_id: Optional[str] = None,
type_id: Optional[str] = None,
active: Optional[bool] = None,
blend_metric_weights: Optional[PulsarJobBlendMetricWeightsArgs] = None,
config: Optional[PulsarJobConfigArgs] = None,
name: Optional[str] = None,
shared: Optional[bool] = None,
weights: Optional[Sequence[PulsarJobWeightArgs]] = None)
func NewPulsarJob(ctx *Context, name string, args PulsarJobArgs, opts ...ResourceOption) (*PulsarJob, error)
public PulsarJob(string name, PulsarJobArgs args, CustomResourceOptions? opts = null)
public PulsarJob(String name, PulsarJobArgs args)
public PulsarJob(String name, PulsarJobArgs args, CustomResourceOptions options)
type: ns1:PulsarJob
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 PulsarJobArgs
- 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 PulsarJobArgs
- 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 PulsarJobArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PulsarJobArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PulsarJobArgs
- 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 pulsarJobResource = new Ns1.PulsarJob("pulsarJobResource", new()
{
AppId = "string",
TypeId = "string",
Active = false,
BlendMetricWeights = new Ns1.Inputs.PulsarJobBlendMetricWeightsArgs
{
Timestamp = 0,
},
Config = new Ns1.Inputs.PulsarJobConfigArgs
{
Host = "string",
Http = false,
Https = false,
JobTimeoutMillis = 0,
RequestTimeoutMillis = 0,
StaticValues = false,
UrlPath = "string",
UseXhr = false,
},
Name = "string",
Shared = false,
Weights = new[]
{
new Ns1.Inputs.PulsarJobWeightArgs
{
DefaultValue = 0,
Name = "string",
Weight = 0,
Maximize = false,
},
},
});
example, err := ns1.NewPulsarJob(ctx, "pulsarJobResource", &ns1.PulsarJobArgs{
AppId: pulumi.String("string"),
TypeId: pulumi.String("string"),
Active: pulumi.Bool(false),
BlendMetricWeights: &ns1.PulsarJobBlendMetricWeightsArgs{
Timestamp: pulumi.Int(0),
},
Config: &ns1.PulsarJobConfigArgs{
Host: pulumi.String("string"),
Http: pulumi.Bool(false),
Https: pulumi.Bool(false),
JobTimeoutMillis: pulumi.Int(0),
RequestTimeoutMillis: pulumi.Int(0),
StaticValues: pulumi.Bool(false),
UrlPath: pulumi.String("string"),
UseXhr: pulumi.Bool(false),
},
Name: pulumi.String("string"),
Shared: pulumi.Bool(false),
Weights: ns1.PulsarJobWeightArray{
&ns1.PulsarJobWeightArgs{
DefaultValue: pulumi.Float64(0),
Name: pulumi.String("string"),
Weight: pulumi.Int(0),
Maximize: pulumi.Bool(false),
},
},
})
var pulsarJobResource = new PulsarJob("pulsarJobResource", PulsarJobArgs.builder()
.appId("string")
.typeId("string")
.active(false)
.blendMetricWeights(PulsarJobBlendMetricWeightsArgs.builder()
.timestamp(0)
.build())
.config(PulsarJobConfigArgs.builder()
.host("string")
.http(false)
.https(false)
.jobTimeoutMillis(0)
.requestTimeoutMillis(0)
.staticValues(false)
.urlPath("string")
.useXhr(false)
.build())
.name("string")
.shared(false)
.weights(PulsarJobWeightArgs.builder()
.defaultValue(0)
.name("string")
.weight(0)
.maximize(false)
.build())
.build());
pulsar_job_resource = ns1.PulsarJob("pulsarJobResource",
app_id="string",
type_id="string",
active=False,
blend_metric_weights=ns1.PulsarJobBlendMetricWeightsArgs(
timestamp=0,
),
config=ns1.PulsarJobConfigArgs(
host="string",
http=False,
https=False,
job_timeout_millis=0,
request_timeout_millis=0,
static_values=False,
url_path="string",
use_xhr=False,
),
name="string",
shared=False,
weights=[ns1.PulsarJobWeightArgs(
default_value=0,
name="string",
weight=0,
maximize=False,
)])
const pulsarJobResource = new ns1.PulsarJob("pulsarJobResource", {
appId: "string",
typeId: "string",
active: false,
blendMetricWeights: {
timestamp: 0,
},
config: {
host: "string",
http: false,
https: false,
jobTimeoutMillis: 0,
requestTimeoutMillis: 0,
staticValues: false,
urlPath: "string",
useXhr: false,
},
name: "string",
shared: false,
weights: [{
defaultValue: 0,
name: "string",
weight: 0,
maximize: false,
}],
});
type: ns1:PulsarJob
properties:
active: false
appId: string
blendMetricWeights:
timestamp: 0
config:
host: string
http: false
https: false
jobTimeoutMillis: 0
requestTimeoutMillis: 0
staticValues: false
urlPath: string
useXhr: false
name: string
shared: false
typeId: string
weights:
- defaultValue: 0
maximize: false
name: string
weight: 0
PulsarJob 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 PulsarJob resource accepts the following input properties:
- App
Id string - Type
Id string - Active bool
- Blend
Metric PulsarWeights Job Blend Metric Weights - Config
Pulsar
Job Config - Name string
- bool
- Weights
List<Pulsar
Job Weight>
- App
Id string - Type
Id string - Active bool
- Blend
Metric PulsarWeights Job Blend Metric Weights Args - Config
Pulsar
Job Config Args - Name string
- bool
- Weights
[]Pulsar
Job Weight Args
- app
Id String - type
Id String - active Boolean
- blend
Metric PulsarWeights Job Blend Metric Weights - config
Pulsar
Job Config - name String
- Boolean
- weights
List<Pulsar
Job Weight>
- app
Id string - type
Id string - active boolean
- blend
Metric PulsarWeights Job Blend Metric Weights - config
Pulsar
Job Config - name string
- boolean
- weights
Pulsar
Job Weight[]
- app
Id String - type
Id String - active Boolean
- blend
Metric Property MapWeights - config Property Map
- name String
- Boolean
- weights List<Property Map>
Outputs
All input properties are implicitly available as output properties. Additionally, the PulsarJob resource produces the following output properties:
Look up Existing PulsarJob Resource
Get an existing PulsarJob 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?: PulsarJobState, opts?: CustomResourceOptions): PulsarJob
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
active: Optional[bool] = None,
app_id: Optional[str] = None,
blend_metric_weights: Optional[PulsarJobBlendMetricWeightsArgs] = None,
community: Optional[bool] = None,
config: Optional[PulsarJobConfigArgs] = None,
customer: Optional[int] = None,
job_id: Optional[str] = None,
name: Optional[str] = None,
shared: Optional[bool] = None,
type_id: Optional[str] = None,
weights: Optional[Sequence[PulsarJobWeightArgs]] = None) -> PulsarJob
func GetPulsarJob(ctx *Context, name string, id IDInput, state *PulsarJobState, opts ...ResourceOption) (*PulsarJob, error)
public static PulsarJob Get(string name, Input<string> id, PulsarJobState? state, CustomResourceOptions? opts = null)
public static PulsarJob get(String name, Output<String> id, PulsarJobState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Active bool
- App
Id string - Blend
Metric PulsarWeights Job Blend Metric Weights - Community bool
- Config
Pulsar
Job Config - Customer int
- Job
Id string - Name string
- bool
- Type
Id string - Weights
List<Pulsar
Job Weight>
- Active bool
- App
Id string - Blend
Metric PulsarWeights Job Blend Metric Weights Args - Community bool
- Config
Pulsar
Job Config Args - Customer int
- Job
Id string - Name string
- bool
- Type
Id string - Weights
[]Pulsar
Job Weight Args
- active Boolean
- app
Id String - blend
Metric PulsarWeights Job Blend Metric Weights - community Boolean
- config
Pulsar
Job Config - customer Integer
- job
Id String - name String
- Boolean
- type
Id String - weights
List<Pulsar
Job Weight>
- active boolean
- app
Id string - blend
Metric PulsarWeights Job Blend Metric Weights - community boolean
- config
Pulsar
Job Config - customer number
- job
Id string - name string
- boolean
- type
Id string - weights
Pulsar
Job Weight[]
- active Boolean
- app
Id String - blend
Metric Property MapWeights - community Boolean
- config Property Map
- customer Number
- job
Id String - name String
- Boolean
- type
Id String - weights List<Property Map>
Supporting Types
PulsarJobBlendMetricWeights, PulsarJobBlendMetricWeightsArgs
- Timestamp int
- Timestamp int
- timestamp Integer
- timestamp number
- timestamp int
- timestamp Number
PulsarJobConfig, PulsarJobConfigArgs
- Host string
- Http bool
- Https bool
- Job
Timeout intMillis - Request
Timeout intMillis - Static
Values bool - Url
Path string - Use
Xhr bool
- Host string
- Http bool
- Https bool
- Job
Timeout intMillis - Request
Timeout intMillis - Static
Values bool - Url
Path string - Use
Xhr bool
- host String
- http Boolean
- https Boolean
- job
Timeout IntegerMillis - request
Timeout IntegerMillis - static
Values Boolean - url
Path String - use
Xhr Boolean
- host string
- http boolean
- https boolean
- job
Timeout numberMillis - request
Timeout numberMillis - static
Values boolean - url
Path string - use
Xhr boolean
- host str
- http bool
- https bool
- job_
timeout_ intmillis - request_
timeout_ intmillis - static_
values bool - url_
path str - use_
xhr bool
- host String
- http Boolean
- https Boolean
- job
Timeout NumberMillis - request
Timeout NumberMillis - static
Values Boolean - url
Path String - use
Xhr Boolean
PulsarJobWeight, PulsarJobWeightArgs
- Default
Value double - Name string
- Weight int
- Maximize bool
- Default
Value float64 - Name string
- Weight int
- Maximize bool
- default
Value Double - name String
- weight Integer
- maximize Boolean
- default
Value number - name string
- weight number
- maximize boolean
- default_
value float - name str
- weight int
- maximize bool
- default
Value Number - name String
- weight Number
- maximize Boolean
Package Details
- Repository
- NS1 pulumi/pulumi-ns1
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ns1
Terraform Provider.