We recommend using Azure Native.
Azure Classic v5.73.0 published on Monday, Apr 22, 2024 by Pulumi
azure.nginx.Configuration
Explore with Pulumi AI
Create Configuration Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Configuration(name: string, args: ConfigurationArgs, opts?: CustomResourceOptions);
@overload
def Configuration(resource_name: str,
args: ConfigurationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Configuration(resource_name: str,
opts: Optional[ResourceOptions] = None,
nginx_deployment_id: Optional[str] = None,
root_file: Optional[str] = None,
config_files: Optional[Sequence[ConfigurationConfigFileArgs]] = None,
package_data: Optional[str] = None,
protected_files: Optional[Sequence[ConfigurationProtectedFileArgs]] = 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.
Parameters
- 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.
Example
The following reference example uses placeholder values for all input properties.
var exampleconfigurationResourceResourceFromNginxconfiguration = new Azure.Nginx.Configuration("exampleconfigurationResourceResourceFromNginxconfiguration", new()
{
NginxDeploymentId = "string",
RootFile = "string",
ConfigFiles = new[]
{
new Azure.Nginx.Inputs.ConfigurationConfigFileArgs
{
Content = "string",
VirtualPath = "string",
},
},
PackageData = "string",
ProtectedFiles = new[]
{
new Azure.Nginx.Inputs.ConfigurationProtectedFileArgs
{
Content = "string",
VirtualPath = "string",
},
},
});
example, err := nginx.NewConfiguration(ctx, "exampleconfigurationResourceResourceFromNginxconfiguration", &nginx.ConfigurationArgs{
NginxDeploymentId: pulumi.String("string"),
RootFile: pulumi.String("string"),
ConfigFiles: nginx.ConfigurationConfigFileArray{
&nginx.ConfigurationConfigFileArgs{
Content: pulumi.String("string"),
VirtualPath: pulumi.String("string"),
},
},
PackageData: pulumi.String("string"),
ProtectedFiles: nginx.ConfigurationProtectedFileArray{
&nginx.ConfigurationProtectedFileArgs{
Content: pulumi.String("string"),
VirtualPath: pulumi.String("string"),
},
},
})
var exampleconfigurationResourceResourceFromNginxconfiguration = new Configuration("exampleconfigurationResourceResourceFromNginxconfiguration", ConfigurationArgs.builder()
.nginxDeploymentId("string")
.rootFile("string")
.configFiles(ConfigurationConfigFileArgs.builder()
.content("string")
.virtualPath("string")
.build())
.packageData("string")
.protectedFiles(ConfigurationProtectedFileArgs.builder()
.content("string")
.virtualPath("string")
.build())
.build());
exampleconfiguration_resource_resource_from_nginxconfiguration = azure.nginx.Configuration("exampleconfigurationResourceResourceFromNginxconfiguration",
nginx_deployment_id="string",
root_file="string",
config_files=[azure.nginx.ConfigurationConfigFileArgs(
content="string",
virtual_path="string",
)],
package_data="string",
protected_files=[azure.nginx.ConfigurationProtectedFileArgs(
content="string",
virtual_path="string",
)])
const exampleconfigurationResourceResourceFromNginxconfiguration = new azure.nginx.Configuration("exampleconfigurationResourceResourceFromNginxconfiguration", {
nginxDeploymentId: "string",
rootFile: "string",
configFiles: [{
content: "string",
virtualPath: "string",
}],
packageData: "string",
protectedFiles: [{
content: "string",
virtualPath: "string",
}],
});
type: azure:nginx:Configuration
properties:
configFiles:
- content: string
virtualPath: string
nginxDeploymentId: string
packageData: string
protectedFiles:
- content: string
virtualPath: string
rootFile: string
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:
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.
Supporting Types
ConfigurationConfigFile, ConfigurationConfigFileArgs
- Content string
- Virtual
Path string
- Content string
- Virtual
Path string
- content String
- virtual
Path String
- content string
- virtual
Path string
- content str
- virtual_
path str
- content String
- virtual
Path String
ConfigurationProtectedFile, ConfigurationProtectedFileArgs
- Content string
- Virtual
Path string
- Content string
- Virtual
Path string
- content String
- virtual
Path String
- content string
- virtual
Path string
- content str
- virtual_
path str
- content String
- virtual
Path String
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.