Class ComponentResourceOptions

    • Constructor Detail

      • ComponentResourceOptions

        public ComponentResourceOptions​(@Nullable
                                        Output<java.lang.String> id,
                                        @Nullable
                                        Resource parent,
                                        @Nullable
                                        Output<java.util.List<Resource>> dependsOn,
                                        boolean protect,
                                        @Nullable
                                        java.util.List<java.lang.String> ignoreChanges,
                                        @Nullable
                                        java.lang.String version,
                                        @Nullable
                                        CustomTimeouts customTimeouts,
                                        @Nullable
                                        java.util.List<ResourceTransformation> resourceTransformations,
                                        @Nullable
                                        java.util.List<Output<Alias>> aliases,
                                        @Nullable
                                        java.lang.String urn,
                                        @Nullable
                                        java.util.List<java.lang.String> replaceOnChanges,
                                        boolean retainOnDelete,
                                        @Nullable
                                        java.lang.String pluginDownloadURL,
                                        @Nullable
                                        java.util.List<ProviderResource> providers)
    • Method Detail

      • getProviders

        public java.util.List<ProviderResource> getProviders()
        An optional list of providers to use for child resources.
        Returns:
        list of providers or empty
      • merge

        public static ComponentResourceOptions merge​(@Nullable
                                                     ComponentResourceOptions options1,
                                                     @Nullable
                                                     ComponentResourceOptions options2)
        Takes two "ComponentResourceOptions" values and produces a new "ComponentResourceOptions" with the respective properties of "options2" merged over the same properties in "options1".

        The original options objects will be unchanged. A new instance will always be returned.

        Conceptually property merging follows these basic rules: 1. If the property is a collection, the final value will be a collection containing the values from each options object. 2. Simple scalar values from "options2" (i.e. Strings, Integers, Booleans) will replace the values of "options1". 3. "null" values in "options2" will be ignored.