HttpHeaderProfile resource
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scm from "@pulumi/scm";
const scmHttpHeaderProfile1 = new scm.HttpHeaderProfile("scm_http_header_profile_1", {
folder: "All",
name: "base_http_header_profile_1",
});
const scmHttpHeaderProfile2 = new scm.HttpHeaderProfile("scm_http_header_profile_2", {
folder: "All",
name: "simple_http_header_profile_2",
httpHeaderInsertions: [{
name: "header_one",
type: [{
name: "Google Apps Access Control",
domains: ["*.google.com"],
headers: [{
name: "X-GooGAppls-Allowed-Domains",
header: "X-GooGAppls-Allowed-Domains",
value: "user-allowed",
}],
}],
}],
});
const scmHttpHeaderProfile3 = new scm.HttpHeaderProfile("scm_http_header_profile_3", {
folder: "All",
name: "complete_http_header_profile_3",
httpHeaderInsertions: [
{
name: "header_insertion_one",
type: [{
name: "Dropbox Network Control",
domains: [
"*.db.tt",
"*.dropbox.com",
"dropboxformum.com",
],
headers: [
{
name: "X-Dropbox-allowed-Team-Ids",
header: "X-Dropbox-allowed-Team-Ids",
value: "dropbox-users",
},
{
name: "custom_header",
header: "custom_header",
value: "10-header",
},
],
}],
},
{
name: "header_insertion_two",
type: [{
name: "Microsoft Office365 Tenant Restrictions",
domains: [
"login.mircosoft.com",
"login.mircosoftonline.com",
"login.windows.net",
],
headers: [
{
name: "Restrict-Access-Context",
header: "Restrict-Access-Context",
value: "denied-context",
},
{
name: "Restrict-Access-To-Tenants",
header: "Restrict-Access-To-Tenants",
value: "denied-tenants",
},
],
}],
},
{
name: "header_insertion_three",
type: [{
name: "Dynamic Fields",
domains: ["custom_domain"],
headers: [{
name: "Authorization",
header: "Authorization",
value: "auth",
}],
}],
},
{
name: "header_insertion_four",
type: [{
name: "Youtube Safe Search",
domains: [
"m.youtube.com",
"www.youtube.com",
],
headers: [{
name: "Youtube-Restrict",
header: "Youtube-Restrict",
value: "denied-youtube",
}],
}],
},
{
name: "header_insertion_five",
type: [{
name: "Custom",
domains: [
"custom_1",
"custom_2",
],
headers: [{
name: "custom_header",
header: "custom_header",
value: "custom",
}],
}],
},
],
});
import pulumi
import pulumi_scm as scm
scm_http_header_profile1 = scm.HttpHeaderProfile("scm_http_header_profile_1",
folder="All",
name="base_http_header_profile_1")
scm_http_header_profile2 = scm.HttpHeaderProfile("scm_http_header_profile_2",
folder="All",
name="simple_http_header_profile_2",
http_header_insertions=[{
"name": "header_one",
"type": [{
"name": "Google Apps Access Control",
"domains": ["*.google.com"],
"headers": [{
"name": "X-GooGAppls-Allowed-Domains",
"header": "X-GooGAppls-Allowed-Domains",
"value": "user-allowed",
}],
}],
}])
scm_http_header_profile3 = scm.HttpHeaderProfile("scm_http_header_profile_3",
folder="All",
name="complete_http_header_profile_3",
http_header_insertions=[
{
"name": "header_insertion_one",
"type": [{
"name": "Dropbox Network Control",
"domains": [
"*.db.tt",
"*.dropbox.com",
"dropboxformum.com",
],
"headers": [
{
"name": "X-Dropbox-allowed-Team-Ids",
"header": "X-Dropbox-allowed-Team-Ids",
"value": "dropbox-users",
},
{
"name": "custom_header",
"header": "custom_header",
"value": "10-header",
},
],
}],
},
{
"name": "header_insertion_two",
"type": [{
"name": "Microsoft Office365 Tenant Restrictions",
"domains": [
"login.mircosoft.com",
"login.mircosoftonline.com",
"login.windows.net",
],
"headers": [
{
"name": "Restrict-Access-Context",
"header": "Restrict-Access-Context",
"value": "denied-context",
},
{
"name": "Restrict-Access-To-Tenants",
"header": "Restrict-Access-To-Tenants",
"value": "denied-tenants",
},
],
}],
},
{
"name": "header_insertion_three",
"type": [{
"name": "Dynamic Fields",
"domains": ["custom_domain"],
"headers": [{
"name": "Authorization",
"header": "Authorization",
"value": "auth",
}],
}],
},
{
"name": "header_insertion_four",
"type": [{
"name": "Youtube Safe Search",
"domains": [
"m.youtube.com",
"www.youtube.com",
],
"headers": [{
"name": "Youtube-Restrict",
"header": "Youtube-Restrict",
"value": "denied-youtube",
}],
}],
},
{
"name": "header_insertion_five",
"type": [{
"name": "Custom",
"domains": [
"custom_1",
"custom_2",
],
"headers": [{
"name": "custom_header",
"header": "custom_header",
"value": "custom",
}],
}],
},
])
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.NewHttpHeaderProfile(ctx, "scm_http_header_profile_1", &scm.HttpHeaderProfileArgs{
Folder: pulumi.String("All"),
Name: pulumi.String("base_http_header_profile_1"),
})
if err != nil {
return err
}
_, err = scm.NewHttpHeaderProfile(ctx, "scm_http_header_profile_2", &scm.HttpHeaderProfileArgs{
Folder: pulumi.String("All"),
Name: pulumi.String("simple_http_header_profile_2"),
HttpHeaderInsertions: scm.HttpHeaderProfileHttpHeaderInsertionArray{
&scm.HttpHeaderProfileHttpHeaderInsertionArgs{
Name: pulumi.String("header_one"),
Type: []map[string]interface{}{
map[string]interface{}{
"name": "Google Apps Access Control",
"domains": []string{
"*.google.com",
},
"headers": []map[string]interface{}{
map[string]interface{}{
"name": "X-GooGAppls-Allowed-Domains",
"header": "X-GooGAppls-Allowed-Domains",
"value": "user-allowed",
},
},
},
},
},
},
})
if err != nil {
return err
}
_, err = scm.NewHttpHeaderProfile(ctx, "scm_http_header_profile_3", &scm.HttpHeaderProfileArgs{
Folder: pulumi.String("All"),
Name: pulumi.String("complete_http_header_profile_3"),
HttpHeaderInsertions: scm.HttpHeaderProfileHttpHeaderInsertionArray{
&scm.HttpHeaderProfileHttpHeaderInsertionArgs{
Name: pulumi.String("header_insertion_one"),
Type: []map[string]interface{}{
map[string]interface{}{
"name": "Dropbox Network Control",
"domains": []string{
"*.db.tt",
"*.dropbox.com",
"dropboxformum.com",
},
"headers": []map[string]interface{}{
map[string]interface{}{
"name": "X-Dropbox-allowed-Team-Ids",
"header": "X-Dropbox-allowed-Team-Ids",
"value": "dropbox-users",
},
map[string]interface{}{
"name": "custom_header",
"header": "custom_header",
"value": "10-header",
},
},
},
},
},
&scm.HttpHeaderProfileHttpHeaderInsertionArgs{
Name: pulumi.String("header_insertion_two"),
Type: []map[string]interface{}{
map[string]interface{}{
"name": "Microsoft Office365 Tenant Restrictions",
"domains": []string{
"login.mircosoft.com",
"login.mircosoftonline.com",
"login.windows.net",
},
"headers": []map[string]interface{}{
map[string]interface{}{
"name": "Restrict-Access-Context",
"header": "Restrict-Access-Context",
"value": "denied-context",
},
map[string]interface{}{
"name": "Restrict-Access-To-Tenants",
"header": "Restrict-Access-To-Tenants",
"value": "denied-tenants",
},
},
},
},
},
&scm.HttpHeaderProfileHttpHeaderInsertionArgs{
Name: pulumi.String("header_insertion_three"),
Type: []map[string]interface{}{
map[string]interface{}{
"name": "Dynamic Fields",
"domains": []string{
"custom_domain",
},
"headers": []map[string]interface{}{
map[string]interface{}{
"name": "Authorization",
"header": "Authorization",
"value": "auth",
},
},
},
},
},
&scm.HttpHeaderProfileHttpHeaderInsertionArgs{
Name: pulumi.String("header_insertion_four"),
Type: []map[string]interface{}{
map[string]interface{}{
"name": "Youtube Safe Search",
"domains": []string{
"m.youtube.com",
"www.youtube.com",
},
"headers": []map[string]interface{}{
map[string]interface{}{
"name": "Youtube-Restrict",
"header": "Youtube-Restrict",
"value": "denied-youtube",
},
},
},
},
},
&scm.HttpHeaderProfileHttpHeaderInsertionArgs{
Name: pulumi.String("header_insertion_five"),
Type: []map[string]interface{}{
map[string]interface{}{
"name": "Custom",
"domains": []string{
"custom_1",
"custom_2",
},
"headers": []map[string]interface{}{
map[string]interface{}{
"name": "custom_header",
"header": "custom_header",
"value": "custom",
},
},
},
},
},
},
})
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 scmHttpHeaderProfile1 = new Scm.HttpHeaderProfile("scm_http_header_profile_1", new()
{
Folder = "All",
Name = "base_http_header_profile_1",
});
var scmHttpHeaderProfile2 = new Scm.HttpHeaderProfile("scm_http_header_profile_2", new()
{
Folder = "All",
Name = "simple_http_header_profile_2",
HttpHeaderInsertions = new[]
{
new Scm.Inputs.HttpHeaderProfileHttpHeaderInsertionArgs
{
Name = "header_one",
Type = new[]
{
{
{ "name", "Google Apps Access Control" },
{ "domains", new[]
{
"*.google.com",
} },
{ "headers", new[]
{
{
{ "name", "X-GooGAppls-Allowed-Domains" },
{ "header", "X-GooGAppls-Allowed-Domains" },
{ "value", "user-allowed" },
},
} },
},
},
},
},
});
var scmHttpHeaderProfile3 = new Scm.HttpHeaderProfile("scm_http_header_profile_3", new()
{
Folder = "All",
Name = "complete_http_header_profile_3",
HttpHeaderInsertions = new[]
{
new Scm.Inputs.HttpHeaderProfileHttpHeaderInsertionArgs
{
Name = "header_insertion_one",
Type = new[]
{
{
{ "name", "Dropbox Network Control" },
{ "domains", new[]
{
"*.db.tt",
"*.dropbox.com",
"dropboxformum.com",
} },
{ "headers", new[]
{
{
{ "name", "X-Dropbox-allowed-Team-Ids" },
{ "header", "X-Dropbox-allowed-Team-Ids" },
{ "value", "dropbox-users" },
},
{
{ "name", "custom_header" },
{ "header", "custom_header" },
{ "value", "10-header" },
},
} },
},
},
},
new Scm.Inputs.HttpHeaderProfileHttpHeaderInsertionArgs
{
Name = "header_insertion_two",
Type = new[]
{
{
{ "name", "Microsoft Office365 Tenant Restrictions" },
{ "domains", new[]
{
"login.mircosoft.com",
"login.mircosoftonline.com",
"login.windows.net",
} },
{ "headers", new[]
{
{
{ "name", "Restrict-Access-Context" },
{ "header", "Restrict-Access-Context" },
{ "value", "denied-context" },
},
{
{ "name", "Restrict-Access-To-Tenants" },
{ "header", "Restrict-Access-To-Tenants" },
{ "value", "denied-tenants" },
},
} },
},
},
},
new Scm.Inputs.HttpHeaderProfileHttpHeaderInsertionArgs
{
Name = "header_insertion_three",
Type = new[]
{
{
{ "name", "Dynamic Fields" },
{ "domains", new[]
{
"custom_domain",
} },
{ "headers", new[]
{
{
{ "name", "Authorization" },
{ "header", "Authorization" },
{ "value", "auth" },
},
} },
},
},
},
new Scm.Inputs.HttpHeaderProfileHttpHeaderInsertionArgs
{
Name = "header_insertion_four",
Type = new[]
{
{
{ "name", "Youtube Safe Search" },
{ "domains", new[]
{
"m.youtube.com",
"www.youtube.com",
} },
{ "headers", new[]
{
{
{ "name", "Youtube-Restrict" },
{ "header", "Youtube-Restrict" },
{ "value", "denied-youtube" },
},
} },
},
},
},
new Scm.Inputs.HttpHeaderProfileHttpHeaderInsertionArgs
{
Name = "header_insertion_five",
Type = new[]
{
{
{ "name", "Custom" },
{ "domains", new[]
{
"custom_1",
"custom_2",
} },
{ "headers", new[]
{
{
{ "name", "custom_header" },
{ "header", "custom_header" },
{ "value", "custom" },
},
} },
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scm.HttpHeaderProfile;
import com.pulumi.scm.HttpHeaderProfileArgs;
import com.pulumi.scm.inputs.HttpHeaderProfileHttpHeaderInsertionArgs;
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 scmHttpHeaderProfile1 = new HttpHeaderProfile("scmHttpHeaderProfile1", HttpHeaderProfileArgs.builder()
.folder("All")
.name("base_http_header_profile_1")
.build());
var scmHttpHeaderProfile2 = new HttpHeaderProfile("scmHttpHeaderProfile2", HttpHeaderProfileArgs.builder()
.folder("All")
.name("simple_http_header_profile_2")
.httpHeaderInsertions(HttpHeaderProfileHttpHeaderInsertionArgs.builder()
.name("header_one")
.type(List.of(Map.ofEntries(
Map.entry("name", "Google Apps Access Control"),
Map.entry("domains", List.of("*.google.com")),
Map.entry("headers", List.of(Map.ofEntries(
Map.entry("name", "X-GooGAppls-Allowed-Domains"),
Map.entry("header", "X-GooGAppls-Allowed-Domains"),
Map.entry("value", "user-allowed")
)))
)))
.build())
.build());
var scmHttpHeaderProfile3 = new HttpHeaderProfile("scmHttpHeaderProfile3", HttpHeaderProfileArgs.builder()
.folder("All")
.name("complete_http_header_profile_3")
.httpHeaderInsertions(
HttpHeaderProfileHttpHeaderInsertionArgs.builder()
.name("header_insertion_one")
.type(List.of(Map.ofEntries(
Map.entry("name", "Dropbox Network Control"),
Map.entry("domains", List.of(
"*.db.tt",
"*.dropbox.com",
"dropboxformum.com")),
Map.entry("headers", List.of(
Map.ofEntries(
Map.entry("name", "X-Dropbox-allowed-Team-Ids"),
Map.entry("header", "X-Dropbox-allowed-Team-Ids"),
Map.entry("value", "dropbox-users")
),
Map.ofEntries(
Map.entry("name", "custom_header"),
Map.entry("header", "custom_header"),
Map.entry("value", "10-header")
)))
)))
.build(),
HttpHeaderProfileHttpHeaderInsertionArgs.builder()
.name("header_insertion_two")
.type(List.of(Map.ofEntries(
Map.entry("name", "Microsoft Office365 Tenant Restrictions"),
Map.entry("domains", List.of(
"login.mircosoft.com",
"login.mircosoftonline.com",
"login.windows.net")),
Map.entry("headers", List.of(
Map.ofEntries(
Map.entry("name", "Restrict-Access-Context"),
Map.entry("header", "Restrict-Access-Context"),
Map.entry("value", "denied-context")
),
Map.ofEntries(
Map.entry("name", "Restrict-Access-To-Tenants"),
Map.entry("header", "Restrict-Access-To-Tenants"),
Map.entry("value", "denied-tenants")
)))
)))
.build(),
HttpHeaderProfileHttpHeaderInsertionArgs.builder()
.name("header_insertion_three")
.type(List.of(Map.ofEntries(
Map.entry("name", "Dynamic Fields"),
Map.entry("domains", List.of("custom_domain")),
Map.entry("headers", List.of(Map.ofEntries(
Map.entry("name", "Authorization"),
Map.entry("header", "Authorization"),
Map.entry("value", "auth")
)))
)))
.build(),
HttpHeaderProfileHttpHeaderInsertionArgs.builder()
.name("header_insertion_four")
.type(List.of(Map.ofEntries(
Map.entry("name", "Youtube Safe Search"),
Map.entry("domains", List.of(
"m.youtube.com",
"www.youtube.com")),
Map.entry("headers", List.of(Map.ofEntries(
Map.entry("name", "Youtube-Restrict"),
Map.entry("header", "Youtube-Restrict"),
Map.entry("value", "denied-youtube")
)))
)))
.build(),
HttpHeaderProfileHttpHeaderInsertionArgs.builder()
.name("header_insertion_five")
.type(List.of(Map.ofEntries(
Map.entry("name", "Custom"),
Map.entry("domains", List.of(
"custom_1",
"custom_2")),
Map.entry("headers", List.of(Map.ofEntries(
Map.entry("name", "custom_header"),
Map.entry("header", "custom_header"),
Map.entry("value", "custom")
)))
)))
.build())
.build());
}
}
resources:
scmHttpHeaderProfile1:
type: scm:HttpHeaderProfile
name: scm_http_header_profile_1
properties:
folder: All
name: base_http_header_profile_1
scmHttpHeaderProfile2:
type: scm:HttpHeaderProfile
name: scm_http_header_profile_2
properties:
folder: All
name: simple_http_header_profile_2
httpHeaderInsertions:
- name: header_one
type:
- name: Google Apps Access Control
domains:
- '*.google.com'
headers:
- name: X-GooGAppls-Allowed-Domains
header: X-GooGAppls-Allowed-Domains
value: user-allowed
scmHttpHeaderProfile3:
type: scm:HttpHeaderProfile
name: scm_http_header_profile_3
properties:
folder: All
name: complete_http_header_profile_3
httpHeaderInsertions:
- name: header_insertion_one
type:
- name: Dropbox Network Control
domains:
- '*.db.tt'
- '*.dropbox.com'
- dropboxformum.com
headers:
- name: X-Dropbox-allowed-Team-Ids
header: X-Dropbox-allowed-Team-Ids
value: dropbox-users
- name: custom_header
header: custom_header
value: 10-header
- name: header_insertion_two
type:
- name: Microsoft Office365 Tenant Restrictions
domains:
- login.mircosoft.com
- login.mircosoftonline.com
- login.windows.net
headers:
- name: Restrict-Access-Context
header: Restrict-Access-Context
value: denied-context
- name: Restrict-Access-To-Tenants
header: Restrict-Access-To-Tenants
value: denied-tenants
- name: header_insertion_three
type:
- name: Dynamic Fields
domains:
- custom_domain
headers:
- name: Authorization
header: Authorization
value: auth
- name: header_insertion_four
type:
- name: Youtube Safe Search
domains:
- m.youtube.com
- www.youtube.com
headers:
- name: Youtube-Restrict
header: Youtube-Restrict
value: denied-youtube
- name: header_insertion_five
type:
- name: Custom
domains:
- custom_1
- custom_2
headers:
- name: custom_header
header: custom_header
value: custom
Create HttpHeaderProfile Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new HttpHeaderProfile(name: string, args?: HttpHeaderProfileArgs, opts?: CustomResourceOptions);@overload
def HttpHeaderProfile(resource_name: str,
args: Optional[HttpHeaderProfileArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def HttpHeaderProfile(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
device: Optional[str] = None,
folder: Optional[str] = None,
http_header_insertions: Optional[Sequence[HttpHeaderProfileHttpHeaderInsertionArgs]] = None,
name: Optional[str] = None,
snippet: Optional[str] = None)func NewHttpHeaderProfile(ctx *Context, name string, args *HttpHeaderProfileArgs, opts ...ResourceOption) (*HttpHeaderProfile, error)public HttpHeaderProfile(string name, HttpHeaderProfileArgs? args = null, CustomResourceOptions? opts = null)
public HttpHeaderProfile(String name, HttpHeaderProfileArgs args)
public HttpHeaderProfile(String name, HttpHeaderProfileArgs args, CustomResourceOptions options)
type: scm:HttpHeaderProfile
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 HttpHeaderProfileArgs
- 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 HttpHeaderProfileArgs
- 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 HttpHeaderProfileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args HttpHeaderProfileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args HttpHeaderProfileArgs
- 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 httpHeaderProfileResource = new Scm.HttpHeaderProfile("httpHeaderProfileResource", new()
{
Description = "string",
Device = "string",
Folder = "string",
HttpHeaderInsertions = new[]
{
new Scm.Inputs.HttpHeaderProfileHttpHeaderInsertionArgs
{
Name = "string",
Types = new[]
{
new Scm.Inputs.HttpHeaderProfileHttpHeaderInsertionTypeArgs
{
Domains = new[]
{
"string",
},
Headers = new[]
{
new Scm.Inputs.HttpHeaderProfileHttpHeaderInsertionTypeHeaderArgs
{
Header = "string",
Name = "string",
Value = "string",
Log = false,
},
},
Name = "string",
},
},
},
},
Name = "string",
Snippet = "string",
});
example, err := scm.NewHttpHeaderProfile(ctx, "httpHeaderProfileResource", &scm.HttpHeaderProfileArgs{
Description: pulumi.String("string"),
Device: pulumi.String("string"),
Folder: pulumi.String("string"),
HttpHeaderInsertions: scm.HttpHeaderProfileHttpHeaderInsertionArray{
&scm.HttpHeaderProfileHttpHeaderInsertionArgs{
Name: pulumi.String("string"),
Types: scm.HttpHeaderProfileHttpHeaderInsertionTypeArray{
&scm.HttpHeaderProfileHttpHeaderInsertionTypeArgs{
Domains: pulumi.StringArray{
pulumi.String("string"),
},
Headers: scm.HttpHeaderProfileHttpHeaderInsertionTypeHeaderArray{
&scm.HttpHeaderProfileHttpHeaderInsertionTypeHeaderArgs{
Header: pulumi.String("string"),
Name: pulumi.String("string"),
Value: pulumi.String("string"),
Log: pulumi.Bool(false),
},
},
Name: pulumi.String("string"),
},
},
},
},
Name: pulumi.String("string"),
Snippet: pulumi.String("string"),
})
var httpHeaderProfileResource = new HttpHeaderProfile("httpHeaderProfileResource", HttpHeaderProfileArgs.builder()
.description("string")
.device("string")
.folder("string")
.httpHeaderInsertions(HttpHeaderProfileHttpHeaderInsertionArgs.builder()
.name("string")
.types(HttpHeaderProfileHttpHeaderInsertionTypeArgs.builder()
.domains("string")
.headers(HttpHeaderProfileHttpHeaderInsertionTypeHeaderArgs.builder()
.header("string")
.name("string")
.value("string")
.log(false)
.build())
.name("string")
.build())
.build())
.name("string")
.snippet("string")
.build());
http_header_profile_resource = scm.HttpHeaderProfile("httpHeaderProfileResource",
description="string",
device="string",
folder="string",
http_header_insertions=[{
"name": "string",
"types": [{
"domains": ["string"],
"headers": [{
"header": "string",
"name": "string",
"value": "string",
"log": False,
}],
"name": "string",
}],
}],
name="string",
snippet="string")
const httpHeaderProfileResource = new scm.HttpHeaderProfile("httpHeaderProfileResource", {
description: "string",
device: "string",
folder: "string",
httpHeaderInsertions: [{
name: "string",
types: [{
domains: ["string"],
headers: [{
header: "string",
name: "string",
value: "string",
log: false,
}],
name: "string",
}],
}],
name: "string",
snippet: "string",
});
type: scm:HttpHeaderProfile
properties:
description: string
device: string
folder: string
httpHeaderInsertions:
- name: string
types:
- domains:
- string
headers:
- header: string
log: false
name: string
value: string
name: string
name: string
snippet: string
HttpHeaderProfile 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 HttpHeaderProfile resource accepts the following input properties:
- Description string
- The description of the HTTP header profile
- 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.- Http
Header List<HttpInsertions Header Profile Http Header Insertion> - A list of HTTP header profile rules
- Name string
- The name of the HTTP header profile
- Snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.
- Description string
- The description of the HTTP header profile
- 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.- Http
Header []HttpInsertions Header Profile Http Header Insertion Args - A list of HTTP header profile rules
- Name string
- The name of the HTTP header profile
- Snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.
- description String
- The description of the HTTP header profile
- 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.- http
Header List<HttpInsertions Header Profile Http Header Insertion> - A list of HTTP header profile rules
- name String
- The name of the HTTP header profile
- snippet String
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.
- description string
- The description of the HTTP header profile
- 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.- http
Header HttpInsertions Header Profile Http Header Insertion[] - A list of HTTP header profile rules
- name string
- The name of the HTTP header profile
- snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.
- description str
- The description of the HTTP header profile
- 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.- http_
header_ Sequence[Httpinsertions Header Profile Http Header Insertion Args] - A list of HTTP header profile rules
- name str
- The name of the HTTP header profile
- snippet str
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.
- description String
- The description of the HTTP header profile
- 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.- http
Header List<Property Map>Insertions - A list of HTTP header profile rules
- name String
- The name of the HTTP header profile
- 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 HttpHeaderProfile resource produces the following output properties:
Look up Existing HttpHeaderProfile Resource
Get an existing HttpHeaderProfile 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?: HttpHeaderProfileState, opts?: CustomResourceOptions): HttpHeaderProfile@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
device: Optional[str] = None,
folder: Optional[str] = None,
http_header_insertions: Optional[Sequence[HttpHeaderProfileHttpHeaderInsertionArgs]] = None,
name: Optional[str] = None,
snippet: Optional[str] = None,
tfid: Optional[str] = None) -> HttpHeaderProfilefunc GetHttpHeaderProfile(ctx *Context, name string, id IDInput, state *HttpHeaderProfileState, opts ...ResourceOption) (*HttpHeaderProfile, error)public static HttpHeaderProfile Get(string name, Input<string> id, HttpHeaderProfileState? state, CustomResourceOptions? opts = null)public static HttpHeaderProfile get(String name, Output<String> id, HttpHeaderProfileState state, CustomResourceOptions options)resources: _: type: scm:HttpHeaderProfile 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.
- Description string
- The description of the HTTP header profile
- 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.- Http
Header List<HttpInsertions Header Profile Http Header Insertion> - A list of HTTP header profile rules
- Name string
- The name of the HTTP header profile
- Snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- Tfid string
- The Terraform ID.
- Description string
- The description of the HTTP header profile
- 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.- Http
Header []HttpInsertions Header Profile Http Header Insertion Args - A list of HTTP header profile rules
- Name string
- The name of the HTTP header profile
- Snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- Tfid string
- The Terraform ID.
- description String
- The description of the HTTP header profile
- 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.- http
Header List<HttpInsertions Header Profile Http Header Insertion> - A list of HTTP header profile rules
- name String
- The name of the HTTP header profile
- snippet String
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- tfid String
- The Terraform ID.
- description string
- The description of the HTTP header profile
- 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.- http
Header HttpInsertions Header Profile Http Header Insertion[] - A list of HTTP header profile rules
- name string
- The name of the HTTP header profile
- snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- tfid string
- The Terraform ID.
- description str
- The description of the HTTP header profile
- 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.- http_
header_ Sequence[Httpinsertions Header Profile Http Header Insertion Args] - A list of HTTP header profile rules
- name str
- The name of the HTTP header profile
- snippet str
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- tfid str
- The Terraform ID.
- description String
- The description of the HTTP header profile
- 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.- http
Header List<Property Map>Insertions - A list of HTTP header profile rules
- name String
- The name of the HTTP header profile
- snippet String
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- tfid String
- The Terraform ID.
Supporting Types
HttpHeaderProfileHttpHeaderInsertion, HttpHeaderProfileHttpHeaderInsertionArgs
- Name string
- The name of the HTTP header insertion rule
- Types
List<Http
Header Profile Http Header Insertion Type> - A list of HTTP header insertion definitions
- Name string
- The name of the HTTP header insertion rule
- Types
[]Http
Header Profile Http Header Insertion Type - A list of HTTP header insertion definitions
- name String
- The name of the HTTP header insertion rule
- types
List<Http
Header Profile Http Header Insertion Type> - A list of HTTP header insertion definitions
- name string
- The name of the HTTP header insertion rule
- types
Http
Header Profile Http Header Insertion Type[] - A list of HTTP header insertion definitions
- name str
- The name of the HTTP header insertion rule
- types
Sequence[Http
Header Profile Http Header Insertion Type] - A list of HTTP header insertion definitions
- name String
- The name of the HTTP header insertion rule
- types List<Property Map>
- A list of HTTP header insertion definitions
HttpHeaderProfileHttpHeaderInsertionType, HttpHeaderProfileHttpHeaderInsertionTypeArgs
- Domains List<string>
- A list of DNS domains
- Headers
List<Http
Header Profile Http Header Insertion Type Header> - Headers
- Name string
- The HTTP header insertion type
- Domains []string
- A list of DNS domains
- Headers
[]Http
Header Profile Http Header Insertion Type Header - Headers
- Name string
- The HTTP header insertion type
- domains List<String>
- A list of DNS domains
- headers
List<Http
Header Profile Http Header Insertion Type Header> - Headers
- name String
- The HTTP header insertion type
- domains string[]
- A list of DNS domains
- headers
Http
Header Profile Http Header Insertion Type Header[] - Headers
- name string
- The HTTP header insertion type
- domains Sequence[str]
- A list of DNS domains
- headers
Sequence[Http
Header Profile Http Header Insertion Type Header] - Headers
- name str
- The HTTP header insertion type
- domains List<String>
- A list of DNS domains
- headers List<Property Map>
- Headers
- name String
- The HTTP header insertion type
HttpHeaderProfileHttpHeaderInsertionTypeHeader, HttpHeaderProfileHttpHeaderInsertionTypeHeaderArgs
Import
The following command can be used to import a resource not managed by Terraform:
terraform import scm_http_header_profile.example folder:::id
or
terraform import scm_http_header_profile.example :snippet::id
or
terraform import scm_http_header_profile.example ::device:id
Note: Please provide just one of folder, snippet, or device for the import command.
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.
