oci.NetworkFirewall.NetworkFirewallPolicyMappedSecret
Explore with Pulumi AI
This resource provides the Network Firewall Policy Mapped Secret resource in Oracle Cloud Infrastructure Network Firewall service.
Creates a new Mapped Secret for the Network Firewall Policy.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testNetworkFirewallPolicyMappedSecret = new oci.networkfirewall.NetworkFirewallPolicyMappedSecret("test_network_firewall_policy_mapped_secret", {
name: networkFirewallPolicyMappedSecretName,
networkFirewallPolicyId: testNetworkFirewallPolicy.id,
source: networkFirewallPolicyMappedSecretSource,
type: networkFirewallPolicyMappedSecretType,
vaultSecretId: testSecret.id,
versionNumber: networkFirewallPolicyMappedSecretVersionNumber,
});
import pulumi
import pulumi_oci as oci
test_network_firewall_policy_mapped_secret = oci.network_firewall.NetworkFirewallPolicyMappedSecret("test_network_firewall_policy_mapped_secret",
name=network_firewall_policy_mapped_secret_name,
network_firewall_policy_id=test_network_firewall_policy["id"],
source=network_firewall_policy_mapped_secret_source,
type=network_firewall_policy_mapped_secret_type,
vault_secret_id=test_secret["id"],
version_number=network_firewall_policy_mapped_secret_version_number)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/NetworkFirewall"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := NetworkFirewall.NewNetworkFirewallPolicyMappedSecret(ctx, "test_network_firewall_policy_mapped_secret", &NetworkFirewall.NetworkFirewallPolicyMappedSecretArgs{
Name: pulumi.Any(networkFirewallPolicyMappedSecretName),
NetworkFirewallPolicyId: pulumi.Any(testNetworkFirewallPolicy.Id),
Source: pulumi.Any(networkFirewallPolicyMappedSecretSource),
Type: pulumi.Any(networkFirewallPolicyMappedSecretType),
VaultSecretId: pulumi.Any(testSecret.Id),
VersionNumber: pulumi.Any(networkFirewallPolicyMappedSecretVersionNumber),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testNetworkFirewallPolicyMappedSecret = new Oci.NetworkFirewall.NetworkFirewallPolicyMappedSecret("test_network_firewall_policy_mapped_secret", new()
{
Name = networkFirewallPolicyMappedSecretName,
NetworkFirewallPolicyId = testNetworkFirewallPolicy.Id,
Source = networkFirewallPolicyMappedSecretSource,
Type = networkFirewallPolicyMappedSecretType,
VaultSecretId = testSecret.Id,
VersionNumber = networkFirewallPolicyMappedSecretVersionNumber,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.NetworkFirewall.NetworkFirewallPolicyMappedSecret;
import com.pulumi.oci.NetworkFirewall.NetworkFirewallPolicyMappedSecretArgs;
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 testNetworkFirewallPolicyMappedSecret = new NetworkFirewallPolicyMappedSecret("testNetworkFirewallPolicyMappedSecret", NetworkFirewallPolicyMappedSecretArgs.builder()
.name(networkFirewallPolicyMappedSecretName)
.networkFirewallPolicyId(testNetworkFirewallPolicy.id())
.source(networkFirewallPolicyMappedSecretSource)
.type(networkFirewallPolicyMappedSecretType)
.vaultSecretId(testSecret.id())
.versionNumber(networkFirewallPolicyMappedSecretVersionNumber)
.build());
}
}
resources:
testNetworkFirewallPolicyMappedSecret:
type: oci:NetworkFirewall:NetworkFirewallPolicyMappedSecret
name: test_network_firewall_policy_mapped_secret
properties:
name: ${networkFirewallPolicyMappedSecretName}
networkFirewallPolicyId: ${testNetworkFirewallPolicy.id}
source: ${networkFirewallPolicyMappedSecretSource}
type: ${networkFirewallPolicyMappedSecretType}
vaultSecretId: ${testSecret.id}
versionNumber: ${networkFirewallPolicyMappedSecretVersionNumber}
Create NetworkFirewallPolicyMappedSecret Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NetworkFirewallPolicyMappedSecret(name: string, args: NetworkFirewallPolicyMappedSecretArgs, opts?: CustomResourceOptions);
@overload
def NetworkFirewallPolicyMappedSecret(resource_name: str,
args: NetworkFirewallPolicyMappedSecretArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NetworkFirewallPolicyMappedSecret(resource_name: str,
opts: Optional[ResourceOptions] = None,
network_firewall_policy_id: Optional[str] = None,
source: Optional[str] = None,
type: Optional[str] = None,
vault_secret_id: Optional[str] = None,
version_number: Optional[int] = None,
name: Optional[str] = None)
func NewNetworkFirewallPolicyMappedSecret(ctx *Context, name string, args NetworkFirewallPolicyMappedSecretArgs, opts ...ResourceOption) (*NetworkFirewallPolicyMappedSecret, error)
public NetworkFirewallPolicyMappedSecret(string name, NetworkFirewallPolicyMappedSecretArgs args, CustomResourceOptions? opts = null)
public NetworkFirewallPolicyMappedSecret(String name, NetworkFirewallPolicyMappedSecretArgs args)
public NetworkFirewallPolicyMappedSecret(String name, NetworkFirewallPolicyMappedSecretArgs args, CustomResourceOptions options)
type: oci:NetworkFirewall:NetworkFirewallPolicyMappedSecret
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 NetworkFirewallPolicyMappedSecretArgs
- 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 NetworkFirewallPolicyMappedSecretArgs
- 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 NetworkFirewallPolicyMappedSecretArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NetworkFirewallPolicyMappedSecretArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NetworkFirewallPolicyMappedSecretArgs
- 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 networkFirewallPolicyMappedSecretResource = new Oci.NetworkFirewall.NetworkFirewallPolicyMappedSecret("networkFirewallPolicyMappedSecretResource", new()
{
NetworkFirewallPolicyId = "string",
Source = "string",
Type = "string",
VaultSecretId = "string",
VersionNumber = 0,
Name = "string",
});
example, err := NetworkFirewall.NewNetworkFirewallPolicyMappedSecret(ctx, "networkFirewallPolicyMappedSecretResource", &NetworkFirewall.NetworkFirewallPolicyMappedSecretArgs{
NetworkFirewallPolicyId: pulumi.String("string"),
Source: pulumi.String("string"),
Type: pulumi.String("string"),
VaultSecretId: pulumi.String("string"),
VersionNumber: pulumi.Int(0),
Name: pulumi.String("string"),
})
var networkFirewallPolicyMappedSecretResource = new NetworkFirewallPolicyMappedSecret("networkFirewallPolicyMappedSecretResource", NetworkFirewallPolicyMappedSecretArgs.builder()
.networkFirewallPolicyId("string")
.source("string")
.type("string")
.vaultSecretId("string")
.versionNumber(0)
.name("string")
.build());
network_firewall_policy_mapped_secret_resource = oci.network_firewall.NetworkFirewallPolicyMappedSecret("networkFirewallPolicyMappedSecretResource",
network_firewall_policy_id="string",
source="string",
type="string",
vault_secret_id="string",
version_number=0,
name="string")
const networkFirewallPolicyMappedSecretResource = new oci.networkfirewall.NetworkFirewallPolicyMappedSecret("networkFirewallPolicyMappedSecretResource", {
networkFirewallPolicyId: "string",
source: "string",
type: "string",
vaultSecretId: "string",
versionNumber: 0,
name: "string",
});
type: oci:NetworkFirewall:NetworkFirewallPolicyMappedSecret
properties:
name: string
networkFirewallPolicyId: string
source: string
type: string
vaultSecretId: string
versionNumber: 0
NetworkFirewallPolicyMappedSecret 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 NetworkFirewallPolicyMappedSecret resource accepts the following input properties:
- Network
Firewall stringPolicy Id - Unique Network Firewall Policy identifier
- Source string
- Source of the secrets, where the secrets are stored. The only accepted value is
OCI_VAULT
- Type string
- Type of the secrets mapped based on the policy.
SSL_INBOUND_INSPECTION
: For Inbound inspection of SSL traffic.SSL_FORWARD_PROXY
: For forward proxy certificates for SSL inspection.
- Vault
Secret stringId - (Updatable) OCID for the Vault Secret to be used.
- Version
Number int (Updatable) Version number of the secret to be used.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Name string
- Unique name to identify the group of urls to be used in the policy rules.
- Network
Firewall stringPolicy Id - Unique Network Firewall Policy identifier
- Source string
- Source of the secrets, where the secrets are stored. The only accepted value is
OCI_VAULT
- Type string
- Type of the secrets mapped based on the policy.
SSL_INBOUND_INSPECTION
: For Inbound inspection of SSL traffic.SSL_FORWARD_PROXY
: For forward proxy certificates for SSL inspection.
- Vault
Secret stringId - (Updatable) OCID for the Vault Secret to be used.
- Version
Number int (Updatable) Version number of the secret to be used.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Name string
- Unique name to identify the group of urls to be used in the policy rules.
- network
Firewall StringPolicy Id - Unique Network Firewall Policy identifier
- source String
- Source of the secrets, where the secrets are stored. The only accepted value is
OCI_VAULT
- type String
- Type of the secrets mapped based on the policy.
SSL_INBOUND_INSPECTION
: For Inbound inspection of SSL traffic.SSL_FORWARD_PROXY
: For forward proxy certificates for SSL inspection.
- vault
Secret StringId - (Updatable) OCID for the Vault Secret to be used.
- version
Number Integer (Updatable) Version number of the secret to be used.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- name String
- Unique name to identify the group of urls to be used in the policy rules.
- network
Firewall stringPolicy Id - Unique Network Firewall Policy identifier
- source string
- Source of the secrets, where the secrets are stored. The only accepted value is
OCI_VAULT
- type string
- Type of the secrets mapped based on the policy.
SSL_INBOUND_INSPECTION
: For Inbound inspection of SSL traffic.SSL_FORWARD_PROXY
: For forward proxy certificates for SSL inspection.
- vault
Secret stringId - (Updatable) OCID for the Vault Secret to be used.
- version
Number number (Updatable) Version number of the secret to be used.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- name string
- Unique name to identify the group of urls to be used in the policy rules.
- network_
firewall_ strpolicy_ id - Unique Network Firewall Policy identifier
- source str
- Source of the secrets, where the secrets are stored. The only accepted value is
OCI_VAULT
- type str
- Type of the secrets mapped based on the policy.
SSL_INBOUND_INSPECTION
: For Inbound inspection of SSL traffic.SSL_FORWARD_PROXY
: For forward proxy certificates for SSL inspection.
- vault_
secret_ strid - (Updatable) OCID for the Vault Secret to be used.
- version_
number int (Updatable) Version number of the secret to be used.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- name str
- Unique name to identify the group of urls to be used in the policy rules.
- network
Firewall StringPolicy Id - Unique Network Firewall Policy identifier
- source String
- Source of the secrets, where the secrets are stored. The only accepted value is
OCI_VAULT
- type String
- Type of the secrets mapped based on the policy.
SSL_INBOUND_INSPECTION
: For Inbound inspection of SSL traffic.SSL_FORWARD_PROXY
: For forward proxy certificates for SSL inspection.
- vault
Secret StringId - (Updatable) OCID for the Vault Secret to be used.
- version
Number Number (Updatable) Version number of the secret to be used.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- name String
- Unique name to identify the group of urls to be used in the policy rules.
Outputs
All input properties are implicitly available as output properties. Additionally, the NetworkFirewallPolicyMappedSecret resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Parent
Resource stringId - OCID of the Network Firewall Policy this Mapped Secret belongs to.
- Id string
- The provider-assigned unique ID for this managed resource.
- Parent
Resource stringId - OCID of the Network Firewall Policy this Mapped Secret belongs to.
- id String
- The provider-assigned unique ID for this managed resource.
- parent
Resource StringId - OCID of the Network Firewall Policy this Mapped Secret belongs to.
- id string
- The provider-assigned unique ID for this managed resource.
- parent
Resource stringId - OCID of the Network Firewall Policy this Mapped Secret belongs to.
- id str
- The provider-assigned unique ID for this managed resource.
- parent_
resource_ strid - OCID of the Network Firewall Policy this Mapped Secret belongs to.
- id String
- The provider-assigned unique ID for this managed resource.
- parent
Resource StringId - OCID of the Network Firewall Policy this Mapped Secret belongs to.
Look up Existing NetworkFirewallPolicyMappedSecret Resource
Get an existing NetworkFirewallPolicyMappedSecret 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?: NetworkFirewallPolicyMappedSecretState, opts?: CustomResourceOptions): NetworkFirewallPolicyMappedSecret
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
network_firewall_policy_id: Optional[str] = None,
parent_resource_id: Optional[str] = None,
source: Optional[str] = None,
type: Optional[str] = None,
vault_secret_id: Optional[str] = None,
version_number: Optional[int] = None) -> NetworkFirewallPolicyMappedSecret
func GetNetworkFirewallPolicyMappedSecret(ctx *Context, name string, id IDInput, state *NetworkFirewallPolicyMappedSecretState, opts ...ResourceOption) (*NetworkFirewallPolicyMappedSecret, error)
public static NetworkFirewallPolicyMappedSecret Get(string name, Input<string> id, NetworkFirewallPolicyMappedSecretState? state, CustomResourceOptions? opts = null)
public static NetworkFirewallPolicyMappedSecret get(String name, Output<String> id, NetworkFirewallPolicyMappedSecretState 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.
- Name string
- Unique name to identify the group of urls to be used in the policy rules.
- Network
Firewall stringPolicy Id - Unique Network Firewall Policy identifier
- Parent
Resource stringId - OCID of the Network Firewall Policy this Mapped Secret belongs to.
- Source string
- Source of the secrets, where the secrets are stored. The only accepted value is
OCI_VAULT
- Type string
- Type of the secrets mapped based on the policy.
SSL_INBOUND_INSPECTION
: For Inbound inspection of SSL traffic.SSL_FORWARD_PROXY
: For forward proxy certificates for SSL inspection.
- Vault
Secret stringId - (Updatable) OCID for the Vault Secret to be used.
- Version
Number int (Updatable) Version number of the secret to be used.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Name string
- Unique name to identify the group of urls to be used in the policy rules.
- Network
Firewall stringPolicy Id - Unique Network Firewall Policy identifier
- Parent
Resource stringId - OCID of the Network Firewall Policy this Mapped Secret belongs to.
- Source string
- Source of the secrets, where the secrets are stored. The only accepted value is
OCI_VAULT
- Type string
- Type of the secrets mapped based on the policy.
SSL_INBOUND_INSPECTION
: For Inbound inspection of SSL traffic.SSL_FORWARD_PROXY
: For forward proxy certificates for SSL inspection.
- Vault
Secret stringId - (Updatable) OCID for the Vault Secret to be used.
- Version
Number int (Updatable) Version number of the secret to be used.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- name String
- Unique name to identify the group of urls to be used in the policy rules.
- network
Firewall StringPolicy Id - Unique Network Firewall Policy identifier
- parent
Resource StringId - OCID of the Network Firewall Policy this Mapped Secret belongs to.
- source String
- Source of the secrets, where the secrets are stored. The only accepted value is
OCI_VAULT
- type String
- Type of the secrets mapped based on the policy.
SSL_INBOUND_INSPECTION
: For Inbound inspection of SSL traffic.SSL_FORWARD_PROXY
: For forward proxy certificates for SSL inspection.
- vault
Secret StringId - (Updatable) OCID for the Vault Secret to be used.
- version
Number Integer (Updatable) Version number of the secret to be used.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- name string
- Unique name to identify the group of urls to be used in the policy rules.
- network
Firewall stringPolicy Id - Unique Network Firewall Policy identifier
- parent
Resource stringId - OCID of the Network Firewall Policy this Mapped Secret belongs to.
- source string
- Source of the secrets, where the secrets are stored. The only accepted value is
OCI_VAULT
- type string
- Type of the secrets mapped based on the policy.
SSL_INBOUND_INSPECTION
: For Inbound inspection of SSL traffic.SSL_FORWARD_PROXY
: For forward proxy certificates for SSL inspection.
- vault
Secret stringId - (Updatable) OCID for the Vault Secret to be used.
- version
Number number (Updatable) Version number of the secret to be used.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- name str
- Unique name to identify the group of urls to be used in the policy rules.
- network_
firewall_ strpolicy_ id - Unique Network Firewall Policy identifier
- parent_
resource_ strid - OCID of the Network Firewall Policy this Mapped Secret belongs to.
- source str
- Source of the secrets, where the secrets are stored. The only accepted value is
OCI_VAULT
- type str
- Type of the secrets mapped based on the policy.
SSL_INBOUND_INSPECTION
: For Inbound inspection of SSL traffic.SSL_FORWARD_PROXY
: For forward proxy certificates for SSL inspection.
- vault_
secret_ strid - (Updatable) OCID for the Vault Secret to be used.
- version_
number int (Updatable) Version number of the secret to be used.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- name String
- Unique name to identify the group of urls to be used in the policy rules.
- network
Firewall StringPolicy Id - Unique Network Firewall Policy identifier
- parent
Resource StringId - OCID of the Network Firewall Policy this Mapped Secret belongs to.
- source String
- Source of the secrets, where the secrets are stored. The only accepted value is
OCI_VAULT
- type String
- Type of the secrets mapped based on the policy.
SSL_INBOUND_INSPECTION
: For Inbound inspection of SSL traffic.SSL_FORWARD_PROXY
: For forward proxy certificates for SSL inspection.
- vault
Secret StringId - (Updatable) OCID for the Vault Secret to be used.
- version
Number Number (Updatable) Version number of the secret to be used.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Import
NetworkFirewallPolicyMappedSecrets can be imported using the name
, e.g.
$ pulumi import oci:NetworkFirewall/networkFirewallPolicyMappedSecret:NetworkFirewallPolicyMappedSecret test_network_firewall_policy_mapped_secret "networkFirewallPolicies/{networkFirewallPolicyId}/mappedSecrets/{mappedSecretName}"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.