The provider type for the nomad package. By default, resources use package-wide configuration
settings, however an explicit Provider instance may be created and passed during resource
construction to achieve fine-grained programmatic control over provider settings. See the
documentation for more information.
Create Provider Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Provider(name: string, args?: ProviderArgs, opts?: CustomResourceOptions);@overload
def Provider(resource_name: str,
args: Optional[ProviderArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Provider(resource_name: str,
opts: Optional[ResourceOptions] = None,
address: Optional[str] = None,
auth_jwt: Optional[ProviderAuthJwtArgs] = None,
ca_file: Optional[str] = None,
ca_pem: Optional[str] = None,
cert_file: Optional[str] = None,
cert_pem: Optional[str] = None,
headers: Optional[Sequence[ProviderHeaderArgs]] = None,
http_auth: Optional[str] = None,
ignore_env_vars: Optional[Mapping[str, bool]] = None,
key_file: Optional[str] = None,
key_pem: Optional[str] = None,
region: Optional[str] = None,
secret_id: Optional[str] = None,
skip_verify: Optional[bool] = None)func NewProvider(ctx *Context, name string, args *ProviderArgs, opts ...ResourceOption) (*Provider, error)public Provider(string name, ProviderArgs? args = null, CustomResourceOptions? opts = null)
public Provider(String name, ProviderArgs args)
public Provider(String name, ProviderArgs args, CustomResourceOptions options)
type: pulumi:providers:nomad
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 ProviderArgs
- 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 ProviderArgs
- 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 ProviderArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProviderArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ProviderArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Provider 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 Provider resource accepts the following input properties:
- Address string
- URL of the root of the target Nomad agent.
- Auth
Jwt ProviderAuth Jwt - Authenticates to Nomad using a JWT authentication method.
- Ca
File string - A path to a PEM-encoded certificate authority used to verify the remote agent's certificate.
- Ca
Pem string - PEM-encoded certificate authority used to verify the remote agent's certificate.
- Cert
File string - A path to a PEM-encoded certificate provided to the remote agent; requires use of key_file or key_pem.
- Cert
Pem string - PEM-encoded certificate provided to the remote agent; requires use of key_file or key_pem.
- Headers
List<Provider
Header> - The headers to send with each Nomad request.
- Http
Auth string - HTTP basic auth configuration.
- Ignore
Env Dictionary<string, bool>Vars - A set of environment variables that are ignored by the provider when configuring the Nomad API client.
- Key
File string - A path to a PEM-encoded private key, required if cert_file or cert_pem is specified.
- Key
Pem string - PEM-encoded private key, required if cert_file or cert_pem is specified.
- Region string
- Region of the target Nomad agent.
- Secret
Id string - ACL token secret for API requests.
- Skip
Verify bool - Skip TLS verification on client side.
- Address string
- URL of the root of the target Nomad agent.
- Auth
Jwt ProviderAuth Jwt Args - Authenticates to Nomad using a JWT authentication method.
- Ca
File string - A path to a PEM-encoded certificate authority used to verify the remote agent's certificate.
- Ca
Pem string - PEM-encoded certificate authority used to verify the remote agent's certificate.
- Cert
File string - A path to a PEM-encoded certificate provided to the remote agent; requires use of key_file or key_pem.
- Cert
Pem string - PEM-encoded certificate provided to the remote agent; requires use of key_file or key_pem.
- Headers
[]Provider
Header Args - The headers to send with each Nomad request.
- Http
Auth string - HTTP basic auth configuration.
- Ignore
Env map[string]boolVars - A set of environment variables that are ignored by the provider when configuring the Nomad API client.
- Key
File string - A path to a PEM-encoded private key, required if cert_file or cert_pem is specified.
- Key
Pem string - PEM-encoded private key, required if cert_file or cert_pem is specified.
- Region string
- Region of the target Nomad agent.
- Secret
Id string - ACL token secret for API requests.
- Skip
Verify bool - Skip TLS verification on client side.
- address String
- URL of the root of the target Nomad agent.
- auth
Jwt ProviderAuth Jwt - Authenticates to Nomad using a JWT authentication method.
- ca
File String - A path to a PEM-encoded certificate authority used to verify the remote agent's certificate.
- ca
Pem String - PEM-encoded certificate authority used to verify the remote agent's certificate.
- cert
File String - A path to a PEM-encoded certificate provided to the remote agent; requires use of key_file or key_pem.
- cert
Pem String - PEM-encoded certificate provided to the remote agent; requires use of key_file or key_pem.
- headers
List<Provider
Header> - The headers to send with each Nomad request.
- http
Auth String - HTTP basic auth configuration.
- ignore
Env Map<String,Boolean>Vars - A set of environment variables that are ignored by the provider when configuring the Nomad API client.
- key
File String - A path to a PEM-encoded private key, required if cert_file or cert_pem is specified.
- key
Pem String - PEM-encoded private key, required if cert_file or cert_pem is specified.
- region String
- Region of the target Nomad agent.
- secret
Id String - ACL token secret for API requests.
- skip
Verify Boolean - Skip TLS verification on client side.
- address string
- URL of the root of the target Nomad agent.
- auth
Jwt ProviderAuth Jwt - Authenticates to Nomad using a JWT authentication method.
- ca
File string - A path to a PEM-encoded certificate authority used to verify the remote agent's certificate.
- ca
Pem string - PEM-encoded certificate authority used to verify the remote agent's certificate.
- cert
File string - A path to a PEM-encoded certificate provided to the remote agent; requires use of key_file or key_pem.
- cert
Pem string - PEM-encoded certificate provided to the remote agent; requires use of key_file or key_pem.
- headers
Provider
Header[] - The headers to send with each Nomad request.
- http
Auth string - HTTP basic auth configuration.
- ignore
Env {[key: string]: boolean}Vars - A set of environment variables that are ignored by the provider when configuring the Nomad API client.
- key
File string - A path to a PEM-encoded private key, required if cert_file or cert_pem is specified.
- key
Pem string - PEM-encoded private key, required if cert_file or cert_pem is specified.
- region string
- Region of the target Nomad agent.
- secret
Id string - ACL token secret for API requests.
- skip
Verify boolean - Skip TLS verification on client side.
- address str
- URL of the root of the target Nomad agent.
- auth_
jwt ProviderAuth Jwt Args - Authenticates to Nomad using a JWT authentication method.
- ca_
file str - A path to a PEM-encoded certificate authority used to verify the remote agent's certificate.
- ca_
pem str - PEM-encoded certificate authority used to verify the remote agent's certificate.
- cert_
file str - A path to a PEM-encoded certificate provided to the remote agent; requires use of key_file or key_pem.
- cert_
pem str - PEM-encoded certificate provided to the remote agent; requires use of key_file or key_pem.
- headers
Sequence[Provider
Header Args] - The headers to send with each Nomad request.
- http_
auth str - HTTP basic auth configuration.
- ignore_
env_ Mapping[str, bool]vars - A set of environment variables that are ignored by the provider when configuring the Nomad API client.
- key_
file str - A path to a PEM-encoded private key, required if cert_file or cert_pem is specified.
- key_
pem str - PEM-encoded private key, required if cert_file or cert_pem is specified.
- region str
- Region of the target Nomad agent.
- secret_
id str - ACL token secret for API requests.
- skip_
verify bool - Skip TLS verification on client side.
- address String
- URL of the root of the target Nomad agent.
- auth
Jwt Property Map - Authenticates to Nomad using a JWT authentication method.
- ca
File String - A path to a PEM-encoded certificate authority used to verify the remote agent's certificate.
- ca
Pem String - PEM-encoded certificate authority used to verify the remote agent's certificate.
- cert
File String - A path to a PEM-encoded certificate provided to the remote agent; requires use of key_file or key_pem.
- cert
Pem String - PEM-encoded certificate provided to the remote agent; requires use of key_file or key_pem.
- headers List<Property Map>
- The headers to send with each Nomad request.
- http
Auth String - HTTP basic auth configuration.
- ignore
Env Map<Boolean>Vars - A set of environment variables that are ignored by the provider when configuring the Nomad API client.
- key
File String - A path to a PEM-encoded private key, required if cert_file or cert_pem is specified.
- key
Pem String - PEM-encoded private key, required if cert_file or cert_pem is specified.
- region String
- Region of the target Nomad agent.
- secret
Id String - ACL token secret for API requests.
- skip
Verify Boolean - Skip TLS verification on client side.
Outputs
All input properties are implicitly available as output properties. Additionally, the Provider 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.
Provider Resource Methods
TerraformConfig Method
This function returns a Terraform config object with terraform-namecased keys,to be used with the Terraform Module Provider.
Using TerraformConfig
terraformConfig(): Output<Provider.TerraformConfigResult>def terraform_config() -> Output[Provider.Terraform_configResult]func (r *Provider) TerraformConfig() (ProviderTerraformConfigResultOutput, error)public Output<Provider.TerraformConfigResult> TerraformConfig()TerraformConfig Result
- Result Dictionary<string, object>
- Result map[string]interface{}
- result Map<String,Object>
- result {[key: string]: any}
- result Mapping[str, Any]
- result Map<Any>
Supporting Types
ProviderAuthJwt, ProviderAuthJwtArgs
- Auth
Method string - The name of the auth method to use for login.
- Login
Token string - The externally issued authentication token to be exchanged for a Nomad ACL Token.
- Auth
Method string - The name of the auth method to use for login.
- Login
Token string - The externally issued authentication token to be exchanged for a Nomad ACL Token.
- auth
Method String - The name of the auth method to use for login.
- login
Token String - The externally issued authentication token to be exchanged for a Nomad ACL Token.
- auth
Method string - The name of the auth method to use for login.
- login
Token string - The externally issued authentication token to be exchanged for a Nomad ACL Token.
- auth_
method str - The name of the auth method to use for login.
- login_
token str - The externally issued authentication token to be exchanged for a Nomad ACL Token.
- auth
Method String - The name of the auth method to use for login.
- login
Token String - The externally issued authentication token to be exchanged for a Nomad ACL Token.
ProviderHeader, ProviderHeaderArgs
Package Details
- Repository
- HashiCorp Nomad pulumi/pulumi-nomad
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
nomadTerraform Provider.
