kafka.Provider
Explore with Pulumi AI
The provider type for the kafka package. By default, resources use package-wide configuration
settings, however an explicit Provider
instance may be created and passed during resource
construction to achieve fine-grained programmatic control over provider settings. See the
documentation for more information.
Create Provider Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Provider(name: string, args: ProviderArgs, opts?: CustomResourceOptions);
@overload
def Provider(resource_name: str,
args: ProviderArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Provider(resource_name: str,
opts: Optional[ResourceOptions] = None,
bootstrap_servers: Optional[Sequence[str]] = None,
ca_cert: Optional[str] = None,
ca_cert_file: Optional[str] = None,
client_cert: Optional[str] = None,
client_cert_file: Optional[str] = None,
client_key: Optional[str] = None,
client_key_file: Optional[str] = None,
client_key_passphrase: Optional[str] = None,
kafka_version: Optional[str] = None,
sasl_aws_access_key: Optional[str] = None,
sasl_aws_creds_debug: Optional[bool] = None,
sasl_aws_profile: Optional[str] = None,
sasl_aws_region: Optional[str] = None,
sasl_aws_role_arn: Optional[str] = None,
sasl_aws_secret_key: Optional[str] = None,
sasl_aws_token: Optional[str] = None,
sasl_mechanism: Optional[str] = None,
sasl_password: Optional[str] = None,
sasl_token_url: Optional[str] = None,
sasl_username: Optional[str] = None,
skip_tls_verify: Optional[bool] = None,
timeout: Optional[int] = None,
tls_enabled: Optional[bool] = None)
func NewProvider(ctx *Context, name string, args ProviderArgs, opts ...ResourceOption) (*Provider, error)
public Provider(string name, ProviderArgs args, CustomResourceOptions? opts = null)
public Provider(String name, ProviderArgs args)
public Provider(String name, ProviderArgs args, CustomResourceOptions options)
type: pulumi:providers:kafka
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 ProviderArgs
- 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 ProviderArgs
- 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 ProviderArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProviderArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ProviderArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Provider Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Provider resource accepts the following input properties:
- Bootstrap
Servers List<string> - A list of kafka brokers
- Ca
Cert string - CA certificate file to validate the server's certificate.
- Ca
Cert stringFile - Path to a CA certificate file to validate the server's certificate.
- Client
Cert string - The client certificate.
- Client
Cert stringFile - Path to a file containing the client certificate.
- Client
Key string - The private key that the certificate was issued for.
- Client
Key stringFile - Path to a file containing the private key that the certificate was issued for.
- Client
Key stringPassphrase - The passphrase for the private key that the certificate was issued for.
- Kafka
Version string - The version of Kafka protocol to use in
$MAJOR.$MINOR.$PATCH
format. Some features may not be available on older versions. Default is 2.7.0. - Sasl
Aws stringAccess Key - The AWS access key.
- Sasl
Aws boolCreds Debug - Set this to true to turn AWS credentials debug.
- Sasl
Aws stringProfile - AWS profile name to use
- Sasl
Aws stringRegion - AWS region where MSK is deployed.
- Sasl
Aws stringRole Arn - Arn of an AWS IAM role to assume
- Sasl
Aws stringSecret Key - The AWS secret key.
- Sasl
Aws stringToken - The AWS session token. Only required if you are using temporary security credentials.
- Sasl
Mechanism string - SASL mechanism, can be plain, scram-sha512, scram-sha256, aws-iam
It can also be sourced from the following environment variable:
KAFKA_SASL_MECHANISM
- Sasl
Password string - Password for SASL authentication.
- Sasl
Token stringUrl - The url to retrieve oauth2 tokens from, when using sasl mechanism oauthbearer
- Sasl
Username string - Username for SASL authentication.
- Skip
Tls boolVerify - Set this to true only if the target Kafka server is an insecure development instance.
It can also be sourced from the following environment variable:
KAFKA_SKIP_VERIFY
- Timeout int
- Timeout in seconds
- Tls
Enabled bool - Enable communication with the Kafka Cluster over TLS.
It can also be sourced from the following environment variable:
KAFKA_ENABLE_TLS
- Bootstrap
Servers []string - A list of kafka brokers
- Ca
Cert string - CA certificate file to validate the server's certificate.
- Ca
Cert stringFile - Path to a CA certificate file to validate the server's certificate.
- Client
Cert string - The client certificate.
- Client
Cert stringFile - Path to a file containing the client certificate.
- Client
Key string - The private key that the certificate was issued for.
- Client
Key stringFile - Path to a file containing the private key that the certificate was issued for.
- Client
Key stringPassphrase - The passphrase for the private key that the certificate was issued for.
- Kafka
Version string - The version of Kafka protocol to use in
$MAJOR.$MINOR.$PATCH
format. Some features may not be available on older versions. Default is 2.7.0. - Sasl
Aws stringAccess Key - The AWS access key.
- Sasl
Aws boolCreds Debug - Set this to true to turn AWS credentials debug.
- Sasl
Aws stringProfile - AWS profile name to use
- Sasl
Aws stringRegion - AWS region where MSK is deployed.
- Sasl
Aws stringRole Arn - Arn of an AWS IAM role to assume
- Sasl
Aws stringSecret Key - The AWS secret key.
- Sasl
Aws stringToken - The AWS session token. Only required if you are using temporary security credentials.
- Sasl
Mechanism string - SASL mechanism, can be plain, scram-sha512, scram-sha256, aws-iam
It can also be sourced from the following environment variable:
KAFKA_SASL_MECHANISM
- Sasl
Password string - Password for SASL authentication.
- Sasl
Token stringUrl - The url to retrieve oauth2 tokens from, when using sasl mechanism oauthbearer
- Sasl
Username string - Username for SASL authentication.
- Skip
Tls boolVerify - Set this to true only if the target Kafka server is an insecure development instance.
It can also be sourced from the following environment variable:
KAFKA_SKIP_VERIFY
- Timeout int
- Timeout in seconds
- Tls
Enabled bool - Enable communication with the Kafka Cluster over TLS.
It can also be sourced from the following environment variable:
KAFKA_ENABLE_TLS
- bootstrap
Servers List<String> - A list of kafka brokers
- ca
Cert String - CA certificate file to validate the server's certificate.
- ca
Cert StringFile - Path to a CA certificate file to validate the server's certificate.
- client
Cert String - The client certificate.
- client
Cert StringFile - Path to a file containing the client certificate.
- client
Key String - The private key that the certificate was issued for.
- client
Key StringFile - Path to a file containing the private key that the certificate was issued for.
- client
Key StringPassphrase - The passphrase for the private key that the certificate was issued for.
- kafka
Version String - The version of Kafka protocol to use in
$MAJOR.$MINOR.$PATCH
format. Some features may not be available on older versions. Default is 2.7.0. - sasl
Aws StringAccess Key - The AWS access key.
- sasl
Aws BooleanCreds Debug - Set this to true to turn AWS credentials debug.
- sasl
Aws StringProfile - AWS profile name to use
- sasl
Aws StringRegion - AWS region where MSK is deployed.
- sasl
Aws StringRole Arn - Arn of an AWS IAM role to assume
- sasl
Aws StringSecret Key - The AWS secret key.
- sasl
Aws StringToken - The AWS session token. Only required if you are using temporary security credentials.
- sasl
Mechanism String - SASL mechanism, can be plain, scram-sha512, scram-sha256, aws-iam
It can also be sourced from the following environment variable:
KAFKA_SASL_MECHANISM
- sasl
Password String - Password for SASL authentication.
- sasl
Token StringUrl - The url to retrieve oauth2 tokens from, when using sasl mechanism oauthbearer
- sasl
Username String - Username for SASL authentication.
- skip
Tls BooleanVerify - Set this to true only if the target Kafka server is an insecure development instance.
It can also be sourced from the following environment variable:
KAFKA_SKIP_VERIFY
- timeout Integer
- Timeout in seconds
- tls
Enabled Boolean - Enable communication with the Kafka Cluster over TLS.
It can also be sourced from the following environment variable:
KAFKA_ENABLE_TLS
- bootstrap
Servers string[] - A list of kafka brokers
- ca
Cert string - CA certificate file to validate the server's certificate.
- ca
Cert stringFile - Path to a CA certificate file to validate the server's certificate.
- client
Cert string - The client certificate.
- client
Cert stringFile - Path to a file containing the client certificate.
- client
Key string - The private key that the certificate was issued for.
- client
Key stringFile - Path to a file containing the private key that the certificate was issued for.
- client
Key stringPassphrase - The passphrase for the private key that the certificate was issued for.
- kafka
Version string - The version of Kafka protocol to use in
$MAJOR.$MINOR.$PATCH
format. Some features may not be available on older versions. Default is 2.7.0. - sasl
Aws stringAccess Key - The AWS access key.
- sasl
Aws booleanCreds Debug - Set this to true to turn AWS credentials debug.
- sasl
Aws stringProfile - AWS profile name to use
- sasl
Aws stringRegion - AWS region where MSK is deployed.
- sasl
Aws stringRole Arn - Arn of an AWS IAM role to assume
- sasl
Aws stringSecret Key - The AWS secret key.
- sasl
Aws stringToken - The AWS session token. Only required if you are using temporary security credentials.
- sasl
Mechanism string - SASL mechanism, can be plain, scram-sha512, scram-sha256, aws-iam
It can also be sourced from the following environment variable:
KAFKA_SASL_MECHANISM
- sasl
Password string - Password for SASL authentication.
- sasl
Token stringUrl - The url to retrieve oauth2 tokens from, when using sasl mechanism oauthbearer
- sasl
Username string - Username for SASL authentication.
- skip
Tls booleanVerify - Set this to true only if the target Kafka server is an insecure development instance.
It can also be sourced from the following environment variable:
KAFKA_SKIP_VERIFY
- timeout number
- Timeout in seconds
- tls
Enabled boolean - Enable communication with the Kafka Cluster over TLS.
It can also be sourced from the following environment variable:
KAFKA_ENABLE_TLS
- bootstrap_
servers Sequence[str] - A list of kafka brokers
- ca_
cert str - CA certificate file to validate the server's certificate.
- ca_
cert_ strfile - Path to a CA certificate file to validate the server's certificate.
- client_
cert str - The client certificate.
- client_
cert_ strfile - Path to a file containing the client certificate.
- client_
key str - The private key that the certificate was issued for.
- client_
key_ strfile - Path to a file containing the private key that the certificate was issued for.
- client_
key_ strpassphrase - The passphrase for the private key that the certificate was issued for.
- kafka_
version str - The version of Kafka protocol to use in
$MAJOR.$MINOR.$PATCH
format. Some features may not be available on older versions. Default is 2.7.0. - sasl_
aws_ straccess_ key - The AWS access key.
- sasl_
aws_ boolcreds_ debug - Set this to true to turn AWS credentials debug.
- sasl_
aws_ strprofile - AWS profile name to use
- sasl_
aws_ strregion - AWS region where MSK is deployed.
- sasl_
aws_ strrole_ arn - Arn of an AWS IAM role to assume
- sasl_
aws_ strsecret_ key - The AWS secret key.
- sasl_
aws_ strtoken - The AWS session token. Only required if you are using temporary security credentials.
- sasl_
mechanism str - SASL mechanism, can be plain, scram-sha512, scram-sha256, aws-iam
It can also be sourced from the following environment variable:
KAFKA_SASL_MECHANISM
- sasl_
password str - Password for SASL authentication.
- sasl_
token_ strurl - The url to retrieve oauth2 tokens from, when using sasl mechanism oauthbearer
- sasl_
username str - Username for SASL authentication.
- skip_
tls_ boolverify - Set this to true only if the target Kafka server is an insecure development instance.
It can also be sourced from the following environment variable:
KAFKA_SKIP_VERIFY
- timeout int
- Timeout in seconds
- tls_
enabled bool - Enable communication with the Kafka Cluster over TLS.
It can also be sourced from the following environment variable:
KAFKA_ENABLE_TLS
- bootstrap
Servers List<String> - A list of kafka brokers
- ca
Cert String - CA certificate file to validate the server's certificate.
- ca
Cert StringFile - Path to a CA certificate file to validate the server's certificate.
- client
Cert String - The client certificate.
- client
Cert StringFile - Path to a file containing the client certificate.
- client
Key String - The private key that the certificate was issued for.
- client
Key StringFile - Path to a file containing the private key that the certificate was issued for.
- client
Key StringPassphrase - The passphrase for the private key that the certificate was issued for.
- kafka
Version String - The version of Kafka protocol to use in
$MAJOR.$MINOR.$PATCH
format. Some features may not be available on older versions. Default is 2.7.0. - sasl
Aws StringAccess Key - The AWS access key.
- sasl
Aws BooleanCreds Debug - Set this to true to turn AWS credentials debug.
- sasl
Aws StringProfile - AWS profile name to use
- sasl
Aws StringRegion - AWS region where MSK is deployed.
- sasl
Aws StringRole Arn - Arn of an AWS IAM role to assume
- sasl
Aws StringSecret Key - The AWS secret key.
- sasl
Aws StringToken - The AWS session token. Only required if you are using temporary security credentials.
- sasl
Mechanism String - SASL mechanism, can be plain, scram-sha512, scram-sha256, aws-iam
It can also be sourced from the following environment variable:
KAFKA_SASL_MECHANISM
- sasl
Password String - Password for SASL authentication.
- sasl
Token StringUrl - The url to retrieve oauth2 tokens from, when using sasl mechanism oauthbearer
- sasl
Username String - Username for SASL authentication.
- skip
Tls BooleanVerify - Set this to true only if the target Kafka server is an insecure development instance.
It can also be sourced from the following environment variable:
KAFKA_SKIP_VERIFY
- timeout Number
- Timeout in seconds
- tls
Enabled Boolean - Enable communication with the Kafka Cluster over TLS.
It can also be sourced from the following environment variable:
KAFKA_ENABLE_TLS
Outputs
All input properties are implicitly available as output properties. Additionally, the Provider 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.
Package Details
- Repository
- Kafka pulumi/pulumi-kafka
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
kafka
Terraform Provider.