Class TeamsAccount


  • public class TeamsAccount
    extends com.pulumi.resources.CustomResource
    Provides a Cloudflare Teams Account resource. The Teams Account resource defines configuration for secure web gateway. ## Example Usage <!--Start PulumiCodeChooser -->
     
     package generated_program;
     
     import com.pulumi.Context;
     import com.pulumi.Pulumi;
     import com.pulumi.core.Output;
     import com.pulumi.cloudflare.TeamsAccount;
     import com.pulumi.cloudflare.TeamsAccountArgs;
     import com.pulumi.cloudflare.inputs.TeamsAccountBlockPageArgs;
     import com.pulumi.cloudflare.inputs.TeamsAccountBodyScanningArgs;
     import com.pulumi.cloudflare.inputs.TeamsAccountAntivirusArgs;
     import com.pulumi.cloudflare.inputs.TeamsAccountAntivirusNotificationSettingsArgs;
     import com.pulumi.cloudflare.inputs.TeamsAccountFipsArgs;
     import com.pulumi.cloudflare.inputs.TeamsAccountProxyArgs;
     import com.pulumi.cloudflare.inputs.TeamsAccountLoggingArgs;
     import com.pulumi.cloudflare.inputs.TeamsAccountLoggingSettingsByRuleTypeArgs;
     import com.pulumi.cloudflare.inputs.TeamsAccountLoggingSettingsByRuleTypeDnsArgs;
     import com.pulumi.cloudflare.inputs.TeamsAccountLoggingSettingsByRuleTypeHttpArgs;
     import com.pulumi.cloudflare.inputs.TeamsAccountLoggingSettingsByRuleTypeL4Args;
     import com.pulumi.cloudflare.inputs.TeamsAccountExtendedEmailMatchingArgs;
     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 example = new TeamsAccount("example", TeamsAccountArgs.builder()
                 .accountId("f037e56e89293a057740de681ac9abbe")
                 .tlsDecryptEnabled(true)
                 .protocolDetectionEnabled(true)
                 .blockPage(TeamsAccountBlockPageArgs.builder()
                     .footerText("hello")
                     .headerText("hello")
                     .logoPath("https://example.com/logo.jpg")
                     .backgroundColor("#000000")
                     .build())
                 .bodyScanning(TeamsAccountBodyScanningArgs.builder()
                     .inspectionMode("deep")
                     .build())
                 .antivirus(TeamsAccountAntivirusArgs.builder()
                     .enabledDownloadPhase(true)
                     .enabledUploadPhase(false)
                     .failClosed(true)
                     .notificationSettings(TeamsAccountAntivirusNotificationSettingsArgs.builder()
                         .enabled(true)
                         .message("you are blocked")
                         .supportUrl("https://example.com/blocked")
                         .build())
                     .build())
                 .fips(TeamsAccountFipsArgs.builder()
                     .tls(true)
                     .build())
                 .proxy(TeamsAccountProxyArgs.builder()
                     .tcp(true)
                     .udp(true)
                     .rootCa(true)
                     .virtualIp(false)
                     .build())
                 .urlBrowserIsolationEnabled(true)
                 .logging(TeamsAccountLoggingArgs.builder()
                     .redactPii(true)
                     .settingsByRuleType(TeamsAccountLoggingSettingsByRuleTypeArgs.builder()
                         .dns(TeamsAccountLoggingSettingsByRuleTypeDnsArgs.builder()
                             .logAll(false)
                             .logBlocks(true)
                             .build())
                         .http(TeamsAccountLoggingSettingsByRuleTypeHttpArgs.builder()
                             .logAll(true)
                             .logBlocks(true)
                             .build())
                         .l4(TeamsAccountLoggingSettingsByRuleTypeL4Args.builder()
                             .logAll(false)
                             .logBlocks(true)
                             .build())
                         .build())
                     .build())
                 .extendedEmailMatching(TeamsAccountExtendedEmailMatchingArgs.builder()
                     .enabled(true)
                     .build())
                 .build());
     
         }
     }
     
     
    <!--End PulumiCodeChooser --> ## Import ```sh $ pulumi import cloudflare:index/teamsAccount:TeamsAccount example <account_id> ```
    • Constructor Detail

      • TeamsAccount

        public TeamsAccount​(java.lang.String name)
        Parameters:
        name - The _unique_ name of the resulting resource.
      • TeamsAccount

        public TeamsAccount​(java.lang.String name,
                            TeamsAccountArgs args)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
      • TeamsAccount

        public TeamsAccount​(java.lang.String name,
                            TeamsAccountArgs args,
                            @Nullable
                            com.pulumi.resources.CustomResourceOptions options)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
        options - A bag of options that control this resource's behavior.
    • Method Detail

      • accountId

        public com.pulumi.core.Output<java.lang.String> accountId()
        Returns:
        The account identifier to target for the resource.
      • activityLogEnabled

        public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> activityLogEnabled()
        Returns:
        Whether to enable the activity log.
      • antivirus

        public com.pulumi.core.Output<java.util.Optional<TeamsAccountAntivirus>> antivirus()
        Returns:
        Configuration block for antivirus traffic scanning.
      • blockPage

        public com.pulumi.core.Output<java.util.Optional<TeamsAccountBlockPage>> blockPage()
        Returns:
        Configuration for a custom block page.
      • bodyScanning

        public com.pulumi.core.Output<java.util.Optional<TeamsAccountBodyScanning>> bodyScanning()
        Returns:
        Configuration for body scanning.
      • customCertificate

        public com.pulumi.core.Output<java.util.Optional<TeamsAccountCustomCertificate>> customCertificate()
        Returns:
        Configuration for custom certificates / BYO-PKI.
      • extendedEmailMatching

        public com.pulumi.core.Output<TeamsAccountExtendedEmailMatching> extendedEmailMatching()
        Returns:
        Configuration for extended e-mail matching.
      • fips

        public com.pulumi.core.Output<java.util.Optional<TeamsAccountFips>> fips()
        Returns:
        Configure compliance with Federal Information Processing Standards.
      • nonIdentityBrowserIsolationEnabled

        public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> nonIdentityBrowserIsolationEnabled()
        Returns:
        Enable non-identity onramp for Browser Isolation. Defaults to `false`.
      • payloadLog

        public com.pulumi.core.Output<java.util.Optional<TeamsAccountPayloadLog>> payloadLog()
        Returns:
        Configuration for DLP Payload Logging.
      • protocolDetectionEnabled

        public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> protocolDetectionEnabled()
        Returns:
        Indicator that protocol detection is enabled.
      • proxy

        public com.pulumi.core.Output<java.util.Optional<TeamsAccountProxy>> proxy()
        Returns:
        Configuration block for specifying which protocols are proxied.
      • sshSessionLog

        public com.pulumi.core.Output<java.util.Optional<TeamsAccountSshSessionLog>> sshSessionLog()
        Returns:
        Configuration for SSH Session Logging.
      • tlsDecryptEnabled

        public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> tlsDecryptEnabled()
        Returns:
        Indicator that decryption of TLS traffic is enabled.
      • urlBrowserIsolationEnabled

        public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> urlBrowserIsolationEnabled()
        Returns:
        Safely browse websites in Browser Isolation through a URL. Defaults to `false`.
      • get

        public static TeamsAccount get​(java.lang.String name,
                                       com.pulumi.core.Output<java.lang.String> id,
                                       @Nullable
                                       TeamsAccountState state,
                                       @Nullable
                                       com.pulumi.resources.CustomResourceOptions options)
        Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
        Parameters:
        name - The _unique_ name of the resulting resource.
        id - The _unique_ provider ID of the resource to lookup.
        state -
        options - Optional settings to control the behavior of the CustomResource.