DecryptionRule data source
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scm from "@pulumi/scm";
// We use the ID from the resource created above.
const singleRuleById = scm.getDecryptionRule({
id: "b3544acb-fc55-4c6f-921d-4128b5a1d135",
});
export const singleDecryptionRuleName = singleRuleById;
import pulumi
import pulumi_scm as scm
# We use the ID from the resource created above.
single_rule_by_id = scm.get_decryption_rule(id="b3544acb-fc55-4c6f-921d-4128b5a1d135")
pulumi.export("singleDecryptionRuleName", single_rule_by_id)
package main
import (
"github.com/pulumi/pulumi-scm/sdk/go/scm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// We use the ID from the resource created above.
singleRuleById, err := scm.LookupDecryptionRule(ctx, &scm.LookupDecryptionRuleArgs{
Id: "b3544acb-fc55-4c6f-921d-4128b5a1d135",
}, nil)
if err != nil {
return err
}
ctx.Export("singleDecryptionRuleName", singleRuleById)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scm = Pulumi.Scm;
return await Deployment.RunAsync(() =>
{
// We use the ID from the resource created above.
var singleRuleById = Scm.GetDecryptionRule.Invoke(new()
{
Id = "b3544acb-fc55-4c6f-921d-4128b5a1d135",
});
return new Dictionary<string, object?>
{
["singleDecryptionRuleName"] = singleRuleById,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scm.ScmFunctions;
import com.pulumi.scm.inputs.GetDecryptionRuleArgs;
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) {
// We use the ID from the resource created above.
final var singleRuleById = ScmFunctions.getDecryptionRule(GetDecryptionRuleArgs.builder()
.id("b3544acb-fc55-4c6f-921d-4128b5a1d135")
.build());
ctx.export("singleDecryptionRuleName", singleRuleById);
}
}
variables:
# We use the ID from the resource created above.
singleRuleById:
fn::invoke:
function: scm:getDecryptionRule
arguments:
id: b3544acb-fc55-4c6f-921d-4128b5a1d135
outputs:
singleDecryptionRuleName: ${singleRuleById}
Using getDecryptionRule
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getDecryptionRule(args: GetDecryptionRuleArgs, opts?: InvokeOptions): Promise<GetDecryptionRuleResult>
function getDecryptionRuleOutput(args: GetDecryptionRuleOutputArgs, opts?: InvokeOptions): Output<GetDecryptionRuleResult>def get_decryption_rule(id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDecryptionRuleResult
def get_decryption_rule_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDecryptionRuleResult]func LookupDecryptionRule(ctx *Context, args *LookupDecryptionRuleArgs, opts ...InvokeOption) (*LookupDecryptionRuleResult, error)
func LookupDecryptionRuleOutput(ctx *Context, args *LookupDecryptionRuleOutputArgs, opts ...InvokeOption) LookupDecryptionRuleResultOutput> Note: This function is named LookupDecryptionRule in the Go SDK.
public static class GetDecryptionRule
{
public static Task<GetDecryptionRuleResult> InvokeAsync(GetDecryptionRuleArgs args, InvokeOptions? opts = null)
public static Output<GetDecryptionRuleResult> Invoke(GetDecryptionRuleInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDecryptionRuleResult> getDecryptionRule(GetDecryptionRuleArgs args, InvokeOptions options)
public static Output<GetDecryptionRuleResult> getDecryptionRule(GetDecryptionRuleArgs args, InvokeOptions options)
fn::invoke:
function: scm:index/getDecryptionRule:getDecryptionRule
arguments:
# arguments dictionaryThe following arguments are supported:
getDecryptionRule Result
The following output properties are available:
- Action string
- The action to be taken
- Categories List<string>
- The destination URL category
- Description string
- The description of the decryption rule
- Destination
Hips List<string> - The Host Integrity Profile of the destination host
- Destinations List<string>
- The destination addresses
- Device string
- The device in which the resource is defined
- Disabled bool
- Folder string
- Froms List<string>
- Id string
- The UUID of the decryption rule
- Log
Fail bool - Log
Setting string - Log
Success bool - Name string
- The name of the decryption rule
- Negate
Destination bool - Negate
Source bool - Position string
- Profile string
- Relative
Position string - Services List<string>
- Snippet string
- Source
Hips List<string> - Source
Users List<string> - Sources List<string>
- List<string>
- Target
Rule string - Tfid string
- Tos List<string>
- Type
Get
Decryption Rule Type
- Action string
- The action to be taken
- Categories []string
- The destination URL category
- Description string
- The description of the decryption rule
- Destination
Hips []string - The Host Integrity Profile of the destination host
- Destinations []string
- The destination addresses
- Device string
- The device in which the resource is defined
- Disabled bool
- Folder string
- Froms []string
- Id string
- The UUID of the decryption rule
- Log
Fail bool - Log
Setting string - Log
Success bool - Name string
- The name of the decryption rule
- Negate
Destination bool - Negate
Source bool - Position string
- Profile string
- Relative
Position string - Services []string
- Snippet string
- Source
Hips []string - Source
Users []string - Sources []string
- []string
- Target
Rule string - Tfid string
- Tos []string
- Type
Get
Decryption Rule Type
- action String
- The action to be taken
- categories List<String>
- The destination URL category
- description String
- The description of the decryption rule
- destination
Hips List<String> - The Host Integrity Profile of the destination host
- destinations List<String>
- The destination addresses
- device String
- The device in which the resource is defined
- disabled Boolean
- folder String
- froms List<String>
- id String
- The UUID of the decryption rule
- log
Fail Boolean - log
Setting String - log
Success Boolean - name String
- The name of the decryption rule
- negate
Destination Boolean - negate
Source Boolean - position String
- profile String
- relative
Position String - services List<String>
- snippet String
- source
Hips List<String> - source
Users List<String> - sources List<String>
- List<String>
- target
Rule String - tfid String
- tos List<String>
- type
Get
Decryption Rule Type
- action string
- The action to be taken
- categories string[]
- The destination URL category
- description string
- The description of the decryption rule
- destination
Hips string[] - The Host Integrity Profile of the destination host
- destinations string[]
- The destination addresses
- device string
- The device in which the resource is defined
- disabled boolean
- folder string
- froms string[]
- id string
- The UUID of the decryption rule
- log
Fail boolean - log
Setting string - log
Success boolean - name string
- The name of the decryption rule
- negate
Destination boolean - negate
Source boolean - position string
- profile string
- relative
Position string - services string[]
- snippet string
- source
Hips string[] - source
Users string[] - sources string[]
- string[]
- target
Rule string - tfid string
- tos string[]
- type
Get
Decryption Rule Type
- action str
- The action to be taken
- categories Sequence[str]
- The destination URL category
- description str
- The description of the decryption rule
- destination_
hips Sequence[str] - The Host Integrity Profile of the destination host
- destinations Sequence[str]
- The destination addresses
- device str
- The device in which the resource is defined
- disabled bool
- folder str
- froms Sequence[str]
- id str
- The UUID of the decryption rule
- log_
fail bool - log_
setting str - log_
success bool - name str
- The name of the decryption rule
- negate_
destination bool - negate_
source bool - position str
- profile str
- relative_
position str - services Sequence[str]
- snippet str
- source_
hips Sequence[str] - source_
users Sequence[str] - sources Sequence[str]
- Sequence[str]
- target_
rule str - tfid str
- tos Sequence[str]
- type
Get
Decryption Rule Type
- action String
- The action to be taken
- categories List<String>
- The destination URL category
- description String
- The description of the decryption rule
- destination
Hips List<String> - The Host Integrity Profile of the destination host
- destinations List<String>
- The destination addresses
- device String
- The device in which the resource is defined
- disabled Boolean
- folder String
- froms List<String>
- id String
- The UUID of the decryption rule
- log
Fail Boolean - log
Setting String - log
Success Boolean - name String
- The name of the decryption rule
- negate
Destination Boolean - negate
Source Boolean - position String
- profile String
- relative
Position String - services List<String>
- snippet String
- source
Hips List<String> - source
Users List<String> - sources List<String>
- List<String>
- target
Rule String - tfid String
- tos List<String>
- type Property Map
Supporting Types
GetDecryptionRuleType
- Ssl
Forward GetProxy Decryption Rule Type Ssl Forward Proxy - Ssl forward proxy
- Ssl
Inbound stringInspection add the certificate name for SSL inbound inspection
ℹ️ Note: You must specify exactly one of
ssl_forward_proxyandssl_inbound_inspection.
- Ssl
Forward GetProxy Decryption Rule Type Ssl Forward Proxy - Ssl forward proxy
- Ssl
Inbound stringInspection add the certificate name for SSL inbound inspection
ℹ️ Note: You must specify exactly one of
ssl_forward_proxyandssl_inbound_inspection.
- ssl
Forward GetProxy Decryption Rule Type Ssl Forward Proxy - Ssl forward proxy
- ssl
Inbound StringInspection add the certificate name for SSL inbound inspection
ℹ️ Note: You must specify exactly one of
ssl_forward_proxyandssl_inbound_inspection.
- ssl
Forward GetProxy Decryption Rule Type Ssl Forward Proxy - Ssl forward proxy
- ssl
Inbound stringInspection add the certificate name for SSL inbound inspection
ℹ️ Note: You must specify exactly one of
ssl_forward_proxyandssl_inbound_inspection.
- ssl_
forward_ Getproxy Decryption Rule Type Ssl Forward Proxy - Ssl forward proxy
- ssl_
inbound_ strinspection add the certificate name for SSL inbound inspection
ℹ️ Note: You must specify exactly one of
ssl_forward_proxyandssl_inbound_inspection.
- ssl
Forward Property MapProxy - Ssl forward proxy
- ssl
Inbound StringInspection add the certificate name for SSL inbound inspection
ℹ️ Note: You must specify exactly one of
ssl_forward_proxyandssl_inbound_inspection.
Package Details
- Repository
- scm pulumi/pulumi-scm
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scmTerraform Provider.
