ContentIdSetting resource
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scm from "@pulumi/scm";
const cidExample = new scm.ContentIdSetting("cid_example", {
folder: "All",
contentId: {
allowForwardDecryptedContent: true,
extendedCaptureSegment: 6,
tcpBypassExceedQueue: true,
udpBypassExceedQueue: true,
allowHttpRange: true,
xForwardedFor: "0",
stripXFwdFor: false,
application: {
bypassExceedQueue: false,
},
},
});
import pulumi
import pulumi_scm as scm
cid_example = scm.ContentIdSetting("cid_example",
folder="All",
content_id={
"allow_forward_decrypted_content": True,
"extended_capture_segment": 6,
"tcp_bypass_exceed_queue": True,
"udp_bypass_exceed_queue": True,
"allow_http_range": True,
"x_forwarded_for": "0",
"strip_x_fwd_for": False,
"application": {
"bypass_exceed_queue": False,
},
})
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 {
_, err := scm.NewContentIdSetting(ctx, "cid_example", &scm.ContentIdSettingArgs{
Folder: pulumi.String("All"),
ContentId: &scm.ContentIdSettingContentIdArgs{
AllowForwardDecryptedContent: pulumi.Bool(true),
ExtendedCaptureSegment: pulumi.Int(6),
TcpBypassExceedQueue: pulumi.Bool(true),
UdpBypassExceedQueue: pulumi.Bool(true),
AllowHttpRange: pulumi.Bool(true),
XForwardedFor: pulumi.String("0"),
StripXFwdFor: pulumi.Bool(false),
Application: &scm.ContentIdSettingContentIdApplicationArgs{
BypassExceedQueue: pulumi.Bool(false),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scm = Pulumi.Scm;
return await Deployment.RunAsync(() =>
{
var cidExample = new Scm.ContentIdSetting("cid_example", new()
{
Folder = "All",
ContentId = new Scm.Inputs.ContentIdSettingContentIdArgs
{
AllowForwardDecryptedContent = true,
ExtendedCaptureSegment = 6,
TcpBypassExceedQueue = true,
UdpBypassExceedQueue = true,
AllowHttpRange = true,
XForwardedFor = "0",
StripXFwdFor = false,
Application = new Scm.Inputs.ContentIdSettingContentIdApplicationArgs
{
BypassExceedQueue = false,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scm.ContentIdSetting;
import com.pulumi.scm.ContentIdSettingArgs;
import com.pulumi.scm.inputs.ContentIdSettingContentIdArgs;
import com.pulumi.scm.inputs.ContentIdSettingContentIdApplicationArgs;
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 cidExample = new ContentIdSetting("cidExample", ContentIdSettingArgs.builder()
.folder("All")
.contentId(ContentIdSettingContentIdArgs.builder()
.allowForwardDecryptedContent(true)
.extendedCaptureSegment(6)
.tcpBypassExceedQueue(true)
.udpBypassExceedQueue(true)
.allowHttpRange(true)
.xForwardedFor("0")
.stripXFwdFor(false)
.application(ContentIdSettingContentIdApplicationArgs.builder()
.bypassExceedQueue(false)
.build())
.build())
.build());
}
}
resources:
cidExample:
type: scm:ContentIdSetting
name: cid_example
properties:
folder: All
contentId:
allowForwardDecryptedContent: true
extendedCaptureSegment: 6
tcpBypassExceedQueue: true
udpBypassExceedQueue: true
allowHttpRange: true
xForwardedFor: '0'
stripXFwdFor: false
application:
bypassExceedQueue: false
Create ContentIdSetting Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ContentIdSetting(name: string, args?: ContentIdSettingArgs, opts?: CustomResourceOptions);@overload
def ContentIdSetting(resource_name: str,
args: Optional[ContentIdSettingArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def ContentIdSetting(resource_name: str,
opts: Optional[ResourceOptions] = None,
content_id: Optional[ContentIdSettingContentIdArgs] = None,
device: Optional[str] = None,
folder: Optional[str] = None,
snippet: Optional[str] = None)func NewContentIdSetting(ctx *Context, name string, args *ContentIdSettingArgs, opts ...ResourceOption) (*ContentIdSetting, error)public ContentIdSetting(string name, ContentIdSettingArgs? args = null, CustomResourceOptions? opts = null)
public ContentIdSetting(String name, ContentIdSettingArgs args)
public ContentIdSetting(String name, ContentIdSettingArgs args, CustomResourceOptions options)
type: scm:ContentIdSetting
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 ContentIdSettingArgs
- 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 ContentIdSettingArgs
- 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 ContentIdSettingArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ContentIdSettingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ContentIdSettingArgs
- 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 contentIdSettingResource = new Scm.ContentIdSetting("contentIdSettingResource", new()
{
ContentId = new Scm.Inputs.ContentIdSettingContentIdArgs
{
AllowForwardDecryptedContent = false,
AllowHttpRange = false,
Application = new Scm.Inputs.ContentIdSettingContentIdApplicationArgs
{
BypassExceedQueue = false,
},
ExtendedCaptureSegment = 0,
StripXFwdFor = false,
TcpBypassExceedQueue = false,
UdpBypassExceedQueue = false,
XForwardedFor = "string",
},
Device = "string",
Folder = "string",
Snippet = "string",
});
example, err := scm.NewContentIdSetting(ctx, "contentIdSettingResource", &scm.ContentIdSettingArgs{
ContentId: &scm.ContentIdSettingContentIdArgs{
AllowForwardDecryptedContent: pulumi.Bool(false),
AllowHttpRange: pulumi.Bool(false),
Application: &scm.ContentIdSettingContentIdApplicationArgs{
BypassExceedQueue: pulumi.Bool(false),
},
ExtendedCaptureSegment: pulumi.Int(0),
StripXFwdFor: pulumi.Bool(false),
TcpBypassExceedQueue: pulumi.Bool(false),
UdpBypassExceedQueue: pulumi.Bool(false),
XForwardedFor: pulumi.String("string"),
},
Device: pulumi.String("string"),
Folder: pulumi.String("string"),
Snippet: pulumi.String("string"),
})
var contentIdSettingResource = new ContentIdSetting("contentIdSettingResource", ContentIdSettingArgs.builder()
.contentId(ContentIdSettingContentIdArgs.builder()
.allowForwardDecryptedContent(false)
.allowHttpRange(false)
.application(ContentIdSettingContentIdApplicationArgs.builder()
.bypassExceedQueue(false)
.build())
.extendedCaptureSegment(0)
.stripXFwdFor(false)
.tcpBypassExceedQueue(false)
.udpBypassExceedQueue(false)
.xForwardedFor("string")
.build())
.device("string")
.folder("string")
.snippet("string")
.build());
content_id_setting_resource = scm.ContentIdSetting("contentIdSettingResource",
content_id={
"allow_forward_decrypted_content": False,
"allow_http_range": False,
"application": {
"bypass_exceed_queue": False,
},
"extended_capture_segment": 0,
"strip_x_fwd_for": False,
"tcp_bypass_exceed_queue": False,
"udp_bypass_exceed_queue": False,
"x_forwarded_for": "string",
},
device="string",
folder="string",
snippet="string")
const contentIdSettingResource = new scm.ContentIdSetting("contentIdSettingResource", {
contentId: {
allowForwardDecryptedContent: false,
allowHttpRange: false,
application: {
bypassExceedQueue: false,
},
extendedCaptureSegment: 0,
stripXFwdFor: false,
tcpBypassExceedQueue: false,
udpBypassExceedQueue: false,
xForwardedFor: "string",
},
device: "string",
folder: "string",
snippet: "string",
});
type: scm:ContentIdSetting
properties:
contentId:
allowForwardDecryptedContent: false
allowHttpRange: false
application:
bypassExceedQueue: false
extendedCaptureSegment: 0
stripXFwdFor: false
tcpBypassExceedQueue: false
udpBypassExceedQueue: false
xForwardedFor: string
device: string
folder: string
snippet: string
ContentIdSetting 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 ContentIdSetting resource accepts the following input properties:
- Content
Id ContentId Setting Content Id - Content id
- Device string
- The device in which the resource is defined
- Folder string
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- Snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.
- Content
Id ContentId Setting Content Id Args - Content id
- Device string
- The device in which the resource is defined
- Folder string
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- Snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.
- content
Id ContentId Setting Content Id - Content id
- device String
- The device in which the resource is defined
- folder String
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- snippet String
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.
- content
Id ContentId Setting Content Id - Content id
- device string
- The device in which the resource is defined
- folder string
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.
- content_
id ContentId Setting Content Id Args - Content id
- device str
- The device in which the resource is defined
- folder str
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- snippet str
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.
- content
Id Property Map - Content id
- device String
- The device in which the resource is defined
- folder String
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- snippet String
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.
Outputs
All input properties are implicitly available as output properties. Additionally, the ContentIdSetting resource produces the following output properties:
Look up Existing ContentIdSetting Resource
Get an existing ContentIdSetting 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?: ContentIdSettingState, opts?: CustomResourceOptions): ContentIdSetting@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
content_id: Optional[ContentIdSettingContentIdArgs] = None,
device: Optional[str] = None,
folder: Optional[str] = None,
snippet: Optional[str] = None,
tfid: Optional[str] = None) -> ContentIdSettingfunc GetContentIdSetting(ctx *Context, name string, id IDInput, state *ContentIdSettingState, opts ...ResourceOption) (*ContentIdSetting, error)public static ContentIdSetting Get(string name, Input<string> id, ContentIdSettingState? state, CustomResourceOptions? opts = null)public static ContentIdSetting get(String name, Output<String> id, ContentIdSettingState state, CustomResourceOptions options)resources: _: type: scm:ContentIdSetting get: id: ${id}- 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.
- Content
Id ContentId Setting Content Id - Content id
- Device string
- The device in which the resource is defined
- Folder string
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- Snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- Tfid string
- Content
Id ContentId Setting Content Id Args - Content id
- Device string
- The device in which the resource is defined
- Folder string
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- Snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- Tfid string
- content
Id ContentId Setting Content Id - Content id
- device String
- The device in which the resource is defined
- folder String
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- snippet String
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- tfid String
- content
Id ContentId Setting Content Id - Content id
- device string
- The device in which the resource is defined
- folder string
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- tfid string
- content_
id ContentId Setting Content Id Args - Content id
- device str
- The device in which the resource is defined
- folder str
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- snippet str
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- tfid str
- content
Id Property Map - Content id
- device String
- The device in which the resource is defined
- folder String
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- snippet String
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- tfid String
Supporting Types
ContentIdSettingContentId, ContentIdSettingContentIdArgs
- Allow
Forward boolDecrypted Content - Allow forward decrypted content
- Allow
Http boolRange - Allow http range
- Application
Content
Id Setting Content Id Application - Application
- Extended
Capture intSegment - Extended capture segment
- Strip
XFwd boolFor - Strip x fwd for
- Tcp
Bypass boolExceed Queue - Tcp bypass exceed queue
- Udp
Bypass boolExceed Queue - Udp bypass exceed queue
- XForwarded
For string - X forwarded for
- Allow
Forward boolDecrypted Content - Allow forward decrypted content
- Allow
Http boolRange - Allow http range
- Application
Content
Id Setting Content Id Application - Application
- Extended
Capture intSegment - Extended capture segment
- Strip
XFwd boolFor - Strip x fwd for
- Tcp
Bypass boolExceed Queue - Tcp bypass exceed queue
- Udp
Bypass boolExceed Queue - Udp bypass exceed queue
- XForwarded
For string - X forwarded for
- allow
Forward BooleanDecrypted Content - Allow forward decrypted content
- allow
Http BooleanRange - Allow http range
- application
Content
Id Setting Content Id Application - Application
- extended
Capture IntegerSegment - Extended capture segment
- strip
XFwd BooleanFor - Strip x fwd for
- tcp
Bypass BooleanExceed Queue - Tcp bypass exceed queue
- udp
Bypass BooleanExceed Queue - Udp bypass exceed queue
- x
Forwarded StringFor - X forwarded for
- allow
Forward booleanDecrypted Content - Allow forward decrypted content
- allow
Http booleanRange - Allow http range
- application
Content
Id Setting Content Id Application - Application
- extended
Capture numberSegment - Extended capture segment
- strip
XFwd booleanFor - Strip x fwd for
- tcp
Bypass booleanExceed Queue - Tcp bypass exceed queue
- udp
Bypass booleanExceed Queue - Udp bypass exceed queue
- x
Forwarded stringFor - X forwarded for
- allow_
forward_ booldecrypted_ content - Allow forward decrypted content
- allow_
http_ boolrange - Allow http range
- application
Content
Id Setting Content Id Application - Application
- extended_
capture_ intsegment - Extended capture segment
- strip_
x_ boolfwd_ for - Strip x fwd for
- tcp_
bypass_ boolexceed_ queue - Tcp bypass exceed queue
- udp_
bypass_ boolexceed_ queue - Udp bypass exceed queue
- x_
forwarded_ strfor - X forwarded for
- allow
Forward BooleanDecrypted Content - Allow forward decrypted content
- allow
Http BooleanRange - Allow http range
- application Property Map
- Application
- extended
Capture NumberSegment - Extended capture segment
- strip
XFwd BooleanFor - Strip x fwd for
- tcp
Bypass BooleanExceed Queue - Tcp bypass exceed queue
- udp
Bypass BooleanExceed Queue - Udp bypass exceed queue
- x
Forwarded StringFor - X forwarded for
ContentIdSettingContentIdApplication, ContentIdSettingContentIdApplicationArgs
- Bypass
Exceed boolQueue - Bypass exceed queue
- Bypass
Exceed boolQueue - Bypass exceed queue
- bypass
Exceed BooleanQueue - Bypass exceed queue
- bypass
Exceed booleanQueue - Bypass exceed queue
- bypass_
exceed_ boolqueue - Bypass exceed queue
- bypass
Exceed BooleanQueue - Bypass exceed queue
Import
The following command can be used to import a resource not managed by Terraform:
bash
$ pulumi import scm:index/contentIdSetting:ContentIdSetting example folder:::id
or
bash
$ pulumi import scm:index/contentIdSetting:ContentIdSetting example :snippet::id
or
bash
$ pulumi import scm:index/contentIdSetting:ContentIdSetting example ::device:id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- scm pulumi/pulumi-scm
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scmTerraform Provider.
