authentik.SourceTelegram
Create SourceTelegram Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SourceTelegram(name: string, args: SourceTelegramArgs, opts?: CustomResourceOptions);@overload
def SourceTelegram(resource_name: str,
args: SourceTelegramArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SourceTelegram(resource_name: str,
opts: Optional[ResourceOptions] = None,
pre_authentication_flow: Optional[str] = None,
bot_token: Optional[str] = None,
bot_username: Optional[str] = None,
slug: Optional[str] = None,
property_mappings: Optional[Sequence[str]] = None,
name: Optional[str] = None,
policy_engine_mode: Optional[str] = None,
enrollment_flow: Optional[str] = None,
authentication_flow: Optional[str] = None,
property_mappings_groups: Optional[Sequence[str]] = None,
request_message_access: Optional[bool] = None,
enabled: Optional[bool] = None,
source_telegram_id: Optional[str] = None,
user_matching_mode: Optional[str] = None,
user_path_template: Optional[str] = None,
uuid: Optional[str] = None)func NewSourceTelegram(ctx *Context, name string, args SourceTelegramArgs, opts ...ResourceOption) (*SourceTelegram, error)public SourceTelegram(string name, SourceTelegramArgs args, CustomResourceOptions? opts = null)
public SourceTelegram(String name, SourceTelegramArgs args)
public SourceTelegram(String name, SourceTelegramArgs args, CustomResourceOptions options)
type: authentik:SourceTelegram
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 SourceTelegramArgs
- 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 SourceTelegramArgs
- 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 SourceTelegramArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SourceTelegramArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SourceTelegramArgs
- 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 sourceTelegramResource = new Authentik.SourceTelegram("sourceTelegramResource", new()
{
PreAuthenticationFlow = "string",
BotToken = "string",
BotUsername = "string",
Slug = "string",
PropertyMappings = new[]
{
"string",
},
Name = "string",
PolicyEngineMode = "string",
EnrollmentFlow = "string",
AuthenticationFlow = "string",
PropertyMappingsGroups = new[]
{
"string",
},
RequestMessageAccess = false,
Enabled = false,
SourceTelegramId = "string",
UserMatchingMode = "string",
UserPathTemplate = "string",
Uuid = "string",
});
example, err := authentik.NewSourceTelegram(ctx, "sourceTelegramResource", &authentik.SourceTelegramArgs{
PreAuthenticationFlow: pulumi.String("string"),
BotToken: pulumi.String("string"),
BotUsername: pulumi.String("string"),
Slug: pulumi.String("string"),
PropertyMappings: pulumi.StringArray{
pulumi.String("string"),
},
Name: pulumi.String("string"),
PolicyEngineMode: pulumi.String("string"),
EnrollmentFlow: pulumi.String("string"),
AuthenticationFlow: pulumi.String("string"),
PropertyMappingsGroups: pulumi.StringArray{
pulumi.String("string"),
},
RequestMessageAccess: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
SourceTelegramId: pulumi.String("string"),
UserMatchingMode: pulumi.String("string"),
UserPathTemplate: pulumi.String("string"),
Uuid: pulumi.String("string"),
})
var sourceTelegramResource = new SourceTelegram("sourceTelegramResource", SourceTelegramArgs.builder()
.preAuthenticationFlow("string")
.botToken("string")
.botUsername("string")
.slug("string")
.propertyMappings("string")
.name("string")
.policyEngineMode("string")
.enrollmentFlow("string")
.authenticationFlow("string")
.propertyMappingsGroups("string")
.requestMessageAccess(false)
.enabled(false)
.sourceTelegramId("string")
.userMatchingMode("string")
.userPathTemplate("string")
.uuid("string")
.build());
source_telegram_resource = authentik.SourceTelegram("sourceTelegramResource",
pre_authentication_flow="string",
bot_token="string",
bot_username="string",
slug="string",
property_mappings=["string"],
name="string",
policy_engine_mode="string",
enrollment_flow="string",
authentication_flow="string",
property_mappings_groups=["string"],
request_message_access=False,
enabled=False,
source_telegram_id="string",
user_matching_mode="string",
user_path_template="string",
uuid="string")
const sourceTelegramResource = new authentik.SourceTelegram("sourceTelegramResource", {
preAuthenticationFlow: "string",
botToken: "string",
botUsername: "string",
slug: "string",
propertyMappings: ["string"],
name: "string",
policyEngineMode: "string",
enrollmentFlow: "string",
authenticationFlow: "string",
propertyMappingsGroups: ["string"],
requestMessageAccess: false,
enabled: false,
sourceTelegramId: "string",
userMatchingMode: "string",
userPathTemplate: "string",
uuid: "string",
});
type: authentik:SourceTelegram
properties:
authenticationFlow: string
botToken: string
botUsername: string
enabled: false
enrollmentFlow: string
name: string
policyEngineMode: string
preAuthenticationFlow: string
propertyMappings:
- string
propertyMappingsGroups:
- string
requestMessageAccess: false
slug: string
sourceTelegramId: string
userMatchingMode: string
userPathTemplate: string
uuid: string
SourceTelegram 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 SourceTelegram resource accepts the following input properties:
- Bot
Token string - Bot
Username string - Pre
Authentication stringFlow - Slug string
- Authentication
Flow string - Enabled bool
- Defaults to
true. - Enrollment
Flow string - Name string
- Policy
Engine stringMode - Allowed values: -
all-anyDefaults toany. - Property
Mappings List<string> - Property
Mappings List<string>Groups - Request
Message boolAccess - Defaults to
false. - Source
Telegram stringId - User
Matching stringMode - Allowed values: -
identifier-email_link-email_deny-username_link-username_denyDefaults toidentifier. - User
Path stringTemplate - Defaults to
goauthentik.io/sources/%(slug)s. - Uuid string
- Generated.
- Bot
Token string - Bot
Username string - Pre
Authentication stringFlow - Slug string
- Authentication
Flow string - Enabled bool
- Defaults to
true. - Enrollment
Flow string - Name string
- Policy
Engine stringMode - Allowed values: -
all-anyDefaults toany. - Property
Mappings []string - Property
Mappings []stringGroups - Request
Message boolAccess - Defaults to
false. - Source
Telegram stringId - User
Matching stringMode - Allowed values: -
identifier-email_link-email_deny-username_link-username_denyDefaults toidentifier. - User
Path stringTemplate - Defaults to
goauthentik.io/sources/%(slug)s. - Uuid string
- Generated.
- bot
Token String - bot
Username String - pre
Authentication StringFlow - slug String
- authentication
Flow String - enabled Boolean
- Defaults to
true. - enrollment
Flow String - name String
- policy
Engine StringMode - Allowed values: -
all-anyDefaults toany. - property
Mappings List<String> - property
Mappings List<String>Groups - request
Message BooleanAccess - Defaults to
false. - source
Telegram StringId - user
Matching StringMode - Allowed values: -
identifier-email_link-email_deny-username_link-username_denyDefaults toidentifier. - user
Path StringTemplate - Defaults to
goauthentik.io/sources/%(slug)s. - uuid String
- Generated.
- bot
Token string - bot
Username string - pre
Authentication stringFlow - slug string
- authentication
Flow string - enabled boolean
- Defaults to
true. - enrollment
Flow string - name string
- policy
Engine stringMode - Allowed values: -
all-anyDefaults toany. - property
Mappings string[] - property
Mappings string[]Groups - request
Message booleanAccess - Defaults to
false. - source
Telegram stringId - user
Matching stringMode - Allowed values: -
identifier-email_link-email_deny-username_link-username_denyDefaults toidentifier. - user
Path stringTemplate - Defaults to
goauthentik.io/sources/%(slug)s. - uuid string
- Generated.
- bot_
token str - bot_
username str - pre_
authentication_ strflow - slug str
- authentication_
flow str - enabled bool
- Defaults to
true. - enrollment_
flow str - name str
- policy_
engine_ strmode - Allowed values: -
all-anyDefaults toany. - property_
mappings Sequence[str] - property_
mappings_ Sequence[str]groups - request_
message_ boolaccess - Defaults to
false. - source_
telegram_ strid - user_
matching_ strmode - Allowed values: -
identifier-email_link-email_deny-username_link-username_denyDefaults toidentifier. - user_
path_ strtemplate - Defaults to
goauthentik.io/sources/%(slug)s. - uuid str
- Generated.
- bot
Token String - bot
Username String - pre
Authentication StringFlow - slug String
- authentication
Flow String - enabled Boolean
- Defaults to
true. - enrollment
Flow String - name String
- policy
Engine StringMode - Allowed values: -
all-anyDefaults toany. - property
Mappings List<String> - property
Mappings List<String>Groups - request
Message BooleanAccess - Defaults to
false. - source
Telegram StringId - user
Matching StringMode - Allowed values: -
identifier-email_link-email_deny-username_link-username_denyDefaults toidentifier. - user
Path StringTemplate - Defaults to
goauthentik.io/sources/%(slug)s. - uuid String
- Generated.
Outputs
All input properties are implicitly available as output properties. Additionally, the SourceTelegram 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 SourceTelegram Resource
Get an existing SourceTelegram 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?: SourceTelegramState, opts?: CustomResourceOptions): SourceTelegram@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
authentication_flow: Optional[str] = None,
bot_token: Optional[str] = None,
bot_username: Optional[str] = None,
enabled: Optional[bool] = None,
enrollment_flow: Optional[str] = None,
name: Optional[str] = None,
policy_engine_mode: Optional[str] = None,
pre_authentication_flow: Optional[str] = None,
property_mappings: Optional[Sequence[str]] = None,
property_mappings_groups: Optional[Sequence[str]] = None,
request_message_access: Optional[bool] = None,
slug: Optional[str] = None,
source_telegram_id: Optional[str] = None,
user_matching_mode: Optional[str] = None,
user_path_template: Optional[str] = None,
uuid: Optional[str] = None) -> SourceTelegramfunc GetSourceTelegram(ctx *Context, name string, id IDInput, state *SourceTelegramState, opts ...ResourceOption) (*SourceTelegram, error)public static SourceTelegram Get(string name, Input<string> id, SourceTelegramState? state, CustomResourceOptions? opts = null)public static SourceTelegram get(String name, Output<String> id, SourceTelegramState state, CustomResourceOptions options)resources: _: type: authentik:SourceTelegram 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.
- Authentication
Flow string - Bot
Token string - Bot
Username string - Enabled bool
- Defaults to
true. - Enrollment
Flow string - Name string
- Policy
Engine stringMode - Allowed values: -
all-anyDefaults toany. - Pre
Authentication stringFlow - Property
Mappings List<string> - Property
Mappings List<string>Groups - Request
Message boolAccess - Defaults to
false. - Slug string
- Source
Telegram stringId - User
Matching stringMode - Allowed values: -
identifier-email_link-email_deny-username_link-username_denyDefaults toidentifier. - User
Path stringTemplate - Defaults to
goauthentik.io/sources/%(slug)s. - Uuid string
- Generated.
- Authentication
Flow string - Bot
Token string - Bot
Username string - Enabled bool
- Defaults to
true. - Enrollment
Flow string - Name string
- Policy
Engine stringMode - Allowed values: -
all-anyDefaults toany. - Pre
Authentication stringFlow - Property
Mappings []string - Property
Mappings []stringGroups - Request
Message boolAccess - Defaults to
false. - Slug string
- Source
Telegram stringId - User
Matching stringMode - Allowed values: -
identifier-email_link-email_deny-username_link-username_denyDefaults toidentifier. - User
Path stringTemplate - Defaults to
goauthentik.io/sources/%(slug)s. - Uuid string
- Generated.
- authentication
Flow String - bot
Token String - bot
Username String - enabled Boolean
- Defaults to
true. - enrollment
Flow String - name String
- policy
Engine StringMode - Allowed values: -
all-anyDefaults toany. - pre
Authentication StringFlow - property
Mappings List<String> - property
Mappings List<String>Groups - request
Message BooleanAccess - Defaults to
false. - slug String
- source
Telegram StringId - user
Matching StringMode - Allowed values: -
identifier-email_link-email_deny-username_link-username_denyDefaults toidentifier. - user
Path StringTemplate - Defaults to
goauthentik.io/sources/%(slug)s. - uuid String
- Generated.
- authentication
Flow string - bot
Token string - bot
Username string - enabled boolean
- Defaults to
true. - enrollment
Flow string - name string
- policy
Engine stringMode - Allowed values: -
all-anyDefaults toany. - pre
Authentication stringFlow - property
Mappings string[] - property
Mappings string[]Groups - request
Message booleanAccess - Defaults to
false. - slug string
- source
Telegram stringId - user
Matching stringMode - Allowed values: -
identifier-email_link-email_deny-username_link-username_denyDefaults toidentifier. - user
Path stringTemplate - Defaults to
goauthentik.io/sources/%(slug)s. - uuid string
- Generated.
- authentication_
flow str - bot_
token str - bot_
username str - enabled bool
- Defaults to
true. - enrollment_
flow str - name str
- policy_
engine_ strmode - Allowed values: -
all-anyDefaults toany. - pre_
authentication_ strflow - property_
mappings Sequence[str] - property_
mappings_ Sequence[str]groups - request_
message_ boolaccess - Defaults to
false. - slug str
- source_
telegram_ strid - user_
matching_ strmode - Allowed values: -
identifier-email_link-email_deny-username_link-username_denyDefaults toidentifier. - user_
path_ strtemplate - Defaults to
goauthentik.io/sources/%(slug)s. - uuid str
- Generated.
- authentication
Flow String - bot
Token String - bot
Username String - enabled Boolean
- Defaults to
true. - enrollment
Flow String - name String
- policy
Engine StringMode - Allowed values: -
all-anyDefaults toany. - pre
Authentication StringFlow - property
Mappings List<String> - property
Mappings List<String>Groups - request
Message BooleanAccess - Defaults to
false. - slug String
- source
Telegram StringId - user
Matching StringMode - Allowed values: -
identifier-email_link-email_deny-username_link-username_denyDefaults toidentifier. - user
Path StringTemplate - Defaults to
goauthentik.io/sources/%(slug)s. - uuid String
- Generated.
Package Details
- Repository
- authentik goauthentik/terraform-provider-authentik
- License
- Notes
- This Pulumi package is based on the
authentikTerraform Provider.
