We recommend using Azure Native.
azure.nginx.Configuration
Explore with Pulumi AI
Manages the configuration for a Nginx Deployment.
Create Configuration Resource
new Configuration(name: string, args: ConfigurationArgs, opts?: CustomResourceOptions);
@overload
def Configuration(resource_name: str,
opts: Optional[ResourceOptions] = None,
config_files: Optional[Sequence[ConfigurationConfigFileArgs]] = None,
nginx_deployment_id: Optional[str] = None,
package_data: Optional[str] = None,
protected_files: Optional[Sequence[ConfigurationProtectedFileArgs]] = None,
root_file: Optional[str] = None)
@overload
def Configuration(resource_name: str,
args: ConfigurationArgs,
opts: Optional[ResourceOptions] = None)
func NewConfiguration(ctx *Context, name string, args ConfigurationArgs, opts ...ResourceOption) (*Configuration, error)
public Configuration(string name, ConfigurationArgs args, CustomResourceOptions? opts = null)
public Configuration(String name, ConfigurationArgs args)
public Configuration(String name, ConfigurationArgs args, CustomResourceOptions options)
type: azure:nginx:Configuration
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConfigurationArgs
- 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 ConfigurationArgs
- 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 ConfigurationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConfigurationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ConfigurationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Configuration 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 Configuration resource accepts the following input properties:
- Nginx
Deployment stringId The ID of the Nginx Deployment. Changing this forces a new Nginx Configuration to be created.
- Root
File string Specify the root file path of this Nginx Configuration.
- Config
Files List<ConfigurationConfig File> One or more
config_file
blocks as defined below.- Package
Data string Specify the package data for this configuration.
- Protected
Files List<ConfigurationProtected File> One or more
protected_file
(Protected File) blocks with sensitive information as defined below. If specifiedconfig_file
must also be specified.
- Nginx
Deployment stringId The ID of the Nginx Deployment. Changing this forces a new Nginx Configuration to be created.
- Root
File string Specify the root file path of this Nginx Configuration.
- Config
Files []ConfigurationConfig File Args One or more
config_file
blocks as defined below.- Package
Data string Specify the package data for this configuration.
- Protected
Files []ConfigurationProtected File Args One or more
protected_file
(Protected File) blocks with sensitive information as defined below. If specifiedconfig_file
must also be specified.
- nginx
Deployment StringId The ID of the Nginx Deployment. Changing this forces a new Nginx Configuration to be created.
- root
File String Specify the root file path of this Nginx Configuration.
- config
Files List<ConfigurationConfig File> One or more
config_file
blocks as defined below.- package
Data String Specify the package data for this configuration.
- protected
Files List<ConfigurationProtected File> One or more
protected_file
(Protected File) blocks with sensitive information as defined below. If specifiedconfig_file
must also be specified.
- nginx
Deployment stringId The ID of the Nginx Deployment. Changing this forces a new Nginx Configuration to be created.
- root
File string Specify the root file path of this Nginx Configuration.
- config
Files ConfigurationConfig File[] One or more
config_file
blocks as defined below.- package
Data string Specify the package data for this configuration.
- protected
Files ConfigurationProtected File[] One or more
protected_file
(Protected File) blocks with sensitive information as defined below. If specifiedconfig_file
must also be specified.
- nginx_
deployment_ strid The ID of the Nginx Deployment. Changing this forces a new Nginx Configuration to be created.
- root_
file str Specify the root file path of this Nginx Configuration.
- config_
files Sequence[ConfigurationConfig File Args] One or more
config_file
blocks as defined below.- package_
data str Specify the package data for this configuration.
- protected_
files Sequence[ConfigurationProtected File Args] One or more
protected_file
(Protected File) blocks with sensitive information as defined below. If specifiedconfig_file
must also be specified.
- nginx
Deployment StringId The ID of the Nginx Deployment. Changing this forces a new Nginx Configuration to be created.
- root
File String Specify the root file path of this Nginx Configuration.
- config
Files List<Property Map> One or more
config_file
blocks as defined below.- package
Data String Specify the package data for this configuration.
- protected
Files List<Property Map> One or more
protected_file
(Protected File) blocks with sensitive information as defined below. If specifiedconfig_file
must also be specified.
Outputs
All input properties are implicitly available as output properties. Additionally, the Configuration 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 Configuration Resource
Get an existing Configuration 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?: ConfigurationState, opts?: CustomResourceOptions): Configuration
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
config_files: Optional[Sequence[ConfigurationConfigFileArgs]] = None,
nginx_deployment_id: Optional[str] = None,
package_data: Optional[str] = None,
protected_files: Optional[Sequence[ConfigurationProtectedFileArgs]] = None,
root_file: Optional[str] = None) -> Configuration
func GetConfiguration(ctx *Context, name string, id IDInput, state *ConfigurationState, opts ...ResourceOption) (*Configuration, error)
public static Configuration Get(string name, Input<string> id, ConfigurationState? state, CustomResourceOptions? opts = null)
public static Configuration get(String name, Output<String> id, ConfigurationState 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.
- Config
Files List<ConfigurationConfig File> One or more
config_file
blocks as defined below.- Nginx
Deployment stringId The ID of the Nginx Deployment. Changing this forces a new Nginx Configuration to be created.
- Package
Data string Specify the package data for this configuration.
- Protected
Files List<ConfigurationProtected File> One or more
protected_file
(Protected File) blocks with sensitive information as defined below. If specifiedconfig_file
must also be specified.- Root
File string Specify the root file path of this Nginx Configuration.
- Config
Files []ConfigurationConfig File Args One or more
config_file
blocks as defined below.- Nginx
Deployment stringId The ID of the Nginx Deployment. Changing this forces a new Nginx Configuration to be created.
- Package
Data string Specify the package data for this configuration.
- Protected
Files []ConfigurationProtected File Args One or more
protected_file
(Protected File) blocks with sensitive information as defined below. If specifiedconfig_file
must also be specified.- Root
File string Specify the root file path of this Nginx Configuration.
- config
Files List<ConfigurationConfig File> One or more
config_file
blocks as defined below.- nginx
Deployment StringId The ID of the Nginx Deployment. Changing this forces a new Nginx Configuration to be created.
- package
Data String Specify the package data for this configuration.
- protected
Files List<ConfigurationProtected File> One or more
protected_file
(Protected File) blocks with sensitive information as defined below. If specifiedconfig_file
must also be specified.- root
File String Specify the root file path of this Nginx Configuration.
- config
Files ConfigurationConfig File[] One or more
config_file
blocks as defined below.- nginx
Deployment stringId The ID of the Nginx Deployment. Changing this forces a new Nginx Configuration to be created.
- package
Data string Specify the package data for this configuration.
- protected
Files ConfigurationProtected File[] One or more
protected_file
(Protected File) blocks with sensitive information as defined below. If specifiedconfig_file
must also be specified.- root
File string Specify the root file path of this Nginx Configuration.
- config_
files Sequence[ConfigurationConfig File Args] One or more
config_file
blocks as defined below.- nginx_
deployment_ strid The ID of the Nginx Deployment. Changing this forces a new Nginx Configuration to be created.
- package_
data str Specify the package data for this configuration.
- protected_
files Sequence[ConfigurationProtected File Args] One or more
protected_file
(Protected File) blocks with sensitive information as defined below. If specifiedconfig_file
must also be specified.- root_
file str Specify the root file path of this Nginx Configuration.
- config
Files List<Property Map> One or more
config_file
blocks as defined below.- nginx
Deployment StringId The ID of the Nginx Deployment. Changing this forces a new Nginx Configuration to be created.
- package
Data String Specify the package data for this configuration.
- protected
Files List<Property Map> One or more
protected_file
(Protected File) blocks with sensitive information as defined below. If specifiedconfig_file
must also be specified.- root
File String Specify the root file path of this Nginx Configuration.
Supporting Types
ConfigurationConfigFile, ConfigurationConfigFileArgs
- Content string
Specifies the base-64 encoded contents of this config file.
- Virtual
Path string Specify the path of this config file.
- Content string
Specifies the base-64 encoded contents of this config file.
- Virtual
Path string Specify the path of this config file.
- content String
Specifies the base-64 encoded contents of this config file.
- virtual
Path String Specify the path of this config file.
- content string
Specifies the base-64 encoded contents of this config file.
- virtual
Path string Specify the path of this config file.
- content str
Specifies the base-64 encoded contents of this config file.
- virtual_
path str Specify the path of this config file.
- content String
Specifies the base-64 encoded contents of this config file.
- virtual
Path String Specify the path of this config file.
ConfigurationProtectedFile, ConfigurationProtectedFileArgs
- Content string
Specifies the base-64 encoded contents of this config file (Sensitive).
- Virtual
Path string Specify the path of this config file.
- Content string
Specifies the base-64 encoded contents of this config file (Sensitive).
- Virtual
Path string Specify the path of this config file.
- content String
Specifies the base-64 encoded contents of this config file (Sensitive).
- virtual
Path String Specify the path of this config file.
- content string
Specifies the base-64 encoded contents of this config file (Sensitive).
- virtual
Path string Specify the path of this config file.
- content str
Specifies the base-64 encoded contents of this config file (Sensitive).
- virtual_
path str Specify the path of this config file.
- content String
Specifies the base-64 encoded contents of this config file (Sensitive).
- virtual
Path String Specify the path of this config file.
Import
Nginxs can be imported using the resource id
, e.g.
$ pulumi import azure:nginx/configuration:Configuration example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Nginx.NginxPlus/nginxDeployments/dep1/configurations/default
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
azurerm
Terraform Provider.