awx.JobTemplateCredential
Explore with Pulumi AI
TBD
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as awx from "@pulumi/awx";
const baseconfig = new awx.JobTemplateCredential("baseconfig", {
jobTemplateId: awx_job_template.baseconfig.id,
credentialId: awx_credential_machine.pi_connection.id,
});
import pulumi
import pulumi_awx as awx
baseconfig = awx.JobTemplateCredential("baseconfig",
job_template_id=awx_job_template["baseconfig"]["id"],
credential_id=awx_credential_machine["pi_connection"]["id"])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/awx/awx"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := awx.NewJobTemplateCredential(ctx, "baseconfig", &awx.JobTemplateCredentialArgs{
JobTemplateId: pulumi.Any(awx_job_template.Baseconfig.Id),
CredentialId: pulumi.Any(awx_credential_machine.Pi_connection.Id),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Awx = Pulumi.Awx;
return await Deployment.RunAsync(() =>
{
var baseconfig = new Awx.JobTemplateCredential("baseconfig", new()
{
JobTemplateId = awx_job_template.Baseconfig.Id,
CredentialId = awx_credential_machine.Pi_connection.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.awx.JobTemplateCredential;
import com.pulumi.awx.JobTemplateCredentialArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var baseconfig = new JobTemplateCredential("baseconfig", JobTemplateCredentialArgs.builder()
.jobTemplateId(awx_job_template.baseconfig().id())
.credentialId(awx_credential_machine.pi_connection().id())
.build());
}
}
resources:
baseconfig:
type: awx:JobTemplateCredential
properties:
jobTemplateId: ${awx_job_template.baseconfig.id}
credentialId: ${awx_credential_machine.pi_connection.id}
Create JobTemplateCredential Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new JobTemplateCredential(name: string, args: JobTemplateCredentialArgs, opts?: CustomResourceOptions);
@overload
def JobTemplateCredential(resource_name: str,
args: JobTemplateCredentialArgs,
opts: Optional[ResourceOptions] = None)
@overload
def JobTemplateCredential(resource_name: str,
opts: Optional[ResourceOptions] = None,
credential_id: Optional[float] = None,
job_template_id: Optional[float] = None,
job_template_credential_id: Optional[str] = None)
func NewJobTemplateCredential(ctx *Context, name string, args JobTemplateCredentialArgs, opts ...ResourceOption) (*JobTemplateCredential, error)
public JobTemplateCredential(string name, JobTemplateCredentialArgs args, CustomResourceOptions? opts = null)
public JobTemplateCredential(String name, JobTemplateCredentialArgs args)
public JobTemplateCredential(String name, JobTemplateCredentialArgs args, CustomResourceOptions options)
type: awx:JobTemplateCredential
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 JobTemplateCredentialArgs
- 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 JobTemplateCredentialArgs
- 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 JobTemplateCredentialArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args JobTemplateCredentialArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args JobTemplateCredentialArgs
- 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 jobTemplateCredentialResource = new Awx.JobTemplateCredential("jobTemplateCredentialResource", new()
{
CredentialId = 0,
JobTemplateId = 0,
JobTemplateCredentialId = "string",
});
example, err := awx.NewJobTemplateCredential(ctx, "jobTemplateCredentialResource", &awx.JobTemplateCredentialArgs{
CredentialId: pulumi.Float64(0),
JobTemplateId: pulumi.Float64(0),
JobTemplateCredentialId: pulumi.String("string"),
})
var jobTemplateCredentialResource = new JobTemplateCredential("jobTemplateCredentialResource", JobTemplateCredentialArgs.builder()
.credentialId(0)
.jobTemplateId(0)
.jobTemplateCredentialId("string")
.build());
job_template_credential_resource = awx.JobTemplateCredential("jobTemplateCredentialResource",
credential_id=0,
job_template_id=0,
job_template_credential_id="string")
const jobTemplateCredentialResource = new awx.JobTemplateCredential("jobTemplateCredentialResource", {
credentialId: 0,
jobTemplateId: 0,
jobTemplateCredentialId: "string",
});
type: awx:JobTemplateCredential
properties:
credentialId: 0
jobTemplateCredentialId: string
jobTemplateId: 0
JobTemplateCredential 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 JobTemplateCredential resource accepts the following input properties:
- Credential
Id double - Job
Template doubleId - Job
Template stringCredential Id
- Credential
Id float64 - Job
Template float64Id - Job
Template stringCredential Id
- credential
Id Double - job
Template DoubleId - job
Template StringCredential Id
- credential
Id number - job
Template numberId - job
Template stringCredential Id
- credential_
id float - job_
template_ floatid - job_
template_ strcredential_ id
- credential
Id Number - job
Template NumberId - job
Template StringCredential Id
Outputs
All input properties are implicitly available as output properties. Additionally, the JobTemplateCredential resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing JobTemplateCredential Resource
Get an existing JobTemplateCredential 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?: JobTemplateCredentialState, opts?: CustomResourceOptions): JobTemplateCredential
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
credential_id: Optional[float] = None,
job_template_credential_id: Optional[str] = None,
job_template_id: Optional[float] = None) -> JobTemplateCredential
func GetJobTemplateCredential(ctx *Context, name string, id IDInput, state *JobTemplateCredentialState, opts ...ResourceOption) (*JobTemplateCredential, error)
public static JobTemplateCredential Get(string name, Input<string> id, JobTemplateCredentialState? state, CustomResourceOptions? opts = null)
public static JobTemplateCredential get(String name, Output<String> id, JobTemplateCredentialState state, CustomResourceOptions options)
resources: _: type: awx:JobTemplateCredential 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.
- Credential
Id double - Job
Template stringCredential Id - Job
Template doubleId
- Credential
Id float64 - Job
Template stringCredential Id - Job
Template float64Id
- credential
Id Double - job
Template StringCredential Id - job
Template DoubleId
- credential
Id number - job
Template stringCredential Id - job
Template numberId
- credential_
id float - job_
template_ strcredential_ id - job_
template_ floatid
- credential
Id Number - job
Template StringCredential Id - job
Template NumberId
Package Details
- Repository
- awx denouche/terraform-provider-awx
- License
- Notes
- This Pulumi package is based on the
awx
Terraform Provider.