Class TrailDeprecated


  • @Deprecated
    public class TrailDeprecated
    extends com.pulumi.resources.CustomResource
    Deprecated.
    Resource renamed to `Trail`
    > **DEPRECATED:** This resource has been renamed to alicloud.actiontrail.Trail from version 1.95.0. Provides a new resource to manage [Action Trail](https://www.alibabacloud.com/help/doc-detail/28804.htm). > **NOTE:** Available in 1.35.0+ ## Example Usage ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.alicloud.actiontrail.TrailDeprecated; import com.pulumi.alicloud.actiontrail.TrailDeprecatedArgs; 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 foo = new TrailDeprecated("foo", TrailDeprecatedArgs.builder() .eventRw("Write-test") .ossBucketName(alicloud_oss_bucket.bucket().id()) .roleName(alicloud_ram_role_policy_attachment.attach().role_name()) .ossKeyPrefix("at-product-account-audit-B") .build()); } } ``` ## Import Action trail can be imported using the id, e.g. ```sh $ pulumi import alicloud:actiontrail/trailDeprecated:TrailDeprecated foo abc12345678 ```
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.pulumi.resources.CustomResource

        com.pulumi.resources.CustomResource.CustomResourceInternal
      • Nested classes/interfaces inherited from class com.pulumi.resources.Resource

        com.pulumi.resources.Resource.LazyField<T extends java.lang.Object>, com.pulumi.resources.Resource.LazyFields, com.pulumi.resources.Resource.ResourceInternal
    • Field Summary

      • Fields inherited from class com.pulumi.resources.Resource

        childResources, remote
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> eventRw()
      Deprecated.
       
      static TrailDeprecated get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, TrailDeprecatedState state, com.pulumi.resources.CustomResourceOptions options)
      Deprecated.
      Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
      com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> isOrganizationTrail()
      Deprecated.
       
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> mnsTopicArn()
      Deprecated.
       
      com.pulumi.core.Output<java.lang.String> name()
      Deprecated.
       
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> ossBucketName()
      Deprecated.
       
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> ossKeyPrefix()
      Deprecated.
       
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> ossWriteRoleArn()
      Deprecated.
       
      com.pulumi.core.Output<java.lang.String> roleName()
      Deprecated.
       
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> slsProjectArn()
      Deprecated.
       
      com.pulumi.core.Output<java.lang.String> slsWriteRoleArn()
      Deprecated.
       
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> status()
      Deprecated.
       
      com.pulumi.core.Output<java.lang.String> trailName()
      Deprecated.
       
      com.pulumi.core.Output<java.lang.String> trailRegion()
      Deprecated.
       
      • Methods inherited from class com.pulumi.resources.CustomResource

        getId, id, idFuture
      • Methods inherited from class com.pulumi.resources.Resource

        getChildResources, getResourceName, getResourceType, getUrn, pulumiChildResources, pulumiResourceName, pulumiResourceType, urn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TrailDeprecated

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

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

        public TrailDeprecated​(java.lang.String name,
                               @Nullable
                               TrailDeprecatedArgs args,
                               @Nullable
                               com.pulumi.resources.CustomResourceOptions options)
        Deprecated.
        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

      • eventRw

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> eventRw()
        Deprecated.
        Returns:
        Indicates whether the event is a read or a write event. Valid values: Read, Write, and All. Default value: Write.
      • isOrganizationTrail

        public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> isOrganizationTrail()
        Deprecated.
      • mnsTopicArn

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> mnsTopicArn()
        Deprecated.
      • name

        public com.pulumi.core.Output<java.lang.String> name()
        Deprecated.
        Returns:
        The name of the trail to be created, which must be unique for an account.
      • ossBucketName

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> ossBucketName()
        Deprecated.
        Returns:
        The OSS bucket to which the trail delivers logs. Ensure that this is an existing OSS bucket.
      • ossKeyPrefix

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> ossKeyPrefix()
        Deprecated.
        Returns:
        The prefix of the specified OSS bucket name. This parameter can be left empty.
      • ossWriteRoleArn

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> ossWriteRoleArn()
        Deprecated.
      • roleName

        public com.pulumi.core.Output<java.lang.String> roleName()
        Deprecated.
        Returns:
        The RAM role in ActionTrail permitted by the user.
      • slsProjectArn

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> slsProjectArn()
        Deprecated.
        Returns:
        The unique ARN of the Log Service project.
      • slsWriteRoleArn

        public com.pulumi.core.Output<java.lang.String> slsWriteRoleArn()
        Deprecated.
        Returns:
        The unique ARN of the Log Service role. > **NOTE:** `sls_project_arn` and `sls_write_role_arn` should be set or not set at the same time when actiontrail delivers logs.
      • status

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> status()
        Deprecated.
      • trailName

        public com.pulumi.core.Output<java.lang.String> trailName()
        Deprecated.
      • trailRegion

        public com.pulumi.core.Output<java.lang.String> trailRegion()
        Deprecated.
      • get

        public static TrailDeprecated get​(java.lang.String name,
                                          com.pulumi.core.Output<java.lang.String> id,
                                          @Nullable
                                          TrailDeprecatedState state,
                                          @Nullable
                                          com.pulumi.resources.CustomResourceOptions options)
        Deprecated.
        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.